Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开发者:优化知识库文档加载 #2091

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

liunux4odoo
Copy link
Collaborator

  • 修复列出知识库磁盘文件时跳过临时文件的bug:只有目录被排除了,文件未排除
  • 优化知识库文档加载器:
    • 将 elements 模式改为 single 模式,避免文档被切分得太碎
    • 给 get_loader 和 KnowledgeFile 增加 loader_kwargs 参数,可以自定义文档加载器参数

- 修复列出知识库磁盘文件时跳过临时文件的bug:只有目录被排除了,文件未排除
- 优化知识库文档加载器:
  - 将 elements 模式改为 single 模式,避免文档被切分得太碎
  - 给 get_loader 和 KnowledgeFile 增加 loader_kwargs 参数,可以自定义文档加载器参数
@liunux4odoo liunux4odoo merged commit ad7a6fd into chatchat-space:dev Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant