@@ -44,6 +44,23 @@ of fields below.
4444<ParamField body = " filter" type = " string" default = " " >
4545 [ Metadata filter] ( /vector/features/filtering ) to apply.
4646</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 >
4764
4865## Path
4966
@@ -61,9 +78,12 @@ If the request was an array of more than one items, an array of
6178objects below is returned, one for each query item.
6279
6380<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.
6582 The closer the score is to 1, the more similar the vector is to the query vector.
6683 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.
6787</Note >
6888
6989<ResponseField name = " Scores" type = " Object[]" >
@@ -75,7 +95,10 @@ objects below is returned, one for each query item.
7595 The similarity score of the vector, calculated based on the distance metric of your index.
7696 </ResponseField >
7797 <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.
79102 </ResponseField >
80103 <ResponseField name = " metadata" type = " Object" >
81104 The metadata of the vector, if any.
0 commit comments