@@ -44,6 +44,23 @@ of fields below.
44
44
<ParamField body = " filter" type = " string" default = " " >
45
45
[ Metadata filter] ( /vector/features/filtering ) to apply.
46
46
</ParamField >
47
+ <ParamField body = " weightingStrategy" type = " string" >
48
+ For sparse vectors of sparse and hybrid indexes, specifies what kind of
49
+ weighting strategy should be used while querying the matching non-zero
50
+ dimension values of the query vector with the documents.
51
+
52
+ If not provided, no weighting will be used.
53
+
54
+ Only possible value is ` IDF ` (inverse document frequency).
55
+ </ParamField >
56
+ <ParamField body = " fusionAlgorithm" type = " string" >
57
+ Fusion algorithm to use while fusing scores
58
+ from dense and sparse components of a hybrid index.
59
+
60
+ If not provided, defaults to ` RRF ` (Reciprocal Rank Fusion).
61
+
62
+ Other possible value is ` DBSF ` (Distribution-Based Score Fusion).
63
+ </ParamField >
47
64
48
65
## Path
49
66
@@ -61,9 +78,12 @@ If the request was an array of more than one items, an array of
61
78
objects below is returned, one for each query item.
62
79
63
80
<Note >
64
- The score is normalized to always be between 0 and 1.
81
+ For dense indexes, the score is normalized to always be between 0 and 1.
65
82
The closer the score is to 1, the more similar the vector is to the query vector.
66
83
This does not depend on the distance metric you use.
84
+
85
+ For sparse and hybrid indexes, scores can be arbitrary values, but the score
86
+ will be higher for more similar vectors.
67
87
</Note >
68
88
69
89
<ResponseField name = " Scores" type = " Object[]" >
@@ -75,7 +95,10 @@ objects below is returned, one for each query item.
75
95
The similarity score of the vector, calculated based on the distance metric of your index.
76
96
</ResponseField >
77
97
<ResponseField name = " vector" type = " number[]" >
78
- The vector value.
98
+ The dense vector value for dense and hybrid indexes.
99
+ </ResponseField >
100
+ <ResponseField name = " sparseVector" type = " Object[]" >
101
+ The sparse vector value for sparse and hybrid indexes.
79
102
</ResponseField >
80
103
<ResponseField name = " metadata" type = " Object" >
81
104
The metadata of the vector, if any.
0 commit comments