Package sk.iway.iwcm.rag.search
Class SemanticSearchResult
java.lang.Object
sk.iway.iwcm.rag.search.SemanticSearchResult
Result from semantic search: a source ID with its best retrieval and local ranking scores.
-
Constructor Summary
ConstructorsConstructorDescriptionSemanticSearchResult(Long docId, Double similarity) Initializes source scores from one candidate chunk. -
Method Summary
Modifier and TypeMethodDescriptiongetDocId()doubleReturns the score used to order results without changing the original similarity.voidvoidsetRerankScore(Double rerankScore) voidsetSimilarity(Double similarity)
-
Constructor Details
-
SemanticSearchResult
public SemanticSearchResult() -
SemanticSearchResult
Initializes source scores from one candidate chunk.- Parameters:
chunk- candidate supplying the source ID, retrieval score, and optional rerank score
-
SemanticSearchResult
-
-
Method Details
-
getRankingScore
public double getRankingScore()Returns the score used to order results without changing the original similarity. -
getDocId
-
getSimilarity
-
getRerankScore
-
setDocId
-
setSimilarity
-
setRerankScore
-