In this lab, you build a question-answering application using Amazon Bedrock's Retrieve and RetrieveAndGenerate API.
Objectives
- Leverage a fully-managed RAG application with Amazon Bedrock RetrieveAndGenerate API.
- Build a Q&A application using Amazon Bedrock Knowledge Bases with Retrieve API.
- Test the Query Reformulation process supported by Amazon Bedrock Knowledge Bases.
- Build and evaluate Q&A Application using Amazon Bedrock Knowledge Bases using RAG Assessment (RAGAS) framework.
- Test the guardrail functionality on Amazon Bedrock Knowledge Base using RetrieveAndGenerate API.
Prerequisites
- A solid understanding of AWS Services
- A familiarity with GenAI and prompt flows
- Comfort with using Python to make API calls and manipulate data
Outline
Task 1: Leverage a fully-managed RAG application with Amazon Bedrock's RetrieveAndGenerate API
Task 2: Build a Q&A application using Amazon Bedrock Knowledge Bases with Retrieve API
Task 3: Test the Query Reformulation process supported by Amazon Bedrock Knowledge Bases
Task 4: Build and evaluate Q&A Application using Amazon Bedrock Knowledge Bases using RAG Assessment (RAGAS) framework
Task 5: Test the guardrail functionality on Amazon Bedrock Knowledge Base using RetrieveAndGenerate API