AskUmer
An assistant that refuses to ship worse answers: CI fails below 0.7 faithfulness.
Design, build, evaluation · LangGraph · Qdrant · BM25 · FlashRank · NeMo Guardrails · Portkey · DeepEval · FastAPI
- commit
- 9a1d119 · 2026-07-13
- ci
- failed · 2026-10-28
- checked
- at build 2026-10-28
The problem
A founder or recruiter gives a portfolio under a minute. A chatbot that answers from a vague memory of the site, or makes things up, does more harm than no chatbot. Plain RAG also breaks on multi-hop questions and ships with no safety gate and no way to tell when a change made it worse.
What I built

- Hybrid retrieval: Qdrant dense search (BAAI/bge-base-en-v1.5, 768-dim) and BM25 sparse search, fused with Reciprocal Rank Fusion and reranked by a FlashRank cross-encoder down to the top five documents.
- A LangGraph ReAct agent decides on every turn whether to search at all, so a follow-up answerable from the conversation costs zero database calls.
- NeMo Guardrails runs as an input gate: jailbreaks, prompt injection and off-topic questions are blocked before any retrieval or model call.
- A Portkey gateway handles failover from gpt-oss-120b to gpt-oss-20b, with three retries on 429 and 503 and response caching in front.
How it holds up
- 898 indexed chunks.
- A two-phase DeepEval suite generates live answers, then scores Faithfulness and Answer Relevancy with an LLM judge. CI exits non-zero if any sample falls below 0.7.
- Every request is traced in Logfire, LangSmith and Portkey.
- It is the assistant answering questions on this site.
If you're building something similar
- Decide what worse means before you build: pick the metrics and the threshold, and make CI enforce them.
- Put guardrails before retrieval, not after generation. It is cheaper and stops injection earlier.
- Let the agent skip retrieval when the answer is already in the conversation.
signed Muhammad Umer Khan · sha256:52b2…e93 · signed the way the society platform's gate passes are
Free 30-minute build audit
Get in touch to start building yours.
Bring the idea or the workflow. In 30 minutes you get what I would build first and how I would prove it works. NDA before the first call.
calls 2pm to 11pm PKT · reply within 24h · WhatsApp +92 343 2187868