-
Notifications
You must be signed in to change notification settings - Fork 20
feat(studio): move agent eval over to evaluator endpoints #775
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
87b3f0e
feat(studio): move agent eval over to evaluator endpoints
nv-odrulea d08fc4f
fix(studio): address rabbit feedback
nv-odrulea dae9855
fix(studio): cleanup, address feedback
nv-odrulea d91deba
fix(studio): saved eval config file in fileset should be runnable as-is
nv-odrulea e91f35c
fix(studio): reject name collision in eval config
nv-odrulea ad514f4
fix(studio): respond to review feedback, mostly remove comments
nv-odrulea f1ad850
fix(studio): address coderabbit feedback
nv-odrulea 6a6555c
fix(studio): address coderabbit feedback
nv-odrulea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
web/packages/studio/public/sample-agents/calculator/eval-config.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,89 @@ | ||
| { | ||
| "tasks": [ | ||
| { | ||
| "id": "calc-0", | ||
| "intent": "Compute the product of 3 and 7 and compare it to the current hour", | ||
| "inputs": { | ||
| "instruction": "What is the product of 3 and 7, and is it greater than the current hour?" | ||
| }, | ||
| "reference": { | ||
| "product": 21 | ||
| } | ||
| }, | ||
| { | ||
| "id": "calc-1", | ||
| "intent": "Compute the sum of 12 and 8 and compare it to the current day of the week", | ||
| "inputs": { | ||
| "instruction": "Is the sum of 12 and 8 greater than the current day of the week in number form?" | ||
| }, | ||
| "reference": { | ||
| "sum": 20 | ||
| } | ||
| }, | ||
| { | ||
| "id": "calc-2", | ||
| "intent": "Compute the difference between 50 and 35 and compare it to the current minute", | ||
| "inputs": { | ||
| "instruction": "What is the difference between 50 and 35, and is it smaller than the current minute of the hour?" | ||
| }, | ||
| "reference": { | ||
| "difference": 15 | ||
| } | ||
| } | ||
| ], | ||
| "metric": { | ||
| "bundle_kind": "metric-bundle", | ||
| "bundle_format_version": "v1", | ||
| "metric_type": "llm-judge", | ||
| "metadata": { | ||
| "description": null, | ||
| "labels": {} | ||
| }, | ||
| "outputs": [ | ||
| { | ||
| "name": "accuracy", | ||
| "description": null, | ||
| "value_json_schema": { | ||
| "description": "Continuous numeric metric value.", | ||
| "title": "ContinuousScore", | ||
| "type": "number" | ||
| } | ||
| } | ||
| ], | ||
| "secrets": {}, | ||
| "payload": { | ||
| "kind": "inline", | ||
| "metric": { | ||
| "type": "llm-judge", | ||
| "model": "default/nvidia-nemotron-3-super-120b-a12b", | ||
| "prompt_template": { | ||
|
coderabbitai[bot] marked this conversation as resolved.
|
||
| "messages": [ | ||
| { | ||
| "role": "user", | ||
| "content": "You are scoring a calculator agent that performs arithmetic and datetime comparisons.\n\nThe expected numeric result for this task is: {{ item.reference }}.\n\nAgent response:\n{{ sample.output_text }}\n\nScore whether the agent's response contains the correct numeric result and a valid datetime comparison.\n- accuracy = 1 if the response contains the correct number (e.g. 21 for 3*7) and makes a valid comparison to the current time value.\n- accuracy = 0 if the numeric result is wrong or the comparison is missing or nonsensical.\n- accuracy = 0.5 if the numeric result is correct but the datetime comparison is absent or unclear.\n\nRespond with a JSON object {\"accuracy\": <value>} where accuracy is 0, 0.5, or 1." | ||
| } | ||
| ] | ||
| }, | ||
| "scores": [ | ||
| { | ||
| "name": "accuracy", | ||
| "minimum": 0, | ||
| "maximum": 1 | ||
| } | ||
| ], | ||
| "inference": { | ||
| "max_tokens": 1024, | ||
| "extra_body": { | ||
| "nvext": { | ||
| "max_thinking_tokens": 256 | ||
| } | ||
| } | ||
| }, | ||
| "reasoning": { | ||
| "end_token": "</think>" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "max_concurrent_tasks": 1 | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.