Evaluation metrics tracking
Braintrust has a wide lead for detecting LLM output drift over time.
It depends
For prompt degradation analysis, Langfuse is also mentioned.
Since Sep 24Data through Nov 21, 2026Based on 11 AI answersAutomated index
Brands AI mentions
Also mentioned rarely: GitHub Actions, Ragas, PostgreSQL, TruLens, BERTScore, Meta AI, Claude, Python, Weights & Biases Weave, Deepchecks, pytest, OpenTelemetry, Arize AI, OpenInference, Weave, GitLab CI, Comet Opik, Grafana, Comet, Anthropic
- MLflowChatGPTChatGPT 100%Google AI ModeGoogle AI Mode 60%
- LangSmithChatGPTChatGPT 50%Google AI ModeGoogle AI Mode 60%
- DVCChatGPTChatGPT 0%Google AI ModeGoogle AI Mode 100%
- Weights & BiasesChatGPTChatGPT 33%Google AI ModeGoogle AI Mode 60%
- GPT-4oChatGPTChatGPT 0%Google AI ModeGoogle AI Mode 80%
Questions and answers
ChatGPTNov 21, 2026
How to persistently track and baseline LLM evaluation metrics
The best approach is to treat LLM evaluation like traditional software performance monitoring: every experiment should produce a versioned, reproducible evaluation record that can be compared against a known baseline.
Rather than tracking scores in spreadsheets or relying on individual experiment logs, build an evaluation history that captures:
- What model or prompt was evaluated.
- Which dataset and evaluation criteria were used.
- What metrics were produced.
- How those metrics compare with previous experiments.
- Whether a regression is statistically and practically significant.
1. Establish a persistent evaluation history
Create a central evaluation-results store. Each experiment should generate a record with consistent metadata.
A useful schema:
Field Example Experiment ID exp-1042Timestamp 2026-11-21Model gpt-4.1Model version Snapshot or deployment ID Prompt version prompt-v12Dataset version benchmark-v5Evaluator version judge-v3Temperature 0.2Accuracy 0.91Faithfulness 0.94Hallucination rate 0.03Latency (p95) 1.8sCost per request $0.004The important principle is to preserve the raw evaluation results, not just aggregate scores. Individual test-case results let you investigate exactly which examples caused a regression.
2. Define baseline metrics
Establish a reference evaluation before making changes.
I recommend tracking these metric categories:
Category Metrics Quality Accuracy, relevance, correctness Reliability Hallucination rate, failure rate Retrieval Recall@k, precision@k, MRR Safety Policy compliance, unsafe response rate Performance p50/p95 latency, throughput Cost Tokens per request, cost per evaluation Not every application needs every metric. Choose metrics that reflect your actual product requirements.
Important: Maintain separate baselines for different datasets and evaluation tasks. Otherwise, a change in test-set composition can look like a model improvement or regression.
3. Use an experiment-tracking platform
You don't need to build this infrastructure from scratch. Several platforms support persistent evaluation history, run comparisons, and regression detection.
1. MLflow
(Strong open-source choice)
- Persistent experiment and metric logging.
- Versioned evaluation datasets.
- Evaluation run comparisons.
- Tracing and production monitoring.
- Supports custom scorers and LLM judges.
Documentation: MLflow GenAI evaluation · Experiment tracking.
2. LangSmith
- Dataset and experiment management.
- Compare prompt and model experiments.
- Set a named baseline.
- View metric differences across runs.
- Trace individual failures.
Particularly useful for LangChain applications.
Documentation: Analyzing and comparing experiments.
3. Weights & Biases (W&B)
- Centralized experiment tracking.
- Metric visualization over time.
- Run comparisons and dashboards.
- Artifact and dataset versioning.
Good for teams already using ML experiment-tracking workflows.
Website: Weights & Biases.
4. Promptfoo
- Prompt and model comparisons.
- Repeatable evaluation suites.
- Red-team and security testing.
- CI/CD integration for regression testing.
Particularly useful for testing prompt changes before deployment.
Website: Promptfoo.
My recommendation: Start with MLflow if you want an open-source, centralized experiment history. Consider LangSmith if tracing and debugging LLM application behavior are your primary needs. Promptfoo is a useful complementary testing layer.
4. Automate baseline comparisons
This is the most important step for identifying regressions.
Every new experiment should be compared against a designated baseline using the same evaluation dataset and scoring criteria.
For example:
Baseline vs. candidate experiment
Metric Baseline → Candidate
Candidate needs review
Accuracy dropped by 5 percentage points and hallucination rate increased by 3 percentage points. Faster latency does not automatically justify the quality regression.
For reliable comparisons:
- Keep the evaluation dataset fixed.
- Keep the evaluator and scoring rubric fixed.
- Record model and prompt versions.
- Compare individual test cases, not just aggregate scores.
- Track both absolute values and changes from baseline.
Avoid false regression alerts
LLM evaluations can be noisy, especially when using LLM-as-a-judge.
A robust approach is to:
- Run the same configuration multiple times to estimate natural variability.
- Compare candidate and baseline results on identical examples.
- Calculate confidence intervals and effect sizes.
- Use paired statistical tests where appropriate.
- Set practical regression thresholds, not just statistical significance.
MLflow's newer evaluation-comparison functionality supports paired comparisons and statistical analysis. Its documentation also recommends A/A testing to understand evaluator noise.
5. Integrate evaluation into CI/CD
Don't rely on someone remembering to run evaluations manually.
Set up an automated pipeline:
Developer changes prompt, model, or RAG logic
Run evaluation against versioned golden dataset
Store metrics, metadata, and per-example results
Compare with approved baseline
Pass
Allow deployment
Fail
Block or require review
For example, define rules such as:
pythonregression_thresholds = { "accuracy": -0.02, "faithfulness": -0.03, "hallucination_rate": 0.01, "p95_latency": 0.20, } def check_regression(baseline, candidate): failures = [] if candidate["accuracy"] < baseline["accuracy"] - 0.02: failures.append("Accuracy regression") if candidate["faithfulness"] < baseline["faithfulness"] - 0.03: failures.append("Faithfulness regression") if candidate["hallucination_rate"] > baseline["hallucination_rate"] + 0.01: failures.append("Hallucination regression") return failuresThese are illustrative thresholds; tune them to your application and evaluation noise.
MLflow also documents regression-testing workflows that can be integrated with pytest and CI pipelines.
6. Build a historical metrics dashboard
Once you have persistent evaluation records, visualize trends over time.
I recommend these four dashboard views:
A. Quality trends
Illustrative evaluation scores across experiment versions.
experiment Accuracy Faithfulness v1 92 94 v2 93 95 v3 91 96 v4 86 94 v5 90 97 B. Reliability trends
Illustrative hallucination rate by experiment.
experiment Hallucination rate v1 3% v2 2.5% v3 3% v4 7% v5 3.5% C. Operational performance
Track:
- P50, P95 and P99 latency.
- Input/output token consumption.
- Cost per request.
- Error and timeout rates.
D. Regression analysis
Track:
- Number of test cases that regressed.
- Number of test cases that improved.
- Largest individual score drops.
- Failure categories and affected dataset slices.
All chart values above are illustrative, not actual benchmark results.
7. A practical implementation stack
Here is the architecture I'd recommend for a team starting from scratch:
Layer Suggested technology Evaluation framework Python + custom scorers Dataset management MLflow evaluation datasets Experiment tracking MLflow Raw result storage PostgreSQL + artifact storage Regression tests pytest CI/CD GitHub Actions Dashboards MLflow UI or Grafana Production monitoring MLflow tracing Useful reading:
- MLflow evaluation dataset management
- Comparing evaluation runs statistically
- Regression testing and CI/CD
- LLM experiment tracking best practices
8. Implementation roadmap
I'd implement this incrementally rather than building everything at once.
-
Phase 1 — Establish the baseline
Create a golden dataset, define 3–5 primary evaluation metrics, and run the current production configuration.
-
Phase 2 — Persist experiment results
Store run IDs, model versions, prompt versions, dataset versions, metric aggregates, and individual test-case results.
-
Phase 3 — Enable comparisons
Compare each new run with the approved baseline. Add statistical checks and configurable regression thresholds.
-
Phase 4 — Automate regression detection
Run evaluations on every significant prompt, model, or application change through CI/CD.
-
Phase 5 — Monitor production
Evaluate production traces, detect quality drift, and promote newly discovered failures into the golden dataset.
My key recommendation
The most important architectural decision is to maintain three separate but connected things:
- Experiment history: Every run and its configuration.
- Evaluation dataset history: Every test case, expected result, and dataset version.
- Baseline history: Which experiment is approved as the reference for a given task and dataset.
This prevents a common problem: having lots of evaluation scores but no reliable way to determine whether two experiments are actually comparable.
MLflow is a particularly good starting point because it now supports evaluation datasets, traces, experiment comparisons, and regression-testing workflows in one ecosystem.
One question to help narrow down the implementation
Are you primarily evaluating:
1. What kind of LLM system?
RAG applications
LLM agents and tool calling
Prompt and model comparisons
Fine-tuned models
General LLM benchmarks
2. Preferred implementation language
Python
TypeScript
Other
3. Deployment preference
Self-hosted / open source
Managed SaaS
Either
[Design my evaluation architecture]
Pages cited in this answer 10
- mlflow.orgLLM and Agent Evaluation | MLflow AI Platform
- mlflow.orgML Experiment Tracking | MLflow AI Platform
- langchaindocs.sitemirror.storeAnalyze an experiment - Docs by LangChain
- wandb.aiOfficial website
- promptfoo.devBuild Secure AI Applications | Promptfoo
- mlflow.orgComparing Evaluation Runs | MLflow AI Platform
- mlflow.orgComparing Evaluation Runs | MLflow AI Platform
- mlflow.orgRegression Testing and CI/CD | MLflow AI Platform
- mlflow.orgEvaluation Dataset Concepts | MLflow AI Platform
- mlflow.orgLLM Experiment Tracking Best Practices That Actually Scale | MLflow
Google AI ModeNov 21, 2026
Tracking and baselining LLM evaluation metrics across experiments requires treating LLMs less like static software and more like stochastic, data-dependent systems. To reliably spot performance regressions, you need
a disciplined MLOps stack that couples versioned data, structured tracing, automated grading, and CI/CD gates.The 4-Tier Architecture for Persistent Tracking
1. Immutable Golden Datasets
Never evaluate against an ad-hoc list of prompts. Your baseline depends on strict data versioning.
- Version Control: Store your evaluation datasets in Git-LFS, DVC, or a specialized hub alongside your code.
- Stratification: Tag your golden dataset by intent type, difficulty level , and known historical failure modes (e.g., edge cases, multi-turn quirks, tool-use loops).
- Drift Protection: Freeze a "v1 baseline" slice of 100–500 canonical test cases that never changes, while maintaining a separate "evolving" slice for new regressions found in production.
2. Comprehensive Tracing & Artifact Logging
You cannot baseline what you do not measure end-to-end. Your logging layer must capture the entire execution graph, not just final string outputs.
- Trace Artifacts to Log: Prompt templates, raw inputs, retrieved RAG context chunks, intermediate agent tool calls/arguments, final generation, token counts, and latency.
- Tooling Options:
- Open-source/enterprise experiment trackers with native LLM support like MLflow Tracing, Arize Phoenix , or LangSmith / Langfuse.
- Standardized open telemetry wrappers (e.g., OpenTelemetry / OpenInference specifications).
3. Dual-Layer Scoring (Deterministic + LLM-as-a-Judge)
Relying solely on string-match or BLEU/ROUGE fails for generative tasks. Combine two scoring tiers:
- Deterministic Checks: Regex matching, JSON schema validation, latency thresholds, token cost caps, and code-based assertions (e.g., "does the output contain the required citation ID?").
- LLM-as-a-Judge: Use a stronger, pinned model (e.g.,
gpt-4oorclaude-3-5-sonnetwith a fixed temperature of0.0) evaluated against explicit rubric prompts. - Judge Calibration: Periodically audit your LLM judge against human annotation samples (aim for >85% inter-rater agreement) and cache judge calls to keep metric baselines noise-free.
4. Automated CI/CD Regression Gates
Move evaluation out of local notebooks and into your pull request pipeline.
- The Pull Request Hook: When a prompt, model hyperparameter, or RAG retriever chunk size changes, trigger an offline evaluation run against your frozen golden dataset.
- Delta Thresholds: Program your CI pipeline to fail the build if aggregate or slice-specific scores drop past a tolerance window (e.g., Fail if Groundedness drops > 2% or Faithfulness drops below 0.85).
Recommended Implementation Flow
- Instrument Your App: Wrap your core generation or agent loop with a tracing decorator so every execution emits a structured trace ID.
- Establish the Baseline: Run your current production configuration against your golden dataset once and commit the resulting score ledger (CSV, JSON, or experiment tracker run ID) as the
baseline_score.json. - Write a Diff Script: In your CI/CD runner, compare the current experiment run against
baseline_score.jsonand output a markdown summary table directly to the PR comments. - Close the Loop (Production Tracing): Sample 5% to 10% of live production traffic, run the same asynchronous evaluators on them, and mine low-scoring live traces to continuously backport new edge-case tests into your golden dataset.
If you'd like to narrow this down, tell me:
- What kind of LLM system are you building (pure completion, RAG, or multi-step agent)?
- What framework or stack are you currently using for orchestration or logging?
Pages cited in this answer 2
The problem is, we don't know if our LLM is drifting over time. What's the best observability tool for detecting LLM output drift?
Summary
Braintrust is the usual answer for detecting LLM output drift over time.
Also asked as
- I need to spot regressions in my LLM experiments. What is the process for persistently tracking and baselining evaluation metrics over time?
- What tools or methods allow for persistent logging and baselining of LLM evaluation metrics to identify performance regressions across experimental runs?
For agents: this page as Markdown, https://parse.gl/topics/evaluation-metrics-tracking.md. JSON, MCP · free for the last 90 days, checks from $0.01
This page
Read and search
Connect
An agent can save work before signup: POST https://agent.parse.gl/v1/workspaces
What it costs
Prices: https://parse.gl/pricing.md
Map of the site: https://parse.gl/llms.txt