You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/opt/maxkb/app/apps/dataset/serializers/document_serializers.py", line 655, in handler
DocumentSerializers.Create(data={'dataset_id': dataset_id}).save(
File "/opt/maxkb/app/apps/common/util/common.py", line 63, in run
result = func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/contextlib.py", line 81, in inner
return func(*args, **kwds)
^^^^^^^^^^^^^^^^^^^
File "/opt/maxkb/app/apps/dataset/serializers/document_serializers.py", line 625, in save
DocumentInstanceSerializer(data=instance).is_valid(raise_exception=True)
File "/opt/py3/lib/python3.11/site-packages/rest_framework/serializers.py", line 235, in is_valid
raise ValidationError(self.errors)
rest_framework.exceptions.ValidationError: {'name': [ErrorDetail(string='【 文档名称】请确保此字段的字符数不超过 128 个。', code='max_length')]}
附加信息
No response
The text was updated successfully, but these errors were encountered:
联系方式
No response
MaxKB 版本
v1.2.1
问题描述
知识库上传在线文档时如何网站连接过长会上传失败(前端显示上传成功,但实际不显示),查看docker环境报错了解到是因为爬取内容时会将网站链接设置为默认文档名称,同时对默认文档名称做了长度判断
重现步骤
爬取一个超过指定长度的链接上传知识库就会出问题,
期待的正确结果
默认文档名称可以自定义修改或者进行字符长度截断,不然长链接网站内容无法进行爬取。
相关日志输出
附加信息
No response
The text was updated successfully, but these errors were encountered: