Skip to content
Back to projects

2026 · AI + Retrieval-Augmented Generation

FastAPI Docs Q&A (Hybrid RAG)

A retrieval-augmented question-answering system over FastAPI's own documentation, combining dense and keyword search with an independent fact-check on every cited claim. Scored on a hand-written 18-question eval: 100% correctness, 86% citation faithfulness, 100% citation accuracy, and 100% correct refusal on out-of-corpus questions.

FastAPI Docs Q&A (Hybrid RAG) screenshot

Why I built it

Technical docs mix exact terms with conceptual explanations, so search alone tends to miss one or the other. AI answers can also cite sources that don't really back up their claims. This system combines dense and keyword search with an independent fact-check on every citation, verified against a hand-written eval.

Highlights

  • Hybrid dense + BM25 search
  • Reciprocal Rank Fusion
  • Citation fact-checking
  • Evaluated on 18-question eval set
  • Streamlit interface

Tech stack

PythonOpenAI APIChromaDBBM25Streamlit

Free-tier app. It may show a "waking up" screen for about a minute if idle.