Spaces:
Paused
Paused
Commit History
-
feat: retrieval grounding, trial quality, and drug-name typo suggestions
KevinIsInCoding +1: Claude Opus 4.8Session of improvements to retrieval accuracy, clinical-trial matching, and query robustness for the physician-facing tool. Retrieval grounding & citation integrity: - Grounding gate: suppress spurious semantic matches when a query's focus entity is absent from the corpus (papers=0 → honest "no evidence"), preventing citation-grafting hallucinations. - Landscape-mention labeling: flag papers that name a compound only in full-text pipeline tables (not the abstract) so the model labels such citations instead of presenting them as primary studies. - Keyword search + abstract-scoped grounding helpers in rag/retriever.py. - Stricter synthesis prompt: inline citations, grounding rule, no training- knowledge gap-filling. Clinical trials: - Include Expanded Access Programs (studyType:int exp); tag study_type / is_expanded_access and surface "Expanded Access" as the phase label. - Compound-specific trial matching: match only the queried compound/target (never the KG-expanded gal…6e92226
-
feat: Stage 5 — Gradio UI + HuggingFace Spaces deployment
KevinIsInCoding +1: Claude Sonnet 4.6- app.py: Gradio 6.20 Blocks UI with streaming chatbot, 6 example question buttons (two columns), status bar showing chunk/trial/KG counts, medical disclaimer footer - Streaming pattern: status updates shown as italic while waiting, tokens accumulate in real-time, input locked during generation - Module-level resource loading: BioLORD collection + KG graph + trials loaded once at startup (not per request) - requirements.txt: HF Spaces mirror of pyproject.toml deps - README.md: HF Spaces metadata header + full setup guide including offline pipeline run order, architecture diagram, data sources table Verified: app starts in <5s, serves on localhost:7860, all 510 chunks / 112 trials / 220 KG nodes loaded at startup. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>d515e2b