-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
gRPC API for Distance Matrix #5011
Conversation
@@ -274,7 +274,13 @@ fn configure_validation(builder: Builder) -> Builder { | |||
("QueryBatchPoints.timeout", "custom(function = \"crate::grpc::validate::validate_u64_range_min_1\")"), | |||
("FacetCounts.collection_name", "length(min = 1, max = 255)"), | |||
("FacetCounts.key", "length(min = 1)"), | |||
("FacetCounts.timeout", "custom(function = \"crate::grpc::validate::validate_u64_range_min_1\")") | |||
("FacetCounts.filter", ""), |
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.
added missing validation on FacetCounts.filter
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.
Thank you!
@@ -13011,16 +13007,18 @@ | |||
] | |||
}, | |||
"sample": { | |||
"description": "How many points to select and search within.", | |||
"description": "How many points to select and search within. Default is 10.", |
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.
I decided to make sample
and limit
optional for the sake of consistency with other endpoints.
0e3b3a9
to
afd98a8
Compare
docs/grpc/docs.md
Outdated
|
||
| Field | Type | Label | Description | | ||
| ----- | ---- | ----- | ----------- | | ||
| offsets_row | [uint64](#uint64) | repeated | Row coordinates of the CRS matrix | |
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.
After some investigation I realized that CRS stands for something else. What we are doing with offsets is more similar to the COO representation
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 observation 👍
I will get this fixed.
f9b6874
to
ece3c13
Compare
lib/api/src/grpc/proto/points.proto
Outdated
repeated uint64 offsets_row = 1; // Row coordinates of the matrix | ||
repeated uint64 offsets_col = 2; // Column coordinates ids of the matrix |
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.
How about
repeated uint64 offsets_row = 1; // Row coordinates of the matrix | |
repeated uint64 offsets_col = 2; // Column coordinates ids of the matrix | |
repeated uint64 row_indices = 1; // Row indices of the matrix | |
repeated uint64 col_indices = 2; // Column indices of the matrix |
And same for REST
* gRPC API for Distance Matrix * generate API docs * apply correct limit to sample * add JWT tests * pluralitiy * fix COO naming * drops COO as it trips codespell and is redundant * clarify docs
context: https://github.com/qdrant/qdrant/milestone/11
This PR adds gRPC endpoints to the new distance matrix API