WIP: build ground truth corpus and calculate recall - #38
Draft
RFOxbury wants to merge 6 commits into
Draft
Conversation
4 tasks
* `V2SearchGenerationBackend` in `search_generation.py` incorporates Policy Atlas V2 prompting: OpenAlex and Overton prompts are generated via different API queries, and 5 repeated prompts generate the 5 OpenAlex queries, rather than 1 prompt generating all 5. * Rate limiting and exponential backoff are modified to reduce the likelihood of 500 errors
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.
Test this code by:
collecting a sample of 15 systematic reviews with
uv run --project backend python scripts/eval_ground_truth/fetch_review_corpus.py --limit 15calculating recall (at both the search stage, and the screening stage) for those 15 reviews with
uv run --project backend --env-file backend/.env python scripts/eval_ground_truth/run_and_score.py --corpus scripts/eval_ground_truth/results/corpus.json...
...
...
...
...
What / why
Task:
docs/tasks/<task-id>/Proof it works
Evidence lives in
docs/tasks/<task-id>/verification.md— summarise here, don't duplicate the table.make verify: pass / fail / stubRisk tier
Tier N — why.
AI role
Review focus
Correctness · missed requirements · security · provenance integrity · scope creep · over-abstraction.
Reviews run
Findings recorded in
verification.md./code-review/security-review/simplifyKnown gaps & deferred seams
Public safety