From eb0684d2318fa4548d3a01154f95d66a555337e2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 20 Jul 2026 23:15:01 -0400 Subject: [PATCH] Keep embedding blobs out of debug output --- chrome/content/zotero/xpcom/embeddings.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/embeddings.js b/chrome/content/zotero/xpcom/embeddings.js index 29e2c1d4e0..1369dff4e2 100644 --- a/chrome/content/zotero/xpcom/embeddings.js +++ b/chrome/content/zotero/xpcom/embeddings.js @@ -1198,10 +1198,12 @@ Zotero.Embeddings.Indexing = new function () { } let vector = vectors[j]; let blob = new Uint8Array(vector.buffer, vector.byteOffset, vector.byteLength); + // Keep the embedding blobs out of debug output await Zotero.DB.queryAsync( "REPLACE INTO embeddings.itemEmbeddings (itemID, embedding, sourceHash) " + "VALUES (?, ?, ?)", - [batch[j].item.id, blob, batch[j].hash] + [batch[j].item.id, blob, batch[j].hash], + { debugParams: false } ); } });