WeKnora/internal/application/repository/retriever
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
..
doris fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
elasticsearch fix(retriever/es): keep vectors and enabled state on CopyIndices (#3678) 2026-09-24 20:23:07 +08:00
milvus refactor: remove unused private Go helpers 2026-09-17 15:51:51 +08:00
neo4j fix(graph): 给 Neo4j SearchNode 加上种子上限与行数兜底,避免一次查询拉回整个邻域 (#3550) 2026-09-23 11:57:57 +08:00
opensearch refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
postgres refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
qdrant fix(qdrant): treat a missing dimension collection as an empty delete target (#3419) 2026-09-20 11:12:18 +08:00
sqlite refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
tencentvectordb refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
weaviate refactor: remove unused private Go helpers 2026-09-17 15:51:51 +08:00