stop fallback from hits

This commit is contained in:
team2
2026-04-22 20:43:41 +02:00
parent 9a8c6e6e31
commit a468ddd843
2 changed files with 2 additions and 2 deletions

View File

@@ -79,7 +79,7 @@ final class NdjsonHybridRetrieverConfig
* - slightly larger safety net for the richer hybrid stack
* - helps no-tag and low-signal cases without exploding context
*/
public const EMPTY_RRF_FALLBACK_TOPN = 5;
public const EMPTY_RRF_FALLBACK_TOPN = 1;
/**
* Maximum number of chunks allowed from one document in spread mode.

View File

@@ -366,7 +366,7 @@ final readonly class NdjsonHybridRetriever implements RetrieverInterface
$rawScores = $fused['raw_scores'];
if ($rrfScores === [] && $globalHits !== []) {
$rrfScores = $this->fallbackRrfFromHits($globalHits);
// $rrfScores = $this->fallbackRrfFromHits($globalHits);
}
if ($rrfScores === []) {