After you connect your knowledge base to a structured data store, you perform a sync to start the metadata ingestion process so that data can be retrieved. The metadata allows Amazon Bedrock Knowledge Bases to translate user prompts into a query for the connected database.
Whenever you make modifications to your database schema, you need to sync the changes.
To learn how to ingest your metadata into your knowledge base and sync with your latest data, choose the tab for your preferred method, and then follow the steps:
To ingest your data into your knowledge base and sync with your latest data
-
Open the Amazon Bedrock console at https://console.aws.amazon.com/bedrock/
. -
From the left navigation pane, select Knowledge base and choose your knowledge base.
-
In the Data source section, select Sync to begin the metadata ingestion process. To stop a data source currently syncing, select Stop. A data source must be currently syncing in order to stop syncing the data source. You can select Sync again to ingest the rest of your data.
-
When data ingestion completes, a green success banner appears if it is successful.
-
You can choose a data source to view its Sync history. Select View warnings to see why a data ingestion job failed.
Important
If you use the Amazon Bedrock Knowledge Bases service role created for you in the console and then sync your data store before granting access to your database to the authentication role that you use, the sync will fail because the user hasn't been granted permissions to access your data store. For information about granting permissions to a role to access your data store, see Allow your Amazon Bedrock Knowledge Bases service role to access your data store.