edusrez/dsh-tool-web-enhanced1

dsh-tool-web-enhanced

无缝替换的 dsh-tool-web 增强版:在网页搜索中加入可选的主题过滤器以及 SearXNG 结果板块。

AI 分析

增强 DSH 的联网搜索能力,引入 SearXNG 搜索源。适合对默认联网搜索结果不满意、需要更精准和丰富搜索源的用户。

包名
dsh-tool-web-enhanced
版本
0.2.0-rc.2
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:edusrez/dsh-tool-web-enhanced

Configuration reference

Existing stock keys keep identical names and defaults; SearXNG keys are additive.

The stock fetch* keys are kept ONLY for drop-in config compatibility — web_fetch is NOT modified by this plugin (it is re-registered verbatim from the stock package). Setting them has no enhanced behaviour.

KeyTypeDefaultDescription
searchbooleantrueRegister web_search.
fetchbooleantrueRegister web_fetch (unchanged).
searchMaxResultsnumber8Source cap for both native and SearXNG sections.
searchTimeoutMsnumber30000Cooperative budget for web_search (incl. the SearXNG call).
fetchTimeoutMsnumber30000Cooperative budget for web_fetch.
fetchMaxOutputCharsnumber200000Output cap for web_fetch.
searxngUrlstringhttp://127.0.0.1:8080SearXNG base URL; empty/falsy disables SearXNG.
searxngEnabledbooleantrueWhen false, skip the SearXNG section entirely.

Note on searxngEnabled: it defaults to true. With searxngUrl pointing at http://127.0.0.1:8080, a running SearXNG instance is expected. If SearXNG is not deployed, every web_search performs one extra (silently-failed) connection attempt to the local JSON API before falling back to native-only results — harmless, but avoidable. Set searxngEnabled: false when you are not using SearXNG to skip that attempt entirely.

RAG configuration

KeyTypeDefaultDescription
rag.enabledbooleantrueEnable the RAG section + rag_index tool.
rag.storePathstring'' (auto)SQLite store path; empty → /storages/rag/rag.db.
rag.embeddings.providerstringautoauto / deepinfra / local. auto → deepinfra when a key is present, else local.
rag.embeddings.apiKeyEnvstringDEEPINFRA_TOKENEnv var name holding the DeepInfra key.
rag.embeddings.apiKeystring''Literal DeepInfra key (wins over apiKeyEnv).
rag.embeddings.deepinfraModelstringBAAI/bge-m3DeepInfra embedding model.
rag.embeddings.deepinfraBaseURLstringhttps://api.deepinfra.com/v1/openaiDeepInfra OpenAI-compatible base URL.
rag.embeddings.localModelstringXenova/bge-small-en-v1.5Local transformers.js model.
rag.databases[].namestringDatabase (section) name.
rag.databases[].pathstringDirectory of Markdown files to index.
rag.databases[].topKnumber5Results returned per database.

Local embeddings (the default when no key is configured) download a small ONNX model (~34MB) on first use, via the optional @huggingface/transformers dependency. The DeepInfra path uses DEEPINFRA_TOKEN (or rag.embeddings.apiKey). RAG errors degrade silently — the section is simply omitted from the output.