Skip to content

Commit 57cbbb3

Browse files
authored
Minor ann docs update (#94783)
Replace the link to the deprecated knn search API and added a link to the nightly benchmarks in Rally.
1 parent f4b19ad commit 57cbbb3

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

docs/reference/how-to/knn-search.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ For example your index might also include text fields and numerics, which also
4444
benefit from using filesystem cache. It's recommended to run benchmarks with
4545
your specific dataset to ensure there's a sufficient amount of memory to give
4646
good search performance.
47+
You can find https://elasticsearch-benchmarks.elastic.co/#tracks/so_vector[here]
48+
and https://elasticsearch-benchmarks.elastic.co/#tracks/dense_vector[here] some examples
49+
of datasets and configurations that we use for our nightly benchmarks.
4750

4851
[discrete]
4952
include::search-speed.asciidoc[tag=warm-fs-cache]

docs/reference/mapping/types/dense-vector.asciidoc

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,14 @@ similarity.
6060

6161
In many cases, a brute-force kNN search is not efficient enough. For this
6262
reason, the `dense_vector` type supports indexing vectors into a specialized
63-
data structure to support fast kNN retrieval through the
64-
<<knn-search-api, kNN search API>>. You can enable indexing by setting the
65-
`index` parameter:
63+
data structure to support fast kNN retrieval through the <<search-api-knn, `knn` option>> in the search API
64+
65+
NOTE: Indexing vectors for approximate kNN search is an expensive process. It
66+
can take substantial time to ingest documents that contain vector fields with
67+
`index` enabled. See <<tune-knn-search,k-nearest neighbor (kNN) search>> to
68+
learn more about the memory requirements.
69+
70+
You can enable indexing by setting the `index` parameter:
6671

6772
[source,console]
6873
--------------------------------------------------
@@ -86,10 +91,6 @@ PUT my-index-2
8691
efficient kNN search. Like most kNN algorithms, HNSW is an approximate method
8792
that sacrifices result accuracy for improved speed.
8893

89-
NOTE: Indexing vectors for approximate kNN search is an expensive process. It
90-
can take substantial time to ingest documents that contain vector fields with
91-
`index` enabled.
92-
9394
Dense vector fields cannot be indexed if they are within
9495
<<nested, `nested`>> mappings.
9596

0 commit comments

Comments
 (0)