JSJ189

Results comments of JSJ189

## Confirmed on v0.5.23 — the effective value is exposed and correct, but the field next to it still reports the requested value Adding a data point for 0.5.23, since...

配套 issue:#5656(同一批文档里另一个确定性失败路径 —— wiki 页创建撞唯一键 23505,重试永不成功,正是把 span 心跳刷成'仍在推进'的来源之一)。

配套 issue:#5655(这个确定性失败会反复写 postprocess.wiki span,使 housekeeping 的 span 心跳永远新鲜,48h 兜底与 rearmWikiTriggers 都不触发,文档因此永久停在 finalizing)。

Confirming this is still present on **18.4.2 / Windows 11** (this report was on 18.3.1 / macOS), and adding a concrete affected host: I enumerated the RPC surface with `get_available_commands`...

分块列表看不到 `image_ocr` / `image_caption` 的需求,改为 feature 跟踪:#4129。 范围收窄为「能查看这些已参与检索的分块」,而不是让无 `chunk_type` 参数的列表接口默认返回全部类型。问答上下文被父分块占位符替换的问题已由 #3052 / #3064 修复,不在本 issue 继续跟踪。

补一个直接相关的需求:#4923 支持编辑 `image_ocr` / `image_caption` 分块并重算 embedding(画廊图片描述可修改)。 两者是同一件事的两半:本 issue 解决「能看到实际进入检索的文本」,#4923 解决「看到之后能改」。 当前只做查看还差最后一步 —— `PUT /api/v1/chunks/{knowledge_id}/{chunk_id}` 对非 `text` 类型直接返回 `only text chunks can be edited`(`internal/application/service/chunk.go:501`,v0.8.3 与 v0.9.0 内容一致)。所以本 issue 的查看能力上线后,`image_ocr` /...

### 补充源码排查与轻量修复路径建议 (Follow-up Discovery) 我们进一步深入阅读了源码,定位到了 HTML 表格在预处理阶段被「放弃转换」的精确代码位置: #### 1. 根因定位:`html_table_normalizer.go` 的退火保护逻辑 在 `internal/infrastructure/docparser/html_table_normalizer.go:120-125`: ```go // htmlSpanAttrPattern detects rowspan/colspan values greater than 1, which // Markdown tables cannot represent; such tables...

补记一个和本 issue 正交的副作用,没有把两种修复绑在一起。 表头一旦重复出现在每个子切片上(解析器自带,或将来 `header_tracker` 做了继承),这些子块会在检索里变成近重复命中,占满 top-k。父子分块目前只在 `knowledgebase_search_results.go` 里**追加**父块,不把同父的子块收成一个名额。 已另开 #4739 记录「按 ParentChunkID 聚合槽位」。本 issue 仍只跟踪「HTML 表丢失表头」。两者不要合成一个修复:表头继承继续需要;名额聚合不能做成 #1485 那种按正文相似度删行。

> 1. 我想认领这个问题。确认了一下,`main`(e0c28bef3)上 `wiki_ingest_batch.go` 的 `mapOneDocument` 仍然在调用 `extractCandidateSlugs` 之前把内容硬截到 `maxContentForWiki = 32768`,[#2977](https://github.com/Tencent/WeKnora/issues/2977) 里提到的 `splitContentIntoSegments` 也还没进主线。我想到两种改法:(a) 按带重叠的窗口把全文分段,逐段跑候选提取,再按 slug 合并进 `slugItems`,覆盖完整,但长文档的 LLM 调用次数会随段数增加,可能需要一个段数上限;(b) 复用 `knowledge_process.go` 里的 `sampleLongContent` 取头/中/尾,调用次数不变,但中间仍会漏内容,所以同时在 wiki trace 里记一个 `truncated`...

Same symptom reproduced on **v0.9.0**, at larger scale, with quantitative evidence. Adding measurements that turn this from "suspected" into "structurally inevitable". ## Environment - WeKnora **v0.9.0** (release; local checkout commit...