Back to .md Directory

Evaluation Findings (Sample Run)

Reports results from two evaluation pipelines: agent response scoring and recommendation accuracy, with aggregate metrics and improvement steps.

May 2, 2026
0 downloads
1 views
ai agent llm eval mcp
View source

What this file does

Reports results from two evaluation pipelines: agent response scoring and recommendation accuracy, with aggregate metrics and improvement steps.

When to use it

  • You have a multi-agent system and need to present evaluation results to stakeholders
  • You want to track regression in agent response quality or recommendation precision
  • You need a template for documenting evaluation runs with pass rates and artifact paths
  • You are debugging why recommendation metrics are low and need guidance on fixes

Assumes this stack

DeepEvalLLM-as-judgePython

Evaluation Findings (Sample Run)

Summary of a single run of both pipelines for presentation. Re-run the evals to refresh numbers.


Pipeline 1: Agent response evaluation (DeepEval G-Eval)

Metric: Relevance/helpfulness (LLM-as-judge). Threshold: 0.5.

test_iduser_querypassedscore (0–1)
greeting_1Hi✓0.77
vehicles_intent_1I'm looking for a used car under $15,000✓0.70
laptops_intent_1I need a laptop for programming✓0.67
books_intent_1Recommend me some sci-fi books✗0.10
reset_1Start over✓1.00

Summary: 4/5 passed. The books case failed because the catalog returned no sci-fi books (empty result), so the judge correctly marked the response as unhelpful.

Artifacts: evaluation/agent_response/results/agent_response_eval_results.csv (and .json).


Pipeline 2: Recommendations evaluation

Query → UCP (chat agent filter extraction)

Metric: Fraction of expected UCP keys that match the agent’s produced filters.

query_idquery (abbreviated)expected_ucp_match
q1Gaming laptop under $20001.0
q2MacBook coding, ~$15001.0
q3Cheap laptop students under $6001.0
q4Dell XPS 16GB for work0.8
q5Lightweight 14", under $12001.0
q6Laptop for video editing1.0
q732GB RAM for ML0.75

Aggregate: Mean UCP match rate ≈ 93.6%.

Artifacts: evaluation/recommendations/results/query_to_ucp_results_<ts>.csv.


UCP → recs (merchant/MCP only)

Metrics: Hard constraint pass rate (% of recs satisfying expected UCP); mean soft similarity to ground truth (0 when no ground truth IDs set).

query_idquery (abbreviated)hard_pass_ratemean_soft_similarityrecommended_count
q1Gaming under $20000.00.010
q2MacBook ~$15000.00.05
q3Students under $6001.00.010
q4–q7…0.00.06–10

Aggregate: Mean hard pass rate ≈ 14.3%; mean soft similarity = 0 (ground_truth_product_ids empty in golden set).

Artifacts: evaluation/recommendations/results/ucp_to_recs_results_<ts>.csv.

Note: Full system (query → recs) is not run: the chat agent is multiturn and often returns a question instead of recommendations, so recs-based metrics would be misleading. We evaluate the merchant agent (UCP → recs) separately.


Baseline (optional)

Run without --skip-baseline to compare an out-of-the-box LLM (schema + sample products + user query) with the same hard/soft scoring. Output: evaluation/recommendations/results/baseline_results_<ts>.csv.


Summary JSON (Pipeline 2)

evaluation/recommendations/results/summary_<ts>.json contains:

  • timestamp, golden_path, num_queries
  • aggregates.query_to_ucp.mean_ucp_match_rate
  • aggregates.ucp_to_recs.mean_hard_pass_rate, mean_soft_similarity
  • aggregates.baseline (if run)

Use these aggregates for slides or reports.


How to improve numbers

  1. Pipeline 1: Add or fix book catalog so sci-fi queries return results; add more test cases in test_cases.json.
  2. Pipeline 2:
    • Run python -m evaluation.recommendations.populate_ground_truth to fill ground_truth_product_ids (filter by hard constraints, then top 10 by query–product embedding similarity).
    • Run populate_product_embeddings so embeddings exist for scoring.
    • Align hard-constraint checks in scoring.py with the actual product fields returned by the agent/MCP (e.g. price_cents, good_for_* in attributes).

What's inside

Two pipeline summaries with tables, aggregate metrics, artifact file paths, and a how-to-improve section.

Change this for your project

  • Replace evaluation/agent_response/results/agent_response_eval_results.csv with your own output path
  • Replace evaluation/recommendations/results/ with your results directory
  • Replace test_cases.json with your test case file name
  • Replace scoring.py with your scoring module name

Where it goes

Keep alongside your test suite. Used to define and score model evaluations.

Worth borrowing

  • Separate evaluation into two pipelines: one for agent response quality, one for recommendation accuracy
  • Include a 'How to improve numbers' section that directly links to actionable code changes

Related Documents