Paper-aligned LLM-only graph construction, benchmark runners, and public-facing evaluation tools for LLM unlearning experiments.
Project description
LLM2Graph
llm2graph is a toolkit for:
- building entity-centric knowledge graphs with LLM calls
- generating graph-derived evaluation queries
- running benchmark-style evaluation workflows for unlearning and retention experiments
This 0.3.5 release includes local fixes made after the 0.3.4 wheel in this environment:
- parallel question answering during graph construction
- parallel triple extraction during graph construction
- configurable question-generation prompt count instead of a fixed hard-coded ten-question prompt
- GPT-5-family OpenAI requests omit explicit
temperature - default timeout increased to 180 seconds across the package
- maintainer-facing documentation added locally in this workspace
Install
pip install llm2graph
Optional extras:
pip install "llm2graph[gemini]"
pip install "llm2graph[hf-local]"
Quickstart
llm2graph entity \
--seed "Stephen King" \
--provider openai \
--model gpt-5-mini \
--max-depth 0 \
--elicitation-question-count 3 \
--out graph.json
llm2graph gen-queries \
--graph graph.json \
--target "Stephen King" \
--hops 2 \
--out queries.json
llm2graph eval \
--queries queries.json \
--pre-provider openai \
--pre-model gpt-5-mini \
--post-provider openai \
--post-model gpt-5-mini \
--out eval_report.json
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
llm2graph-0.3.5.tar.gz
(22.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
llm2graph-0.3.5-py3-none-any.whl
(26.2 kB
view details)
File details
Details for the file llm2graph-0.3.5.tar.gz.
File metadata
- Download URL: llm2graph-0.3.5.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc4e66f95fe9ca858d3f03a0c0af93a36be89d4d2f53765d7ead961ed9a5ebd6
|
|
| MD5 |
dd72913da59182b737bc7370732517dc
|
|
| BLAKE2b-256 |
d76922f3a55b69a30ecb2496590647dc6c58b253baac2ca85b301875626d73eb
|
File details
Details for the file llm2graph-0.3.5-py3-none-any.whl.
File metadata
- Download URL: llm2graph-0.3.5-py3-none-any.whl
- Upload date:
- Size: 26.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08e84d3225cdbb86c2b8397d2184f47c08d94abb307e24baabc21995328a6088
|
|
| MD5 |
160d68942d10234a45eeb04b7786ce20
|
|
| BLAKE2b-256 |
4e81c1fb73c048453bac1db2a6e2f7319851bba41e65c8c6a0eacf292a07af9d
|