- test_e2e.py: initialize steps/result before polling loop to avoid possibly-unbound
- test_rag_quality.py: add assert _collection is not None after initialization (3 sites)
- validation/base.py: filename param typed Optional[str] instead of str
- validation/run_validation.py: capture getenv result to avoid str|None assignment
docs: full documentation vs reality audit
bshepp
5d53fbf
- README.md: Updated Tech Stack (MedGemma via HF Endpoint, not Gemma 3 via Google AI Studio),
added 50-case MedQA validation results, updated Quick Start for HF token, added
deploy guide to doc index and project structure, added analyze/check_progress to tree
- docs/architecture.md: Updated LLM label, model config, API dependencies, configuration
table defaults, system prompt section (TGI supports system role natively), known limitations
- docs/test_results.md: Added 50-case MedQA results with question-type breakdown, updated header
- docs/writeup_draft.md: Added MedQA 50-case results to performance table, updated validation
section from 'in progress' to actual numbers, updated latency note
- DEVELOPMENT_LOG.md: Fixed environment config table defaults, added Phase 11 (MedGemma HF
Endpoint deployment) and Phase 12 (50-case MedQA validation with full results/analysis)
- TODO.md: Complete rewrite - marked validation as done, updated model info from gemma-3 to
MedGemma, updated…
- LICENSE: Apache 2.0 with HAI-DEF Terms of Use notice for Gemma model
- CONTRIBUTING.md: setup guide, code style, areas for contribution
- SECURITY.md: responsible disclosure policy, patient data handling, LLM risks
- Moved download_data.txt, overview.txt, rules.txt to competition/ subfolder
- README.md: updated License section, added new files to Documentation Index
docs: full accuracy audit, add validation framework to all docs, fix test_e2e.py, create TODO.md
bshepp
9dea0ad
- README.md: fix step count 5->6, add Conflict Detection to E2E table, add
validation/ to project structure, add validation commands to Running Tests,
add External Dataset Validation section, add validation to Tech Stack
- architecture.md: fix Decision #1 (5->6 step), fix Decision #4 (2->4 Gemma
roles), add Validation Framework section with dataset table and architecture
- test_results.md: add Section 6 External Dataset Validation with datasets,
smoke test results, and reproduction steps; fix test_e2e.py line count
- DEVELOPMENT_LOG.md: remove (Current) from Phase 7, add Phase 9 (validation
framework build with problems solved), add Phase 10 (documentation audit)
- writeup_draft.md: fix 'confidence levels' -> 'caveats and limitations',
update GitHub repo link, add validation methodology section
- test_e2e.py: add assertions for 6 steps, verify conflict_detection present,
assert no failed steps
- TODO.md: new file with prioritized next-session action items for easy pickup
Add validation framework for MedQA, MTSamples, and PMC Case Reports
bshepp
393ff7f
Three-dataset validation suite that evaluates the CDS pipeline against
external clinical benchmarks:
- MedQA: 1273 USMLE-style questions, measures diagnostic accuracy
(top-1, top-3, mentioned-anywhere)
- MTSamples: ~5000 medical transcriptions, measures parse robustness
and field extraction completeness across specialties
- PMC Case Reports: Published case reports from PubMed, measures
real-world diagnostic accuracy against gold-standard diagnoses
Architecture:
- validation/base.py: Core framework (runner, fuzzy matching, scoring)
- validation/harness_medqa.py: MedQA fetcher + harness
- validation/harness_mtsamples.py: MTSamples fetcher + harness
- validation/harness_pmc.py: PMC Case Reports fetcher + harness
- validation/run_validation.py: Unified CLI runner
Uses direct Orchestrator calls (no server needed). Tested end-to-end:
3 MedQA cases, 66.7% top-1 accuracy, 100% parse success rate."
Update all documentation for conflict detection feature
bshepp
c28dd56
- README.md: 5→6 step pipeline, updated architecture diagram, project
structure (new conflict_detection.py), usage instructions
- docs/architecture.md: New Step 5 section, updated diagram, data models
table (3 new models), component descriptions, agentic comparison
- DEVELOPMENT_LOG.md: Added Phase 8 documenting the conflict detection
design decision (why confidence scores were dropped) and full
implementation details
- docs/writeup_draft.md: Updated pipeline description, architecture
diagram, performance table, practical usage section
- docs/test_results.md: Updated E2E test to reflect 6-step pipeline
Add conflict detection step to CDS pipeline
bshepp
e684a6c
- Add ConflictType enum, ClinicalConflict, ConflictDetectionResult models to schemas
- Add conflicts field to CDSReport and conflict_detection to AgentState
- Create conflict_detection.py tool (compares guidelines vs patient data)
- Wire as Step 5 in orchestrator between guideline retrieval and synthesis
- Update synthesis to accept and format conflict data in prompt
- Add fallback to copy detected conflicts into report if LLM misses them
- Add prominent Conflicts & Gaps section to frontend CDSReport.tsx
with severity-coded cards, guideline vs patient data comparison,
and suggested resolutions
Initial commit: CDS Agent - Clinical Decision Support System
bshepp
f2c113d
- 5-step agentic pipeline: parse reason drug check RAG guidelines synthesize
- Backend: FastAPI + Python 3.10, Gemma 3 27B IT via Google AI Studio
- Frontend: Next.js 14 + React 18 + TypeScript + Tailwind CSS
- RAG: ChromaDB with 62 clinical guidelines across 14 specialties
- Drug APIs: OpenFDA + RxNorm/NLM
- Tests: E2E pipeline, 30 RAG quality queries (100% pass), 22 clinical scenarios
- Full documentation: architecture, test results, development log, writeup