WeKnora/internal
“jiangyijun” 6bc8e9ed49 fix(vectordb): 修复 question 数据复制到向量数据库的 ID 映射问题
主要改进:
1. CopyIndices 新增分页查询逻辑(每页500条),避免大批量数据查询失败
2. 修复 ID 字段优先级:优先使用 IndexInfo.ID,兜底使用 ChunkID
3. 新增 translateSourceID 函数,智能处理 question 类型数据的 SourceID 映射:
   - 当 SourceID == ChunkID 时,直接映射为目标 ChunkID
   - 当 SourceID 为 "ChunkID-QuestionID" 格式时,保留 QuestionID 部分
   - 其他情况使用 SHA256 生成稳定的映射 ID

影响范围:
- 修改文件:internal/application/repository/retriever/tencentvectordb/repository.go
- 新增函数:copySourceQueryParams、remapCopiedEmbeddings、translateSourceID
2026-06-17 05:08:50 +08:00
..
agent feat(i18n): add optional embedding model descriptions for multiple locales 2026-06-16 23:51:29 +08:00
application fix(vectordb): 修复 question 数据复制到向量数据库的 ID 映射问题 2026-06-17 05:08:50 +08:00
assets feat(assets): add ASR test audio file and embed it in the application 2026-04-02 21:27:27 +08:00
common perf(common): compile LLM-JSON code-fence regexp once 2026-06-16 19:52:00 +08:00
config test: add document process task options tests 2026-05-28 20:27:53 +08:00
container feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
database feat(system-info): surface DB migration errors with troubleshooting links 2026-05-14 16:34:50 +08:00
datasource fix(datasource): align Feishu connector capabilities 2026-06-04 15:33:03 +08:00
errors feat(knowledge): track per-stage parsing progress with /stages API 2026-05-28 15:14:45 +08:00
event fix(event): add panic recovery to async goroutines 2026-06-04 15:37:08 +08:00
handler feat(wiki): implement folder management features in wiki API 2026-06-16 23:51:29 +08:00
im feat(embed): add backend embed channels with auth and rate limiting (#1657) 2026-06-12 23:10:39 +08:00
infrastructure fix(chunker): carry deep sub-heading context into large-section chunks 2026-06-16 16:56:57 +08:00
logger refactor(logger): support LOG_FORMAT template and harden level coloring 2026-05-22 20:31:54 +08:00
mcp feat(mcp): implement reconnection logic for MCP tool calls and tool listing 2026-03-31 11:57:15 +08:00
middleware fix: mark knowledge delete failures after retry exhaustion 2026-06-16 16:47:46 +08:00
models feat(observability): enhance Langfuse retrieve and rerank tracing 2026-06-16 01:09:23 +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(wiki): implement folder management features in wiki API 2026-06-16 23:51:29 +08:00
runtime feat(system): add server startup time and uptime tracking 2026-06-04 15:48:04 +08:00
sandbox perf(sandbox): compile command-substitution regexps once 2026-06-16 19:51:32 +08:00
searchutil feat(backend): improve parent-child chunk merge and imageinfo matching 2026-06-16 01:09:07 +08:00
stream feat(redis): add REDIS_USERNAME support for Redis ACL 2026-02-04 19:38:40 +08:00
tracing/langfuse feat(observability): enhance Langfuse retrieve and rerank tracing 2026-06-16 01:09:23 +08:00
types feat(wiki): implement folder management features in wiki API 2026-06-16 23:51:29 +08:00
utils fix(embedding): support native Gemini embeddings 2026-06-02 21:37:58 +08:00