Spaces:
Paused
Paused
Commit History
-
feat(trials): RAG-grounded mechanism summary per clinical trial (#34)
KevinIsInCoding +1: Claude Opus 4.8Unverified signature* feat(ui): headless UI-verification harness (run-ui skill) + fix combobox JS Adds a reusable, deterministic UI check for the Clinical Trials tab so UI changes stop shipping blind. Building it surfaced and fixed a real production bug. - .claude/skills/run-ui/: launches the app in UI-smoke mode and drives the tab in headless Chromium (Playwright), asserting placeholder, 3-char gate, clean picked value, one-line labels, and a search result — plus a screenshot. Exits non-zero on failure (CI-usable). SKILL.md documents usage + the gotchas learned. - app.py: CANDLE_UI_SMOKE mode skips the heavy startup loads (cross-encoder, ChromaDB, graph, Anthropic client) so UI tests boot in ~25s instead of ~60s. - FIX: the combobox in-box placeholder + 3-char gate never ran — Gradio ignored `js=`/`demo.load(js=)` in this version. Inject the script via gr.Blocks(head=...) with a MutationObserver (the tab renders lazily). This was broken on the live Space too; now verified working end-to-e…4750fb9 -
feat(ui): headless UI-verification harness (run-ui skill) + fix combobox JS (#33)
KevinIsInCoding +1: Claude Opus 4.8Unverified signatureAdds a reusable, deterministic UI check for the Clinical Trials tab so UI changes stop shipping blind. Building it surfaced and fixed a real production bug. - .claude/skills/run-ui/: launches the app in UI-smoke mode and drives the tab in headless Chromium (Playwright), asserting placeholder, 3-char gate, clean picked value, one-line labels, and a search result — plus a screenshot. Exits non-zero on failure (CI-usable). SKILL.md documents usage + the gotchas learned. - app.py: CANDLE_UI_SMOKE mode skips the heavy startup loads (cross-encoder, ChromaDB, graph, Anthropic client) so UI tests boot in ~25s instead of ~60s. - FIX: the combobox in-box placeholder + 3-char gate never ran — Gradio ignored `js=`/`demo.load(js=)` in this version. Inject the script via gr.Blocks(head=...) with a MutationObserver (the tab renders lazily). This was broken on the live Space too; now verified working end-to-end. - agents/research_agent.py: skip the cross-encoder load under CANDLE_UI_SMO…66d56de
-
feat(trials): filters, polish & eligibility on main (recover #29 + #30) (#32)
KevinIsInCoding +1: Claude Opus 4.8Unverified signature#28 (autocomplete) reached main, but stacked PRs #29 (filters + polish) and #30 (eligibility) merged into their base branches, not up to main. This lands their content on main so the full Clinical Trials tab work ships: study-type/status filters + defaults, layout & number-consistency polish, and enrollment/eligibility (ingestion capture, backfill script, active-trial display). Data change: run scripts/upload_data.py --only trials before deploying. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>bc94ae4 -
feat(trials): location autocomplete for facility & city search (#28)
KevinIsInCoding +1: Claude Opus 4.8Unverified signature* feat(trials): type-ahead dropdowns for facility & city search Replace substring guessing (where "new" ambiguously means New York / New Haven / Newport) with a type-ahead that lets the physician PICK from a ranked dropdown. - Suggestions come from the facility/city names actually present in the trials, so every pick yields results. Ranked by trial-site count (busiest first) — for cities this surfaces New York ahead of New Haven/Newport when typing "new", the practical stand-in for population that also covers international cities. - Both start after 3 characters (MIN_TYPEAHEAD_CHARS); limited to 10 options. - Facility uses token-substring matching ("mass gen" -> Massachusetts General Hospital); city uses substring. Exact matches return no suggestions, which also closes the dropdown right after a pick fills the box. trials_query: build_location_index + suggest_cities/suggest_facilities. app.py: facility/city text boxes gain a matching-suggestions dropdown; typing populates …1c7b1c5
-
chore(deploy): add upload_data.py + HF deploy runbook for runtime data (#25)
KevinIsInCoding +1: Claude Opus 4.8Unverified signatureRuntime data (ChromaDB index, graph pickle, trials.jsonl) is gitignored and served to the Space from the candle-fire-data dataset repo at startup. There was no tooling to push it, so the dataset could silently drift from the ingested data — that's how trials.jsonl went missing and broke trial search on the Space. - scripts/upload_data.py: uploads chroma/, graph/als_graph.pkl, trials/trials.jsonl to the dataset repo (mirrors app._ensure_data). Supports --dry-run and --only. - config.HF_DATASET_REPO: single constant for the dataset repo id, now shared by both the uploader and app._ensure_data so upload/download targets can't drift. - README: "Deploy to Hugging Face" section documenting the two-repo model and the required order — upload data first, then git push hf main (the Space cold-starts with no persistent storage and re-pulls data on every rebuild). Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>de362e3 -
fix(landscape): instant CSS hover for the pipeline wheel (#24)
KevinIsInCoding +1: Claude Opus 4.8Unverified signatureCompound dots and sector wedges carried their label as a native SVG <title>, which browsers render as an OS tooltip with a built-in ~1s appearance delay — the "hover is laggy" feedback from physicians. Replace <title> with a pure-CSS hover: on .wheel-dot:hover the dot pops (scale 1.8, pivoting on its own center) and shows a dark name chip immediately; wedges show a count chip. No JS, since Gradio's {@html} won't execute injected scripts. Also lift all dots into a layer drawn after every wedge so a hovered dot and its label always sit on top, avoiding z-order coverage between adjacent groups. No layout change — same wheel geometry, sectors, rings, and dots. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>06fbefb -
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(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
-
feat(landscape): merge trials-by-phase wheel into Therapy Landscape tab (#21)
KevinIsInCoding +1: Claude Opus 4.8Unverified signatureFold the experimental "Trials by Phase" tab and the sunburst-based Therapy Landscape into a single "Therapy Landscape" tab whose hero is the pipeline wheel (mechanism sectors × phase rings): - Filters on one row (Recruitment status, Trial phase, Mechanism); every control redraws the wheel. Mechanism narrows it to a single sector. - Trial phase is a multi-select checkbox that drives the geometry: one ring per checked phase (inner -> outer). Phase 3 and Expanded Access (EAP) share the outer "Phase 3 / EAP" ring. - Grey dots mark compounds with no recruiting/active trial; "Others / Multiple" recolored yellow so grey stays reserved for inactive. - Mechanism -> Compound drill-down shows pipeline stage, evidence confidence, and a trials table (status badges + NCT links). - Remove the dead sunburst path. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>3e62ca2
-
chore(deploy): add _ensure_data() so main is Space-deployable (one-branch prep) (#20)
KevinIsInCoding +1: Claude Fable 5Unverified signatureAdds the HF-dataset download shim (chroma index + graph pickle) that previously only lived on hf-clean. It is a no-op locally (data present) and fetches runtime data on the Space (empty storage). With this, main serves both dev and the Space — the only reason a separate hf-clean branch existed. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>680f4eb -
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 -
fix(deploy): disable Gradio SSR + pin gradio==6.14.0 (HF Space stability) (#18)
KevinIsInCoding +1: Claude Fable 5Unverified signatureThe HF Space returned 503 (app healthy on :7860 but unreachable via HF's proxy) because of Gradio's experimental Node SSR layer. Disabling SSR and pinning gradio to match the README sdk_version restores stable serving (verified 12/12 200s). Mirrors the fix already live on the deploy lineage. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>65d917c -
fix(deploy): disable Gradio SSR + pin gradio==6.14.0 (HF Space stability) (#17)
KevinIsInCoding +1: Claude Fable 5Unverified signatureThe HF Space returned 503 (app healthy on :7860 but unreachable via HF's proxy) because of Gradio's experimental Node SSR layer. Disabling SSR and pinning gradio to match the README sdk_version restores stable serving (verified 12/12 200s). Mirrors the fix already live on the deploy lineage. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>4f4307d
-
fix(deploy): disable Gradio SSR + pin gradio==6.14.0 (HF Space stability) (#15)
KevinIsInCoding +1: Claude Fable 5Unverified signatureThe HF Space returned 503 (app healthy on :7860 but unreachable via HF's proxy) because of Gradio's experimental Node SSR layer. Disabling SSR and pinning gradio to match the README sdk_version restores stable serving (verified 12/12 200s). Mirrors the fix already live on the deploy lineage. Co-authored-by: Claude Fable 5 <noreply@anthropic.com>bc08d49
-
Merge pull request #13 from KevinIsInCoding/feat/batch-extractor-api
KevinIsInCodingUnverified signaturefeat(extraction): Batch API extractor (~50% cheaper)65ec34e -
feat(extraction): Batch API extractor (~50% cheaper), fix stale cost banner
KevinIsInCoding +1: Claude Fable 5Route entity extraction through the Message Batches API instead of synchronous calls. Offline pipeline, so the 50% batch discount applies with no quality change. Resumable via .batch_state.json (resumes an in-flight batch instead of resubmitting). Drop the no-op prompt-cache prefix (below Haiku 4.5's 4096-token cacheable minimum) and correct the cost banner to ~$0.015 per 10 papers. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>af01504 -
Merge pull request #12 from KevinIsInCoding/feat/automated-seed-entities
KevinIsInCodingUnverified signaturefeat: retrieval grounding, trial quality, and drug-name typo suggestions (into main)260458a -
Merge pull request #11 from KevinIsInCoding/feat/retrieval-grounding-trials-typo
KevinIsInCodingUnverified signaturefeat: retrieval grounding, trial quality, and drug-name typo suggestions748d988 -
Merge pull request #10 from KevinIsInCoding/feat/automated-seed-entities
KevinIsInCodingUnverified signaturefeat: automate ALS seed entities from trials and paper corpus89143dd -
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: automate ALS seed entities from trials and paper corpus
KevinIsInCoding +1: Claude Sonnet 4.6- Fix _add_trials() to create nodes for novel trial compounds with no paper evidence (type=Unknown, is_trial_derived=True) — directly fixes SPG302/Tazbentetol not appearing as a KG entity - Migrate ALS_SEED_ENTITIES from config.py to data/seeds/manual_seeds.json so domain experts can edit seeds without touching code - Add scripts/derive_seeds.py: auto-derives seeds from DRUG/BIOLOGICAL trial interventions and paper entities above SEED_PROMOTION_THRESHOLD - Add scripts/refresh.py: incremental pipeline orchestrator with state tracking (--since for papers, --upsert for trials, --dry-run support) - Add --since / append mode to ingest_papers.py for incremental ingestion - Add --upsert flag to ingest_trials.py for nct_id-based merge - Promote guess_entity_type() to normalizer.py as a public function Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>e53bbe5
-
Merge pull request #9 from KevinIsInCoding/docs/prfaq-compound-discovery-v2
KevinIsInCodingUnverified signaturedocs(prfaq): update compound discovery paragraph opening to 'Looking further ahead'aa84a9a -
docs(prfaq): update compound discovery paragraph opening
KevinIsInCoding +1: Claude Sonnet 4.6'Beyond physician support' → 'Looking further ahead' Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>6116e0a -
docs(prfaq): refine compound discovery paragraph opening
KevinIsInCoding +1: Claude Sonnet 4.6'Beyond individual patient care' → 'Beyond physician support' Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>5c2ec70 -
Merge pull request #8 from KevinIsInCoding/docs/prfaq-compound-discovery
KevinIsInCodingUnverified signaturedocs(prfaq): add compound discovery narrative to press releasedf6accb -
docs(prfaq): add compound discovery narrative to press release
KevinIsInCoding +1: Claude Sonnet 4.6Add forward-looking paragraph on Candle-Fire's role in accelerating compound discovery: white space identification in pathway coverage, signal layer for drug discovery teams, and KG-derived combination hypothesis generation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>9a5587b
-
Merge pull request #7 from KevinIsInCoding/feat/rrf-cross-encoder-retrieval
KevinIsInCodingUnverified signaturefeat: RRF merge + cross-encoder reranking for retrieval pipelined4b056d -
feat: RRF merge + cross-encoder reranking for retrieval pipeline
KevinIsInCoding +1: Claude Sonnet 4.6- Replace flat score-merge with Reciprocal Rank Fusion (k=10, top_n=20) combining semantic search (30) and entity search (30) candidates - Add cross-encoder reranking (ms-marco-MiniLM-L-6-v2, top_n=15) loaded once at agent startup for zero per-request overhead - Move citation boost to after cross-encoder so it amplifies relevance rather than corrupting RRF input scores - Raise entity query cap 8 → 12 in search_by_entities() - Add exact NCT ID match in trial lookup (_handle_search step 7) - Update config.py with RETRIEVAL_SEMANTIC_N, RETRIEVAL_ENTITY_N, RETRIEVAL_ENTITY_QUERY_CAP, RRF_K, RRF_TOP_N, CROSS_ENCODER_MODEL, CROSS_ENCODER_TOP_N Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>3bfe897
-
fix(app): handle missing ChromaDB collection gracefully on startup
KevinIsInCoding +1: Claude Sonnet 4.6Space crashes if pipeline data hasn't been uploaded. Wrap collection load in try/except; show a clear message in UI instead of crashing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>f726933 -
Merge pull request #6 from KevinIsInCoding/feat/stage4-kg-extraction
KevinIsInCodingUnverified signaturefeat(trials): LLM entity extraction + trial ranking fixcbc4a98 -
fix(app): use local SVG avatar to fix broken Gradio icon
KevinIsInCoding +1: Claude Sonnet 4.6Remote DiceBear URL in avatar_images fails on network errors and CORS. Replace with assets/flame.svg. Also document gradio run command in CLAUDE.md. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>5bd89ce -
fix(query): rank trials by status+relevance, raise cap from 5 to 10
KevinIsInCoding +1: Claude Sonnet 4.6Previously find_trials_for_entities() broke early on arbitrary set iteration order, silently dropping relevant trials (AMX0114 was position 7, never seen). - Collect all matching trial nodes before truncating - Score each trial by number of linked query entities - Sort: RECRUITING first, then ACTIVE_NOT_RECRUITING, then by score - Raise max_trials default 5 → 10 (agent call updated to match) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>eb40daa -
feat(trials): replace hardcoded entity regex with LLM extraction
KevinIsInCoding +1: Claude Sonnet 4.6- Remove _KNOWN_TARGETS regex list — cannot handle novel compounds like AMX0114 - Add extract_target_entities_llm(): batches 10 trials per Claude Haiku call, extracts biological target (gene/protein) not drug name, canonicalizes via extraction/normalizer. AMX0114 now correctly maps to TARDBP. - Add data/tools/extract_trial_targets.json tool schema - Add TRIAL_EXTRACTION_TOOLS export to tools.py - Widen default status filter from RECRUITING-only to also include NOT_YET_RECRUITING and ACTIVE_NOT_RECRUITING - ingest_trials.py: --status now accepts multiple values; creates Anthropic client and passes it to fetch_als_trials() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0569d05 -
perf(extraction): switch to Haiku + add per-paper retry for missed PMIDs
KevinIsInCoding +1: Claude Sonnet 4.6- EXTRACTION_MODEL: claude-sonnet-4-6 → claude-haiku-4-5-20251001 Expected: 60min → 10min, $1.50 → $0.12 for 500 papers - Refactor _extract_batch to use shared _call_claude() helper - Add retry loop: papers missed by Claude in a batch are retried individually before being recorded as empty (root cause: tool_choice=any only guarantees ≥1 call, not N calls) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>ac8f675 -
Merge pull request #5 from KevinIsInCoding/feat/stage4-kg-extraction
KevinIsInCodingUnverified signaturefeat: Stages 3–5 — full RAG pipeline, knowledge graph, Gradio UIb3e42fa
-
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 -
Merge pull request #4 from KevinIsInCoding/feat/stage4-kg-extraction
KevinIsInCodingUnverified signatureFeat/stage4 kg extraction23b4a54 -
Merge pull request #3 from KevinIsInCoding/fix/pmc-elink-id-mapping
KevinIsInCodingUnverified signaturefeat: Stage 2 ingestion fixes + Stage 3 RAG pipeline57a87cc -
feat(rag): switch embedding model to BioLORD-2023-C
KevinIsInCoding +1: Claude Sonnet 4.6Replace all-MiniLM-L6-v2 with FremyCompany/BioLORD-2023-C. BioLORD is anchored to UMLS/SNOMED CT/MeSH ontologies during training, so it natively resolves biomedical synonyms (TARDBP↔TDP-43, SOD1↔superoxide dismutase) without relying on exact string matches. This improves retrieval quality for physician queries that use clinical phrasing rather than gene symbol abbreviations — the primary trust signal for a physician-facing tool. ChromaDB collection rebuilt: 510 chunks at 768d (vs 384d for MiniLM). Smoke test: query 'superoxide dismutase mutation motor neuron' returns all SOD1-specific papers at top-3 with no abbreviation in the query. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>3c9dd57 -
feat: Stage 4 — entity extraction + knowledge graph + KG-expanded RAG
KevinIsInCoding +1: Claude Sonnet 4.6Entity extraction pipeline: - extraction/normalizer.py: HGNC alias table (TDP-43→TARDBP, BIIB067→tofersen, etc.), compound/mechanism alias maps, CanonicalRegistry for persistent canonical_ids.json - extraction/extractor.py: Claude Sonnet NER, 10 papers/batch, uses full_text over abstract when available, resumable via .progress.json, rate-limit retry - scripts/extract_entities.py: CLI with --max for test runs, --reset to restart Knowledge graph: - graph/builder.py: NetworkX DiGraph, seed ALS entities (genes/compounds/mechanisms), upsert nodes+edges with running-average confidence, trial→target links - graph/query.py: expand_query_entities() (BFS, confidence-filtered), find_trials_for_entities() (KG-linked trial lookup) - graph/serializer.py: pickle (fast) + JSON (human-readable) save/load - scripts/build_graph.py: CLI runner Agent upgrade (KG+RAG): - agents/research_agent.py: step 1 = KG expansion of query entities before RAG; "tofersen" now surfaces SOD1 papers even if not …42fb3af -
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 -
Merge pull request #2 from KevinIsInCoding/fix/pmc-elink-id-mapping
KevinIsInCodingUnverified signaturefix(pmc): fix batch elink ID mapping bug and add progress bar5c88f56 -
fix(pmc): add rich progress bar to get_pmcids (499 calls, ~3 min)
KevinIsInCoding +1: Claude Sonnet 4.6Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>83263a0 -
fix(pmc): use per-PMID elink instead of batch to preserve ID mapping
KevinIsInCoding +1: Claude Sonnet 4.6Batch elink merges all source IDs into one LinkSet — no way to map which PMC ID belongs to which PMID. Send one at a time instead. Also removes defunct NCBI ID Converter API (returning 404). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>45900d6 -
Merge pull request #1 from KevinIsInCoding/docs/prfaq-dateline
KevinIsInCodingUnverified signaturedocs: add launch date to PRFAQ press release dateline5fb461d -
docs: add launch date to PRFAQ press release dateline
KevinIsInCoding +1: Claude Sonnet 4.6Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>0438b7f -
docs: correct ALS genetics claim in PRFAQ, strengthen rationale
KevinIsInCoding +1: Claude Sonnet 4.690% of ALS is sporadic — no identified genetic cause. Only ~10% is familial. Updated the 'why ALS' answer to reflect the real reasons: active but under-resourced research frontier, fast and fatal disease course demanding urgency, and scientific complexity (mechanism-level, not gene-level) that makes a knowledge graph uniquely valuable. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>9dab3bd -
docs: add PRFAQ for candle-fire
KevinIsInCoding +1: Claude Sonnet 4.6Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>fc09788 -
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