Add universal query endpoint and deprecate legacy search/recommend endpoints#64
Merged
Conversation
…dpoints Implement the new universal query API (`/points/query`, `/points/query/batch`, `/points/query/groups`) which replaces the deprecated search, recommend, and discover endpoints. Add QueryRequest, BatchQueryRequest, and QueryGroupsRequest models with support for nearest, recommend, discover, fusion, order_by, sample queries, prefetch pipelines, and cross-collection lookups. Mark SearchRequest, RecommendRequest, BatchRecommendRequest, and their corresponding endpoint methods as deprecated. Add shard_key support and limit validation to SearchRequest. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- actions/checkout v2 → v4 - actions/cache v2 → v4 - codecov/codecov-action v3 → v4 - Replace deprecated set-output with GITHUB_OUTPUT Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rvice Add required setLimit() calls to RecommendRequest and BatchRecommendRequest tests to match the limit validation added in the previous commit. Remove locks tests from ServiceTest as the /locks endpoint has been removed from the Qdrant API, and mark getLocks/setLocks methods as deprecated. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #64 +/- ##
============================================
- Coverage 94.13% 94.06% -0.07%
- Complexity 411 478 +67
============================================
Files 78 82 +4
Lines 1296 1382 +86
============================================
+ Hits 1220 1300 +80
- Misses 76 82 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Cover all three Query endpoint methods (query, batch, groups) with integration tests including nearest vector search, filters, payload, vector inclusion, score threshold, offset/limit, search params, using, recommend queries, query parameters, batch queries, and group queries with payload and filter support. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
c346ccf to
bf5c10f
Compare
bf5c10f to
6dfcfc6
Compare
…rage Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ld assertions Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement the new universal query API (
/points/query,/points/query/batch,/points/query/groups) which replaces the deprecated search, recommend, and discover endpoints. Add QueryRequest, BatchQueryRequest, and QueryGroupsRequest models with support for nearest, recommend, discover, fusion, order_by, sample queries, prefetch pipelines, and cross-collection lookups. Mark SearchRequest, RecommendRequest, BatchRecommendRequest, and their corresponding endpoint methods as deprecated. Add shard_key support and limit validation to SearchRequest.