Skip to content

Commit

Permalink
correct distance_type lorentz value to match schema (#2878) (#2883)
Browse files Browse the repository at this point in the history
* correct distance_type lorentz value to match schema

* fix constant value comment

* Update internal/core/algorithm/ngt/option.go




---------

Signed-off-by: irokaru <[email protected]>
Co-authored-by: irokaru <[email protected]>
Co-authored-by: Yusuke Kato <[email protected]>
Co-authored-by: Kiichiro YUKAWA <[email protected]>
  • Loading branch information
4 people authored Mar 4, 2025
1 parent d1ae15a commit 1ea5f18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/core/algorithm/ngt/ngt.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ const (
Cosine
// Poincare is poincare distance.
Poincare
// Lorentz is lorenz distance.
// Lorentz is lorentz distance.
Lorentz
// Jaccard is jaccard distance.
Jaccard
Expand Down
2 changes: 1 addition & 1 deletion internal/core/algorithm/ngt/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func WithDistanceTypeByString(dt string) Option {
d = Cosine
case "poincare", "poinc", "poi", "po", "pc":
d = Poincare
case "lorenz", "loren", "lor", "lo", "lz":
case "lorentz", "lorent", "lorenz", "loren", "lor", "lo", "lz":
d = Lorentz
case "jaccard", "jac":
d = Jaccard
Expand Down

0 comments on commit 1ea5f18

Please sign in to comment.