mirror of
https://github.com/zotero/zotero.git
synced 2026-09-12 23:01:22 +00:00
Keep embedding blobs out of debug output
This commit is contained in:
parent
92853d6d90
commit
eb0684d231
1 changed files with 3 additions and 1 deletions
|
|
@ -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 }
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue