EricWang1358 / @ericwang1358/studyhub-retrieval
StudyHub: a DeepSeek Harness (DSH) plugin that turns your own material into questions and spaced review · 把自己的资料变成题目与间隔复习的 DSH 学习插件
About this plugin
Written by the registry from verified metadata, not from the README.
@ericwang1358/studyhub-retrieval is a DSH plugin published from the packages/studyhub-retrieval package in the EricWang1358/dsh-web-studyhub repository.
Capabilities and topics
StudyHub search extension
A companion bundle for StudyHub. It lets StudyHub search large textbooks by topic: StudyHub's Settings and its "Large textbooks" card install it with one click, and build the index with one more.
It contains one small DSH plugin that mounts DSH's MCP client for mcp-local-rag (MIT, pinned in package.json). The server is started with the Node that DSH itself runs on and finds its files next to this package, so nothing in DSH's configuration is edited by hand, and no system Node, Python or Docker is needed. Index and model cache live under <DSH home>/study/retrieval.
The first index build downloads the embedding model (about 90 MB, per the server's documentation). The default model favours English; keyword matching still helps Chinese text. To download from another address, set hfEndpoint (an https URL) in <DSH home>/study/retrieval.json, which StudyHub's Settings also offers under Advanced; the server's documentation describes this as HF_ENDPOINT.
Index builds group the pages needing updates with min(8, ceil(pendingPages / 8)) pages per request, calculated once at the start. Each page keeps its own source identity and rollback behavior. The companion finishes index maintenance once per batch before confirming its results, and StudyHub saves a checkpoint after each confirmed batch. Searches wait for a running batch to finish its maintenance. Searches report a maintenance failure until a later maintenance succeeds. Cancellation stops between pages and finalizes writes already accepted. Pages whose results could not be confirmed are written again under the same keys on the next build.
Update the search extension in Settings and restart DSH to enable batching. An older extension continues to support single-page index builds.
Before the server starts, the extension checks its index. An index the server could not open (for example one whose newest files a crash left empty) is moved aside to chunks.lance.broken-<time> (kept, never deleted), <DSH home>/study/retrieval/reset.json records when and why, and the server starts on an empty index; StudyHub then asks for the index to be built again. The check opens the table with the server's own LanceDB in a separate process, and only when its newest version changed since the last check passed.
License: MIT.
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/EricWang1358/dsh-web-studyhub/packages/studyhub-retrieval)