tancheng33/dsh-ontology0

dsh-ontology

用于 DeepSeek Harness 的类型化、可推理本体知识库插件,允许智能体定义、断言和查询领域知识。

AI 分析

核心用途是为 AI 智能体提供持久化的结构化领域知识库,支持模式约束和关系推理。适合需要处理复杂业务逻辑、需要智能体维护长期记忆和知识体系的任务。

包名
dsh-ontology
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:tancheng33/dsh-ontology

Configuration

Override any of these in your profile's cordis.patch.yml:

KeyDefaultMeaning
domainontologyStorage domain name; one name is one isolated graph. Must match /^[a-z][a-z0-9_]*$/.
stricttrueReject facts that violate the vocabulary. false stores them with the violations recorded, for exploratory modelling.
inferencetrueAllow queries to return entailed facts.
promptSectiontrueContribute the vocabulary summary to the system prompt.
promptMaxTerms60Upper bound on terms in that summary.
promptOrder150Where the section lands in the assembled prompt.
defaultLimit / maxLimit50 / 500Query result sizes.
maxEntities / maxFacts20000 / 100000Capacity guards; a write past the bound fails loudly.

Running two isolated graphs is just two rows:

- insert:
    - id: ontology-team
      name: dsh-ontology
      config: { domain: team_ontology, strict: true, inference: true, promptSection: true,
                promptMaxTerms: 60, promptOrder: 150, defaultLimit: 50, maxLimit: 500,
                maxEntities: 20000, maxFacts: 100000 }

(A patch replaces a row's whole config, so restate every key.)