fix retrieve 1

This commit is contained in:
team 1
2026-04-24 11:22:25 +02:00
parent 4a8ffc5875
commit b800c1fc8f
2 changed files with 100 additions and 11 deletions

View File

@@ -72,6 +72,18 @@ final class NdjsonHybridRetrieverConfig
*/
public const RRF_K = 50;
/**
* Keyword retrieval is fused with vector retrieval as a factual safety net.
* It protects exact values, ranges, thresholds, model codes and domain terms
* that semantic retrieval can miss or rank too low.
*/
public const HARD_MAX_KEYWORDK = 36;
public const KEYWORD_TOPK_MULTIPLIER = 2.0;
public const KEYWORD_SCORE_THRESHOLD = 0.35;
public const KEYWORD_RRF_WEIGHT = 1.15;
public const SCOPED_VECTOR_RRF_WEIGHT = 1.20;
public const SCOPED_KEYWORD_RRF_WEIGHT = 1.30;
/**
* Fallback size when thresholded fusion yields no candidates.
*