@inupedia/spotlight-memory 0.8.0 → 0.8.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.
Files changed (2) hide show
  1. package/README.md +13 -9
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -1,8 +1,16 @@
1
1
  # @inupedia/spotlight-memory
2
2
 
3
- Spotlight **Memory Gate** — exact + semantic cache for repeated user questions.
3
+ Optional exact + semantic answer-cache primitives for repeated deterministic
4
+ requests.
4
5
 
5
- Part of the Inupedia Spotlight SDK. See `docs/SPOTLIGHT_MEMORY_ARCHITECTURE.md` in the host repo.
6
+ This package is no longer wired into the Spotlight Server Agent lifecycle. The
7
+ Server uses LangGraph Checkpointer for Thread state and LangGraph Store for
8
+ explicit, user-approved long-term memory. It never semantically replays complete
9
+ assistant answers.
10
+
11
+ Use this package only when an application explicitly needs an independently
12
+ versioned response cache. A cache hit must not bypass Agent routing, Knowledge,
13
+ authorization, or Tool execution.
6
14
 
7
15
  ## Role
8
16
 
@@ -18,7 +26,7 @@ Part of the Inupedia Spotlight SDK. See `docs/SPOTLIGHT_MEMORY_ARCHITECTURE.md`
18
26
  pnpm add @inupedia/spotlight-memory @inupedia/spotlight-protocol
19
27
  ```
20
28
 
21
- ## Usage (spotlight-server)
29
+ ## Legacy cache usage
22
30
 
23
31
  ```typescript
24
32
  import { createPackMemoryStores } from "@inupedia/spotlight-memory/node";
@@ -29,7 +37,7 @@ const { gate } = createPackMemoryStores({
29
37
  gateConfig: { semanticThreshold: 0.92 },
30
38
  });
31
39
 
32
- // Gate 0 — before deterministic gate
40
+ // Application-owned cache lookup. Do not place this before Agent routing.
33
41
  const result = await gate.lookup({
34
42
  projectId,
35
43
  question: request.userQuestion,
@@ -39,11 +47,7 @@ const result = await gate.lookup({
39
47
  },
40
48
  });
41
49
 
42
- if (result.hit) {
43
- return replayMemoryHit(result.result, sink);
44
- }
45
-
46
- // After slow path succeeds:
50
+ // Cache only a deterministic, versioned artifact after independent validation.
47
51
  await gate.write({
48
52
  projectId,
49
53
  question: request.userQuestion,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@inupedia/spotlight-memory",
3
- "version": "0.8.0",
4
- "description": "Memory Gate, exact/semantic cache stores for Inupedia Spotlight",
3
+ "version": "0.8.2",
4
+ "description": "Optional exact and semantic answer-cache primitives for Inupedia Spotlight",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "inupedia",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@zilliz/milvus2-sdk-node": "^2.5.5",
28
28
  "ioredis": "^5.6.1",
29
- "@inupedia/spotlight-protocol": "0.8.0"
29
+ "@inupedia/spotlight-protocol": "0.8.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.10.0",