File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,18 @@ to be the most efficient by using the internal mechanisms.
7474
7575[[vector-functions]]
7676===== Functions for vector fields
77+
78+ experimental[]
79+
7780These functions are used for
7881for <<dense-vector,`dense_vector`>> and
7982<<sparse-vector,`sparse_vector`>> fields.
8083
84+ NOTE: During vector functions' calculation, all matched documents are
85+ linearly scanned. Thus, expect the query time grow linearly
86+ with the number of matched documents. For this reason, we recommend
87+ to limit the number of matched documents with a `query` parameter.
88+
8189For dense_vector fields, `cosineSimilarity` calculates the measure of
8290cosine similarity between a given query vector and document vectors.
8391
You can’t perform that action at this time.
0 commit comments