My product Open source
PolicyBot
RAG Q&A over internal documents
A Q&A system that answers natural-language questions about internal documents by retrieving the right passages and citing its sources — with a confidence score on every answer.
Built for: Companies with large internal handbooks, HR policies or knowledge bases.
↓ Scroll to explore the problem, architecture and stack
The problem
Employees can’t find answers in long, frequently-updated policy documents, and plain chatbots invent answers or quote outdated versions.
Why it matters
Hybrid retrieval with freshness-aware ranking finds the current, relevant passage, and citations plus confidence scores let people trust — or double-check — every answer.
What you can do with it
How it’s built
A simplified view of the architecture — follow the dots as a request moves down the layers.
A request, step by step
- Your question runs through vector search and keyword search in parallel.
- Candidates are merged and resolved to the freshest document versions.
- The LLM answers only from those passages and cites them.
- A composite confidence score is attached, and each stage is traced to MongoDB.
Tech stack
What I built
- An end-to-end RAG pipeline: vector and keyword retrieval, candidate merging, freshness-aware document resolution, citation generation and composite confidence scoring.
- Per-query execution tracing, persisting every pipeline stage to MongoDB for debugging and evaluation.
- A pluggable vector-store interface (Qdrant implemented; Pinecone, Chroma and MongoDB Atlas scaffolded) to change providers without touching business logic.