stair-lab/kg-gen
[NeurIPS '25] Knowledge Graph Generation from Any Text observed · 2026-08-28
Health v2 · maintenance only
63/100
- Activity 73
- Release rhythm 58
- Longevity 48
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 21
- age_days: 672
- days_rel: 283
- days_push: 162
- n_releases_24m: 4
Adoption not part of the score
1260 stars · 199 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
kg-gen is a Python library that extracts knowledge graphs from arbitrary plain text or conversation messages using LLMs, with model routing via LiteLLM and structured output via DSPy. It also ships the MINE benchmark and an MCP server for knowledge graph generation.
Use cases
- extract a knowledge graph from plain text with an llm
- build a graph to improve rag retrieval
- generate synthetic graph data for model training
- structure unstructured text into entities and relations
- analyze relationships between concepts in documents
- run a knowledge graph extraction benchmark
When to choose
- you want a ready-made Python API to turn text or chat messages into knowledge graphs
- you need provider flexibility across OpenAI, Anthropic, Gemini, Ollama, and other local or API models
- you want graph-structured data to augment RAG pipelines or training datasets
When to avoid
- you need deterministic, non-LLM graph extraction with no API or model costs
- you need a full graph database or graph visualization product rather than an extraction library
- your project requires a permissive license - the repo currently lists no license
Facets
library · maturity active
rag nlp llm-inference data-generation large-language-models machine-learning python knowledge-graph graph-extraction litellm dspy structured-output benchmark mcp natural-language-processing retrieval-augmented-generation
3 sources
- readme: https://github.com/stair-lab/kg-gen · fetched 2026-08-28 · 39e13d098989
- homepage: https://kg-gen.org · fetched 2026-08-29 · 150c04f94a21
- registry_pypi: https://pypi.org/pypi/kg-gen/json · fetched 2026-08-29 · f4c58a89b2c1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| stair-lab/kg-gen | main | 63 |
For agents
markdown · JSON · MCP: product_card(name="stair-lab/kg-gen")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem