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

添加分段的分段内容字数限制,建议参数化,并在前端页面可调,而不是写死-4096 #477

Closed
jingruhou opened this issue May 17, 2024 · 3 comments

Comments

@jingruhou
Copy link

MaxKB 版本

版本号:v1.1.2 (build at 2024-05-10T11:16, commit: d724a54)

请描述您的需求或者改进建议

添加分段的分段内容字数有限制.
建议参数化,并在前端页面可调,而不是写死-4096

请描述你建议的实现方案

No response

附加信息

微信图片_20240517183654

@baixin513
Copy link
Contributor

感谢反馈,目前数据库字段最大长度是4096,我们后续再考虑一下。

@jingruhou
Copy link
Author

Dify中的分段数据貌似就没有4096的限制

image

@baixin513
Copy link
Contributor

分段内容长度扩展为10万个字符, 由使用用户自行把握分段长度,但如果分段过长,超过模型接收的字符数,模型会返回错误。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants