-
Notifications
You must be signed in to change notification settings - Fork 2
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
Added new search #61
Added new search #61
Conversation
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.
good to go
""" | ||
|
||
return QdrantBackend( | ||
dim=384, |
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.
this just looks funny. why is it this specific number?
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.
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.
Thats the dimensionality of the embeddings for sentence-transformers/all-MiniLM-L6-v2
. So its fine iff the user will never be able to parametrize this particular variable.
Regardless, I agree it should be annotated with a comment or a constant that is-self-descriptive (i.e. EMBEDDING_DIMENSION
to help explain whats going on)
search_backend = BiVectorBackend( | ||
metadata_backend=self._qdrant_text_engine, bed_backend=self._qdrant_engine | ||
) | ||
search_interface = BiVectorSearchInterface( | ||
backend=search_backend, query2vec="sentence-transformers/all-MiniLM-L6-v2" |
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.
For the future, what is the difference between backend and interface? Is interface the correct term here?
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.
Co-authored-by: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com>
Co-authored-by: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com>
Co-authored-by: Donald Campbell <125581724+donaldcampbelljr@users.noreply.github.com>
Changes