返回目录
模型与 MCP 插件

dsh-auto-ontology

vicfei/dsh-auto-ontology

Auto ontology construction for DeepSeek Harness — two-pass LLM pipeline (TBox schema, ABox assertions) with evidence quotes on every entity/relation and type-guard against silent drops. Implements the concept of NVIDIA/auto-ontology. Not affiliated.

Stars
0
Forks
0
Issues
2
更新
5 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:vicfei/dsh-auto-ontology

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

dsh-auto-ontology — auto ontology construction with evidence, for DeepSeek Harness

Feed it documents; get a typed ontology (TBox + ABox) where every entity and relation carries its source quote. No evidence, no assertion; unknown types are flagged, never silently dropped.

DeepSeek Harness License: MIT npm ci format

Implements the concept of NVIDIA/auto-ontology (13.3k★) natively for DSH, with the family's evidence discipline. Clean-room, zero upstream code. Not affiliated. 中文文档 Family: dsh-TradingAgents · dsh-WrenAI

showcase

A real run over 19 family READMEs: 88 entities / 121 relations / 4 organically detected type conflicts, every assertion carrying its evidence quote (`ontologies/20261118-1441.`).*

Why (ontology plugins exist — none does LLM auto-construction with evidence)

NVIDIA auto-ontology (upstream) ontology viewers/bridges dsh-auto-ontology
Corpus enterprise DB metadata (8 connectors) — documents — any text you already have
Builds ontologies governed semantic layer (Docker/Postgres stack) no (view existing) two-pass LLM: TBox schema from a sample, then per-doc ABox assertions
Trust grounding at answer time — evidence spans at build time — no evidence, no assertion
Conflicts reconcile definitions — both evidences kept, never silently resolved
Incremental metadata ingest — append-only fold; certifications respected forever
Infra Docker + Postgres + API key stack — zero-infra stdlib CLI + any DeepSeek-compatible key

Quick start (zero extra keys)

npm i -g dsh-auto-ontology
auto-ontology build --docs 'docs/*.md' --domain "internal design docs" --save
auto-ontology --query "WrenAI"                 # every assertion + its evidence spans
auto-ontology validate ontologies/*.json       # format v0.1 conformance
auto-ontology eval --from ontologies/x.json --n 20   # honest evidence-support precision

Requires python3 (stdlib only) + a DEEPSEEK_API_KEY. Artifacts land in ./ontologies/: typed JSON (every assertion + evidence), zero-dep SVG cluster graph, markdown digest, single-file HTML report, JSON-LD export.

Register the DSH skill: ln -s "$(npm root -g)/dsh-auto-ontology/skills/dsh-auto-ontology" ~/.dsh/skills/dsh-auto-ontology. With the plugin installed, agents get ontology_build / ontology_query as typed tools (dsh plugin add dsh-auto-ontology).

The discipline (non-negotiables)

  • Evidence is inseparable from an assertion — a verbatim quote + source doc;
  • Type guard: instance types must come from the extracted TBox; unknown types are flagged, never silently dropped;
  • Append-only: merges never edit or drop prior evidence; removals happen only via --certify reject and are recorded with the original evidence;
  • Conflicts keep both sides — the same name under different types becomes a conflict entry holding BOTH evidences, awaiting review;
  • Honest metrics: auto-ontology eval measures whether quotes actually support their assertions (seeded, rerunnable). Our first artifacts scored 10% — reported as-is; the weak axis (type-grounding quotes) is tracked openly. A metric you can rerun beats a number you can't;
  • Every artifact carries provenance (model / temperature / calls / tokens / elapsed).

Format: evidence-linked ontology v0.1

The artifact shape is a versioned open format — docs/FORMAT.md — with a stdlib conformance validator, enforced by CI on the committed showcase. If other tools adopt it, assertions stay auditable across implementations.

Status & roadmap

O1–O4 complete (see ROADMAP): English-first engine, npm distribution vehicle + typed tools, incremental merge & coreference & conflicts, JSON-LD / HTML / WeKnora bridge, certification fold-back, run-layer diff, the honest eval, format v0.1. In flight: type-grounding evidence tightening (#35).

License

MIT; concept credit to Apache-2.0 upstream — zero upstream code used. Not enterprise advice.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: llm-extraction、deepseek-harness。