Knowledge Graph Framework -- Documentation¶
This is a framework for building knowledge graphs over complex professional or academic literature: medical papers, legal documents, technical specifications. Every assertion in the graph traces back to a source document and location. Provenance is not an afterthought -- it is load-bearing.
For the conceptual foundation, see Manifesto, Overview and Architecture. For book-length treatments of the full pipeline, see Graphwright Publications.
Live tools¶
- Medical literature chat
- OpenAPI spec
- Graph visualization -- currently focused on medical literature
- GraphQL GUI
Concepts and Architecture¶
- Overview -- why knowledge graphs, core concepts, two-pass ingestion model
- Architecture -- component breakdown, module structure, immutability design
Identity and Entity Resolution¶
- Canonical IDs -- entity lifecycle, authority lookup, synonym caching
- Deduplication -- merging and flagging near-duplicate entities
Trust and Provenance¶
- Provenance -- source attribution, confidence scores, audit trail
- Conflicting Claims -- representing disagreements, not silently resolving them
Ingestion Pipeline¶
- Pipeline -- stages and interfaces (parser → extractor → resolver → embedder)
- Chunking -- document segmentation strategies
- Error Handling -- partial extraction, retries, fallback behavior
LLM Integration¶
- MCP Server -- tools exposed to LLMs via Model Context Protocol
- MCP Troubleshooting -- connection and tool call issues
- Querying with LLMs -- how LLMs navigate and query the graph
- Embeddings -- semantic search strategy, storage and retrieval
- Extraction Prompts -- prompt design for entity and relationship extraction
Schema Design¶
- Schema Design Guide -- defining DomainSchema, entity and relationship subclasses
- Adapting to Your Domain -- step-by-step: define schema, write prompts, configure pipeline, validate
Storage, Export, and Serving¶
- Storage and Export -- bundle format (manifest.json + JSONL), export, query interfaces
- Deployment and Operations -- SQLite vs PostgreSQL, Docker, Chainlit, scaling
Examples¶
- Medical Literature (medlit) -- reference biomedical implementation using JATS XML and UMLS
- Sherlock Holmes -- simplified literary example, no external authorities