Skip to content

Commit

Permalink
Implement ngt property get API (#2584)
Browse files Browse the repository at this point in the history
* add property to proto

Signed-off-by: Kosuke Morimoto <[email protected]>

* build proto files

Signed-off-by: Kosuke Morimoto <[email protected]>

* fix

Signed-off-by: Kosuke Morimoto <[email protected]>

* fix rust API

Signed-off-by: Kosuke Morimoto <[email protected]>

* fix unit test

Signed-off-by: Kosuke Morimoto <[email protected]>

* make format

Signed-off-by: Kosuke Morimoto <[email protected]>

* make format

Signed-off-by: Kosuke Morimoto <[email protected]>

* update

Signed-off-by: Kosuke Morimoto <[email protected]>

* fix test

Signed-off-by: Kosuke Morimoto <[email protected]>

* add unit test

Signed-off-by: Kosuke Morimoto <[email protected]>

* style: format code with Gofumpt and Prettier

This commit fixes the style issues introduced in de3ef81 according to the output
from Gofumpt and Prettier.

Details: #2584

* add codecov.yml to ignore generated code

Signed-off-by: Kosuke Morimoto <[email protected]>

* make format

Signed-off-by: Kosuke Morimoto <[email protected]>

* fix conflict

Signed-off-by: Kosuke Morimoto <[email protected]>

* fix

Signed-off-by: Kosuke Morimoto <[email protected]>

* style: format code with Gofumpt and Prettier

This commit fixes the style issues introduced in 1d43dbb according to the output
from Gofumpt and Prettier.

Details: #2584

* fix

Signed-off-by: Kosuke Morimoto <[email protected]>

* format

Signed-off-by: Kosuke Morimoto <[email protected]>

* add codecov ignore

Signed-off-by: Kosuke Morimoto <[email protected]>

* add unit test

Signed-off-by: Kosuke Morimoto <[email protected]>

---------

Signed-off-by: Kosuke Morimoto <[email protected]>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and vdaas-ci committed Aug 22, 2024
1 parent 7fe3c9c commit 78e4254
Show file tree
Hide file tree
Showing 34 changed files with 4,812 additions and 1,032 deletions.
66 changes: 66 additions & 0 deletions apis/docs/v1/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
- [Info.Index.Count](#payload-v1-Info-Index-Count)
- [Info.Index.Detail](#payload-v1-Info-Index-Detail)
- [Info.Index.Detail.CountsEntry](#payload-v1-Info-Index-Detail-CountsEntry)
- [Info.Index.Property](#payload-v1-Info-Index-Property)
- [Info.Index.PropertyDetail](#payload-v1-Info-Index-PropertyDetail)
- [Info.Index.PropertyDetail.DetailsEntry](#payload-v1-Info-Index-PropertyDetail-DetailsEntry)
- [Info.Index.Statistics](#payload-v1-Info-Index-Statistics)
- [Info.Index.StatisticsDetail](#payload-v1-Info-Index-StatisticsDetail)
- [Info.Index.StatisticsDetail.DetailsEntry](#payload-v1-Info-Index-StatisticsDetail-DetailsEntry)
Expand Down Expand Up @@ -320,6 +323,68 @@ Represent the index count for each Agents message.
| key | [string](#string) | | |
| value | [Info.Index.Count](#payload-v1-Info-Index-Count) | | |

<a name="payload-v1-Info-Index-Property"></a>

### Info.Index.Property

Represents index Property

| Field | Type | Label | Description |
| ---------------------------------- | ----------------- | ----- | ----------- |
| dimension | [int32](#int32) | | |
| thread_pool_size | [int32](#int32) | | |
| object_type | [string](#string) | | |
| distance_type | [string](#string) | | |
| index_type | [string](#string) | | |
| database_type | [string](#string) | | |
| object_alignment | [string](#string) | | |
| path_adjustment_interval | [int32](#int32) | | |
| graph_shared_memory_size | [int32](#int32) | | |
| tree_shared_memory_size | [int32](#int32) | | |
| object_shared_memory_size | [int32](#int32) | | |
| prefetch_offset | [int32](#int32) | | |
| prefetch_size | [int32](#int32) | | |
| accuracy_table | [string](#string) | | |
| search_type | [string](#string) | | |
| max_magnitude | [float](#float) | | |
| n_of_neighbors_for_insertion_order | [int32](#int32) | | |
| epsilon_for_insertion_order | [float](#float) | | |
| refinement_object_type | [string](#string) | | |
| truncation_threshold | [int32](#int32) | | |
| edge_size_for_creation | [int32](#int32) | | |
| edge_size_for_search | [int32](#int32) | | |
| edge_size_limit_for_creation | [int32](#int32) | | |
| insertion_radius_coefficient | [double](#double) | | |
| seed_size | [int32](#int32) | | |
| seed_type | [string](#string) | | |
| truncation_thread_pool_size | [int32](#int32) | | |
| batch_size_for_creation | [int32](#int32) | | |
| graph_type | [string](#string) | | |
| dynamic_edge_size_base | [int32](#int32) | | |
| dynamic_edge_size_rate | [int32](#int32) | | |
| build_time_limit | [float](#float) | | |
| outgoing_edge | [int32](#int32) | | |
| incoming_edge | [int32](#int32) | | |

<a name="payload-v1-Info-Index-PropertyDetail"></a>

### Info.Index.PropertyDetail

Represents index Properties for each Agents

| Field | Type | Label | Description |
| ------- | -------------------------------------------------------------------------------------------- | -------- | ----------- |
| details | [Info.Index.PropertyDetail.DetailsEntry](#payload-v1-Info-Index-PropertyDetail-DetailsEntry) | repeated | |

<a name="payload-v1-Info-Index-PropertyDetail-DetailsEntry"></a>

### Info.Index.PropertyDetail.DetailsEntry

| Field | Type | Label | Description |
| ----- | ------------------------------------------------------ | ----- | ----------- |
| key | [string](#string) | | |
| value | [Info.Index.Property](#payload-v1-Info-Index-Property) | | |

<a name="payload-v1-Info-Index-Statistics"></a>

### Info.Index.Statistics
Expand Down Expand Up @@ -1567,6 +1632,7 @@ Represent the index manager service.
| IndexDetail | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.Detail](#payload-v1-Info-Index-Detail) | Represent the RPC to get the index information for each agents. |
| IndexStatistics | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.Statistics](#payload-v1-Info-Index-Statistics) | Represent the RPC to get the index statistics. |
| IndexStatisticsDetail | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.StatisticsDetail](#payload-v1-Info-Index-StatisticsDetail) | Represent the RPC to get the index statistics for each agents. |
| IndexProperty | [.payload.v1.Empty](#payload-v1-Empty) | [.payload.v1.Info.Index.PropertyDetail](#payload-v1-Info-Index-PropertyDetail) | Represent the RPC to get the index property. |

<a name="v1_vald_insert-proto"></a>

Expand Down
2 changes: 1 addition & 1 deletion apis/grpc/v1/agent/sidecar/sidecar_vtproto.pb.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const _ = grpc.SupportPackageIsVersion7
// SidecarClient is the client API for Sidecar service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type SidecarClient any
type SidecarClient interface{}

type sidecarClient struct {
cc grpc.ClientConnInterface
Expand Down
Loading

0 comments on commit 78e4254

Please sign in to comment.