Amazon Bedrock Knowledge Bases
Building this pipeline by hand takes real work. Amazon Bedrock Knowledge Bases provides it as a managed feature. You point it at a data source, such as documents in Amazon S3, choose an embedding model and a vector store, and it handles chunking, embedding and storage. At query time you can use:
- RetrieveAndGenerate: runs the whole RAG flow and returns a generated answer with citations pointing to the source chunks.
- Retrieve: returns only the most relevant chunks, so your own code decides what to do with them.
A reranking model can also be applied to re-order retrieved chunks by relevance before they reach the model.