RAG Chatbot for Partner API Support
A scaled-down rebuild of the partner-support RAG architecture from my case study, answering questions from 18 API reference documents (838 chunks).
- Retrieval: hybrid keyword and semantic search in Postgres with pgvector, fused with Reciprocal Rank Fusion and re-ranked by a cross-encoder.
- Query understanding: a rule-based stage corrects typos and classifies intent before retrieval.
- Honest answers: built to say “I don't have that information” rather than guess.
- Measured quality: a retrieval eval (recall@5/@10, abstain correctness), a generation-quality eval that checks the answer text, automated tests, and a live thumbs-up/down feedback loop I can triage against each request's context.
- Key lesson: swapping embedding models broke my confidence gate, because raw similarity stopped separating good matches from bad. I fixed it by gating on the reranker's calibrated relevance score instead.