You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specification/_types/Retriever.ts
+18-2Lines changed: 18 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -138,9 +138,25 @@ export class KnnRetriever extends RetrieverBase {
138
138
rescore_vector?: RescoreVector
139
139
}
140
140
141
+
/**
142
+
* Wraps a retriever with an optional weight for RRF scoring.
143
+
*/
144
+
exportclassRRFRetrieverComponent{
145
+
/** The nested retriever configuration. */
146
+
retriever: RetrieverContainer
147
+
/** Weight multiplier for this retriever's contribution to the RRF score. Higher values increase influence. Defaults to 1.0 if not specified. Must be non-negative. @server_default 1.0 */
148
+
weight?: float
149
+
}
150
+
151
+
/**
152
+
* Either a direct RetrieverContainer (backward compatible) or an RRFRetrieverComponent with weight.
/** A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them. */
143
-
retrievers: RetrieverContainer[]
158
+
/** A list of child retrievers to specify which sets of returned top documents will have the RRF formula applied to them. Each retriever can optionally include a weight parameter. */
159
+
retrievers: RRFRetrieverEntry[]
144
160
/** This value determines how much influence documents in individual result sets per query have over the final ranked result set. */
145
161
rank_constant?: integer
146
162
/** This value determines the size of the individual result sets per query. */
0 commit comments