Knowledge graph generator from unstructured text
Top 35.7% on sourcepulse
This project generates interactive knowledge graphs from unstructured text using LLMs. It targets researchers, analysts, and developers needing to extract and visualize complex relationships from documents. The system automates knowledge extraction, entity standardization, and relationship inference, producing navigable graph visualizations.
How It Works
The system processes text in overlapping chunks to manage LLM context windows. An LLM extracts Subject-Predicate-Object (SPO) triplets from each chunk. Optionally, it standardizes entity names across the graph for consistency and infers new relationships between disconnected components using LLM analysis and lexical similarity. The final knowledge graph is visualized interactively using PyVis, with nodes sized by importance and colored by community.
Quick Start & Requirements
pip install -r requirements.txt
or uv sync
.python generate-graph.py --input your_text_file.txt --output knowledge_graph.html
.config.toml
.Highlighted Details
Maintenance & Community
The project appears to be maintained by a single author, robert-mcdermott. There are no explicit mentions of community channels or roadmaps in the README.
Licensing & Compatibility
The README does not explicitly state a license. The presence of pyproject.toml
suggests standard Python packaging, but license terms for commercial use or closed-source linking are not specified.
Limitations & Caveats
The project's reliance on LLMs for extraction and inference means performance and accuracy are dependent on the chosen LLM and prompt quality. The README does not detail specific LLM performance benchmarks or potential failure modes. Community support and long-term maintenance are not clearly indicated.
1 month ago
Inactive