Class JinaEmbeddingModel

All Implemented Interfaces:
EmbeddingModel

public class JinaEmbeddingModel extends DimensionAwareEmbeddingModel
An implementation of an EmbeddingModel that uses Jina Embeddings API.
  • Constructor Details

  • Method Details

    • withApiKey

      @Deprecated(forRemoval=true) public static JinaEmbeddingModel 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!
    • embedAll

      public Response<List<Embedding>> embedAll(List<TextSegment> textSegments)
      Description copied from interface: EmbeddingModel
      Embeds the text content of a list of TextSegments.
      Parameters:
      textSegments - the text segments to embed.
      Returns:
      the embeddings.