{
    "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": "分页偏移量（从第几条结果开始）"
            }
        ]
    }
}