Built an LLM-powered question-answering application that lets users ask natural-language questions over large document corpora and get accurate, grounded answers, instead of manually searching through documents for the right section.
Designed and built the full RAG pipeline independently, from document ingestion through to answer generation, as a technical demonstration of production-grade retrieval-augmented generation using AWS-native tooling.
Key Challenges:
Documents exceeding token limits: Large source documents couldn't be fed directly into the LLM's context window, so they had to be broken down without losing meaning or context across chunks.
Finding the right context: With a large corpus, the system needed to reliably surface the specific chunks relevant to a given question, not just the most textually similar ones.
Grounded, accurate answers: Answers had to be based on the actual retrieved content, not the model's general knowledge, to avoid confidently wrong responses.
Working within a managed AWS ecosystem: Embeddings, storage, and generation all needed to work together cleanly using Bedrock-native models rather than a patchwork of external services.
Approach:
Document loading and chunking
Processed large documents into manageable chunks sized to stay within model token limits while preserving enough context for coherent retrieval.
Vector embeddings with Amazon Titan
Generated vector embeddings for each document chunk using Amazon Titan, capturing semantic meaning rather than just keyword overlap.
Vector storage and retrieval
Stored the embeddings in a vector database, enabling fast similarity search to pull the most relevant chunks for any given question.
RAG-based answer generation with Claude on Bedrock
When a question comes in, the system retrieves the relevant chunks and passes them as context to Anthropic Claude via Amazon Bedrock, which generates an answer grounded in the retrieved content rather than relying on parametric memory alone.
Results & Impact:
Accurate, source-grounded answers over document corpora too large to fit in a single context window.
A scalable retrieval architecture that separates document processing, embedding, and generation, so any of the three can be swapped or scaled independently.
A fully AWS-native RAG pipeline, demonstrating fluency with Bedrock's embedding and generation models working together in production patterns.
Tech Stack
Python · LangChain · AWS Bedrock · Amazon Titan · Anthropic Claude · FAISS DB
Like this project
Posted Jul 10, 2026
Built an LLM-powered question-answering application that lets users ask natural-language questions over large document corpora and get accurate, grounded ans...