Skip to main content

LLM2Graph

llm2graph is a toolkit for:

  1. building entity-centric knowledge graphs with LLM calls
  2. generating graph-derived evaluation queries
  3. 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

Release files for llm2graph 0.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm2graph 0.3.5
File Size Uploaded
llm2graph-0.3.5.tar.gz 22.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm2graph 0.3.5
File Interpreter ABI Platform
llm2graph-0.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 48.6 kB

Release files / llm2graph-0.3.5.tar.gz

Download URL llm2graph-0.3.5.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fc4e66f95fe9ca858d3f03a0c0af93a36be89d4d2f53765d7ead961ed9a5ebd6
BLAKE2b-256 checksum
How to use checksums
d76922f3a55b69a30ecb2496590647dc6c58b253baac2ca85b301875626d73eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release files / llm2graph-0.3.5-py3-none-any.whl

Download URL llm2graph-0.3.5-py3-none-any.whl
Size 26.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
08e84d3225cdbb86c2b8397d2184f47c08d94abb307e24baabc21995328a6088
BLAKE2b-256 checksum
How to use checksums
4e81c1fb73c048453bac1db2a6e2f7319851bba41e65c8c6a0eacf292a07af9d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release history Release notifications | RSS feed

This release

0.3.5 This release

2 release files

0.3.4

2 release files

0.3.2

2 release files

0.3.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page