@amemhq/core 1.0.1 → 2.0.0
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 +2 -2
- package/dist/chunk-K6WZTDM7.js +2353 -0
- package/dist/chunk-K6WZTDM7.js.map +1 -0
- package/dist/cli-migrate.cjs +1086 -0
- package/dist/cli-migrate.cjs.map +1 -0
- package/dist/cli-migrate.d.cts +30 -0
- package/dist/cli-migrate.d.ts +30 -0
- package/dist/cli-migrate.js +147 -0
- package/dist/cli-migrate.js.map +1 -0
- package/dist/index.cjs +289 -57
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +181 -28
- package/dist/index.d.ts +181 -28
- package/dist/index.js +82 -2120
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Unlike a flat vector store, A-MEM maintains memory as a living, self-evolving se
|
|
|
17
17
|
1. **Note Construction** — an LLM extracts keywords, tags, and a context summary; categorizes the note; and classifies it as `memory` (episodic) or `knowledge` (durable), extracting 1–5 `topics` for knowledge notes.
|
|
18
18
|
2. **Link Generation** — retrieves top-6 candidates; the LLM judges whether to link bidirectionally (similarity > 0.3).
|
|
19
19
|
3. **Memory Evolution** — up to 3 linked notes have their attributes evolved from the new context, possibly triggering further links.
|
|
20
|
-
4. **Hybrid Retrieval** — fuses dense vectors (Transformers.js `
|
|
20
|
+
4. **Hybrid Retrieval** — fuses dense vectors (Transformers.js `bge-m3`, 1024-dim) and BM25 via Reciprocal Rank Fusion (RRF), boosted by retrieval heat.
|
|
21
21
|
5. **2-hop BFS Graph Expansion** — after RRF top-K, BFS walks the link graph up to 2 hops, admitting up to 8 graph-connected notes that pass an embedding relevance gate (cos-sim ≥ 0.25). This is the key advantage over flat vector systems.
|
|
22
22
|
|
|
23
23
|
## Features
|
|
@@ -47,7 +47,7 @@ host (OpenClaw plugin / amem-api / game agent)
|
|
|
47
47
|
▼
|
|
48
48
|
@amemhq/core (TypeScript)
|
|
49
49
|
├── LLM (Anthropic) note construction · link judgment · CRUD · evolution
|
|
50
|
-
├── Transformers.js (ONNX)
|
|
50
|
+
├── Transformers.js (ONNX) local embeddings + Jieba BM25
|
|
51
51
|
└── Qdrant :6333 vector store · owner/readers/writers · agent_id isolation
|
|
52
52
|
```
|
|
53
53
|
|