Skip to content
← All work
2026Verified9a1d119

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

source(opens in a new tab)CI workflow(opens in a new tab)live on this site

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

AskUmer architecture: guardrails, a LangGraph ReAct agent, hybrid retrieval over Qdrant and BM25, reranking and an LLM gateway
AskUmer architecture.
  • 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.

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