ProjectBuild an AI-Powered Digital Bank with RAG: the explanation · Module 14: Evaluation: measuring quality before customers do · part 16 of 20
Part 16 · Module 14: Evaluation: measuring quality before customers do

Module 14: Evaluation: measuring quality before customers do

25 min read·
About 40 minutes · Needs: Modules 9 (retrieval), 10 (the agent), 11 (routing) and 12 (guardrails) · Code: backend/evals/run.py, backend/evals/metrics.py, backend/evals/judge.py, backend/evals/datasets/

Where this fits

WHERE THIS FITS The Kestrel Bank system this module CLIENT API LAYER FastAPI SAFETY AGENT LangGraph MODELS RETRIEVAL DATA AND INGESTION Postgres, Redis QUALITY Langfuse Customer app React Admin app React FastAPI REST + streaming Auth + RBAC tokens, roles Document upload admin only, checked Guardrails injection, PII Router small or large Agent LangGraph Banking tools ledger, transfers LLMs Groq, Gemini Retrieval hybrid + rerank Ingestion parse, chunk, embed PostgreSQL + pgvector ledger, chunks, state Redis limits, queue Observability Langfuse, metrics, logs Evaluation golden set, release gate
Evaluation (blue) drives the real agent, retrieval, router and models, then reports to observability.

Evaluation calls the real retriever, router and agent graph with real models, then sends its scores to observability. It serves no customer; it decides whether a change may reach one.

The rest of this project is yours to keep

This project is bought on its own, once, and stays readable afterwards, including the parts added to it later.

Or open everything with a plan