Skip to content

// diagrams › aws

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.

RAG architecture on AWS: documents in S3 are chunked by a Bedrock knowledge base, embedded with Titan and stored in an OpenSearch Serverless vector index; a chat app calls RetrieveAndGenerate, which retrieves chunks and sends them with the question to a generation model, with optional Guardrails.

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.

Your diagram is one sentence away.

Start drawing, free

No account needed to start.