Step 1: Load a test dataset
Why evaluate agents?
A working agent is not a good agent. Before you ship one, you need numbers: how often does it get the answer right? how robust is its tone? how often does it call the wrong tool? Those numbers come from an eval harness.
The pattern you'll build in this lab is the same one NVIDIA NeMo Evaluator wraps as a managed service:
(1) Test dataset → (2) Agent produces responses → (3) Judge scores each response → (4) Aggregate into metrics
You'll build it step by step with a NIM judge.
Dataset shape
The test dataset is a list of {question, reference} records. The reference is a gold answer you trust — you'll use it later to ground the judge.
[
{"question": "What is 2+2?", "reference": "4"},
{"question": "Capital of France?", "reference": "Paris"}
]
Your task
Add to main.py:
- Define a
DATASETlist with at least 4{question, reference}dicts covering math, geography, and trivia. - Print the dataset length and the first item.
NCP-AAI exam note: The exam tests the role of evaluation in the agent lifecycle, especially the difference between unit tests, integration tests, and offline LLM-based evals. The third (LLM-as-judge) is what scales.
main.py, the file you edit9 lines
# Step 1: Load a test dataset
# TODO: Define a DATASET list with >=4 {question, reference} dicts
DATASET = [
# {"question": "...", "reference": "..."},
]
print(f"Dataset size: {len(DATASET)}")
if DATASET:
print(f"First item: {DATASET[0]}")