Class JinaScoringModel

java.lang.Object
dev.langchain4j.model.jina.JinaScoringModel
All Implemented Interfaces:
ScoringModel

public class JinaScoringModel extends Object implements ScoringModel
An implementation of a ScoringModel that uses Jina Reranker API.
  • Constructor Details

  • Method Details

    • withApiKey

      @Deprecated(forRemoval=true) public static JinaScoringModel withApiKey(String apiKey)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Please use builder() instead, and explicitly set the model name and, if necessary, other parameters. The default value for the model name will be removed in future releases!
    • scoreAll

      public Response<List<Double>> scoreAll(List<TextSegment> segments, String query)
      Description copied from interface: ScoringModel
      Scores all provided TextSegments against a given query.
      Specified by:
      scoreAll in interface ScoringModel
      Parameters:
      segments - The list of TextSegments 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.