-
Notifications
You must be signed in to change notification settings - Fork 6
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
Sparse vectors representation #309
Conversation
Code Coverage Summary
Diff against main
Results for commit: 3be5ead Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Code Coverage Summary
Diff against main
Results for commit: 43f6011 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Trivy scanning results. |
packages/ragbits-core/src/ragbits/core/embeddings/sparse_vectors.py
Outdated
Show resolved
Hide resolved
packages/ragbits-core/src/ragbits/core/embeddings/sparse_vectors.py
Outdated
Show resolved
Hide resolved
return f"SparseVector(non_zero_dims={self.non_zero_dims}, non_zero_vals={self.non_zero_vals}, dim={self.dim})" | ||
|
||
|
||
class SparseEmbedding(WithConstructionConfig, ABC): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be plural, to be consistent with our Embeddings
class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it's time to rename the Embeddings
class itself instead? It doesn't make much sense - it should be Embedder
and SparseEmbedder
. Even DocumenSearch when it uses the Embeddings
instances it calls them embedder
(we have multiple occurances of embedder: Embeddings
in the code) - because that what it is. "Embeddings" would be an object containing actual embeddings, not a tool for creating them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe not in this PR but in the one with VectorStore refactor ?
b88fafb
to
0ef7d8e
Compare
Co-authored-by: Ludwik Trammer <[email protected]>
No description provided.