@equationalapplications/core-llm-wiki 4.1.0 → 4.2.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/dist/index.d.mts CHANGED
@@ -52,6 +52,19 @@ interface ReadOptions {
52
52
  */
53
53
  preFilterLimit?: number | null;
54
54
  hybridWeight?: number;
55
+ /**
56
+ * (Reserved for Phase 2+ multi-entity weighted retrieval)
57
+ * entity_id -> score multiplier. Missing entries default to 1.0.
58
+ * Currently ignored by WikiMemory.read(); planned for implementation in Phase 2.
59
+ */
60
+ tierWeights?: Record<string, number>;
61
+ /**
62
+ * (Reserved for Phase 2+ multi-entity weighted retrieval)
63
+ * false/default -> skip zero-weight entities during scored retrieval.
64
+ * true -> retrieve zero-weight entities and let them fill only if the pool is small.
65
+ * Currently ignored by WikiMemory.read(); planned for implementation in Phase 2.
66
+ */
67
+ includeZeroWeightEntities?: boolean;
55
68
  }
56
69
  interface WikiFact {
57
70
  id: string;
@@ -274,6 +287,12 @@ interface MemoryBundle {
274
287
  facts: WikiFact[];
275
288
  tasks: WikiTask[];
276
289
  events: WikiEvent[];
290
+ factScores?: Record<string, number>;
291
+ metadata?: {
292
+ query: string;
293
+ entityIds: string[];
294
+ tierWeights?: Record<string, number>;
295
+ };
277
296
  }
278
297
  interface MemoryDump {
279
298
  generatedAt: number;
package/dist/index.d.ts CHANGED
@@ -52,6 +52,19 @@ interface ReadOptions {
52
52
  */
53
53
  preFilterLimit?: number | null;
54
54
  hybridWeight?: number;
55
+ /**
56
+ * (Reserved for Phase 2+ multi-entity weighted retrieval)
57
+ * entity_id -> score multiplier. Missing entries default to 1.0.
58
+ * Currently ignored by WikiMemory.read(); planned for implementation in Phase 2.
59
+ */
60
+ tierWeights?: Record<string, number>;
61
+ /**
62
+ * (Reserved for Phase 2+ multi-entity weighted retrieval)
63
+ * false/default -> skip zero-weight entities during scored retrieval.
64
+ * true -> retrieve zero-weight entities and let them fill only if the pool is small.
65
+ * Currently ignored by WikiMemory.read(); planned for implementation in Phase 2.
66
+ */
67
+ includeZeroWeightEntities?: boolean;
55
68
  }
56
69
  interface WikiFact {
57
70
  id: string;
@@ -274,6 +287,12 @@ interface MemoryBundle {
274
287
  facts: WikiFact[];
275
288
  tasks: WikiTask[];
276
289
  events: WikiEvent[];
290
+ factScores?: Record<string, number>;
291
+ metadata?: {
292
+ query: string;
293
+ entityIds: string[];
294
+ tierWeights?: Record<string, number>;
295
+ };
277
296
  }
278
297
  interface MemoryDump {
279
298
  generatedAt: number;