stop fallback from hits
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 === []) {
|
||||
|
||||
Reference in New Issue
Block a user