#3939th of 94 in RAG, knowledge and search
ai-knowledge-graph
Turns documents into an interactive knowledge graph using an LLM
- Stars
- 3.1k
- License
- Apache-2.0
- Last commit
- Sep 2026
- Last release
- Sep 2026
- Language
- Python
2,177 on 26 Apr 20263,143 on 22 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Python CLI that splits text, PDF or DOCX input into chunks, has an OpenAI-compatible LLM extract typed subject-predicate-object triples, standardizes entity names, and adds capped inferred edges. Output is a self-contained HTML explorer plus JSON, CSV, GraphML and Cypher exports. Optional graph-chat answers questions with cited facts, and graph-serve runs a local web UI on port 8008.
Who it is for: Engineers building explorable knowledge graphs from documents with an LLM
Strengths
- Every extracted edge keeps its source sentence; inferred edges record their method and are capped
- Exports to JSON, CSV, GraphML (Gephi, yEd, Cytoscape) and a Neo4j Cypher script
- Works with any OpenAI-compatible endpoint, including Ollama, LM Studio, vLLM, OpenAI and Gemini
- On-disk LLM response cache makes re-running the same input free
Weaknesses
- graph-serve has no authentication; it binds to 127.0.0.1 by default
- Graph quality depends on the chosen LLM; reasoning models need a large max_tokens
- Needs a reachable LLM endpoint to build new graphs; only samples browse without one
- No Docker or compose files; install is via uv or pip
What it needs
- GPU optional
- Needs OpenAI-compatible LLM endpoint, Python 3.11+, networkx, jinja2, requests, FastAPI and uvicorn (web extra)
- Models: Ollama, LM Studio, vLLM, OpenAI, Gemini
- port 8008
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Known problems
Reported, then fixed by a linked change
- 'utf-8' codec can't decode byte 0x80. ↗ (opens in a new tab)0 reactions · closed 12 Sept 2026Fixed by Release 0.7: robust extraction, traceable inference, new interactive explorer ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in RAG, knowledge and search
See all 94| Rank | Project | Score |
|---|---|---|
| #37 | knowhereDocument parsing and retrieval backend that builds navigable memory for agents | 68 out of 100 |
| #38 | flashragPython toolkit for reproducing and building RAG pipelines on benchmarks | 68 out of 100 |
| #40 | edgequakeRust implementation of LightRAG that builds a knowledge graph from documents | 67 out of 100 |
| #41 | smart-second-brainObsidian plugin adding hybrid search, a topic graph and an AI agent | 67 out of 100 |
| #42 | llm-for-zoteroZotero plugin for chatting with papers and running an agent over your library | 66 out of 100 |