Class NomicEmbeddingModel

All Implemented Interfaces:
EmbeddingModel

public class NomicEmbeddingModel extends DimensionAwareEmbeddingModel
An integration with Nomic Atlas's Text Embeddings API. See more details here.
  • Constructor Details

  • Method Details

    • withApiKey

      @Deprecated(forRemoval=true) public static NomicEmbeddingModel 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.