RAG on AWS with Amazon Bedrock Knowledge Bases
A retrieval-augmented generation design on AWS: documents in S3, a Bedrock knowledge base, a vector index and a generation model, plus the permission, freshness and quality decisions that matter.
Opens a copy in the editor, in a new tab, ready to change. No account needed.
What’s in this diagram
services and parts
- Staff asking questions
- Documents + metadata files
- Titan Text Embeddings v2
- Vector index (OpenSearch Serverless)
- Chat web app
- Bedrock Knowledge Base
- Generation model (e.g. Claude 3 Haiku)
- Knowledge base service role
- Guardrails (optional)
- Logs, metrics, alarms
- Encryption keys
groups
- AWS Cloud
- Region
- Indexing (runs on each sync)
- Answering (RetrieveAndGenerate)
Key points
- Two flows share one knowledge base: indexing on each sync, and answering on each question.
- Metadata files next to your documents let you filter retrieval, by year, team or customer.
- The knowledge base does not know your users' permissions. If people must only see some documents, you must scope retrieval yourself.
- Plan evaluation and guardrails from the start; they are not extras.
The whole story, step by step: RAG architecture on AWS with Bedrock Knowledge Bases.


