Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/just-cameron/letta-evals-demo. A quick demonstration of Letta Evals.
Something went wrong. Try again.
letta-evals-demo 2-simple
1 folder · 3 files
README.md
Demo 2: Simple Single-Turn Eval #
Overview #
This demonstrates a basic single-turn evaluation using:
- Extractor:
last_assistant- extracts the agent's final response - Grader:
toolgrader withcontainsfunction - checks if ground_truth appears in response - Gate: Pass if 67% (2/3) of test cases pass
Files #
dataset.csv: Test cases with input questions and ground_truth answerssuite.yaml: Evaluation configuration- Uses agent from
../1-agentfile/qa_agent.af
Running #
letta-evals run suite.yaml
Evaluation Flow #
- Dataset → Load test cases from dataset.csv
- Target → Send each input to the agent
- Extractor → Extract last_assistant message
- Grader → Check if ground_truth is contained in extracted text
- Gate → Require ≥67% pass rate
Key Concepts #
- last_assistant extractor: Gets the agent's final text response
- contains grader: Simple string matching (case-insensitive)
- Gate: Pass/fail threshold for the entire eval