File tree Expand file tree Collapse file tree 3 files changed +61
-0
lines changed
docs/reference/query-languages/esql Expand file tree Collapse file tree 3 files changed +61
-0
lines changed Original file line number Diff line number Diff line change 1+ * <<esql-knn >>
2+ * <<esql-v_cosine>>
3+ * <<esql-v_dot_product>>
4+ * <<esql-v_hamming>>
5+ * <<esql-v_l1_norm>>
6+ * <<esql-v_l2_norm>>
7+ * <<esql-v_magnitude>>
Original file line number Diff line number Diff line change @@ -80,6 +80,12 @@ mapped_pages:
8080:::
8181::::
8282
83+ ::::{dropdown} Vector functions
84+ :open:
85+ :::{include} _ snippets/lists/vector-functions.md
86+ :::
87+ ::::
88+
8389::::{dropdown} Multi value functions
8490:open:
8591:::{include} _ snippets/lists/mv-functions.md
Original file line number Diff line number Diff line change 1+ ---
2+ applies_to :
3+ stack : preview
4+ serverless : preview
5+ navigation_title : " Vector functions"
6+ mapped_pages :
7+ - https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-functions-operators.html#esql-vector-functions
8+ ---
9+
10+ # {{esql}} vector functions [ esql-vector-functions]
11+
12+ {{esql}} supports vector functions for dense vector similarity calculations and k-nearest neighbor search.
13+
14+ These functions are primarily used for:
15+ - Computing similarity between dense vectors using various similarity metrics
16+ - Finding the k-nearest neighbors in vector space
17+ - Calculating vector magnitudes and norms
18+
19+ :::{note}
20+ Vector functions are currently in ** preview** and may change in future versions.
21+ They work with ` dense_vector ` fields and require appropriate field mappings.
22+ :::
23+
24+ {{esql}} supports these vector functions:
25+
26+ :::{include} ../_ snippets/lists/vector-functions.md
27+ :::
28+
29+ :::{include} ../_ snippets/functions/layout/knn.md
30+ :::
31+
32+ :::{include} ../_ snippets/functions/layout/v_cosine.md
33+ :::
34+
35+ :::{include} ../_ snippets/functions/layout/v_dot_product.md
36+ :::
37+
38+ :::{include} ../_ snippets/functions/layout/v_hamming.md
39+ :::
40+
41+ :::{include} ../_ snippets/functions/layout/v_l1_norm.md
42+ :::
43+
44+ :::{include} ../_ snippets/functions/layout/v_l2_norm.md
45+ :::
46+
47+ :::{include} ../_ snippets/functions/layout/v_magnitude.md
48+ :::
You can’t perform that action at this time.
0 commit comments