WeKnora/internal/application
lyingbug 65d8129cb6
fix(retriever/es): keep vectors and enabled state on CopyIndices (#3678)
* fix(retriever/es): keep vectors and enabled state on CopyIndices

BatchSave looks up embeddings by IndexInfo.SourceID, but the v8 copy path
keyed the map by target chunk ID, so generated-question rows and rows with a
remapped SourceID lost their vector, and rows sharing a chunk collided on one
key. v7 built the map and then passed an empty one to BatchSave, dropping
every vector. v8 also never set IsEnabled on copied rows, so they were
written as disabled and filtered out of retrieval.

Key the embedding map by the target SourceID in both versions, carry the
source row's is_enabled in v8 (a row without the field copies as enabled,
matching retrieval), and scan the source KB without the retrieval-time
disabled filter so disabled chunks are copied as disabled instead of
missing from the target index.

* chore: re-trigger CodeCC scan (previous run returned no result)
2026-09-24 20:23:07 +08:00
..
access feat(artifacts): let users delete generated files (#3447) 2026-09-20 13:01:46 +08:00
repository fix(retriever/es): keep vectors and enabled state on CopyIndices (#3678) 2026-09-24 20:23:07 +08:00
service fix(browser): let shared-space agents drive the caller's local browser 2026-09-24 18:19:17 +08:00