Ross ROSS = Recommend OSS · open-source software intelligence for agents

stair-lab/kg-gen

[NeurIPS '25] Knowledge Graph Generation from Any Text observed · 2026-08-28

github.com/stair-lab/kg-gen · homepage · Python 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

Full methodology

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

Member repositories

RepositoryRoleHealth v2
stair-lab/kg-genmain63

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