# OntoSmith builds governed knowledge graphs, with every fact judged against its evidence

> An ontology-driven pipeline builds a knowledge graph from your documents under a human-approved schema, then serves it for search, an HTTP API and AI agents.

- Project: OntoSmith by Dongbumlee
- List: Built for AI
- Kind: tool
- Works with: Jev, OpenRouter, MCP
- Noticed: 300 GitHub stars (when we found it)
- Added: 2026-11-26T05:09:43+00:00
- Web page: https://ai-news.ikangai.com/built/ontosmith/

OntoSmith turns a folder of documents into a knowledge graph stored in Neo4j. According to the author, the schema comes first: a person designs and approves the entity and relation types, and the build then runs under that fixed ontology. Models propose candidate facts. A decision model named Jev, working with deterministic gates, decides which facts are written. The README says every written triple carries its evidence span and provenance, and that a ledger records what each run spent. Users can query the finished graph with the search command, a sample HTTP API, or an MCP server that offers five read-only tools to AI callers.

Setup requires Python 3.11 or newer on Linux or WSL2, Neo4j 5.x, and one LLM connection. The default preset routes that connection through a single OpenRouter key. The first step needs no key. After pip install ontosmith, the profile and inspect commands run on the example corpus, and search runs against a shipped demo build of Pride and Prejudice. Optional extras add the MCP server and visualization. The project is at release 0.2.2 and is published under the MIT licence.

The author lists the limits. The published quality figures come from one measured configuration, not the shipped default. Machine judging has not yet had a human spot-check round on the flagship sample. Retrieval was measured on one 116-question set over long contracts and scored zero on short abstracts. The schema is deliberately flat, with no class hierarchy and no inference over the graph.

## In the author's words

> Powered by Jev — the decision (judge) model inside OntoSmith — and built on Neo4j, the graph store underneath, with native vector search.

## When to reach for it

A team building a document-to-graph system could borrow the split between a cheap model that proposes facts and a separate judge that decides which ones are written, with each fact tied to its source sentence. The approach fits cases where the graph has to be audited, not just populated quickly.

## See it

- [OntoSmith](https://github.com/Dongbumlee/ontosmith)
- [Website](https://dongbumlee.github.io/ontosmith/)

---

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it.
