Skip to content

Feature/hypertension rag#1

Merged
Winda0001 merged 4 commits into
mainfrom
feature/hypertension-rag
May 22, 2026
Merged

Feature/hypertension rag#1
Winda0001 merged 4 commits into
mainfrom
feature/hypertension-rag

Conversation

@Winda0001

Copy link
Copy Markdown
Contributor

Summary

Related Issue

Closes #

How to Test

Checklist

  • make lint passes
  • make test passes (or no tests affected)
  • Docs updated if behaviour changed
  • .env.example updated if new env vars added

Winda0001 and others added 4 commits April 22, 2026 19:45
- Task 7: appraise_agent.py GRADE scoring with SR/MA/NMA included_study_type,
  upgrade blocking on serious bias, confounding_bias_mitigates
- Task 8: appraise_agent.txt prompt updated with included_study_type,
  confounding_bias_mitigates, upgrade_blocked_by_bias fields
- Task 9: apply_agent.py route_type injection, structured GRADE summary,
  inconsistency enforcement
- Task 10: apply_agent.txt updated with {route_type} input
- Task 11-14: judge prompts rewritten with Gate+Rubrics architecture
- Task 15: assess_judge.txt updated with route_type/route_confidence/
  ebm_query inputs, route_confidence_noted output
- Task 16: judge_llm.py Gate+Rubrics scoring, RUBRIC_WEIGHTS,
  _check_gates, _score_rubrics
- Task 17: tests/test_judge_rubrics.py (6 tests),
  tests/test_integration_routing.py (4 tests)
- Task 18: 15/15 tests passing
…ctor

Snapshot of the current operating mode prior to refactoring evidence
acquisition to the hypertensiondb RAG service.

- Modified agents, prompts, coordinator, judge: all reflect the 4/20-4/22
  redesign output that has been the working system since.
- Deleted obsolete plans/specs from 2026-03~04.
- Added router_unified.txt (V2 unified Ask router) and tests/agents/
  package which were never committed but are functionally part of the
  running system.
- hypertension/ added to .gitignore (separate sibling repo, not a submodule).

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- Acquire agent now queries hypertension_rag_client (HTTP) instead of
  PubMed + MedCPT; removes pubmed_api.py and local_evidence_db.py
- Add src/tools/hypertension_rag_client.py: retrying HTTP client that
  aggregates chunk-level results into paper-level Evidence objects
- Update state schema: Evidence gains supporting_passages field
- Update all agent prompts and judge rubrics for RAG-sourced evidence
- Merge Ask router into single LLM call (router_unified.txt)
- Add concurrent LLM warm-up at startup to cut cold-start latency
- Fix requirements.txt: replace langchain/torch/chromadb stack with
  openai + httpx; update README to reflect new architecture
@Winda0001 Winda0001 merged commit 1ed7ce8 into main May 22, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant