@voidwire/lore 1.6.1 → 1.6.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.
- package/lib/realtime.ts +5 -3
- package/package.json +1 -1
package/lib/realtime.ts
CHANGED
|
@@ -324,12 +324,14 @@ function insertEmbedding(
|
|
|
324
324
|
|
|
325
325
|
const embeddingBlob = serializeEmbedding(embedding);
|
|
326
326
|
|
|
327
|
+
const timestamp = event.timestamp || new Date().toISOString();
|
|
328
|
+
|
|
327
329
|
const stmt = db.prepare(`
|
|
328
|
-
INSERT INTO embeddings (doc_id, chunk_idx, source, topic, type, embedding)
|
|
329
|
-
VALUES (?, 0, ?, ?, ?, ?)
|
|
330
|
+
INSERT INTO embeddings (doc_id, chunk_idx, source, topic, type, timestamp, embedding)
|
|
331
|
+
VALUES (?, 0, ?, ?, ?, ?, ?)
|
|
330
332
|
`);
|
|
331
333
|
|
|
332
|
-
stmt.run(docId, source, topic, type, embeddingBlob);
|
|
334
|
+
stmt.run(docId, source, topic, type, timestamp, embeddingBlob);
|
|
333
335
|
}
|
|
334
336
|
|
|
335
337
|
/**
|