dsh-engramory-recall 0.11.1 → 0.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/index.js +7 -2
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  本项目的所有重要变更都记在这里。格式参照 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/),
4
4
  版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
5
5
 
6
+ ## [0.11.2] — 2026-10-15
7
+
8
+ ### 变更
9
+
10
+ - **把「换措辞再搜一次」写进模型看得见的地方**:`engramory_search` 的工具描述补一句
11
+ 「它匹配的是措辞不是意思 —— 没命中就自己换个说法再搜一次(同义词、术语英文、笔记里可能用的词)」,
12
+ 未命中时的提示也从「换关键词再试」改成同一句话。依据是宿主模型改写那把尺子量出来的:
13
+ 同一个意思换个说法能命中而原句命不中的比例是 **80.6%**(词面自身 72.2%),
14
+ 而让插件内置去「融合模型改写」是负收益。所以这个能力交给调用方用,而不是塞进检索里。
15
+
6
16
  ## [0.11.1] — 2026-10-15
7
17
 
8
18
  ### 修复
package/index.js CHANGED
@@ -292,7 +292,12 @@ export function apply(ctx, config = {}) {
292
292
  'Search the local Engramory markdown memory store with BM25 (offline, read-only). ' +
293
293
  'Use it when the automatic recall did not surface what you need — for example before ' +
294
294
  'answering a question about past decisions, pitfalls or user preferences. It returns ' +
295
- 'matching note filenames with a matched snippet and a score; open the ones you need with read.',
295
+ 'matching note filenames with a matched snippet and a score; open the ones you need with read. ' +
296
+ // 这条不是文风,是量出来的:模型改写融合净赔,而「换措辞再搜一次」的收益=改写里最好那条
297
+ // (真库探针 80.6% vs 词面 72.2%)。措辞敏感是 BM25 的本性,所以交给调用方换词最划算。
298
+ 'It matches wording, not meaning: if it misses, rephrase the query in your own words and ' +
299
+ 'search once more (synonyms, the term in English, the wording a note would use) — cheaper and ' +
300
+ 'more effective than expecting one phrasing to land.',
296
301
  parameters: {
297
302
  type: 'object',
298
303
  properties: {
@@ -373,7 +378,7 @@ export function apply(ctx, config = {}) {
373
378
  hits,
374
379
  note: hits.length
375
380
  ? '用 read 打开需要的文件;正文在笔记里,不在这个结果里'
376
- : '没有命中:换关键词再试(中文可以换相邻词)',
381
+ : '没有命中:换个说法再搜一次(同义词、术语的英文写法、笔记里可能用的那个词)—— 它只认措辞不认意思',
377
382
  semantic: { used: result.used, code: result.code, message: result.message },
378
383
  };
379
384
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-engramory-recall",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "Local BM25 auto-recall, fail-closed write guard, static doctor and a memory panel for the Engramory markdown store — no network, no model, no daemon.",
5
5
  "keywords": [
6
6
  "dsh",