From 8aac629d1d274b5d2ba7d65824fd3ff11d392251 Mon Sep 17 00:00:00 2001 From: Kosuke Morimoto Date: Fri, 16 Aug 2024 22:32:35 +0900 Subject: [PATCH] fix typo Signed-off-by: Kosuke Morimoto --- internal/core/algorithm/ngt/ngt.go | 4 ++-- pkg/agent/core/ngt/service/ngt.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/core/algorithm/ngt/ngt.go b/internal/core/algorithm/ngt/ngt.go index 81bf667f225..fc1873f3172 100644 --- a/internal/core/algorithm/ngt/ngt.go +++ b/internal/core/algorithm/ngt/ngt.go @@ -177,7 +177,7 @@ type ( SearchType string MaxMagnitude float32 NOfNeighborsForInsertionOrder int32 - EpsilonForInsersionOrder float32 + EpsilonForInsertionOrder float32 RefinementObjectType objectType TruncationThreshold int32 EdgeSizeForCreation int32 @@ -1180,7 +1180,7 @@ func (n *ngt) GetProperty() (prop *Property, err error) { SearchType: C.GoString(cprop.search_type), MaxMagnitude: float32(cprop.max_magnitude), NOfNeighborsForInsertionOrder: int32(cprop.n_of_neighbors_for_insertion_order), - EpsilonForInsersionOrder: float32(cprop.epsilon_for_insertion_order), + EpsilonForInsertionOrder: float32(cprop.epsilon_for_insertion_order), RefinementObjectType: objectType(cprop.refinement_object_type), TruncationThreshold: int32(cprop.truncation_thread_pool_size), EdgeSizeForCreation: int32(cprop.edge_size_for_creation), diff --git a/pkg/agent/core/ngt/service/ngt.go b/pkg/agent/core/ngt/service/ngt.go index 3b07ea507c6..7aa766dd3bb 100644 --- a/pkg/agent/core/ngt/service/ngt.go +++ b/pkg/agent/core/ngt/service/ngt.go @@ -2068,7 +2068,7 @@ func (n *ngt) IndexProperty() (*payload.Info_Index_Property, error) { SearchType: prop.SearchType, MaxMagnitude: prop.MaxMagnitude, NOfNeighborsForInsertionOrder: prop.NOfNeighborsForInsertionOrder, - EpsilonForInsertionOrder: prop.EpsilonForInsersionOrder, + EpsilonForInsertionOrder: prop.EpsilonForInsertionOrder, RefinementObjectType: prop.RefinementObjectType.String(), TruncationThreshold: prop.TruncationThreshold, EdgeSizeForCreation: prop.EdgeSizeForCreation,