← All projects

Case study

ChatPDF

RAG-powered Document Chat Interface

Role: Full-stack / ML engineer

AI-powered PDF conversation tool using Retrieval-Augmented Generation. Users upload any PDF; the system chunks, embeds, and stores documents in a vector database — enabling context-aware Q&A over entire documents using OpenAI / Gemini LLMs.

Problem

Generic chat models hallucinate on long documents; users need answers grounded in the actual PDF they uploaded.

Approach

  • FastAPI backend for upload, chunking, embedding, and query orchestration.
  • Vector store (ChromaDB) for retrieval; LangChain-style pipelines for prompt assembly.
  • Pluggable LLM providers (OpenAI, Gemini) behind a single Q&A interface.

Outcomes

  • ✓ End-to-end RAG flow from raw PDF to grounded answers with citation-friendly chunks.
  • ✓ Demonstrates production-minded API design for document-heavy AI products.
  • ✓ Foundation pattern reused in other LLM + knowledge-base integrations.
PythonFastAPIOpenAILangChainChromaDBRAGEmbeddings