WeKnora/internal
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
..
agent fix(browser): let shared-space agents drive the caller's local browser 2026-09-24 18:19:17 +08:00
application fix(retriever/es): keep vectors and enabled state on CopyIndices (#3678) 2026-09-24 20:23:07 +08:00
assets feat(assets): add ASR test audio file and embed it in the application 2026-04-02 21:27:27 +08:00
browserskill fix(browser): refine connection and preview UI with extension version 2026-09-23 10:57:59 +08:00
common fix(markdown): sanitize invalid UTF-8 and NUL bytes 2026-08-31 12:24:35 +08:00
config docs: 迁移有效文档至 website-docs 并清理旧文档 (#3580) 2026-09-22 23:25:40 +08:00
container feat(models): add system admin model catalog console (#3662) 2026-09-24 16:31:45 +08:00
database feat(models): add system admin model catalog console (#3662) 2026-09-24 16:31:45 +08:00
datasource fix(confluence): confirm unlisted pages before deleting after a cut-short listing 2026-09-24 14:18:55 +08:00
embedpolicy fix(embed): enforce host origin allowlists on framed pages 2026-09-14 18:03:57 +08:00
errors feat(knowledge): flag documents that stop making progress (#3557) 2026-09-22 21:34:08 +08:00
event fix(agent): end the turn when the completion cap truncates an answer (#3449) 2026-09-20 13:17:50 +08:00
filetransport refactor(resource-access): unify scoped authorization and transfer recovery (#3097) 2026-09-08 15:36:33 +08:00
handler feat(models): add system admin model catalog console (#3662) 2026-09-24 16:31:45 +08:00
im feat(security): add a whitelist-only outbound mode that refuses before DNS (#3393) 2026-09-23 12:02:06 +08:00
infrastructure feat(security): add a whitelist-only outbound mode that refuses before DNS (#3393) 2026-09-23 12:02:06 +08:00
ipclass fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
localsandbox feat(sandbox): run unpinned Lite sessions on the host OS sandbox (#3549) 2026-09-22 19:35:03 +08:00
logger fix(sandbox): record product-level Langfuse spans and detach idle sweeps 2026-08-31 19:42:32 +08:00
mcp fix: align client sessions and integration request handling (#3305) 2026-09-16 16:20:57 +08:00
mcpserver fix(mcp): return accessible image URLs from existing tools (#3650) 2026-09-24 11:56:25 +08:00
middleware fix(knowledge): stop pipeline errors from stranding rows in processing 2026-09-22 20:33:18 +08:00
modelcontext refactor(models): rebuild vendor integration on protocol + catalog + vendor layers (#3470) 2026-09-20 21:28:23 +08:00
models feat(models): add system admin model catalog console (#3662) 2026-09-24 16:31:45 +08:00
ratelimit feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
router feat(models): add system admin model catalog console (#3662) 2026-09-24 16:31:45 +08:00
runtime fix(redis): harden TLS tests and surface TLS config at startup 2026-07-06 23:04:52 +08:00
sandbox feat(security): add a whitelist-only outbound mode that refuses before DNS (#3393) 2026-09-23 12:02:06 +08:00
searchutil fix: satisfy revive unused-parameter and gofumpt in #3493 review findings 2026-09-22 17:52:49 +08:00
storageallowlist fix(storage): align default provider fallback with STORAGE_ALLOW_LIST 2026-07-15 11:05:00 +08:00
storageurl fix(mcp): return accessible image URLs from existing tools (#3650) 2026-09-24 11:56:25 +08:00
stream feat(session): in-place rewind with workspace checkpoint reset (#3469) 2026-09-20 21:01:00 +08:00
textconv fix: remove GPL converter and bundle third-party license sources 2026-09-08 15:19:10 +08:00
tracing/langfuse fix(milvus): preserve keyword retrieval scores 2026-09-17 11:59:40 +08:00
types feat(models): add system admin model catalog console (#3662) 2026-09-24 16:31:45 +08:00
utils feat(security): add a whitelist-only outbound mode that refuses before DNS (#3393) 2026-09-23 12:02:06 +08:00