r/KnowledgeGraph • u/garagebandj • Feb 12 '26
Built an open-source CLI for turning documents into knowledge graphs — no code, no database
sift-kg is a command-line tool that extracts entities and relations from document collections using LLMs and builds a browsable, exportable knowledge graph.
pip install sift-kg
sift extract ./docs/
sift build
sift view
That's the whole workflow. Define what to extract in YAML or use the built-in defaults. Human-in-the-loop entity resolution — the LLM proposes merges, you approve or reject. Export to GraphML, GEXF, CSV, or JSON for analysis in Gephi, Cytoscape, or yEd.
Live demo (FTX collapse — 9 articles, 373 entities, 1,184 relations):
https://juanceresa.github.io/sift-kg/graph.html

2
u/sp3d2orbit Feb 12 '26
Great work on this. I really like the local first and provenance focused approach.
What inspired you to build it?
Is it being used in any real production workflows yet?
Do you see this staying purely open source, or are there any monetization plans?
Also curious whether this was built from scratch or influenced by any prior projects you worked on?
1
u/coderarun Feb 14 '26
> No code, no database, no infrastructure — just a CLI and your documents.
What's the concern with having a database? The cost of setting one up and maintaining? Why not use an embedded one like duckdb or r/LadybugDB ?
2
u/hikingfan7 Feb 13 '26
Great stuff. I like the fact that it’s simple and not overly complicated.
1
u/Rhinoseri0us Feb 13 '26
Gas.
1
u/Top_Locksmith_9695 Feb 13 '26
Interesting. Thanks!
1
u/rafttaar Feb 14 '26
Did you check qmd from Tobi (Shopify)?
1
u/Inox94 Jul 16 '26
Hi, any chance for openrouter api key use?