✦ Want a lab built just for you? ✦
Request a Lab ↗

Building a Product FAQ Chatbot with Amazon Bedrock Knowledge Bases

About this lab

You are an AI engineer on the support team at an e-commerce company that gets thousands of repetitive customer inquiries daily: product specs, return policies, shipping timelines, payment options. The support queue is backed up for hours and leadership wants a self-service chatbot that can answer these questions accurately using existing company docs.

In this lab, you will build that chatbot using Amazon Bedrock Knowledge Bases. You will upload product catalogs, FAQs, and support articles to S3, create a Knowledge Base that chunks and embeds them into a vector store, and build a conversational interface with the RetrieveAndGenerate API. The chatbot maintains multi-turn context and cites its sources so customers can verify every answer.

Lab details

  • Level: Beginner
  • Cloud: AWS
  • Domain: AI Engineering
  • Duration: 75 minutes

What you will learn

  • Understand how Retrieval Augmented Generation (RAG) works end to end
  • Create and configure an Amazon Bedrock Knowledge Base
  • Upload and ingest documents from S3 into a vector store
  • Query the Knowledge Base and generate cited responses using the Retrieve and RetrieveAndGenerate APIs
  • Build a multi-turn chatbot with session management
  • Create a Streamlit web interface for the chatbot

Concepts covered

  • Retrieval Augmented Generation (RAG) fundamentals
  • Knowledge Base creation and data ingestion
  • Vector embeddings and semantic search
  • RetrieveAndGenerate API with citations
  • Multi-turn chatbot with session management

Technologies used

  • Amazon Bedrock Knowledge Bases
  • Amazon Bedrock (Claude Haiku 4.5)
  • Amazon OpenSearch Serverless
  • Amazon Titan Embeddings
  • Amazon S3
  • Boto3 Python SDK
  • Streamlit

Prerequisites

  • AWS account with Amazon Bedrock access enabled
  • Basic Python programming knowledge
  • Familiarity with AWS Console
  • No prior AI or ML experience required

Topics

  • AWS
  • Amazon Bedrock
  • Knowledge Bases
  • S3
  • RAG
  • Chatbot