dsh-metabolism 0.2.0 → 0.2.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.
- package/README.md +10 -0
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -9,6 +9,16 @@ DSH 压缩上下文时,被压掉的那一段会换成一行摘要。摘要写
|
|
|
9
9
|
2. **接管(可选)**——可以接管自动压缩,自己挑段、自己写只有指针的摘要;默认关着,开一个开关才生效。
|
|
10
10
|
3. **召回**——提供一个工具,按关键词或日期把原文捞回来,返回片段和出处。带时间加权:同样命中,新的排前面。
|
|
11
11
|
|
|
12
|
+
## 它跟别的压缩插件差在哪
|
|
13
|
+
|
|
14
|
+
普通的上下文压缩插件靠摘要过日子:压一次,细节糊一层;压到第一百次,剩下的就是一层糊。
|
|
15
|
+
这个插件的压法是**指向空**——正文整段搬进本地,模型那边只留一行地址和一句提示;
|
|
16
|
+
哪天要细节,按地址捞回来就是了。所以压多少次都不糊,也不会有一天「压不动」。
|
|
17
|
+
|
|
18
|
+
配合四层记忆那类插件一起用,一个窗口可以连着开下去,不必换。
|
|
19
|
+
|
|
20
|
+
顺手,还能让你家的小鲸鱼学会拉屎。
|
|
21
|
+
|
|
12
22
|
## 装
|
|
13
23
|
|
|
14
24
|
```
|
package/package.json
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-metabolism",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "把每次上下文压缩前的原文归档进本地「茅房」:一天一个文件夹、一行一段,配索引与按时间加权的召回。",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "长命 (Changming) — 第一作者; 久安 (Jiuan)",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/changmingjuebumaimeng3666/dsh-metabolism.git"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/changmingjuebumaimeng3666/dsh-metabolism#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/changmingjuebumaimeng3666/dsh-metabolism/issues"
|
|
15
|
+
},
|
|
8
16
|
"exports": {
|
|
9
17
|
".": "./index.js",
|
|
10
18
|
"./engine": "./engine.js",
|