Skip to content
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

Merged
merged 9 commits into from
Oct 15, 2024
Merged

Added new search #61

merged 9 commits into from
Oct 15, 2024

Conversation

khoroshevskyi
Copy link
Member

Changes

  • Added new search: bivec text to bed search

Copy link
Member

@donaldcampbelljr donaldcampbelljr left a 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,
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

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)

Comment on lines 243 to 247
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"
Copy link
Member

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?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bbconf/modules/bedfiles.py Outdated Show resolved Hide resolved
bbconf/modules/bedfiles.py Outdated Show resolved Hide resolved
@khoroshevskyi khoroshevskyi changed the base branch from dev to master October 15, 2024 15:59
khoroshevskyi and others added 4 commits October 15, 2024 12:00
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>
@khoroshevskyi khoroshevskyi changed the title Release 0.8.0 Added new search Oct 15, 2024
@khoroshevskyi khoroshevskyi changed the base branch from master to dev October 15, 2024 16:24
@khoroshevskyi khoroshevskyi changed the base branch from dev to master October 15, 2024 16:26
@khoroshevskyi khoroshevskyi changed the base branch from master to dev October 15, 2024 16:30
@khoroshevskyi khoroshevskyi merged commit 4cd5b2e into dev Oct 15, 2024
4 checks passed
@khoroshevskyi khoroshevskyi deleted the bivec branch October 15, 2024 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants