[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-109340":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":14,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":22,"hasPages":24,"topics":25,"createdAt":10,"pushedAt":33,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":14,"lastSyncTime":37,"discoverSource":38},109340,"ontosmith","Dongbumlee\u002Fontosmith","Dongbumlee","A decision-model-based ontology & knowledge-graph builder — builds governed knowledge graphs from your documents, every fact gated and traceable to its evidence.","https:\u002F\u002Fdongbumlee.github.io\u002Fontosmith\u002F",null,"Python",299,31,2,1,0,14,227,6,65.52,"MIT License",false,"main",true,[26,27,28,29,30,31,32],"graphrag","information-extraction","knowledge-graph","llm","neo4j","ontology","rag","2026-11-20 19:32:48","2026-11-22 10:26:06","# OntoSmith\n\n![OntoSmith](assets\u002Fbrand\u002Fbanner.png)\n\n[![PyPI](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fontosmith)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fontosmith\u002F)\n[![Python versions](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fpyversions\u002Fontosmith)](https:\u002F\u002Fpypi.org\u002Fproject\u002Fontosmith\u002F)\n[![CI](https:\u002F\u002Fgithub.com\u002FDongbumlee\u002Fontosmith\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002FDongbumlee\u002Fontosmith\u002Factions\u002Fworkflows\u002Fci.yml)\n\n**An ontology-driven knowledge-graph builder: design the\nontology, build the graph under it, and serve it — search,\nAPI, and app — from one pipeline.**\n\n*Powered by Jev — the decision (judge) model inside\nOntoSmith — and built on Neo4j, the graph store\nunderneath, with native vector search.*\n\nThe stack has two named pillars: **Jev** judges what is\ntrue enough to write, and **Neo4j** stores the graph —\nnative graph traversal, a vector index, and full-text\nsearch in one store. A build requires both.\n\nMost knowledge-graph tooling starts from whatever a model\nhappens to extract. OntoSmith starts from the ontology:\nyou design the schema first — entity and relation types,\ndefinitions, boundary examples — a human approves it, and\nthe graph is then built *under* that schema by a pipeline\nthat separates proposing from judging. Models propose\ncandidates; a fitted pair call converts enumerated pairs\ninto candidate triples, and deterministic gates and the\nJev decision model decide what is true enough to write.\nEvery written triple\ncarries its evidence span and provenance, and every build\nprices itself before it spends.\n\n![OntoSmith build loop: models propose, Jev judges, only judged facts are written](docs\u002Fassets\u002Fbuild-loop.webp)\n\n*The method in one loop: cheap models propose candidate\nfacts, the Jev decision model judges each against its\nevidence, and only judged facts are written, every one\ntraceable to its span. (Proposed and rejected candidates\nare shown schematically; the written graph is the\nflagship build's.)*\n\n## What the schema is — and is not\n\nThe ontology here is a **flat extraction contract**: a\nclosed inventory of entity and relation types, each with\na definition and boundary examples — drafted from your\ncorpus or imported, approved by a human, and enforced\ntype by type by the decision model. An entity type may\nalso declare value attributes (a date, an amount, a\nterm): typed values a document states about an entity,\nnormalized by deterministic code and judged like every\nother fact before they are written as node properties. It is deliberately\n*not* a formal ontology: there is no class hierarchy,\nno inheritance, and no logical axioms — OntoSmith is\nnot an OWL ontology editor, and it runs no inference\nor reasoning over the graph. The flatness is the point:\njudged per-type decisions are what make a build's\nquality measurable, and hierarchy would blur exactly\nthose decisions. The job this shape is production-shaped\nfor is narrower and concrete: turn a document corpus\ninto a governed, evidence-carrying graph that search\nand agents can answer from.\n\n![A built knowledge graph: the Bellicum–Miltenyi neighborhood of one CUAD supply agreement](docs\u002Fassets\u002Fbuilt-graph.png)\n\n*A real build, not a mock-up: the two parties' neighborhood\nin one CUAD supply agreement (Bellicum Pharmaceuticals ×\nMiltenyi Biotec), built by the Legal Contract pack — 42\nentities, 77 Tier-1 triples, every one carrying its evidence\nspan and provenance. Corpus: CUAD (The Atticus Project),\nCC BY 4.0.*\n\n![The batch pipeline: eight stages with the ROUTE tier branches](docs\u002Fassets\u002Fpipeline-flow.png)\n\n*The batch stage contract and its tier branches, as coded\nin `pipeline\u002F` — rendered by `harness\u002Frender_charts.py`.*\n\n## Try it — step 1 needs no API key\n\n**Requirements**\n\n- **OS** — Linux (developed and tested on Linux).\n  Windows: run under **WSL2** — native Windows is not\n  a tested platform.\n- **Python** ≥ 3.11.\n- **An LLM connection** — only for step 3 and live\n  builds; steps 1–2 run keyless.\n- **Neo4j** (5.x, Community Edition is enough) — the\n  graph store a live build writes into; only step 3\n  needs it running. Setup in\n  [Connections](docs\u002Fconnections.md).\n\n**Step 1 · Look around (no key, two minutes).**\nInstall from PyPI:\n\n```console\n$ pip install ontosmith\n$ ontosmith profile examples\u002Fcorpus --family demo\nCorpus profile\n  family          demo\n  status          COMPLETE\n  documents       4\n  claims          7\n  decision points 0\n  profile hash    sha256:28ede2ab1b3e4fd2\n  spend           $0.0000\n  written         profiles\u002Fdemo (profile.json, setup_config.json, profile.md)\n\n$ ontosmith inspect examples\u002Falder-finch\u002Ftriples.jsonl\nTriple  (1 of 7 in examples\u002Falder-finch\u002Ftriples.jsonl)\n  subject   Alder & Finch\n  relation  founded by\n  object    Mara Alder\nEvidence\n  [quote] Alder & Finch is a ceramics studio founded in 2011 by Mara Alder and Tomas Finch.\nProvenance\n  doc_id               alder-finch-history\n  tier                 1\n  p_true               0.98\n```\n\n`p_true` is the judge's ranking score for the triple —\na score to sort and threshold by, not a calibrated\nprobability.\n\nThe profiler is deterministic — the same corpus yields\nthe same profile hash on every run — and the example's\nbuild output ships as a recorded artefact, so inspection\nruns offline too. Profiling, inspecting, validating, and\nthe verification math all run keyless; the full list is\nin [Connections](docs\u002Fconnections.md).\n\nAsk the shipped demo build a question — the full\ntext of *Pride and Prejudice*, built by this pipeline\nand shipped as frozen records; retrieval over those\nrecords, still no key:\n\n```console\n$ ontosmith search \"What is Mr. Darcy's income?\"\n```\n\nAnd `profile` runs the same way on **your own** folder:\npoint it at any corpus directory to see whether it fits\nbefore any build.\n\n**Step 2 · Check the evidence (no key).** The flagship\nbuild's corrected scoring replays from its shipped\nadjudication appendix — no model calls, and the script\nexits non-zero if any figure drifts:\n`python examples\u002Fdemo\u002Freplay_scores.py`\n([appendix track](docs\u002Fhands-on-appendix.md)). Every\nheadline figure maps to the command that recomputes it\nin [reproduce\u002F](reproduce\u002F).\n\n**Step 3 · Build with your own connection.** The\nprerequisites, gathered in one place:\n\n1. **Declare the binding** — `ontosmith configure`\n   walks the seats from the preset's values, probes\n   the result with zero spend, and writes the bindings\n   file. For the reference preset, accept the defaults\n   and set `OPENROUTER_API_KEY` — the same key reaches\n   every seat, the judge included\n   ([Connections](docs\u002Fconnections.md) explains the\n   route and how to bind your own provider instead).\n   One LLM connection is the only *model* connection\n   a build needs; [Connections](docs\u002Fconnections.md)\n   covers the seats it plugs into and the recommended\n   models.\n2. **Nothing else to install** — candidates are\n   proposed by the proposer seat (model calls);\n   there is no local NLP stack. A pack may declare\n   further proposer passes: extra framings, and a\n   final residual pass that is shown what the\n   earlier passes extracted and asked only for\n   facts not yet covered — the shipped open-domain\n   pack declares the residual pass, so its builds\n   propose in two passes. (A GLiNER+spaCy\n   pipeline candidate source and its `ontosmith[nlp]`\n   extra existed until 2026-10-29 and were retired —\n   the LLM proposer is the only candidate source.)\n3. **Neo4j running** — the build needs it: it is the\n   graph store WRITE, INDEX, and VERIFY work in.\n   Install it, set its password, and export\n   `NEO4J_PASSWORD` (a local default install needs\n   nothing else; the connection variables and setup\n   are in [Connections](docs\u002Fconnections.md)). The run\n   probes the store before the first stage and refuses\n   by name if it is not serving, so a missing store\n   costs no spend.\n\nCost, with its scope: every build is priced from its\nown counted projection before it runs, and the ledger\nrecords what it spent; a USD stop-line applies only\nwhen you set one for the run (Cost guardrails, below).\nNo figure quoted in a\ndocument prices your corpus — the projection under\nyour configuration does.\n\nWith a key set and Neo4j running, the one-command\ndoor builds a graph from a single text file and\nserves it:\n\n```console\n$ ontosmith quickstart your-file.txt\n```\n\nIt refuses up front — before creating anything —\nwhen the key is missing or no Neo4j answers, naming\nthe remedy each time; the build it makes is a real\nbatch, resumable like any other. For the full walk —\nprofile, create, capped run, and the serve \u002F search \u002F\ninspect finish line — the [hands-on guide](docs\u002Fhands-on.md)\n(Track 1) runs a live build on your own documents end\nto end. A run whose key is missing refuses before any\nstage starts, with the error naming the seat and the\nvariable to set.\n\nOptional surfaces install as extras: `pip install .[viz]`.\n(The `.[neo4j]` extra installs the official driver the\nexport utilities use; the build itself talks to Neo4j\nover HTTP and needs the server, not the extra.)\n\n## What's in the box\n\n| Piece | What it is |\n|---|---|\n| Batch pipeline | The staged build: ingest → NER\u002Froster → candidates → gates → route → write → index → verify, under a versioned pack, with a ledger that records what each run spent |\n| Corpus profiler | `ontosmith profile` — a deterministic census of your corpus and the decision points a human should settle first |\n| Ontology builder | `ontosmith ontology` — drafts a domain schema from a profile, or imports an external ontology under a recorded scoping; deterministic validation; emits a hash-pinned pack only after explicit human approval |\n| Four domain packs + Core baseline | Domain ontologies as data — schema, definitions, boundary examples, thresholds, measured conformance record (below) |\n| Verification cores | `ontosmith verify` — raw *and* audit-corrected scoring, ceiling-adjusted recall, failure anatomy, counted cost projections |\n| Evidence appendix | The flagship record's adjudication samples and verdicts, shipped for replay (`benchmarks\u002Fappendix\u002F`) |\n| Serving | Sentence-level evidence retrieval via `ontosmith search` (direct sentence index + graph pool + beam traversal channel, optional local rerank) and hybrid retrieval (vector + lexical + graph) via a sample API — over the build's Neo4j store; the shipped demo's recorded artifacts also serve from files (lexical + graph arms only — no vector arm) |\n| Demo + guide | A smoke corpus, a fetchable demo subset, and the hands-on guide that walks the whole loop in four tracks |\n\n## Where do I start?\n\n| I want to… | Start here |\n|---|---|\n| Watch it run first | The three films, in order — [Demo](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=rqmRABJTFk0) · [Tutorial](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=un5ZtFq9ieQ) · [Teardown](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=7vxcUyiZjTY) (also collected on the [project site](https:\u002F\u002Fdongbumlee.github.io\u002Fontosmith\u002F#watch)) |\n| See if my corpus fits | Step 1 above — profile it; the census names the decision points |\n| Check the quality claims myself | Step 2 — the replay; the full record is the [whitepaper](docs\u002Fwhitepaper.md) (§5) |\n| Build a graph from my documents | [Hands-on](docs\u002Fhands-on.md), Track 1 |\n| Use my own model provider | [Connections](docs\u002Fconnections.md) — seats, recommended models, custom bindings |\n| Read this project as an LLM | [llms.txt](llms.txt) — the machine-readable orientation |\n| Design an ontology for my domain | `ontosmith ontology` — the loop below; [hands-on](docs\u002Fhands-on.md) Track 3 |\n| Import an ontology my domain already has | `ontosmith ontology import` — BYO schema; [hands-on](docs\u002Fhands-on.md) Track 4 |\n| Audit my own benchmark gold | `ontosmith verify` — [hands-on appendix](docs\u002Fhands-on-appendix.md) |\n| Serve and query a built graph | [docs\u002Fserving.md](docs\u002Fserving.md) — `ontosmith search` \u002F `serve` + the demo app at `\u002F` over the build's Neo4j store (the shipped demo serves from its recorded files, no store needed) |\n| Contribute | [CONTRIBUTING.md](CONTRIBUTING.md) |\n\n## The loop\n\nTwo artifacts carry the loop, and they are not the same\nthing. A **profile** describes **your corpus**: a\ndeterministic census — document inventory, conventions,\ndecision points — that `ontosmith profile` produces with\nno model calls, pinned by its hash. A **pack** carries\na **domain's ontology as data**: the type inventory,\ndefinitions, and boundary examples a build runs under,\nversioned and pinned by sha256, with the conformance\nrecord of what its content measured. A batch binds one\nof each.\n\n1. **Profile** — `ontosmith profile` censuses your corpus\n   first (deterministic, no LLM): document inventory,\n   conventions, and the decision points a human should\n   settle before any build.\n2. **Design** — `ontosmith ontology` drafts a domain\n   schema from the profile, validates it deterministically,\n   and emits it as a versioned, hash-pinned **pack** only\n   after an explicit human approval.\n3. **Build** — `ontosmith batch` runs the staged pipeline\n   under the pack. Measured operating points ship as\n   defaults; the run's cost is recorded in its ledger, and\n   countable before it starts (`verify project`).\n4. **Inspect** — `ontosmith inspect` shows any triple with\n   its evidence span and provenance chain — and names what\n   is missing when something is.\n5. **Verify** — `ontosmith verify` ships the measurement\n   tooling with the product: audit your own gold, score\n   your own builds raw *and* corrected, with the failure\n   anatomy attached.\n6. **Serve** — `ontosmith search` answers with\n   sentence-level evidence (a direct sentence index,\n   the graph's evidence quotes, and a beam traversal\n   channel, filled under one token budget); the sample\n   API (`ontosmith serve`) answers hybrid retrieval\n   (vector + lexical + graph) over chunks and triples.\n   A build is served from its Neo4j store; the shipped\n   demo's recorded artifacts also serve from files —\n   the keyless read-back path, lexical + graph arms\n   only.\n\n## The method\n\n![The OntoSmith method: proposer\u002Fjudge separation across the build loop](docs\u002Fassets\u002Fmethod.png)\n\nOne separation runs through everything: nothing is\nwritten on the proposing seat's say-so alone. A fitted\npair call converts enumerated pairs into candidate\ntriples; deterministic gates check them; the Jev\ndecision model **decides** what is written.\n\nOperating\npoints — thresholds, the enumeration window, the judge\nconfiguration — are chosen by pre-registered measurement\ngates, not by feel, and configurations that miss their\ngate stay off (the rejections are in the quality record).\nThe full loop, walked end to end, is the\n[hands-on guide](docs\u002Fhands-on.md).\n\n## How this differs from GraphRAG-style pipelines\n\nGraphRAG-style pipelines typically centre the build on\na single frontier-class model, and evaluate the result\nby its answers (or by extraction scores on someone\nelse's benchmark), rather than by adjudicating the\ngraph they actually built.\n\nOntoSmith divides the job:\na low-cost proposer proposes, a fitted pair call\nconverts enumerated pairs into candidates,\ndeterministic gates check form, and the pinned Jev\nmodel decides what is written — nothing is written on\nthe proposer's say-so alone. Types come from an\nexplicit, versioned ontology rather than emerging from\nthe extraction, and the published record scores the\ngraph itself, verdicts attached (§ Quality). If you\nwant emergent structure and a working demo fast, the\nGraphRAG family gets you there sooner; this one is for\nwhen the graph has to be audited.\n\n## Three documents, three edges\n\nA chunk store returns text and leaves the connections\nimplicit. A graph makes each one an edge: typed,\ndirected, carrying its evidence sentence. Three real\nitems from this project's own records:\n\n**News — a head of government named inside somebody\nelse's article.** The article is about Abdul Jabar\nSabet; one sentence in it carries a fact whose\nsubject is a country:\n\n> Sabet was a long time aide to former Afghan Prime\n> Minister Gulbuddin Hekmatyar.\n\nAs an edge — Afghanistan — *head of government* →\nGulbuddin Hekmatyar — the fact answers to its own\nsubject, evidence attached. (Appendix item B-193,\njudged *supported*.)\n\n**A novel — a character who enters by relation, not\nby cast list.** *Le Ventre de Paris* never lists its\ncast; Quenu arrives through the plot:\n\n> He returns to his step-brother Quenu, a charcutier\n> and his wife Lisa Quenu (formerly Macquart), with\n> whom he finds refuge.\n\nAs an edge — *Le Ventre de Paris* — *characters* →\nQuenu — the character becomes a node, linked onward\nthrough the relations the sentence states.\n(Appendix item B-151, judged *supported*.)\n\n**A contract — a defined term is an identity, not a\nstring.** A CUAD agreement stipulates its vocabulary\nas it goes:\n\n> The term of this Agreement shall be ten (10) years\n> (the \"Term\") which shall commence on the date upon\n> which the Company delivers to Distributor the last\n> Sample, as defined hereinafter.\n\nThe build collects stipulated terms into a\nper-document registry and resolves them to their\nreferents, so every later \"during the Term\" attaches\nto the same node: definition and uses are one entity,\nnot a scatter of string matches. (Corpus-profile\nexample, Legal Contract pack,\n`packs\u002Flegal-contract\u002Fprofile\u002Fprofile.json`; CUAD,\nCC BY 4.0.)\n\nThe appendix items are machine-adjudicated\n*supported* under the published contract (the\n[appendix](benchmarks\u002Fappendix\u002F)); quote spacing is\nnormalized from the tokenized record.\n\n## Corpus packs\n\nA pack is a domain's ontology as data: schema, definitions,\nboundary examples, thresholds, and its measured conformance\nrecord — hash-pinned, versioned, fail-closed on load.\nDomain content lives only in packs, never in code branches.\nThe format's contract — manifest, pins, candidates,\nconformance — is [docs\u002FPACK_DESIGN.md](docs\u002FPACK_DESIGN.md).\n\n| Pack | Contents | Measured on |\n|---|---|---|\n| **Bio Medical** (`bio-medical`) | Biomedical entity\u002Frelation schema, fitted qualifiers | BioRED (pilot record: [whitepaper](docs\u002Fwhitepaper.md) §5.7) |\n| **Legal Contract** (`legal-contract`) | Contract schema: 41 label categories, role-word and defined-term rules | CUAD (promotion record: [whitepaper](docs\u002Fwhitepaper.md) §5.8) |\n| **FIBO Contracts** (`fibo-contracts`) | Contract schema **imported from FIBO** (EDM Council, MIT): the FND Agreements module flattened under a recorded scoping — 15 entity + 13 relation types | CUAD, the same corpus as Legal Contract; emitted through the builder, so its record opens `emitted_unmeasured` — the measured account so far is the coverage record ([hands-on](docs\u002Fhands-on.md) Track 4; `examples\u002Ffibo-import\u002F`) |\n| **Open Domain** (`open-domain`) | Schema for general documents, with fitted direction declarations | Re-DocRED (flagship record: [whitepaper](docs\u002Fwhitepaper.md) §5) |\n| **Core** (`core`, baseline) | The domain-neutral baseline every new corpus starts from | The cross-domain core record |\n\nNo pack fits your domain? The ontology builder (step 2)\ndrafts one from your own corpus, for your approval —\nand if your domain already publishes an ontology, the\nbuilder imports it instead (hands-on Track 4).\n\n![The ontology builder loop: draft, validate, approve, emit](docs\u002Fassets\u002Fontology-loop.png)\n\n*The builder loop and its refusal paths, as coded in\n`pipeline\u002Fontology_builder.py` — an emitted pack is\nmarked `emitted_unmeasured` until a registered\nmeasurement adopts it.*\n\n## Reference profile — measured bindings, your choice\n\nThe published measurements were made with one exact set of\nmodel bindings. That set ships as the **reference\nprofile**, pre-filled in the connection layer as the\ndefault preset:\n\n| Seat | Reference binding |\n|---|---|\n| Proposer — extracts candidates; never decides | `anthropic\u002Fclaude-haiku-5.5` |\n| Judge — Jev, the decision gate; a pinned product component | `typesafe\u002Fjev-1.13` |\n| Escalation — adjudication escalation; in evaluation it also serves as the comparison judge — it never decides a build's triples | `anthropic\u002Fclaude-sonnet-5.5` |\n| Drafting — schema\u002Fprofile drafting; an authoring aid behind the human approve gate | — (ships unbound; bind your own) |\n| Embedder — indexing and question embedding | `openai\u002Ftext-embedding-3-large` |\n\nThree layers, five seats: the method's *judge* layer is\ntwo seats in this table — the fitted pair judge, which\nshares the proposer's model row, and the pinned Jev\ngate — and drafting is an authoring seat outside the\nbuild loop.\n\nFour models, one key: the preset reaches all four named\nmodels through a single connection key.\n\nThe names differ\nper seat because each measured seat's default won its\njob in measurement; the judge seat is the exception —\na pinned component, not a bake-off winner — and you can\nre-point any seat ([Connections](docs\u002Fconnections.md)).\n\n**Optimized for the Jev decision model; the other seats\nare yours to bind** — see\n[Optimized for Jev](docs\u002Fconnections.md#optimized-for-jev)\nin Connections.\n\nRead that table as provenance, not as a requirement: the\npreset is the environment the measurements were made in,\nso a default install runs the bindings the published\nnumbers were measured under (the numbers themselves\nreproduce keyless from the appendix — step 2) —\nbut OntoSmith needs *a* connection, not *this* one.\n\nDomain packs declare only *capability tiers* (proposer \u002F\njudge \u002F escalation), never model names, so you can bind\nother models and endpoints in your own connection config;\nthat is a **custom binding**, and run records state which\nbinding produced a run. API keys are never settings\nvalues: config names the environment variable, the value\ncomes from your environment. The full seat-by-seat\npicture — every seat, the recommended models, and the\ncustom-binding contract — is\n[Connections](docs\u002Fconnections.md).\n\n## Cost guardrails\n\nEvery run's spend is accounted, whether or not it is\ncapped. The tooling prints a **counted projection**\nbefore a run (`ontosmith verify project` — candidate\npairs counted from your data, priced at rates you supply\n(`--unit-cost`); the tool takes prices from the caller\nand never hardcodes a rate card), and the batch ledger\nrecords what the run actually spent.\n\nA USD **stop-line** exists only when you set one: the\ncap's only home is the `ONTOSMITH_MAX_COST_USD`\nenvironment variable — unset (or `none`) means no cap.\nWith a cap set, a run that would cross it refuses to\nstart the unit that crosses it, and resumes from its\nledger instead of re-spending.\n\n## Quality\n\nHow well does it work? The measured record — scores with\ntheir scope and method, the failure anatomy, and the\npre-registered criterion that failed — lives in the\nproject [whitepaper](docs\u002Fwhitepaper.md) (§5); the evidence data and the replay\nthat recomputes it ship in [`benchmarks\u002F`](benchmarks\u002F).\n\n> **What the numbers do and don't say.** The corrected\n> scores describe one measured build — the 3,902-triple\n> sentence-window configuration — not the shipped\n> default, which enumerates differently (whitepaper\n> §5.6); the shipped Tier-1 set adds 186 promoted triples\n> whose corrected precision is not recomputed. The\n> adjudication is machine judging under a published,\n> ruled contract — no human spot-check round has been\n> run on the flagship sample. Retrieval is measured on\n> one pinned 116-question set over long contracts, and\n> at exactly zero on short abstracts. The whitepaper\n> states each limit where the number lives (§5, §7).\n\n## When not to use it\n\nOntoSmith is the wrong tool if you want a graph without\nan ontology: the schema-first step, the human approval\npoints, and the measurement tooling are the product, not\nceremony around it.\n\nIf you need a quick demo graph from a\npile of text with no quality questions asked, lighter\nextraction tools will get you there faster — and if your\ndomain's schema is still changing daily, settle it a\nlittle before pinning it into a pack.\n\n## Commands\n\n| Command | What it does |\n|---|---|\n| **Core** | |\n| `configure` | declare the seat bindings (wizard \u002F --from-file) |\n| `profile` | corpus profiler (deterministic, no LLM) |\n| `batch` | create \u002F run \u002F status \u002F rollback + ER settlement |\n| `inspect` | triple + evidence + provenance |\n| `verify` | score \u002F audit-sets \u002F project \u002F report |\n| **Authoring** | |\n| `ontology` | draft \u002F validate \u002F approve \u002F emit a pack |\n| `identity-freeze` | freeze per-point identity-seat decisions into a global decisions file |\n| **Serve** | |\n| `search` | sentence-level evidence search over a built graph |\n| `serve` | sample HTTP API (search \u002F entity \u002F neighborhood \u002F triple-with-evidence) + the demo app at \u002F |\n| `quickstart` | first run: build a graph from one text file and serve it |\n\n## The store — Neo4j\n\nA build's graph lives in **Neo4j**: WRITE, INDEX, and\nVERIFY work in it, the graph views render through\nNeo4j's own tooling on the same host, and serving a\nbuild reads from it. It is a prerequisite for\nbuilding, not an optional backend — setup and the\nconnection variables are in\n[Connections](docs\u002Fconnections.md). The store holds\n**one graph** — the current build's, stamped with the\nidentity of the ontology that produced it: a build\nunder a different ontology replaces the previous graph\n(named in the run's output before it happens), never\naccumulates beside it, so search never needs a scope —\nit answers from the one graph that is there.\n\nAsking questions\nof *recorded* artifacts needs no store: the search\ncommand and sample API also run over a file-backed\nstore that reads a finished batch's records (or the\nshipped demo) directly — the demo\u002Fread-back path,\nwhose search runs the lexical and graph arms only\n([docs\u002Fserving.md](docs\u002Fserving.md)).\n\n## Status\n\nRelease 0.1.9, published on PyPI. The pipeline,\nprofiler, ontology builder, inspect viewer,\nverification cores, packs, and the serving surface\n(search command + sample API) in this tree are\nmeasured, tested components, as is the minimal demo\napp served with the API.\n\n## License\n\nMIT — Copyright (c) 2026 Dongbum Lee.\n","OntoSmith 是一个基于决策模型的受控知识图谱构建工具，用于从文档中提取可追溯、有证据支撑的事实三元组并构建符合预定义本体的知识图谱。其核心采用双阶段流水线：轻量模型提出候选事实，内置的 Jev 决策模型依据证据片段对每个候选进行真值判定；所有写入图谱的三元组均携带原文证据位置与来源信息，并依托 Neo4j 实现原生图遍历、向量检索与全文搜索。项目强调本体先行（flat extraction contract），要求用户预先定义实体\u002F关系类型及其边界示例，不支持 OWL 推理或类层次建模，适用于需高可解释性、强治理性与审计能力的领域知识结构化场景，如合规文档分析、技术标准建模与监管报告知识库建设。","2026-11-24 04:36:33","CREATED_QUERY"]