Skip to content

Commit

Permalink
feat: GetItemAndFetchVectorsBatch API (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
honeyAcorn authored Nov 13, 2023
1 parent 50b7cf3 commit 72cb995
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions proto/vectorindex.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ service VectorIndex {
rpc Search(_SearchRequest) returns (_SearchResponse) {}
rpc SearchAndFetchVectors(_SearchAndFetchVectorsRequest) returns (_SearchAndFetchVectorsResponse) {}
rpc GetItemBatch(_GetItemBatchRequest) returns (_GetItemBatchResponse) {}
rpc GetItemAndFetchVectorsBatch(_GetItemAndFetchVectorsBatchRequest) returns (_GetItemAndFetchVectorsBatchResponse) {}
}

message _Item {
Expand Down Expand Up @@ -131,3 +132,26 @@ message _ItemResponse {
message _GetItemBatchResponse {
repeated _ItemResponse item_response = 1;
}

message _GetItemAndFetchVectorsBatchRequest {
string index_name = 1;
repeated string ids = 2;
_MetadataRequest metadata_fields = 3;
}

message _ItemWithVectorResponse {
message _Miss {}
message _Hit {
string id = 1;
_Vector vector = 2;
repeated _Metadata metadata = 3;
}
oneof response {
_Miss miss = 1;
_Hit hit = 2;
}
}

message _GetItemAndFetchVectorsBatchResponse {
repeated _ItemWithVectorResponse item_with_vector_response = 1;
}

0 comments on commit 72cb995

Please sign in to comment.