--- layout: default ---
myKG automatically generates a confidence-scored knowledge graph from a set of mixed documents — Markdown, plain text, PDF, Word, PowerPoint, Excel, HTML, images, and websites — grounded in an induced RDFS/OWL ontology.
The LLM reads your document corpus and proposes concept types and relationship properties, producing a global RDFS/OWL schema you can review before extraction begins.
Individuals and relationships are extracted per file against that schema. Every attribute, node, and edge carries a confidence score, so you always know how much to trust it.
The graph is always grounded in a formal, inspectable RDFS/OWL schema before any entity is extracted — not a black box.
Lock in classes and properties from an existing formal ontology and let the LLM extend it, or freeze it entirely.
Point Claude Code, Cursor, or Copilot at the generated Obsidian vault (or the MCP server) and get answers grounded in your own documents.
Every stage persists intermediate state. Append new documents later without re-processing everything.
Every extracted attribute, node, and edge carries a 0.0–1.0 confidence score, so quality is always inspectable.
Works with Anthropic, OpenAI, Ollama, OpenRouter, or the claude CLI — swap backends without changing your pipeline.
claude CLI
pip install mykg
mykg init
mykg extract-graph my_notes/
Open mykg_sessions/<timestamp>/output/knowledge_graph.html in your browser to explore the result.
See the README for the full command reference, configuration options, and pipeline internals.
Read walkthroughs and case studies on the blog, or dig into the source on GitHub.