Interface RagSearchResult.ScoreStage

All Known Implementing Classes:
RagSearchResult.Builder
Enclosing class:
RagSearchResult

public static interface RagSearchResult.ScoreStage
  • Method Summary

    Modifier and Type
    Method
    Description
    score(double score)
    Higher is more relevant, but the SCALE depends on the search mode.
  • Method Details

    • score

      RagSearchResult._FinalStage score(double score)

      Higher is more relevant, but the SCALE depends on the search mode. In HYBRID mode this is a Reciprocal Rank Fusion (RRF) value: 1/(60+rank) per leg the result appears in, summed across legs — small and tightly clustered (a hit ranked top on one leg scores ~0.016; ranked top on both, ~0.033), not a 0-1 confidence. In TEXT- or SEMANTIC-only mode, this is that engine's own native score on a different scale — never compare scores across modes.