@scotthuang/engram 0.3.19 → 0.3.20
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/openclaw.plugin.json +25 -1
- package/package.json +1 -1
package/openclaw.plugin.json
CHANGED
|
@@ -96,6 +96,27 @@
|
|
|
96
96
|
"lancedbDir": {
|
|
97
97
|
"type": "string",
|
|
98
98
|
"description": "LanceDB 数据库目录(默认 workspace/memory-engram/lancedb)"
|
|
99
|
+
},
|
|
100
|
+
"queryRewrite": {
|
|
101
|
+
"type": "object",
|
|
102
|
+
"description": "查询重写配置(通过外部脚本对召回查询进行改写/分解)",
|
|
103
|
+
"properties": {
|
|
104
|
+
"enabled": {
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"description": "是否启用查询重写",
|
|
107
|
+
"default": false
|
|
108
|
+
},
|
|
109
|
+
"scriptPath": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "重写脚本的绝对路径(需要有执行权限)"
|
|
112
|
+
},
|
|
113
|
+
"timeoutMs": {
|
|
114
|
+
"type": "number",
|
|
115
|
+
"description": "脚本执行超时时间(毫秒)",
|
|
116
|
+
"default": 5000
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
"required": ["enabled", "scriptPath"]
|
|
99
120
|
}
|
|
100
121
|
}
|
|
101
122
|
},
|
|
@@ -106,6 +127,9 @@
|
|
|
106
127
|
"minScore": { "label": "最低分数", "placeholder": "0.4" },
|
|
107
128
|
"vectorWeight": { "label": "向量权重", "placeholder": "0.7" },
|
|
108
129
|
"textWeight": { "label": "BM25权重", "placeholder": "0.3" },
|
|
109
|
-
"saveStagingFile": { "label": "保存调试文件", "placeholder": "true" }
|
|
130
|
+
"saveStagingFile": { "label": "保存调试文件", "placeholder": "true" },
|
|
131
|
+
"queryRewrite.enabled": { "label": "启用查询重写", "placeholder": "false" },
|
|
132
|
+
"queryRewrite.scriptPath": { "label": "重写脚本路径", "placeholder": "/path/to/query_rewrite.py" },
|
|
133
|
+
"queryRewrite.timeoutMs": { "label": "脚本超时(ms)", "placeholder": "5000" }
|
|
110
134
|
}
|
|
111
135
|
}
|