Spaces:
Sleeping
Sleeping
Commit History
-
feat(trials): facility & geography search + targeted mechanism & explainable evidence tier (#22)
KevinIsInCoding +1: Claude Opus 4.8Unverified signature* feat(trials): facility & geography trial search with evidence enrichment Physicians can now find ALS trials by facility ("trials at Mass General Hospital") or geography ("trials in NY"), with each result enriched by surrounding research evidence. - ingestion: _flatten_trial() parses contactsLocationsModule so each trial persists a locations list (facility/city/state/country/status/lat/lon) plus central contact phone/email; TrialSummary gains matching fields. - trials_query.py (new): search_trials_by_location() (state abbrev→name, token-substring facility match, recruiting filter) and enrich_trial() (key papers via the RAG retriever + citation boost, sibling trials for the same compound, heuristic Strong/Moderate/Emerging evidence tier), plus an HTML renderer. - agent: new find_trials_by_location tool wired into RESEARCH_TOOLS and dispatched in research_agent; prompt guidance added for when to use it. - app: dedicated "Clinical Trials" tab (facility/state/city/status i…f77eaaf