Class OvhAiEmbeddingModel

java.lang.Object
dev.langchain4j.model.ovhai.OvhAiEmbeddingModel
All Implemented Interfaces:
EmbeddingModel

public class OvhAiEmbeddingModel extends Object implements EmbeddingModel
Represents an OVHcloud embedding model. See models documentation here: https://endpoints.ai.cloud.ovh.net/
  • Method Details

    • withApiKey

      public static OvhAiEmbeddingModel withApiKey(String apiKey)
      Creates an instance of OvhAiEmbeddingModel with the specified API key.
      Parameters:
      apiKey - the API key for authentication
      Returns:
      an OvhAiEmbeddingModel instance
    • embedAll

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