Built a hybrid-retrieval RAG, every answer cited to source

Put together a retrieval pipeline that takes a plain-English question and returns ranked passages with the governing answer, each sentence cited back to its source doc. Hybrid retrieval (BM25 + semantic), reciprocal rank fusion, extractive synthesis so it can't say anything that isn't in a retrieved passage. Low-confidence queries return "no confident match" instead of hallucinating.

Loaded it with a legal corpus as the test case (jurisdiction-scoped, returns the controlling rule + citation), but the pattern is domain-agnostic, anywhere you're hunting answers across a pile of documents.

Curious what people here do for the synthesis step, extractive vs. an LLM call on top of retrieved context. Tradeoffs I keep going back and forth on.

RAG Video.mp4