67 lines
2.1 KiB
XML
67 lines
2.1 KiB
XML
{
|
|
"widgettype": "VBox",
|
|
"options": {
|
|
"width": "100%",
|
|
"height": "100%",
|
|
"bgcolor": "#f5f5f5"
|
|
},
|
|
"subwidgets": [
|
|
{
|
|
"widgettype": "Form",
|
|
"id": "test_form",
|
|
"options": {
|
|
"fields": [
|
|
{
|
|
"name": "query",
|
|
"uitype": "text",
|
|
"label": "输入查询文本",
|
|
"editable": true,
|
|
"rows": 5
|
|
},
|
|
{
|
|
"name": "fiids",
|
|
"uitype": "checkbox",
|
|
"label": "选择知识库",
|
|
"valueField": "id",
|
|
"textField": "name",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('rag')}}",
|
|
"table": "kdb",
|
|
"tblvalue": "id",
|
|
"tbltext": "name",
|
|
"valueField": "id",
|
|
"textField": "name"
|
|
},
|
|
"dataurl": "{{entire_url('/rag/get_user_kdb.dspy')}}",
|
|
"multicheck": true
|
|
},
|
|
{
|
|
"name": "limit",
|
|
"uitype": "int",
|
|
"label": "输入返回条数"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "result_panel",
|
|
"widgettype": "VScrollPanel",
|
|
"options": {
|
|
"height": "90%",
|
|
"bgcolor": "#ffffff",
|
|
"border": "1px solid #cccccc"
|
|
}
|
|
}
|
|
],
|
|
"binds": [
|
|
{
|
|
"wid": "test_form",
|
|
"event": "submit",
|
|
"actiontype": "urlwidget",
|
|
"target": "result_panel",
|
|
"options": {
|
|
"url": "{{entire_url('/rag/test_query.dspy')}}"
|
|
}
|
|
}
|
|
]
|
|
} |