Build a knowledge base by connecting to a data source - Amazon Bedrock

Build a knowledge base by connecting to a data source

Amazon Bedrock Knowledge Bases supports a variety of file types stored in data sources. In order to interpret the data from a data source, Amazon Bedrock Knowledge Bases requires the conversion of the data into vector embeddings, a numerical representation of the data. These embeddings can be compared to the vector representations of a query to assess similarity and determine which sources to return during data retrieval.

Connecting your knowledge base to a data source involves the following general steps:

  1. Connect the knowledge base to a supported data source.

  2. If your data source contains multimodal data, including tables, charts, diagrams, or other images, you must choose a parser that supports parsing multimodal data.

    Note

    Multimodal data is only supported with Amazon S3 and custom data sources.

  3. Choose an embeddings model to convert the data in the data source into vector embeddings.

  4. Choose a vector store to store the vector representation of your data.

  5. Sync your data so it's converted to vector embeddings.

  6. If you modify the data in the data source, you must resync the changes.