mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-03 12:27:41 +08:00
refactor(knowledge): migrate to JobManager (#15213)
This commit is contained in:
5
.changeset/libsql-replace-by-external-id.md
Normal file
5
.changeset/libsql-replace-by-external-id.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@vectorstores/libsql': patch
|
||||
---
|
||||
|
||||
Add `LibSQLVectorStore.replaceByExternalId(externalId, nodes)` — an atomic DELETE + INSERT inside a single libSQL `client.batch(..., 'write')` transaction. Crash-retrying a caller that previously wrote chunks for the same `external_id` no longer leaves orphan chunks (the transaction wipes the prior set atomically), and never destroys pre-existing chunks on insert failure (the transaction rolls back).
|
||||
Reference in New Issue
Block a user