解决macos上传压缩包隐藏文件问题和遇到HTML表格时会把<table>/<tr>/<td>切在半截,所以前端MarkdownViewe…#9551
Closed
thx112 wants to merge 1 commit intojeecgboot:mainfrom
Closed
解决macos上传压缩包隐藏文件问题和遇到HTML表格时会把<table>/<tr>/<td>切在半截,所以前端MarkdownViewe…#9551thx112 wants to merge 1 commit intojeecgboot:mainfrom
thx112 wants to merge 1 commit intojeecgboot:mainfrom
Conversation
…r渲染时就会出现裸露的<td>和残缺表格问题
|
pr 已经验证并合并,待新版本发布 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
第一个是“文档库上传会出现错误的 .xxxx 文件”。根因是 zip 导入后端没有过滤 macOS 压缩包自带的隐藏文件,像 .、__MACOSX/、.DS_Store 也被当成正式文档入库了。我在 AiragKnowledgeDocServiceImpl.java (line 391) 增加了 zip 条目过滤逻辑。现在再上传文档库压缩包时,这类系统隐藏文件会直接跳过,不会再生成失败文档卡片。
第二个是“命中测试里段落详情显示 HTML 表格时出现多余 、表格不完整”。根因不是弹窗组件,而是后端向量化分段时把 HTML 表格标签切断了,命中详情展示的其实是一个被切坏的 chunk。我在 EmbeddingHandler.java (line 140) 和 EmbeddingHandler.java (line 212) 改成了“完整
...