LLM & RAG · 2026
PDF RAG System
Production-ready PDF question answering: ingests documents, stores vector embeddings, retrieves relevant chunks and generates document-grounded answers.
Model
- Generation: Mistral with a strict source-grounded prompt
- Retrieval: LangChain retrieval chain over embedded PDF chunks
- Chunking: page-aware splitter with overlap to keep tables and headings intact
Dataset
Ingested PDF documents — chunked and indexed in ChromaDB; embeddings computed at ingestion, refreshed on re-upload.
Results & metrics
- Pipeline
- ingest → embed → retrieve → generate
- Vector store
- ChromaDB (persistent)
- Interface
- FastAPI REST
Deployment steps
- 1Ingest PDFs through the upload endpoint (parse + chunk + embed)
- 2Persist the ChromaDB collection alongside the API
- 3Serve question answering through FastAPI
- 4Containerize with Docker for reproducible runs
Tech stack
- FastAPI
- LangChain
- ChromaDB
- Mistral