openclaw-amem 2.1.0 → 2.1.1
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 +11 -0
- package/dist/index.js +6 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -57,6 +57,17 @@ pnpm --filter openclaw-amem build
|
|
|
57
57
|
openclaw plugins install --link ./packages/openclaw-amem
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
Updating:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
openclaw plugins update openclaw-amem
|
|
64
|
+
openclaw gateway restart
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
An update rebuilds `node_modules`, and the model cache lives there by default — so
|
|
68
|
+
it re-downloads 2.27 GB unless `AMEM_MODEL_CACHE` points somewhere outside the
|
|
69
|
+
plugin directory. Set that once and updates cost nothing.
|
|
70
|
+
|
|
60
71
|
### 2. Configure `~/.openclaw/openclaw.json`
|
|
61
72
|
|
|
62
73
|
Add `openclaw-amem` to your allowed plugins and hook it into the `memory` slot:
|
package/dist/index.js
CHANGED
|
@@ -1942,7 +1942,12 @@ async function searchMemory(query, topK = 5, agentId = "main", opts) {
|
|
|
1942
1942
|
keywords: note.keywords,
|
|
1943
1943
|
links: note.links,
|
|
1944
1944
|
timestamp: note.timestamp,
|
|
1945
|
-
|
|
1945
|
+
// Neither map covers a note that got here on BM25 alone: it was never in
|
|
1946
|
+
// the dense results, and it was not expanded into. That is a real cosine
|
|
1947
|
+
// nobody had measured, not a zero — and reporting 0 made a lexical match
|
|
1948
|
+
// look like the least relevant row in the list. Both vectors are already
|
|
1949
|
+
// in hand, so measuring it is one dot product.
|
|
1950
|
+
similarity: embSimMap.get(id) ?? bfsSimMap.get(id) ?? cosineSimilarity(queryEmbedding, note.embedding),
|
|
1946
1951
|
rrf: rrfMap.get(id) ?? 0,
|
|
1947
1952
|
via,
|
|
1948
1953
|
topics: note.topics ?? [],
|
package/openclaw.plugin.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "amem",
|
|
4
4
|
"description": "Catches memories that contradict each other. Notes rewrite themselves as new ones arrive, link into a graph, and stay separated per agent and per person. Runs on a small model. Requires a local Qdrant. 中文走 jieba 分词,提示词有中文版。",
|
|
5
5
|
"icon": "https://amem.owo.lc/logo.png",
|
|
6
|
-
"version": "2.1.
|
|
6
|
+
"version": "2.1.1",
|
|
7
7
|
"kind": "memory",
|
|
8
8
|
"contracts": {
|
|
9
9
|
"tools": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openclaw-amem",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Catches memories that contradict each other. Notes rewrite themselves as new ones arrive, link into a graph, and stay separated per agent and per person. Runs on a small model. Requires a local Qdrant. 中文走 jieba 分词,提示词有中文版。",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@eslint/js": "^10.0.1",
|
|
28
28
|
"@types/node": "^26.1.1",
|
|
29
|
-
"@types/uuid": "^11.0.0",
|
|
30
29
|
"eslint": "^10.7.0",
|
|
31
30
|
"prettier": "^3.9.6",
|
|
32
31
|
"tsup": "^8.4.0",
|