Create a managed knowledge base
When you create a managed knowledge base, Amazon Bedrock AgentCore manages the storage, indexing, and retrieval infrastructure for you. By default, a service-managed embedding model is used and no model selection or configuration is required. You can optionally provide your own Bedrock embedding model instead. You can also optionally provide a KMS key for encryption of the managed vector store.
After you create the knowledge base, connect it to a data source and start ingestion.
For details on connecting a data source, see Connect a data source. To sync a data source,
use the StartIngestionJob API. For details, see Sync your data with your Amazon Bedrock knowledge base.
Note
After you create and sync a managed knowledge base, use the
Retrieve API to query it. In the
retrievalConfiguration field, specify
managedSearchConfiguration. The
vectorSearchConfiguration field applies only to custom knowledge bases.
For request examples and additional considerations, see Query a knowledge base and retrieve data.
To learn how to create a managed knowledge base, choose the tab for your preferred method:
Embedding model options
Managed knowledge bases support the following embedding model types:
-
Managed embedding (default) – A service-managed embedding model is used automatically. You don't need to select a model, configure dimensions, or manage Bedrock service limits for embedding. The service handles model selection, hosting, and scaling transparently.
-
Custom embedding – You provide your own Bedrock embedding model ARN. When using a custom embedding model, you must specify the model dimensions (1024) and float32 embedding data type. The following Bedrock embedding models are supported:
-
Amazon Titan Text Embeddings V2
-
Cohere Embed English v3
-
Cohere Embed Multilingual v3
-
Cohere Embed v4
-
Amazon Nova Multimodal Embeddings
-
-
Custom multimodal embedding – You provide the ARN of a multimodal embedding model, which natively processes image, audio, and video files in addition to text. Currently, TwelveLabs Marengo Embed 3.0 (
twelvelabs.marengo-embed-3-0-v1:0) is the only supported multimodal embedding model. This option requires a multimodal storage destination.
Note
You cannot change the embedding model type after creating the knowledge base. To switch between managed and custom embedding, you must create a new knowledge base.
Important
If you create a knowledge base with a custom embedding model, the managed reranker is not available for that knowledge base. To use the managed reranker, create your knowledge base with the default managed embedding model.
Supported data source connectors
Managed knowledge bases support the following data source connectors:
-
Amazon S3
-
Box
-
Confluence Cloud
-
Confluence Data Center
-
Microsoft SharePoint Online
-
Google Drive
-
Microsoft OneDrive
-
ServiceNow
-
Web Crawler
-
Custom connector
For information about configuring data source connectors, see Connect a data source.