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

MB-61889: support search with params #2049

Merged
merged 2 commits into from
Jul 25, 2024
Merged

MB-61889: support search with params #2049

merged 2 commits into from
Jul 25, 2024

Conversation

moshaad7
Copy link
Member

@moshaad7 moshaad7 commented Jul 8, 2024

  • update knn search request syntax, to enable users to supply search-time parameters,
    using which they can control the latency v/s recall tradeoff.

  • Supported parameters are

    • ivf_nprobe_pct
    • ivf_max_codes_pct
  • These parameters will be applied to those segments which have faissIVFIndex

  • In future, to support other faiss Index classes (like hnsw), the list of
    supported knn search params can be extended.

search_knn.go Outdated
//
// For Faiss IVF index, supported search params are:
// - nprobe_pct : int // percentage of total clusters to search
// - max_codes_pct : float // percentage of total vectors to visit to do a query (across all clusters)
Copy link
Member

Choose a reason for hiding this comment

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

@moshaad7 Given that these are going to be applicable to IVF indexes only, should we force their names to indicate this as well - ivf_nprobe_pct & ivf_max_codes_pct.

Copy link
Member

@abhinavdangeti abhinavdangeti left a comment

Choose a reason for hiding this comment

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

Would you update the commit description documenting the new settings we're introducing with this commit please.

- update knn search request syntax, to enable users to supply search-time parameters,
  using which they can control the latency v/s recall tradeoff.
- Supported parameters are
  + ivf_nprobe_pct
  + ivf_max_codes_pct
- These parameters will be applied to those segments which have faissIVFIndex

- In future, to support other faiss Index classes (like hnsw), the list of
  supported knn search params can be extended.
* 65187de Mohd Shaad Khan | MB-61889: support search with params
@abhinavdangeti abhinavdangeti merged commit 4b89f9f into master Jul 25, 2024
9 checks passed
@abhinavdangeti abhinavdangeti deleted the MB-61889 branch July 25, 2024 16:29
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.

2 participants