← Back to all projects
📚

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.

hybrid searchcitationsconfidence scores

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

01Ask policy questions in plain language.
02See citations for every answer.
03Get a confidence score that tells you when to double-check.
04Prefer the newest version of a document automatically.
05Trace every pipeline stage for debugging and evaluation.

How it’s built

A simplified view of the architecture — follow the dots as a request moves down the layers.

You
Chat UIask a question
Pipeline
Vector search
Keyword search
Merge + freshnesspick current docs
Answer
LLMgrounded answer
Citations + confidence
Storage
Qdrantpluggable store
MongoDBdocs + traces

A request, step by step

  1. Your question runs through vector search and keyword search in parallel.
  2. Candidates are merged and resolved to the freshest document versions.
  3. The LLM answers only from those passages and cites them.
  4. A composite confidence score is attached, and each stage is traced to MongoDB.

Tech stack

Backend
PythonFastAPI
Data
MongoDBQdrant
AI
📚RAGLangGraph

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.