What
RAG chatbot over a fictional companyβs HR policy PDFs, with citation-grounded answers. FastAPI + LangChain + Pinecone, single Render service serving both the API and a built-in dark-themed chat UI.

Why
Quantic capstone-style build: a production-shaped RAG pipeline end to end β ingestion, retrieval, grounded generation, and measured evaluation rather than vibes.
How
- Ingestion CLI chunks policy PDFs with
RecursiveCharacterTextSplitterusing separators tuned for policy docs (\nβ’,\n-), embeds withtext-embedding-3-small, then wipes + upserts the Pinecone namespace so re-runs are idempotent. - LCEL chain: retriever (top_k=12) β numbered-citation context builder β
gpt-5.4-miniβ only citations actually referenced as[n]in the answer are returned; an insufficient-context fallback is enforced in prompt and post-checked in code.
Status / Learnings
Feature-complete; the live URL currently 503s (Render free-tier spin-down). A 20-question eval drove groundedness/citation accuracy from 80% β 90% after shrinking chunks and tightening prompts β and similarity-score filtering turned out counterproductive (min_score=0.0 won). ai-tooling.md frankly documents the AI-assisted dev process.