HYBRID RAG

Client
Personal Project
Category
Backend / AI
Year
2026
Live Project
Visit Site
Source Code
GitHub Repo

/ Project Overview

HYBRID RAG Logo

Retrieval-augmented QA over internal docs: dense and BM25 retrieval fused with Reciprocal Rank Fusion, reranked by Cohere, answered by Claude with inline citations and per-claim source verification.

A FastAPI service that ingests and chunks documents, retrieves with Pinecone embeddings and BM25 over the same chunks, and merges the two rankings with Reciprocal Rank Fusion. Cohere Rerank trims the candidates, Claude answers from context only with inline citations, and a verification pass checks each claim against its cited chunk and flags unsupported ones. Retrieval evals measure recall@5 and MRR across dense, BM25, hybrid and hybrid + rerank.

/ The Impact

Every answer ships with citations, a per-claim verification result and stage timings, and the retrieval strategies are benchmarked head to head on a labeled question set.