rag/wwwroot/add.ui
2025-07-16 15:06:59 +08:00

35 lines
1.1 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"widgettype": "Form",
"options": {
"height": "70%",
"title": "向知识库添加文件",
"description": "支持的文件类型:.txt, .csv, .xlsx, .docx, .pptx, .pdf",
"method": "POST",
"submit_url": "{{entire_url('api/add')}}",
"fields": [
{
"name": "file_path",
"uitype": "file",
"label": "选择文件",
"required": true,
"description": "支持格式txt, csv, xlsx, docx, pptx, pdf"
},
{
"name": "userid",
"uitype": "str",
"label": "用户 ID",
"value": "user1",
"required": true,
"description": "请输入用户 ID不超过 100 字符)"
},
{
"name": "db_type",
"uitype": "str",
"label": "知识库名称",
"required": true,
"value": "textdb",
"description": "请输入知识库名称(如 textdb, pptdb"
}
]
}
}