Skip to content

Commit

Permalink
feat: vector index delete item rpc
Browse files Browse the repository at this point in the history
This PR adds an RPC to delete items from the vector index by id. The
semantics are to delete any items with an id in the provided list.
  • Loading branch information
malandis committed Aug 18, 2023
1 parent 8bfb32b commit 9f2b5f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions proto/vectorindex.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package vectorindex;

service VectorIndex {
rpc AddItemBatch(_AddItemBatchRequest) returns (_AddItemBatchResponse) {}
rpc DeleteItemBatch(_DeleteItemBatchRequest) returns (_DeleteItemBatchResponse) {}
rpc Search(_SearchRequest) returns (_SearchResponse) {}
}

Expand All @@ -22,6 +23,14 @@ message _AddItemBatchResponse {
repeated uint32 error_indices = 1;
}

message _DeleteItemBatchRequest {
string index_name = 1;
repeated string ids = 2;
}

message _DeleteItemBatchResponse {
}

message _Vector {
repeated float elements = 1;
}
Expand Down

0 comments on commit 9f2b5f5

Please sign in to comment.