Class JinaScoringModel
java.lang.Object
dev.langchain4j.model.jina.JinaScoringModel
- All Implemented Interfaces:
ScoringModel
An implementation of a
ScoringModel that uses
Jina Reranker API.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()scoreAll(List<TextSegment> segments, String query) Scores all providedTextSegments against a given query.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ScoringModel
score, score
-
Constructor Details
-
JinaScoringModel
@Deprecated(forRemoval=true, since="1.4.0") public JinaScoringModel(String baseUrl, String apiKey, String modelName, Duration timeout, Integer maxRetries, Boolean logRequests, Boolean logResponses) Deprecated, for removal: This API element is subject to removal in a future version. -
JinaScoringModel
-
-
Method Details
-
builder
-
scoreAll
Description copied from interface:ScoringModelScores all providedTextSegments against a given query.- Specified by:
scoreAllin interfaceScoringModel- Parameters:
segments- The list ofTextSegments to score.query- The query against which to score the segments.- Returns:
- the list of scores. The order of scores corresponds to the order of
TextSegments.
-