-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat: add Sparse Embedders based on Sentence Transformers #9588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
anakin87
merged 26 commits into
deepset-ai:main
from
Ryzhtus:feat/support_sparse_models_in_sentence_transformers
Sep 19, 2025
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
2506f4f
Added backend class for SparseEncoder and also SentenceTransformersSp…
Ryzhtus abd7ea5
Added SentenceTransformersSparseDocumentEmbedder
Ryzhtus 82b87c2
Created a separate _SentenceTransformersSparseEmbeddingBackendFactory…
Ryzhtus 73eaa97
Remove unused parameter
Ryzhtus 74c222e
Wrapped output into SparseEmbedding dataclass + fix tests
Ryzhtus 4ddde78
Return correct SparseEmbedding, imports and tests
Ryzhtus 3ed6005
Merge branch 'main' into feat/support_sparse_models_in_sentence_trans…
Ryzhtus 341767b
Merge branch 'main' into st-sparse
anakin87 71950af
fix fmt
anakin87 3c08b33
Merge branch 'deepset-ai:main' into feat/support_sparse_models_in_sen…
Ryzhtus a469c8f
Style changes and fixes
Ryzhtus be29552
Added a test for embed function
Ryzhtus f7536f9
Added integration test and fixed some other tests
Ryzhtus 69dfa63
Merge branch 'main' into feat/support_sparse_models_in_sentence_trans…
Ryzhtus 90dd503
Add lint fixes
Ryzhtus 555e897
Merge branch 'feat/support_sparse_models_in_sentence_transformers' of…
Ryzhtus 21313ce
Fixed positional arguments
Ryzhtus 832b76b
Merge branch 'main' into st-sparse
anakin87 60e2805
fix types, simplify and more
anakin87 3620d09
fix
anakin87 d95b0e9
token fixes
anakin87 527e24b
pydocs, small model in test, cache improvement
anakin87 06e8d8b
try 3.9 for docs
anakin87 044652d
better to pin click
anakin87 cfc7dda
release note
anakin87 4e7850c
small fix
anakin87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Return correct SparseEmbedding, imports and tests
- Loading branch information
commit 4ddde7844e9ed93082d9df92e0101bded6f29262
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.