Interface ScoringModel

All Known Implementing Classes:
CohereScoringModel, DecisionScoringModel, JinaScoringModel, OnnxScoringModel, VertexAiScoringModel, VoyageAiScoringModel, WatsonxScoringModel

public interface ScoringModel
Represents a model capable of scoring a text against a query.
Useful for identifying the most relevant texts when scoring multiple texts against the same query.
The scoring model can be employed for re-ranking purposes.

To support listeners, an implementation overrides doScore(ScoringRequest) and implements scoreAll(List, String) by calling score(ScoringRequest). It must never make scoreAll(List, String) call score(ScoringRequest) without overriding doScore(ScoringRequest): the default doScore(ScoringRequest) calls scoreAll(List, String), so each method would call the other.