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

50 lines
1.6 KiB
XML
Raw 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": "输入查询内容以搜索知识库中的相关文档",
"submit_url": "{{entire_url('api/query')}}",
"fields": [
{
"name": "prompt",
"uitype": "text",
"label": "查询内容",
"required": true,
"description": "请输入查询文本"
},
{
"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"
},
{
"name": "limit",
"uitype": "number",
"label": "结果数量",
"value": 10,
"required": true,
"description": "每页显示的结果数1-16384"
},
{
"name": "offset",
"uitype": "number",
"label": "偏移量",
"value": 0,
"required": true,
"description": "分页偏移量(从第几条结果开始)"
}
]
}
}