Connect a data source to your knowledge base
After finishing the configurations for your knowledge base, you connect a supported data source to the knowledge base.
Amazon Bedrock Knowledge Bases supports connecting to unstructured data sources or to structured data stores through a query engine. Select a topic to learn how to connect to that type of data source:
To learn how to connect to a data source using the Amazon Bedrock console, select the topic that corresponds to your data source type at the bottom of this page:
To connect to a data source using the Amazon Bedrock API, send a CreateDataSource request with an Agents for Amazon Bedrock runtime endpoint.
The following fields are required:
Field | Basic description |
---|---|
knowledgeBaseId | The ID of the knowledge base. |
name | A name for the knowledge base. |
dataSourceConfiguration | Specify the data source service or type in the type field and include the corresponding field. For more details about service-specific configurations, select the topic for the service from the topics at the bottom of this page. |
The following fields are optional:
Field | Use case |
---|---|
description | To provide a description for the data source. |
vectorIngestionConfiguration | Contains configurations for customizing the ingestion process. For more information, see Customize ingestion for a data source. |
dataDeletionPolicy | To specify whether to RETAIN the vector embeddings in the vector store or to DELETE them. |
serverSideEncryptionConfiguration | To encrypt transient data during data syncing with a customer managed key, specify its ARN in the kmsKeyArn field. |
clientToken | To ensure the API request completes only once. For more information, see Ensuring idempotency. |
Select a topic to learn more about a service and configuring it.