Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Build a knowledge base by connecting to a structured data store

Focus mode
Build a knowledge base by connecting to a structured data store - Amazon Bedrock

Amazon Bedrock Knowledge Bases allows you to connect to structured data stores, which contain data that conforms to a predefined schema. Examples of structured data include tables and databases. Amazon Bedrock Knowledge Bases can convert user queries into language that is suitable for extracting data from support structured data stores. It can then use the converted query to retrieve data that is relevant to the query and generate appropriate responses.

After you set up your knowledge base, you can submit queries to retrieve data from it through the Retrieve operation, or generate responses from the retrieved data through the RetrieveAndGenerate operation. These operations underlyingly convert the user queries into ones that are appropriate for the structured data store connected to the knowledge base.

You also have the option to convert queries independently of retrieving data by using the GenerateQuery API operation. This operation converts natural language queries into SQL queries that are appropriate to the data source being queried. You can use this operation independently and insert it into your workflow.

Select a topic to learn about the prerequisites and process for connecting your knowledge base to a structured data store.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.