@hazeljs/memory 0.7.9 → 0.8.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 +16 -16
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -57,25 +57,25 @@ await service.initialize();
|
|
|
57
57
|
|
|
58
58
|
## Persistence
|
|
59
59
|
|
|
60
|
-
| Backend
|
|
61
|
-
|
|
62
|
-
| **In-memory**
|
|
63
|
-
| **Prisma**
|
|
64
|
-
| **Postgres (raw)**
|
|
65
|
-
| **Redis**
|
|
66
|
-
| **Vector episodic** | `VectorEpisodicStore`
|
|
67
|
-
| **Composite**
|
|
60
|
+
| Backend | Module / Factory | Use case |
|
|
61
|
+
| ------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------ |
|
|
62
|
+
| **In-memory** | `createDefaultMemoryStore()` | Development, tests, no DB |
|
|
63
|
+
| **Prisma** | `createPrismaMemoryStore(prisma)` from `@hazeljs/memory/prisma` | Production, same app DB as flow/core |
|
|
64
|
+
| **Postgres (raw)** | `PostgresStore` — pass a `pg` pool with a `query` method (see `postgres.store.ts`) | Existing Postgres without Prisma |
|
|
65
|
+
| **Redis** | `RedisStore` — pass an ioredis-style client | High-throughput, shared across processes |
|
|
66
|
+
| **Vector episodic** | `VectorEpisodicStore` | Episodic/semantic vector search |
|
|
67
|
+
| **Composite** | `CompositeMemoryStore` | Route by category to primary + optional episodic store |
|
|
68
68
|
|
|
69
69
|
## Memory categories
|
|
70
70
|
|
|
71
|
-
| Category
|
|
72
|
-
|
|
73
|
-
| `profile`
|
|
74
|
-
| `preference`
|
|
75
|
-
| `behavioral`
|
|
76
|
-
| `emotional`
|
|
77
|
-
| `episodic`
|
|
78
|
-
| `semantic_summary` | Summarized or semantic facts
|
|
71
|
+
| Category | Description |
|
|
72
|
+
| ------------------ | ----------------------------------------- |
|
|
73
|
+
| `profile` | User identity and static attributes |
|
|
74
|
+
| `preference` | Stated preferences (e.g. language, theme) |
|
|
75
|
+
| `behavioral` | Inferred behavior patterns |
|
|
76
|
+
| `emotional` | Emotional state (often with TTL) |
|
|
77
|
+
| `episodic` | Event-based memories (what happened when) |
|
|
78
|
+
| `semantic_summary` | Summarized or semantic facts |
|
|
79
79
|
|
|
80
80
|
See types in `src/types/`.
|
|
81
81
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazeljs/memory",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Pluggable user memory for HazelJS - profile, preferences, behavioral patterns, emotional state, episodic and semantic memory with multi-store support",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
],
|
|
74
74
|
"author": "Muhammad Arslan <muhammad.arslan@hazeljs.ai>",
|
|
75
75
|
"license": "Apache-2.0",
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "8b7685d1250c4622f25d83992f58e13a59bb3dba"
|
|
77
77
|
}
|