CertBrain
Sign in
← Back to decks
Sign in to save your progress.Sign in

Retrieval Augmented Generation

Retrieval Augmented Generation (RAG) gives a foundation model access to your own information at the moment it answers. Instead of retraining the model, the application looks up relevant passages from your documents and adds them to the prompt, so the answer is based on current, company-specific…

10 cards

Retrieval Augmented Generation

In this lesson · 5 sections
Step 3 of 5

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.