Skip to content

Commit

Permalink
PI-2526 Switch to the lucene knn engine (#4553)
Browse files Browse the repository at this point in the history
Lucene supports radial search (unlike the default hnsw) while maintaining support for the cosine similarity space.

See:
* https://opensearch.org/docs/latest/search-plugins/knn/radial-search-knn/
* https://opensearch.org/docs/latest/search-plugins/knn/knn-index#method-definitions
  • Loading branch information
marcus-bcl authored Jan 20, 2025
1 parent 0904f06 commit fddeaa5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,8 @@ template:
type: knn_vector
dimension: 1024
space_type: cosinesimil
method:
engine: lucene
notes:
copy_to: text
type: text
Expand Down

0 comments on commit fddeaa5

Please sign in to comment.