Class AwsBedrockEmbedder

java.lang.Object
com.google.genkit.ai.Embedder
com.google.genkit.plugins.awsbedrock.AwsBedrockEmbedder
All Implemented Interfaces:
Action<EmbedRequest,EmbedResponse,Void>, Registerable

public class AwsBedrockEmbedder extends Embedder
AWS Bedrock embedder implementation for Genkit.

Uses the AWS Bedrock InvokeModel API (via HTTP with AWS SigV4 signing) to generate embeddings. Handles the differing request/response shapes of Amazon Titan Text Embeddings and Cohere Embed models.

  • Constructor Details

    • AwsBedrockEmbedder

      public AwsBedrockEmbedder(String modelId, AwsBedrockPluginOptions options)
      Creates a new AwsBedrockEmbedder.
      Parameters:
      modelId - the Bedrock embedding model ID (e.g., "amazon.titan-embed-text-v2:0")
      options - the plugin options
  • Method Details