AWS Bedrock Embedding
Use embedding models served by Amazon Bedrock for knowledge base indexing
Overview
The AWS Bedrock Embedding connector makes Amazon Bedrock embedding models, such as Cohere Embed, available as knowledge base embedding models. Once the connector is saved, its models appear in the embedding model picker when creating a knowledge base and in listEmbeddingModels().
Adding the connector
- Navigate to the Connectors tab in the Squid Console, click Available Connectors, and select AWS Bedrock Embedding.
- Provide the configuration:
Connector ID: A string that uniquely identifies the connector.
AWS Region: The AWS region your Bedrock models are served from, such as us-east-1.
API Key: A Bedrock API key for that region, stored securely as a Squid secret.
Embedding Models Configuration: The Bedrock model IDs to expose, for example cohere.embed-v4:0.
Using a model
Create a knowledge base with an integration-based embedding model, naming the connector and model:
await squid
.ai()
.knowledgeBase('support-knowledgebase')
.upsertKnowledgeBase({
description: 'Support articles',
embeddingModel: {
integrationId: 'my-bedrock-embeddings',
model: 'cohere.embed-v4:0',
dimensions: 1536,
},
metadataFields: [],
});
The embedding model of a knowledge base cannot be changed after creation.
For Bedrock chat models, use the separate AWS Bedrock connector. On Squid's AWS regions, Amazon Titan Text Embeddings v2 is available by default without any connector.