refactor(knowledge): migrate to JobManager (#15213)

This commit is contained in:
fullex
2026-05-21 10:54:59 +08:00
committed by GitHub
parent 70b5c62c7c
commit 84e1732d28
25 changed files with 1761 additions and 3569 deletions

View 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).