sage-mem 0.9.15 → 0.9.16
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.
- package/lib/memory/bm25.js +1 -1
- package/lib/memory/search.js +1 -1
- package/package.json +1 -1
package/lib/memory/bm25.js
CHANGED
|
@@ -190,7 +190,7 @@ export function queryTermsOf(query) {
|
|
|
190
190
|
* 连续性治的就是它:连续命中 k 个词元 = query 里**至少 k+1 个字连着**出现在文档里。
|
|
191
191
|
* 巧合通常孤立(k=1),真实内容词通常连成片段(`连接池` k=2、`压测时连接池` k=4)。
|
|
192
192
|
*
|
|
193
|
-
* ⚠️
|
|
193
|
+
* ⚠️ 它也有代价:整句只对上一个两字专名时 k 只有 1,会被判成不连续。
|
|
194
194
|
* 所以门槛里它是**析取**的一部分,不是唯一判据。
|
|
195
195
|
*/
|
|
196
196
|
export function maxMatchedRun(queryTokens, tf) {
|
package/lib/memory/search.js
CHANGED
|
@@ -64,7 +64,7 @@ export const EXCERPT_CHARS = 200
|
|
|
64
64
|
* | +rarest ≤ 0.05 | 0/12 | 0/12 |
|
|
65
65
|
*
|
|
66
66
|
* 相关题命中的最冷门词元都是 0.0625,硬负例是 0.125 —— 0.10 落在分离带里。
|
|
67
|
-
* ⚠️
|
|
67
|
+
* ⚠️ 该值在**小语料**上定出;真实语料的 df/N 量级不同(段落数越多,同一个词元的 df/N 越小),
|
|
68
68
|
* 阶段一的评测脚本要在真实量级上复核一次再定稿。
|
|
69
69
|
*/
|
|
70
70
|
export const MIN_EVIDENCE_RATIO = 0.35
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sage-mem",
|
|
3
3
|
"description": "File-based memory plugin for DeepSeek Harness (DSH) — cross-session memory in plain markdown files, with a memory star-map view, type/tag filtering, retrieval aliases, and an optional autodream pass that consolidates memories on demand or on a schedule — with per-run rollback points, a per-file change declaration (what changed and why), and a separately selectable model for the consolidation pass",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.16",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"exports": {
|