-
Notifications
You must be signed in to change notification settings - Fork 1
feat(bench): benchmark expansion #23643
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:graphrag:attribute_prediction:2882bce6","task":"Predict missing attributes of entities using local graph structure","meta":"generated"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:graphrag:attribute_prediction:30a10bee","task":"Predict missing attributes of entities using local graph structure","meta":"generated"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:graphrag:community_detection:59c8dab1","task":"Identify sub-communities within a large knowledge graph","meta":"generated"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:graphrag:community_detection:b4678e68","task":"Identify sub-communities within a large knowledge graph","meta":"generated"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:multiagent:resource_allocation:8efecaad","task":"Distribute limited resources among competing agents","meta":"generated"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:multiagent:resource_allocation:e0f2b6f1","task":"Distribute limited resources among competing agents","meta":"generated"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:multiagent:role_discovery:7514ea55","task":"Agents dynamically discover and assume roles based on task requirements","meta":"generated"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:multiagent:role_discovery:a6e46d05","task":"Agents dynamically discover and assume roles based on task requirements","meta":"generated"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:tooluse:code_execution:1dd8e73e","task":"Execute generated code and handle runtime errors","meta":"generated"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:tooluse:code_execution:c7d5cea8","task":"Execute generated code and handle runtime errors","meta":"generated"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:tooluse:file_system:2571feb3","task":"Perform multi-step file system operations","meta":"generated"} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"id":"EVID:tooluse:file_system:bab1d56c","task":"Perform multi-step file system operations","meta":"generated"} |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -55,3 +55,14 @@ export function aggregateScores(scores: EvidenceScore[]): EvidenceScore { | |||||||||||||||||||||||
| f1_score: sum.f1_score / scores.length, | ||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| export function scoreEvidencePrecision(required: string[], provided: string[]): number { | ||||||||||||||||||||||||
| if (required.length === 0) return 1.0; | ||||||||||||||||||||||||
| const hits = required.filter(r => provided.includes(r)).length; | ||||||||||||||||||||||||
| return hits / required.length; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
Comment on lines
+59
to
+63
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The function name
Suggested change
|
||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| export function scoreToolEfficiency(optimalSteps: number, actualSteps: number): number { | ||||||||||||||||||||||||
| if (actualSteps <= optimalSteps) return 1.0; | ||||||||||||||||||||||||
| return Math.max(0, optimalSteps / actualSteps); | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
Comment on lines
+65
to
+68
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The current implementation returns
Suggested change
|
||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This implementation divides by
required.length, which computes recall/coverage, not precision. If a run returns all required evidence plus many irrelevant IDs, the score still becomes1.0(for example, 2 required hits out of 20 provided), so false positives are never penalized and benchmark precision is systematically inflated. Precision should use the provided evidence count (ideally deduplicated) as the denominator.Useful? React with 👍 / 👎.