[Docs] ES|QL - Add exact search tutorial#140552
Conversation
ℹ️ Important: Docs version tagging👋 Thanks for updating the docs! Just a friendly reminder that our docs are now cumulative. This means all 9.x versions are documented on the same page and published off of the main branch, instead of creating separate pages for each minor version. We use applies_to tags to mark version-specific features and changes. Expand for a quick overviewWhen to use applies_to tags:✅ At the page level to indicate which products/deployments the content applies to (mandatory) What NOT to do:❌ Don't remove or replace information that applies to an older version 🤔 Need help?
|
|
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
|
Pinging @elastic/core-docs (Team:Docs) |
| serverless: ga | ||
| ``` | ||
|
|
||
| While `KNN` performs approximate nearest neighbor search, {{esql}} also provides [exact similarity functions](/reference/query-languages/esql/functions-operators/dense-vector-functions.md) for exact vector search. These functions calculate similarity over all the query vectors, guaranteeing accurate results at the cost of slower performance. |
There was a problem hiding this comment.
nit: here the link text says "exact similarity functions" but the linked page only has the top-level heading "dense-vector-functions". Wonder if we could update the layout of that page to create a subsection? 🤔
Co-authored-by: Liam Thompson <leemthompo@gmail.com>
…ct-search' into docs/esql-dense-vector-exact-search
leemthompo
left a comment
There was a problem hiding this comment.
Docs LGTM, one last suggestion to cross link to tutorial from reference page :)
| @@ -26,6 +26,10 @@ and require appropriate field mappings. | |||
| :::{include} ../_snippets/functions/layout/text_embedding.md | |||
| ::: | |||
|
|
|||
There was a problem hiding this comment.
@carlosdelest one last thing, at the very top of this page just after the H1 we should add link to the tutorial:
:::{tip}
For more examples of these functions in action, refer to [the {{esql}} for search tutorial](/reference/query-languages/esql/esql-search-tutorial.md#vector-search-with-knn-similarity-functions-and-text_embedding).
:::…ct-search' into docs/esql-dense-vector-exact-search
docs/reference/query-languages/esql/functions-operators/dense-vector-functions.md
Outdated
Show resolved
Hide resolved
…vector-functions.md Co-authored-by: Liam Thompson <leemthompo@gmail.com>
…r-exact-search # Conflicts: # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/vector/CosineSimilarity.java # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/vector/DotProduct.java # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/vector/Hamming.java # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/vector/L1Norm.java # x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/expression/function/vector/L2Norm.java
Adds an exact search tutorial to the existing vector search tutorial for ES|QL