Skip to content

Commit

Permalink
add property to proto
Browse files Browse the repository at this point in the history
Signed-off-by: Kosuke Morimoto <[email protected]>
  • Loading branch information
kmrmt committed Aug 13, 2024
1 parent 4fb802d commit 1fc8836
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
43 changes: 43 additions & 0 deletions apis/proto/v1/payload/payload.proto
Original file line number Diff line number Diff line change
Expand Up @@ -590,6 +590,49 @@ message Info {
// count infos for each agents
map<string, Statistics> details = 1;
}

// Represents index Property
message Property {
int32 dimension = 1;
int32 thread_pool_size = 2;
int32 object_type = 3;
int32 distance_type = 4;
int32 index_type = 5;
int32 database_type = 6;
int32 object_alignment = 7;
int32 path_adjustment_interval = 8;
int32 graph_shared_memory_size = 9;
int32 tree_shared_memory_size = 10;
int32 object_shared_memory_size = 11;
int32 prefetch_offset = 12;
int32 prefetch_size = 13;
string accuracy_table = 14;
string search_type = 15;
float max_magnitude = 16;
int32 n_of_neighbors_for_insertion_order = 17;
float epsilon_for_insertion_order = 18;
int32 refinement_object_type = 19;
int32 truncation_threshold = 20;
int32 edge_size_for_creation = 21;
int32 edge_size_for_search = 22;
int32 edge_size_limit_for_creation = 23;
double insertion_radius_coefficient = 24;
int32 seed_size = 25;
int32 seed_type = 26;
int32 truncation_thread_pool_size = 27;
int32 batch_size_for_creation = 28;
int32 graph_type = 29;
int32 dynamic_edge_size_base = 30;
int32 dynamic_edge_size_rate = 31;
float build_time_limit = 32;
int32 outgoing_edge = 33;
int32 incoming_edge = 34;
}

// Represents index Properties for each Agents
message PropertyDetail {
map<string, Property> details = 1;
}
}

// Represent the pod information message.
Expand Down
10 changes: 10 additions & 0 deletions apis/proto/v1/vald/index.proto
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,14 @@ service Index {
rpc IndexStatisticsDetail(payload.v1.Empty) returns (payload.v1.Info.Index.StatisticsDetail) {
option (google.api.http).get = "/index/statistics/detail";
}

// Represent the RPC to get the index property.
rpc IndexProperty(payload.v1.Empty) returns (payload.v1.Info.Index.Property) {
option (google.api.http).get = "/index/property";
}

// Represent the RPC to get the index properties for each agents.
rpc IndexPropertyDetail(payload.v1.Empty) returns (payload.v1.Info.Index.PropertyDetail) {
option (google.api.http).get = "/index/property/detail";
}
}

0 comments on commit 1fc8836

Please sign in to comment.