Skip to content

feat: deepsearchqa and widesearch - #3186

Merged
cmunley1 merged 32 commits into
mainfrom
cmunley1/dsqa
Sep 22, 2026
Merged

cmunley1 merged 32 commits into
mainfrom
cmunley1/dsqa

Conversation

@cmunley1

@cmunley1 cmunley1 commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

deepsearch qa and widesearch with any harness and exa search api

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable).
  • Pre-commit checks pass locally (pre-commit run --all-files) (so CI lint/format/copyright pass).
  • All commits have DCO sign-off (git commit -s) (so the DCO check passes).

Signed-off-by: Christian Munley <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Sep 9, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

Signed-off-by: Christian Munley <[email protected]>
Signed-off-by: Christian Munley <[email protected]>
@cmunley1 cmunley1 changed the title feat: deepsearch qa environment draft: deepsearchqa Sep 9, 2026
Signed-off-by: Christian Munley <[email protected]>
Signed-off-by: Christian Munley <[email protected]>
@cmunley1 cmunley1 changed the title draft: deepsearchqa feat: deepsearchqa and widesearch Sep 9, 2026
@cmunley1
cmunley1 marked this pull request as ready for review September 9, 2026 11:00
@cmunley1

cmunley1 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 24e3700

Signed-off-by: Christian Munley <[email protected]>
@cmunley1

cmunley1 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 87361d6

Signed-off-by: Christian Munley <[email protected]>
@cmunley1

cmunley1 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test b7fc406

@cmunley1

cmunley1 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor Author

/claude review

text = text.strip()
if text.startswith("```json"):
text = text[7:].removesuffix("```").strip()
result = json.loads(text)["Answer Correctness"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RISK — parse_judge crashes verify() on any non-conforming judge output.

WHAT BREAKS: the only tolerated shapes are a bare JSON object or one prefixed with exactly ```json. Any of the following raises and propagates out of verify() as a 500:

  • Judge prepends prose ("Here is my evaluation:\njson…") → `startswith("json")is False →json.loads(text)raisesJSONDecodeError`.
  • Judge obeys the prompt's "return NULL if … empty" instruction → json.loads("NULL") raises (and lowercase null → None["Answer Correctness"] → TypeError).
  • Fenced block wrapped as generic ``` instead of ```json.

BLAST RADIUS: LLM judges at temp 0 still emit preamble on a nonzero fraction of calls. Each such call errors the task instead of scoring it — dropped/retried tasks in eval, hard errors in a training loop. The sibling widesearch.parse_markdown_json (app.py:68) degrades gracefully to {} for exactly this case; the two verifiers are inconsistent.

FIX: extract the JSON with a tolerant regex (as widesearch does) and, on parse failure or missing Answer Correctness, return a scored-zero response rather than raising — or explicitly document fail-loud as intended.

Comment thread resources_servers/widesearch/app.py Outdated
target_number = float(target.rstrip("%")) / (100 if "%" in target else 1)
except ValueError:
return float(response == target)
return float(abs(response_number - target_number) <= abs(target_number) * float(criterion))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE — float(criterion) is outside the try and uncaught when criterion is absent.

deterministic_metric is called with pipeline.get("criterion") (line 238), which is None when a number_near column omits criterion. float(None) raises TypeError, which is outside the try/except ValueError above it, so it escapes verify() as a 500. The date_near branch guards TypeError; this branch does not. Data-dependent (upstream gold configs generally set a tolerance for number_near), but a malformed/edited eval spec crashes the whole task rather than scoring it. FIX: default the tolerance (e.g. float(criterion or 0)) or include TypeError in the guard.

Signed-off-by: Christian Munley <[email protected]>
Signed-off-by: Christian Munley <[email protected]>
Signed-off-by: Christian Munley <[email protected]>
Signed-off-by: Christian Munley <[email protected]>
Signed-off-by: Christian Munley <[email protected]>
@cmunley1

Copy link
Copy Markdown
Contributor Author

/ok to test 0b20abf

Signed-off-by: Christian Munley <[email protected]>
@cmunley1

Copy link
Copy Markdown
Contributor Author

/ok to test aa584a4

Signed-off-by: Christian Munley <[email protected]>
Signed-off-by: Christian Munley <[email protected]>
@cmunley1

Copy link
Copy Markdown
Contributor Author

/ok to test 68faf84

@cmunley1
cmunley1 merged commit 1f46738 into main Sep 22, 2026
41 checks passed
@cmunley1
cmunley1 deleted the cmunley1/dsqa branch September 22, 2026 19:58

This branch was previously deployed

1 inactive deployment
public — 68faf843 Deployed Sep 22, 2026 by copy-pr-bot[bot] via release / finalize / notify #3527
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers complexity:high Cross-component or shared-contract change with a large review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants