Package dev.langchain4j.model.cohere
Class CohereScoringModel
java.lang.Object
dev.langchain4j.model.cohere.CohereScoringModel
- All Implemented Interfaces:
ScoringModel
An implementation of a
ScoringModel that uses
Cohere Rerank API.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionscoreAll(List<TextSegment> segments, String query) static CohereScoringModelwithApiKey(String apiKey) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.langchain4j.model.scoring.ScoringModel
score, score
-
Constructor Details
-
CohereScoringModel
-
-
Method Details
-
withApiKey
-
scoreAll
- Specified by:
scoreAllin interfaceScoringModel
-