Repository navigation
Add seeded distractor documents to the agent benchmark - #723
Open
jaywyawhare wants to merge 1 commit into
Open
jaywyawhare wants to merge 1 commit into
jaywyawhare wants to merge 1 commit into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Grow the agent benchmark corpus past what an agent can read in full. A seeded generator adds distractor documents and their gold facts about other companies in the same group, and they go into the document tools, the gold graph, and the extracted graph alike, so no condition gets an edge.
Implementation details
Decisions
benchmarks/agent/distractors.pywrites ten documents per fictional company plus their gold facts, in the same formats and date range, with some facts that change over time (a team move, an account handover, a new lead).--distractors Ndefaults to 200, about 62 KB, 20 companies, 460 entities, and 1,100 relations.--distractors 0gives the original corpus and the original prompt.list_documentspages 100 at a time with anoffset, so it fits the tool output limit with 231 documents. With 31 it is unchanged.Validation
scripts/precheck.pypasses (509 changed lines, clean trial merge).tests/test_agent_benchmark.pyandtests/test_search.pypass on Kuzu. Ruff passes.Limits
Extraction cost grows about 7x at the default; the README says so.
Linked issue
Closes #719
AI Assistance
AI tools helped write and test parts of this. I reviewed and ran every change.
Checklist
/approved.AGENTS.md). No new codes.Breaking changes
None.
--distractors 0gives the old corpus.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.