Skip to content

Commit

Permalink
Add table header to approximate k-NN (opensearch-project#7280)
Browse files Browse the repository at this point in the history
Signed-off-by: kolchfa-aws <[email protected]>
  • Loading branch information
kolchfa-aws authored May 30, 2024
1 parent 6732d2f commit 9af765f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _search-plugins/knn/approximate-knn.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ For any engine, each shard returns `size` results to the coordinator node. Thus,
The following table provides examples of the number of results returned by various engines in several scenarios. For these examples, assume that the number of documents contained in the segments and shards is sufficient to return the number of results specified in the table.

`size` | `k` | Number of primary shards | Number of segments per shard | Number of returned results, Faiss/NMSLIB | Number of returned results, Lucene
:--- | :--- | :--- | :--- | :--- | :---
10 | 1 | 1 | 4 | 4 | 1
10 | 10 | 1 | 4 | 10 | 10
10 | 1 | 2 | 4 | 8 | 2
Expand Down Expand Up @@ -326,4 +327,4 @@ included in the distance function.
With cosine similarity, it is not valid to pass a zero vector (`[0, 0, ...]`) as input. This is because the magnitude of
such a vector is 0, which raises a `divide by 0` exception in the corresponding formula. Requests
containing the zero vector will be rejected and a corresponding exception will be thrown.
{: .note }
{: .note }

0 comments on commit 9af765f

Please sign in to comment.