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

    • builder

    • 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.
    • modelName

      public String modelName()
      Description copied from interface: EmbeddingModel
      Returns the name of the underlying embedding model.

      Implementations are encouraged to override this method and provide the actual model name. The default implementation returns "unknown", which indicates that the model name is unknown.

      Returns:
      the model name or a fallback value if not provided