lumiverse-spindle-types 0.5.16 → 0.5.17
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/package.json +1 -1
- package/src/api.ts +20 -2
package/package.json
CHANGED
package/src/api.ts
CHANGED
|
@@ -1356,8 +1356,19 @@ export interface MemoryStatsDTO {
|
|
|
1356
1356
|
chunksAvailable: number;
|
|
1357
1357
|
chunksPending: number;
|
|
1358
1358
|
injectionMethod: "macro" | "fallback" | "disabled";
|
|
1359
|
+
/**
|
|
1360
|
+
* How the chunks were retrieved: a real vector/hybrid search ("vector") or
|
|
1361
|
+
* the recency fallback ("recency", e.g. when the query embedding failed).
|
|
1362
|
+
* Absent until the chat-memory cache has been populated.
|
|
1363
|
+
*/
|
|
1364
|
+
retrievalMode?: "vector" | "recency" | "empty" | "disabled";
|
|
1359
1365
|
retrievedChunks: Array<{
|
|
1360
|
-
|
|
1366
|
+
/**
|
|
1367
|
+
* Vector distance (lower = more similar). `null` for keyword-only or
|
|
1368
|
+
* recency-fallback hits, which have no vector distance — do not treat a
|
|
1369
|
+
* missing score as a perfect (zero-distance) match.
|
|
1370
|
+
*/
|
|
1371
|
+
score: number | null;
|
|
1361
1372
|
tokenEstimate: number;
|
|
1362
1373
|
messageRange: [number, number];
|
|
1363
1374
|
preview: string;
|
|
@@ -1395,7 +1406,12 @@ export interface DryRunResultDTO {
|
|
|
1395
1406
|
|
|
1396
1407
|
export interface ChatMemoryChunkDTO {
|
|
1397
1408
|
content: string;
|
|
1398
|
-
|
|
1409
|
+
/**
|
|
1410
|
+
* Vector distance (lower = more similar). `null` for keyword-only or
|
|
1411
|
+
* recency-fallback hits, which have no vector distance — do not treat a
|
|
1412
|
+
* missing score as a perfect (zero-distance) match.
|
|
1413
|
+
*/
|
|
1414
|
+
score: number | null;
|
|
1399
1415
|
metadata: Record<string, unknown>;
|
|
1400
1416
|
}
|
|
1401
1417
|
|
|
@@ -1408,6 +1424,8 @@ export interface ChatMemoryResultDTO {
|
|
|
1408
1424
|
settingsSource: "global" | "per_chat";
|
|
1409
1425
|
chunksAvailable: number;
|
|
1410
1426
|
chunksPending: number;
|
|
1427
|
+
/** How chunks were retrieved (real vector search vs. recency fallback). */
|
|
1428
|
+
retrievalMode?: "vector" | "recency" | "empty" | "disabled";
|
|
1411
1429
|
}
|
|
1412
1430
|
|
|
1413
1431
|
/**
|