public class CohereScoringModel extends Object implements dev.langchain4j.model.scoring.ScoringModel
ScoringModel that uses
Cohere Rerank API.| Constructor and Description |
|---|
CohereScoringModel(String baseUrl,
String apiKey,
String modelName,
Duration timeout,
Boolean logRequests,
Boolean logResponses) |
| Modifier and Type | Method and Description |
|---|---|
dev.langchain4j.model.output.Response<List<Double>> |
scoreAll(List<dev.langchain4j.data.segment.TextSegment> segments,
String query) |
static CohereScoringModel |
withApiKey(String apiKey) |
public static CohereScoringModel withApiKey(String apiKey)
Copyright © 2024. All rights reserved.