You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add knowledge graph impact evidence across architecture and summary docs
Document that Terraphim uses symbolic graph reasoning (IS-A hierarchies,
relationship traversal, thesaurus grounding) with measurable 2.00x precision
improvement. Add T790M error prevention case study, precision benchmarks,
and KG grounding gate metrics. Clarify: no vector embeddings are used.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The KG provides **2.00x overall precision improvement** vs raw LLM (source: `PIPELINE_RUN_REPORT.md`):
45
+
- Entity extraction: 18.3% -> 37.4% (2.04x)
46
+
- Treatment relevance: 13.3% -> 25.0% (1.88x)
47
+
- T790M case: KG prevented wrong drug (Crizotinib) and returned correct treatment (Osimertinib per AURA3 trial)
48
+
49
+
The `get_treatments()` method in `graph.rs` follows Treats edges AND inherits treatments from IS-A ancestors, enabling evidence-based recommendations that raw LLM inference misses.
50
+
42
51
## Files
43
52
-`src/graph.rs` - Core KnowledgeGraph with petgraph
44
53
-`src/isa_hierarchy.rs` - Fast hierarchical queries
The knowledge graph prevented a clinically dangerous drug recommendation by grounding the T790M mutation entity against SNOMED CT and retrieving the evidence-based treatment (Osimertinib) from PrimeKG relationship edges rather than relying on the LLM's parametric knowledge alone.
0 commit comments