Back to .md Directory

LLM Benchmark Report

This document presents the benchmark and evaluation of the LLM agent

May 2, 2026
0 downloads
2 views
ai agent llm rag prompt eval gemini
View source

LLM Benchmark Report

Overview

This document presents the benchmark and evaluation of the LLM agent integrated into the NVIDIA MLOps platform, including quality metrics (RAGAS), LLM-as-judge evaluation, and A/B prompt testing.


1. Agent Configuration

ParameterValue
PatternReAct (Reasoning + Acting)
ProviderOpenRouter
Modelgoogle/gemini-2.0-flash-001
Temperature0.1
Max Iterations8
Tools4 (query_stock_data, predict_stock_prices, get_model_metrics, search_documents)
RAGChromaDB with 7 domain documents

2. Golden Set

  • Total pairs: 25
  • Languages: Portuguese (16), English (9)
  • Covered domains:
    • Price and data queries (5 pairs)
    • Predictions and model (6 pairs)
    • Architecture and technical features (5 pairs)
    • Security and monitoring (3 pairs)
    • General system usage (6 pairs)

3. RAGAS Evaluation (4 Metrics)

Metrics

MetricDescriptionTarget
FaithfulnessAnswer is faithful to the provided context> 0.7
Answer RelevancyAnswer is relevant to the question> 0.7
Context PrecisionRetrieved context is precise> 0.6
Context RecallContext covers the ground truth> 0.6

Execution

# Run RAGAS evaluation
python -m evaluation.ragas_eval

Results saved at: outputs/evaluation/ragas_results.json

Note (April 2026): The golden set (data/golden_set/golden_set.json) was rewritten with richer contexts (3 detailed sentences per item) and direct, context-grounded expected answers. Re-running this evaluation will reflect the improved dataset quality.

Interpretation

  • High Faithfulness: Agent uses tool data and doesn't hallucinate
  • High Answer Relevancy: Answers directly address the question
  • High Context Precision: RAG retrieves relevant documents
  • High Context Recall: Context covers ground truth information

4. LLM-as-Judge (3 Criteria)

Evaluation Criteria

CriterionDescriptionScale
RelevanceAnswer directly addresses the question1–5
Factual AccuracyInformation is factually correct1–5
Business UsefulnessUseful for investment analysis1–5

Execution

# Run LLM-as-judge
python -m evaluation.llm_judge

Results saved at: outputs/evaluation/llm_judge_results.json

5. A/B Prompt Testing

Tested Variants

VariantNameDescription
AConciseShort prompt, tool-focused
BDetailedDetailed prompt, with examples and strict rules

Key Differences

AspectVariant AVariant B
Length~300 tokens~600 tokens
ExamplesNone1 complete example
RulesImplicit6 explicit rules
Number formatUnspecified"2 decimal places"
Source attributionNot requiredRequired

Execution

# Run A/B test (first 5 samples)
python -m evaluation.ab_test_prompts

Results saved at: outputs/evaluation/ab_test_results.json

6. Performance Metrics

Expected Latency

OperationLatency (CPU)Latency (GPU)
LSTM Prediction (30 days)0.5–2s0.1–0.5s
Agent query (1 tool)3–8s3–8s
Agent query (3+ tools)8–20s8–20s
RAG retrieval< 0.5s< 0.5s
Guardrail check< 0.01s< 0.01s

Estimated Token Usage

Query TypePrompt TokensCompletion TokensTotal
Simple (1 tool)~500~200~700
Medium (2 tools)~1000~400~1400
Complex (3+ tools)~2000~600~2600

7. Known Limitations

  1. External API dependency: Agent requires API key (OpenAI/Groq)
  2. LLM latency: Dominates total agent response time
  3. Heuristic fallback: When LLM is unavailable, evaluation uses simple heuristics
  4. Static golden set: Expected answers may become outdated
  5. Language: RAG knowledge docs in mixed English/Portuguese
  6. Offline evaluation: RAGAS and LLM-judge are batch processes, not real-time

8. How to Reproduce

# 1. Configure environment variables
export LLM_PROVIDER=openai
export OPENAI_API_KEY=sk-...

# 2. Run all evaluations
python -m evaluation.ragas_eval
python -m evaluation.llm_judge
python -m evaluation.ab_test_prompts

# 3. Results in outputs/evaluation/
ls outputs/evaluation/
# ragas_results.json
# llm_judge_results.json
# ab_test_results.json

Report generated in 2025. Metrics updated with each new agent or model version.

Related Documents