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 @@ -78,10 +78,18 @@ to be the most efficient by using the internal mechanisms.
7878
7979[[vector-functions]]
8080===== Functions for vector fields
81+
82+ experimental[]
83+
8184These functions are used for
8285for <<dense-vector,`dense_vector`>> and
8386<<sparse-vector,`sparse_vector`>> fields.
8487
88+ NOTE: During vector functions' calculation, all matched documents are
89+ linearly scanned. Thus, expect the query time grow linearly
90+ with the number of matched documents. For this reason, we recommend
91+ to limit the number of matched documents with a `query` parameter.
92+
8593For dense_vector fields, `cosineSimilarity` calculates the measure of
8694cosine similarity between a given query vector and document vectors.
8795
You can’t perform that action at this time.
0 commit comments