Class BedrockCohereEmbeddingModel

java.lang.Object
org.springframework.ai.embedding.AbstractEmbeddingModel
org.springframework.ai.bedrock.cohere.BedrockCohereEmbeddingModel
All Implemented Interfaces:
org.springframework.ai.embedding.EmbeddingModel, org.springframework.ai.model.Model<org.springframework.ai.embedding.EmbeddingRequest,org.springframework.ai.embedding.EmbeddingResponse>

public class BedrockCohereEmbeddingModel extends org.springframework.ai.embedding.AbstractEmbeddingModel
EmbeddingModel implementation that uses the Bedrock Cohere Embedding API. Note: The invocation metrics are not exposed by AWS for this API. If this change in the future we will add it as metadata.
Since:
0.8.0
Author:
Christian Tzolov, Soby Chacko
  • Constructor Details

  • Method Details

    • embed

      public float[] embed(org.springframework.ai.document.Document document)
    • call

      public org.springframework.ai.embedding.EmbeddingResponse call(org.springframework.ai.embedding.EmbeddingRequest request)