{"adoption": {"forks": 199, "observed_at": "2026-08-28T04:04:09.919757+00:00", "stars": 1260}, "canonical_url": "https://ross.abutalabs.com/products/kg-gen", "card": {"archived": false, "artifact_type": "library", "description": "[NeurIPS '25] Knowledge Graph Generation from Any Text", "domain": ["large-language-models", "machine-learning"], "enriched": true, "function": ["rag", "nlp", "llm-inference", "data-generation"], "health_score": 80, "homepage": "https://kg-gen.org", "language": "Python", "license": null, "license_family": "other", "maturity": "active", "member_repos": ["stair-lab/kg-gen"], "name": "stair-lab/kg-gen", "platform": ["python"], "pushed_at": "2026-03-24T21:10:16+00:00", "repo": "stair-lab/kg-gen", "stars": 1260, "tags": ["knowledge-graph", "graph-extraction", "litellm", "dspy", "structured-output", "benchmark", "mcp", "natural-language-processing", "retrieval-augmented-generation"], "topics": ["benchmark", "knowledge-graph", "llm"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/kg-gen", "repo": "stair-lab/kg-gen", "role": "main", "score": 63}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T05:04:25.221982+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "39e13d09898997c3ea407d9d34b5e122b27d57f8a987153b3c8a4719f5beb36b", "fetched_at": "2026-08-28T04:04:09.919757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/stair-lab/kg-gen"}, {"content_hash": "150c04f94a21a6fec149e4472e1c3a9d3530980fa50d755c0d01cc672706b06e", "fetched_at": "2026-08-29T12:17:12.951858+00:00", "kind": "homepage", "missing": false, "url": "https://kg-gen.org"}, {"content_hash": "f4c58a89b2c113910bb31df0f093f38c8999f698a9ed713800798cd4c17e6571", "fetched_at": "2026-08-29T12:17:12.961382+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/kg-gen/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T05:04:25.221982+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "39e13d09898997c3ea407d9d34b5e122b27d57f8a987153b3c8a4719f5beb36b", "fetched_at": "2026-08-28T04:04:09.919757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/stair-lab/kg-gen"}, {"content_hash": "150c04f94a21a6fec149e4472e1c3a9d3530980fa50d755c0d01cc672706b06e", "fetched_at": "2026-08-29T12:17:12.951858+00:00", "kind": "homepage", "missing": false, "url": "https://kg-gen.org"}, {"content_hash": "f4c58a89b2c113910bb31df0f093f38c8999f698a9ed713800798cd4c17e6571", "fetched_at": "2026-08-29T12:17:12.961382+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/kg-gen/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T05:04:25.221982+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "39e13d09898997c3ea407d9d34b5e122b27d57f8a987153b3c8a4719f5beb36b", "fetched_at": "2026-08-28T04:04:09.919757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/stair-lab/kg-gen"}, {"content_hash": "150c04f94a21a6fec149e4472e1c3a9d3530980fa50d755c0d01cc672706b06e", "fetched_at": "2026-08-29T12:17:12.951858+00:00", "kind": "homepage", "missing": false, "url": "https://kg-gen.org"}, {"content_hash": "f4c58a89b2c113910bb31df0f093f38c8999f698a9ed713800798cd4c17e6571", "fetched_at": "2026-08-29T12:17:12.961382+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/kg-gen/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T05:04:25.221982+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "39e13d09898997c3ea407d9d34b5e122b27d57f8a987153b3c8a4719f5beb36b", "fetched_at": "2026-08-28T04:04:09.919757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/stair-lab/kg-gen"}, {"content_hash": "150c04f94a21a6fec149e4472e1c3a9d3530980fa50d755c0d01cc672706b06e", "fetched_at": "2026-08-29T12:17:12.951858+00:00", "kind": "homepage", "missing": false, "url": "https://kg-gen.org"}, {"content_hash": "f4c58a89b2c113910bb31df0f093f38c8999f698a9ed713800798cd4c17e6571", "fetched_at": "2026-08-29T12:17:12.961382+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/kg-gen/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T05:04:25.221982+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "39e13d09898997c3ea407d9d34b5e122b27d57f8a987153b3c8a4719f5beb36b", "fetched_at": "2026-08-28T04:04:09.919757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/stair-lab/kg-gen"}, {"content_hash": "150c04f94a21a6fec149e4472e1c3a9d3530980fa50d755c0d01cc672706b06e", "fetched_at": "2026-08-29T12:17:12.951858+00:00", "kind": "homepage", "missing": false, "url": "https://kg-gen.org"}, {"content_hash": "f4c58a89b2c113910bb31df0f093f38c8999f698a9ed713800798cd4c17e6571", "fetched_at": "2026-08-29T12:17:12.961382+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/kg-gen/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T05:04:25.221982+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "39e13d09898997c3ea407d9d34b5e122b27d57f8a987153b3c8a4719f5beb36b", "fetched_at": "2026-08-28T04:04:09.919757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/stair-lab/kg-gen"}, {"content_hash": "150c04f94a21a6fec149e4472e1c3a9d3530980fa50d755c0d01cc672706b06e", "fetched_at": "2026-08-29T12:17:12.951858+00:00", "kind": "homepage", "missing": false, "url": "https://kg-gen.org"}, {"content_hash": "f4c58a89b2c113910bb31df0f093f38c8999f698a9ed713800798cd4c17e6571", "fetched_at": "2026-08-29T12:17:12.961382+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/kg-gen/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:09.919757+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T05:04:25.221982+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "39e13d09898997c3ea407d9d34b5e122b27d57f8a987153b3c8a4719f5beb36b", "fetched_at": "2026-08-28T04:04:09.919757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/stair-lab/kg-gen"}, {"content_hash": "150c04f94a21a6fec149e4472e1c3a9d3530980fa50d755c0d01cc672706b06e", "fetched_at": "2026-08-29T12:17:12.951858+00:00", "kind": "homepage", "missing": false, "url": "https://kg-gen.org"}, {"content_hash": "f4c58a89b2c113910bb31df0f093f38c8999f698a9ed713800798cd4c17e6571", "fetched_at": "2026-08-29T12:17:12.961382+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/kg-gen/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T05:04:25.221982+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "39e13d09898997c3ea407d9d34b5e122b27d57f8a987153b3c8a4719f5beb36b", "fetched_at": "2026-08-28T04:04:09.919757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/stair-lab/kg-gen"}, {"content_hash": "150c04f94a21a6fec149e4472e1c3a9d3530980fa50d755c0d01cc672706b06e", "fetched_at": "2026-08-29T12:17:12.951858+00:00", "kind": "homepage", "missing": false, "url": "https://kg-gen.org"}, {"content_hash": "f4c58a89b2c113910bb31df0f093f38c8999f698a9ed713800798cd4c17e6571", "fetched_at": "2026-08-29T12:17:12.961382+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/kg-gen/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T05:04:25.221982+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "39e13d09898997c3ea407d9d34b5e122b27d57f8a987153b3c8a4719f5beb36b", "fetched_at": "2026-08-28T04:04:09.919757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/stair-lab/kg-gen"}, {"content_hash": "150c04f94a21a6fec149e4472e1c3a9d3530980fa50d755c0d01cc672706b06e", "fetched_at": "2026-08-29T12:17:12.951858+00:00", "kind": "homepage", "missing": false, "url": "https://kg-gen.org"}, {"content_hash": "f4c58a89b2c113910bb31df0f093f38c8999f698a9ed713800798cd4c17e6571", "fetched_at": "2026-08-29T12:17:12.961382+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/kg-gen/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T05:04:25.221982+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "39e13d09898997c3ea407d9d34b5e122b27d57f8a987153b3c8a4719f5beb36b", "fetched_at": "2026-08-28T04:04:09.919757+00:00", "kind": "readme", "missing": false, "url": "https://github.com/stair-lab/kg-gen"}, {"content_hash": "150c04f94a21a6fec149e4472e1c3a9d3530980fa50d755c0d01cc672706b06e", "fetched_at": "2026-08-29T12:17:12.951858+00:00", "kind": "homepage", "missing": false, "url": "https://kg-gen.org"}, {"content_hash": "f4c58a89b2c113910bb31df0f093f38c8999f698a9ed713800798cd4c17e6571", "fetched_at": "2026-08-29T12:17:12.961382+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/kg-gen/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 73, "longevity": 48, "rhythm": 58}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": ["no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 672, "days_push": 162, "days_rel": 283, "gap_med": 21, "n_releases_24m": 4}, "score": 63, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}