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

Hybrid search #4226

Merged
merged 28 commits into from
Dec 14, 2023
Merged

Hybrid search #4226

merged 28 commits into from
Dec 14, 2023

Conversation

dureuill
Copy link
Contributor

@dureuill dureuill commented Nov 23, 2023

Allows to perform hybrid search requests that combine the results of semantic and keyword search and automatically generate embeddings.

How to use

See feature description

Changes

  • work is based on WIP: Auto-generate embeddings for documents and queries #4213
  • milli::new search now takes an input universe directly, rather than computing it from a filter. This adds flexibility to require results on a subset of documents
  • vector search is now a regular ranking rule (akin to sort and geosort) and reports its score as a ScoreDetail
  • separate keyword search and vector search functions, vector search now respects (geo)sort ranking rules
  • add automatic embedding
  • add hybrid search

milli/Cargo.toml Show resolved Hide resolved
milli/Cargo.toml Show resolved Hide resolved
milli/Cargo.toml Outdated Show resolved Hide resolved
milli/src/vector/hf.rs Show resolved Hide resolved
@dureuill dureuill added this to the v1.6.0 milestone Dec 12, 2023
@dureuill
Copy link
Contributor Author

bors merge

Copy link
Contributor

meili-bors bot commented Dec 14, 2023

@meili-bors meili-bors bot merged commit 2aede03 into main Dec 14, 2023
10 checks passed
@meili-bors meili-bors bot deleted the hybrid-search branch December 14, 2023 17:11
@meili-bot meili-bot added the v1.6.0 PRs/issues solved in v1.6.0 released on 2024-01-15 label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v1.6.0 PRs/issues solved in v1.6.0 released on 2024-01-15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants