Spaces:
Paused
Paused
Commit History
-
refactor(prompts): consolidate system prompts + docs/lockfile housekeeping (#23)
KevinIsInCoding +1: Claude Opus 4.8Unverified signature* refactor(prompts): consolidate all system prompts into prompts.py extraction/extractor.py and ingestion/clinicaltrials.py each defined their own local system prompt, and prompts.py held a stale, unused EXTRACTION_SYSTEM that had drifted from the one the extractor actually ran. Make prompts.py the single source of truth: move the live extraction and trial-target prompts there (byte-identical to what ran, so extraction output is unchanged) and import them. Now all four system prompts (EXTRACTION_SYSTEM, TRIAL_EXTRACTION_SYSTEM, LANDSCAPE_SYSTEM, SYNTHESIS_SYSTEM) live in prompts.py, matching CLAUDE.md. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> * chore: doc paper count 500→10,000 and sync uv.lock to pinned gradio CLAUDE.md described the corpus as ~500 papers; it is now ~10,000. uv.lock had drifted to gradio 6.20.0 while pyproject pins gradio==6.14.0 — re-lock so the lockfile matches the committed pin. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> ---------…3b2b5d9
-
feat(landscape): bring experimental ALS therapy landscape to main (#19)
KevinIsInCoding +1: Claude Fable 5Unverified signatureApplies the landscape feature (only content main was missing from the hf-clean deploy lineage) on top of main: the Therapy Landscape tab, offline multi-label classifier (Opus 4.8 + BioLORD cross-check + abstention, 0.90 precision on a 42-drug gold set), landscape.json, and plotly==6.9.0. Preserves main's batch extractor + SSR/Gradio fixes. Note: main and hf-clean have unrelated git histories, so this is applied as a feature patch rather than a branch merge. The deduped data blobs are intentionally NOT included (main does not track data/ — it lives in the dataset repo / deploy branch). Co-authored-by: Claude Fable 5 <noreply@anthropic.com>2e5367f
-
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 3 — RAG pipeline + working end-to-end query
KevinIsInCoding +1: Claude Sonnet 4.6- rag/indexer.py: ChromaDB collection builder with section-aware chunking (one chunk per PMC XML section, falls back to abstract) - rag/retriever.py: semantic search + entity search with citation-weighted re-ranking (score = similarity * log(citation_count + 2)) - agents/research_agent.py: streaming synthesis agent (mirrors beacon pattern) uses search_research_landscape tool → RAG + trial match → Claude synthesis - scripts/build_index.py: CLI to build ChromaDB index from papers.jsonl - main.py: Rich CLI interface with streaming output - Add openai dependency (required by llm.py provider abstraction) Verified: 510 chunks indexed from 499 papers, end-to-end query returns structured research landscape with PMIDs, mechanisms, and trial links. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>56fa10c -
feat: initial project scaffold and Stage 2 ingestion pipeline
KevinIsInCoding +1: Claude Sonnet 4.6- Project foundation: config, models, tools, llm, logging, prompts - Tool schemas: extract_entities.json, search_landscape.json - Stage 2 ingestion: - ingestion/pubmed.py: PubMed Entrez client (batch fetch, rate-limit aware) - ingestion/pmc.py: PMC XML full-text fetcher (JATS section parser) - ingestion/semantic_scholar.py: citation count enrichment via S2 batch API - ingestion/clinicaltrials.py: ClinicalTrials.gov v2 ALS trials client - scripts/ingest_papers.py: orchestrates PubMed + PMC + citations - scripts/ingest_trials.py: fetches recruiting ALS trials - Stub modules for Stage 3-5 (rag/, graph/, agents/, app.py, main.py) - MIT License, .gitignore (excludes data/, .env, logs/) - CLAUDE.md architecture guide Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0ccfe4a