From 3ccd28064e3ec1790a08f0f890a255a590fd8d8b Mon Sep 17 00:00:00 2001 From: Madhan <45423614+madhankb@users.noreply.github.com> Date: Wed, 3 Jan 2024 05:50:14 +0530 Subject: [PATCH] Update approximate-knn.md (#6011) * Update approximate-knn.md Updated a sentence. Signed-off-by: Madhan <45423614+madhankb@users.noreply.github.com> * Update _search-plugins/knn/approximate-knn.md Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> --------- Signed-off-by: Madhan <45423614+madhankb@users.noreply.github.com> Signed-off-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Co-authored-by: kolchfa-aws <105444904+kolchfa-aws@users.noreply.github.com> Co-authored-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --- _search-plugins/knn/approximate-knn.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_search-plugins/knn/approximate-knn.md b/_search-plugins/knn/approximate-knn.md index 8dec5ef2..e8b951a3 100644 --- a/_search-plugins/knn/approximate-knn.md +++ b/_search-plugins/knn/approximate-knn.md @@ -248,7 +248,11 @@ To learn about using filters with k-NN search, see [k-NN search with filters]({{ ## Spaces -A space corresponds to the function used to measure the distance between two points in order to determine the k-nearest neighbors. From the k-NN perspective, a lower score equates to a closer and better result. This is the opposite of how OpenSearch scores results, where a greater score equates to a better result. To convert distances to OpenSearch scores, we take 1 / (1 + distance). The k-NN plugin the spaces the plugin supports are below. Not every method supports each of these spaces. Be sure to check out [the method documentation]({{site.url}}{{site.baseurl}}/search-plugins/knn/knn-index#method-definitions) to make sure the space you are interested in is supported. +A space corresponds to the function used to measure the distance between two points in order to determine the k-nearest neighbors. From the k-NN perspective, a lower score equates to a closer and better result. This is the opposite of how OpenSearch scores results, where a greater score equates to a better result. To convert distances to OpenSearch scores, we take 1 / (1 + distance). The k-NN plugin supports the following spaces. + +Not every method supports each of these spaces. Be sure to check out [the method documentation]({{site.url}}{{site.baseurl}}/search-plugins/knn/knn-index#method-definitions) to make sure the space you are intersted in is supported. +{: note.} +