Skip to content

LLM / MLOps

completed

ASU LLM Evaluation Pipeline

An automated LLM quality monitoring system for an ASU university RAG chatbot. Every GitHub push triggers a full RAGAS evaluation: GPT-4o answers 100 test questions, GPT-4o-mini judges each response for faithfulness, relevancy, and context precision, 25× cheaper than GPT-4o for evaluation tasks. Six automated quality gates block deployment if any metric drops below threshold (hallucination rate ≤ 10%, faithfulness ≥ 0.80, answer relevancy ≥ 0.75). Vectors persist in Pinecone cloud so CI runners skip re-embedding on every push. Results are auto-committed back to the repo with [skip ci] to prevent infinite trigger loops, then streamed to a React dashboard on Vercel showing trend charts across the last 50 runs, a per-question breakdown table with category and difficulty filters, and real-time cost tracking with 30-second auto-refresh. Latest run: 6/6 gates PASS, faithfulness 1.00, hallucination 0%, cost $0.087.

Inside the build

Architecture, one step at a time.

A code push runs a repeatable RAG evaluation before quality gates decide whether CI can pass.

Interactive walkthrough

Select a component, or use Next for a guided tour. Connections show the flow between components.

Step 1 of 6
GitHub Actions

Trigger evaluation

Each GitHub push starts the automated evaluation workflow for the university RAG chatbot.

What comes in
A repository push
What comes out
A repeatable evaluation job

This is a walkthrough of the recorded evaluation pipeline. Selecting a stage does not trigger CI or spend model tokens.

The details

What went into the build.

Tools & technologies

  • Python
  • LangChain
  • RAGAS
  • GPT-4o
  • Pinecone
  • GitHub Actions
  • React
  • Vite
  • SQLite
  • Vercel

Key highlights

  • 6 automated quality gates block CI deployment: faithfulness ≥ 0.80, hallucination ≤ 10%, relevancy ≥ 0.75, context precision ≥ 0.60, latency p95 ≤ 15s, cost ≤ $0.02/query
  • GPT-4o-mini as judge: validated GPT-4o → GPT-4o-mini model swap with no quality drop; 25× cost reduction ($0.87 vs ~$21.75 per full 100-question run)
  • Pinecone cloud vector store eliminates per-run re-embedding; CI checks vector_count > 0 before upload
  • Auto-commits results JSON with [skip ci] back to repo; React dashboard on Vercel auto-refreshes every 30s
  • Trend charts across 50 runs + per-question breakdown table with category, difficulty, and PASS/FAIL filters