dsh-plugin-zhishe-common
DiscoveredZhishi DSH Plugin Shared Infrastructure - Knowledge Base Loading/Retrieval/Benchmark Price/Risk Assessment
zhishe-common
知设 DSH 插件共享基础设施包 — 为所有知设装修系列插件提供通用的知识库检索、基准价格索引和风险等级评估能力。
功能模块
| 模块 | 说明 |
|---|---|
knowledge.js | 知识库加载 + 关键词检索 + 分词,支持数组/对象两种知识库格式 |
benchmark.js | 基准价格库加载 + 关键词索引 + 条目匹配,覆盖 13 城装修分项基准价 |
risk.js | 风险等级判定 + 风险分析,支持高/中/低三级风险输出 |
安装
npm install zhishe-common
使用
// 知识库检索
import { loadKnowledge, searchKnowledge } from 'zhishe-common/knowledge';
const kb = await loadKnowledge('./data/knowledge.json');
const results = await searchKnowledge(kb, '防水怎么做才不漏水?', { maxResults: 5 });
// 基准价格查询
import { loadBenchmark, buildKeywordIndex } from 'zhishe-common/benchmark';
const benchmark = await loadBenchmark('./data/benchmark.json');
const index = buildKeywordIndex(benchmark);
// 风险评估
import { riskLevel, analyzeRisks } from 'zhishe-common/risk';
const level = riskLevel('报价偏离超过50%');
const analysis = analyzeRisks(quoteItems);
被依赖的插件
- dsh-plugin-zhishe-bikeng-qa — 装修避坑问答
- dsh-plugin-zhishe-baojia-shenhe — 装修报价审核
- dsh-plugin-zhishe-zaojia-gusuan — 装修造价估算
License
MIT
Comments
Loading…
Similar plugins
by koji-xiaoer
DSH(DeepSeek Harness)插件仓库:增强主页、模型选择器增强、费用预估等插件与一键安装脚本
★ 0
MIT
JavaScript
Aug 21, 2026
dsh plugin --profile web add dsh-mods-enhancedby zlZayn
DSH 插件:基于知乎开放平台官方 API 的站内搜索、全网索引搜索与直答三个工具,自带原生设置卡片,结果带可引用的来源。
★ 10
↓ 713/wk
MIT
TypeScript
Sep 29, 2026
dsh plugin --profile web add dsh-zhihu-searchby lzhphantom
DSH(DeepSeek Harness)组合包插件:只读扫描任意项目目录,自动构建**模块级 + 文件级知识图谱**,帮助快速理解项目整体架构与设计思路,为后续进化、优化提供依据。
★ 0
MIT
JavaScript
Aug 16, 2026
dsh plugin --profile web add dsh-kgraph-pluginby akira399
DSH 插件开发与 GitHub 发布工作流技能插件 (consent-gated) — develop, verify, publish & marketplace-visible DSH plugins
★ 2
MIT
JavaScript
Aug 14, 2026
dsh plugin --profile web add dsh-plugin-publisherby Modole
面向 DSH Agent 的本地知识库、检索与资料管理插件。
★ 0
MIT
JavaScript
Aug 15, 2026
dsh plugin --profile web add @laobos/dsh-knowledgeby BaqiF2
该仓库暂未提供项目说明。
★ 1
↓ 217/wk
MIT
JavaScript
Sep 17, 2026
dsh plugin --profile web add dsh-plugin-precheck