@dakera-ai/dakera 0.11.1 → 0.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +5 -2
- package/dist/index.d.ts +5 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -495,7 +495,8 @@ type RoutingMode = 'auto' | 'vector' | 'bm25' | 'hybrid';
|
|
|
495
495
|
* Fusion strategy for hybrid recall (CE-14).
|
|
496
496
|
*
|
|
497
497
|
* Controls how vector and BM25 scores are combined when `routing = "hybrid"`.
|
|
498
|
-
* `"
|
|
498
|
+
* `"minmax"` (server default since v0.11.2) uses min-max score normalization;
|
|
499
|
+
* `"rrf"` uses Reciprocal Rank Fusion (Cormack et al., SIGIR 2009).
|
|
499
500
|
*/
|
|
500
501
|
type FusionStrategy = 'rrf' | 'minmax';
|
|
501
502
|
interface RecallRequest {
|
|
@@ -519,8 +520,10 @@ interface RecallRequest {
|
|
|
519
520
|
routing?: RoutingMode;
|
|
520
521
|
/** CE-13: enable cross-encoder reranking. Default: `undefined` (server uses `true` for recall). Pass `false` to disable on latency-sensitive paths. */
|
|
521
522
|
rerank?: boolean;
|
|
522
|
-
/** CE-14: fusion strategy when routing=`"hybrid"`. Default: `undefined` (server uses `"
|
|
523
|
+
/** CE-14: fusion strategy when routing=`"hybrid"`. Default: `undefined` (server uses `"minmax"` since v0.11.2). */
|
|
523
524
|
fusion?: FusionStrategy;
|
|
525
|
+
/** CE-17: explicit vector/BM25 weight for Hybrid routing (0.0–1.0). When set, overrides the adaptive heuristic from QueryClassifier. Omit for adaptive defaults (recommended). Only effective when `routing="hybrid"`. */
|
|
526
|
+
vector_weight?: number;
|
|
524
527
|
/** v0.11.0: session-adjacent memory enrichment (±5 min). Default: `undefined` (server uses `true`). Pass `false` to disable on latency-sensitive paths. */
|
|
525
528
|
neighborhood?: boolean;
|
|
526
529
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -495,7 +495,8 @@ type RoutingMode = 'auto' | 'vector' | 'bm25' | 'hybrid';
|
|
|
495
495
|
* Fusion strategy for hybrid recall (CE-14).
|
|
496
496
|
*
|
|
497
497
|
* Controls how vector and BM25 scores are combined when `routing = "hybrid"`.
|
|
498
|
-
* `"
|
|
498
|
+
* `"minmax"` (server default since v0.11.2) uses min-max score normalization;
|
|
499
|
+
* `"rrf"` uses Reciprocal Rank Fusion (Cormack et al., SIGIR 2009).
|
|
499
500
|
*/
|
|
500
501
|
type FusionStrategy = 'rrf' | 'minmax';
|
|
501
502
|
interface RecallRequest {
|
|
@@ -519,8 +520,10 @@ interface RecallRequest {
|
|
|
519
520
|
routing?: RoutingMode;
|
|
520
521
|
/** CE-13: enable cross-encoder reranking. Default: `undefined` (server uses `true` for recall). Pass `false` to disable on latency-sensitive paths. */
|
|
521
522
|
rerank?: boolean;
|
|
522
|
-
/** CE-14: fusion strategy when routing=`"hybrid"`. Default: `undefined` (server uses `"
|
|
523
|
+
/** CE-14: fusion strategy when routing=`"hybrid"`. Default: `undefined` (server uses `"minmax"` since v0.11.2). */
|
|
523
524
|
fusion?: FusionStrategy;
|
|
525
|
+
/** CE-17: explicit vector/BM25 weight for Hybrid routing (0.0–1.0). When set, overrides the adaptive heuristic from QueryClassifier. Omit for adaptive defaults (recommended). Only effective when `routing="hybrid"`. */
|
|
526
|
+
vector_weight?: number;
|
|
524
527
|
/** v0.11.0: session-adjacent memory enrichment (±5 min). Default: `undefined` (server uses `true`). Pass `false` to disable on latency-sensitive paths. */
|
|
525
528
|
neighborhood?: boolean;
|
|
526
529
|
}
|