Skip to content

Add seeded distractor documents to the agent benchmark - #723

Open
jaywyawhare wants to merge 1 commit into
hydra-db:bench/agent-extractedfrom
jaywyawhare:bench/agent-distractors
Open

jaywyawhare wants to merge 1 commit into
hydra-db:bench/agent-extractedfrom
jaywyawhare:bench/agent-distractors

Conversation

@jaywyawhare

@jaywyawhare jaywyawhare commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

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.py writes 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 N defaults to 200, about 62 KB, 20 companies, 460 entities, and 1,100 relations. --distractors 0 gives the original corpus and the original prompt.
  • Distractors are other companies, not Velloran units, so questions like "list every incident" keep their answers. With distractors on, the system prompt adds one sentence: a question is about Velloran unless it names another company.
  • No distractor name shares or nearly shares a word with any Velloran name or alias, and the text never touches what the unanswerable questions ask about.
  • list_documents pages 100 at a time with an offset, so it fits the tool output limit with 231 documents. With 31 it is unchanged.

Validation

  • The changed tests fail on base and pass here: seed determinism, no name collisions, facts match their documents, gold answers unchanged, unanswerable questions stay unanswerable.
  • scripts/precheck.py passes (509 changed lines, clean trial merge).
  • tests/test_agent_benchmark.py and tests/test_search.py pass 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

  • Implements an issue a maintainer has /approved.
  • Small and scoped to that issue.
  • New errors have a code and hint, the same on API, CLI, and MCP in both SDKs (see AGENTS.md). No new codes.
  • Breaking changes described below, or none.

Breaking changes

None. --distractors 0 gives the old corpus.


Proof this PR
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

@arrry-hydraDB arrry-hydraDB added feature New capability effort: M Several files, both SDKs labels Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort: M Several files, both SDKs feature New capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants