From 5a4072c93f10946f7245057ae8561e6c0757ca99 Mon Sep 17 00:00:00 2001 From: Vir Ratanasangpunth Date: Tue, 8 Aug 2023 14:21:09 -0700 Subject: [PATCH 1/3] feat: add controlplane operations for vectorindex --- proto/controlclient.proto | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/proto/controlclient.proto b/proto/controlclient.proto index bd1d9f6..56f09c2 100644 --- a/proto/controlclient.proto +++ b/proto/controlclient.proto @@ -15,6 +15,36 @@ service ScsControl { rpc CreateSigningKey (_CreateSigningKeyRequest) returns (_CreateSigningKeyResponse) {} rpc RevokeSigningKey (_RevokeSigningKeyRequest) returns (_RevokeSigningKeyResponse) {} rpc ListSigningKeys (_ListSigningKeysRequest) returns (_ListSigningKeysResponse) {} + rpc CreateIndex (_CreateIndexRequest) returns (_CreateIndexRequest) {} + rpc DeleteIndex(_DeleteIndexRequest) returns (_DeleteIndexResponse) {} + rpc ListIndexes(_ListIndexesRequest) returns (_ListIndexesResponse) {} +} + +message _CreateIndexRequest { + string index_name = 1; + uint num_dimensions = 2; +} + +message _CreateIndexResponse { +} + +message _DeleteIndexRequest { + string index_name = 1; +} + +message _DeleteIndexResponse { +} + +message _ListIndexesRequest { +} + +message _ListIndexesResponse { + repeated _Index indexes = 1; + string next_token = 2; +} + +message _Index { + string index_name = 1; } message _DeleteCacheRequest { From 6c4148865048a5f9a4e7003352d4127b46e50fca Mon Sep 17 00:00:00 2001 From: Vir Ratanasangpunth Date: Tue, 8 Aug 2023 15:17:47 -0700 Subject: [PATCH 2/3] s/uint/uint64 --- proto/controlclient.proto | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto/controlclient.proto b/proto/controlclient.proto index 56f09c2..96f41ee 100644 --- a/proto/controlclient.proto +++ b/proto/controlclient.proto @@ -22,7 +22,7 @@ service ScsControl { message _CreateIndexRequest { string index_name = 1; - uint num_dimensions = 2; + uint64 num_dimensions = 2; } message _CreateIndexResponse { From 1da458a14845dca03be02a82d4dd114e8eda4b09 Mon Sep 17 00:00:00 2001 From: Vir Ratanasangpunth Date: Tue, 8 Aug 2023 15:44:26 -0700 Subject: [PATCH 3/3] next_token in ListIndexesRequest --- proto/controlclient.proto | 1 + 1 file changed, 1 insertion(+) diff --git a/proto/controlclient.proto b/proto/controlclient.proto index 96f41ee..771fc4f 100644 --- a/proto/controlclient.proto +++ b/proto/controlclient.proto @@ -36,6 +36,7 @@ message _DeleteIndexResponse { } message _ListIndexesRequest { + string next_token = 1; } message _ListIndexesResponse {