From 9f2b5f573f518b1cee24172f67fde9982ae43ec8 Mon Sep 17 00:00:00 2001 From: Michael Landis Date: Fri, 18 Aug 2023 10:15:19 -0700 Subject: [PATCH] feat: vector index delete item rpc 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. --- proto/vectorindex.proto | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/proto/vectorindex.proto b/proto/vectorindex.proto index 7e5ee0a..23ee697 100644 --- a/proto/vectorindex.proto +++ b/proto/vectorindex.proto @@ -4,6 +4,7 @@ package vectorindex; service VectorIndex { rpc AddItemBatch(_AddItemBatchRequest) returns (_AddItemBatchResponse) {} + rpc DeleteItemBatch(_DeleteItemBatchRequest) returns (_DeleteItemBatchResponse) {} rpc Search(_SearchRequest) returns (_SearchResponse) {} } @@ -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; }