Skip to content

[BUG]对txt文档的格式要求要严格了 #8

Closed

Description

@cnliucheng

联系方式

No response

MaxKB 版本

0.9

问题描述

无论是word转txt,还是新建txt文档,上传后都不能识别,段落是0,字符数也是0,实在无语。另外,居然不支持docx和pdf文件,局限性太大了吧

重现步骤

docx转txt后无法识别

期待的正确结果

可以正确识别txt文件

相关日志输出

2024-03-22 12:56:13 [listener_manage INFO] 开始--->向量化文档:81e41878-e808-11ee-8dfc-0242ac120003
2024-03-22 12:56:13 [basehttp INFO] "POST /api/dataset/04c51c78-e805-11ee-b157-0242ac120003/document/_bach HTTP/1.1" 200 393
2024-03-22 12:56:13 [listener_manage INFO] 结束--->向量化文档:81e41878-e808-11ee-8dfc-0242ac120003
2024-03-22 12:56:14 [basehttp INFO] "GET /ui/assets/icon_document-2fa30876.svg HTTP/1.1" 200 1376
2024-03-22 12:56:14 [basehttp INFO] "GET /api/dataset HTTP/1.1" 200 366
2024-03-22 12:56:14 [basehttp INFO] "GET /api/dataset/04c51c78-e805-11ee-b157-0242ac120003/document/1/10 HTTP/1.1" 200 444
2024-03-22 12:56:14 [basehttp INFO] "GET /api/dataset/04c51c78-e805-11ee-b157-0242ac120003 HTTP/1.1" 200 391
2024-03-22 12:56:14 [basehttp INFO] - Broken pipe from ('222.90.143.25', 35901)
2024-03-22 12:56:14 [basehttp INFO] "GET /ui/assets/icon_document-2fa30876.svg HTTP/1.1" 200 1376
2024-03-22 12:56:15 [basehttp INFO] - Broken pipe from ('222.90.143.25', 36208)
2024-03-22 12:56:16 [basehttp INFO] "GET /ui/assets/index-3d9325d8.js HTTP/1.1" 200 5566
2024-03-22 12:56:16 [basehttp INFO] "GET /ui/assets/index-0432a3d8.css HTTP/1.1" 200 2044
2024-03-22 12:56:17 [basehttp INFO] "GET /ui/assets/icon_document-2fa30876.svg HTTP/1.1" 200 1376
2024-03-22 12:56:17 [basehttp INFO] - Broken pipe from ('222.90.143.25', 36209)
2024-03-22 12:56:20 [basehttp INFO] "GET /api/dataset/04c51c78-e805-11ee-b157-0242ac120003/hit_test?query_text=%E5%AE%89%E5%85%A8&similarity=0.6&top_number=5 HTTP/1.1" 200 52
2024-03-22 12:56:20 [basehttp INFO] "GET /ui/assets/user-icon-c413d294.svg HTTP/1.1" 304 0
2024-03-22 12:56:56 [log WARNING] Unauthorized: /api/dataset/04c51c78-e805-11ee-b157-0242ac120003/document/_bach
2024-03-22 12:56:56 [basehttp WARNING] "HEAD /api/dataset/04c51c78-e805-11ee-b157-0242ac120003/document/_bach HTTP/1.1" 401 86
2024-03-22 12:57:35 [basehttp INFO] "GET /api/user_manage/1/20 HTTP/1.1" 200 369
2024-03-22 12:58:59.115 CST [67] LOG:  checkpoint starting: time
2024-03-22 12:59:00.205 CST [67] LOG:  checkpoint complete: wrote 11 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.010 s, sync=0.034 s, total=1.090 s; sync files=10, longest=0.028 s, average=0.004 s; distance=1 kB, estimate=837 kB

附加信息

No response

Activity

  1. baixin513 commented on Mar 22, 2024

    @baixin513
    Member

    感谢您的反馈, 当前支持的文档格式确实不多,后续会支持更多格式的文档。
    需要您确认一下:
    1、您的docx文件转成 txt文件后能否使用文本编辑器正常打开查看 ?
    2、编码格式是 Unicode (UTF-8) 还是其他格式 ?

  2. cnliucheng commented on Mar 22, 2024

    @cnliucheng
    Author

    感谢您的反馈, 当前支持的文档格式确实不多,后续会支持更多格式的文档。

    需要您确认一下:

    1、您的docx文件转成 txt文件后能否使用文本编辑器正常打开查看 ?

    2、编码格式是 Unicode (UTF-8) 还是其他格式 ?

    奇怪了,同一个TXT文档,在fastgpt中可以正常分段,在这里确只能识别五六个字,困惑

  3. baixin513 commented on Mar 23, 2024

    @baixin513
    Member

    您好,TXT 编码格式问题我们正在解决,等下个版本更新。

  4. added this to the 0.9.1 milestone on Mar 25, 2024
  5. wanghe-fit2cloud commented on Mar 26, 2024

    @wanghe-fit2cloud
    Member

    v0.9.1 版本已发布。

  6. added a commit that references this issue on Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions