Description
llmgraph is a command-line tool that builds a knowledge graph from a Wikipedia page, using a large language model to extract the relationships. You give it an entity type and the URL of a source article, such as the Wikipedia page for Artificial Intelligence, and it expands outward for a chosen number of levels. The graph is saved as GraphML and GEXF files for graph tools, and as an interactive HTML page drawn with pyvis. Knowledge is pulled from ChatGPT by default, using OpenAI's gpt-5-mini model, and any other model that LiteLLM supports can be used instead. Prompts can be customized for different entity types and relationships. A cache lets you grow an existing graph in steps without repeating earlier calls, and the tool reports the total tokens used so you can see the cost. The README says a default run costs about one cent. The tool installs with pip, preferably into a virtual environment, and the project page links to an example notebook that runs in Google Colab. The source is public on GitHub.…
Highlights
- Builds knowledge graphs from a Wikipedia page
- Exports GraphML, GEXF and interactive HTML
- Uses OpenAI by default and any LiteLLM model
- Customizable prompts for entity types
- Cache to grow a graph and token usage report
Ratings & Reviews
No ratings yet
Be the first to rate Llmgraph.
People also visit
Knowledge Graph Extractor
Turn any document or a whole zip into an interactive knowledge graph
Llmgraph FAQ
What does llmgraph do?
It creates a knowledge graph from a source entity's Wikipedia page by extracting world knowledge with an LLM.
Which models can I use?
OpenAI's gpt-5-mini by default, or any other model supported by LiteLLM.
What output formats are there?
GraphML and GEXF for graph software, and an HTML page drawn with pyvis that you can open in a browser.
How much does a run cost?
The README says a default run costs about one cent, and the tool reports the total tokens used.
How do I install it?
Install it with pip, ideally inside a Python virtual environment. An example notebook that runs in Google Colab is linked from the README.
What are the best Llmgraph alternatives?
Popular alternatives to Llmgraph include Knowledge Graph Extractor, Graphrag Visualizer and LangGraph-GUI. See all Llmgraph alternatives









