- models/ 重建为正确表定义格式(summary+fields+indexes),覆盖全部 11 个表 修正原 models/ 误放 CRUD 格式副本(缺 summary)导致 json2ddl 100% 失败被静默忽略 - json/ 6 个 CRUD 定义 tblname 加前缀 + 文件改名 - 129 处 SQL/sor 表名加 rag_ 前缀(URL 路径 knowledge_bases_list 保持不变) - 新增 init/migrate_rag_prefix.sql 幂等 RENAME TABLE 迁移
71 lines
1.7 KiB
JSON
71 lines
1.7 KiB
JSON
{
|
|
"tblname": "rag_knowledge_bases",
|
|
"params": {
|
|
"title": "知识库管理",
|
|
"browserfields": [
|
|
{
|
|
"field": "name",
|
|
"title": "名称",
|
|
"width": "20%"
|
|
},
|
|
{
|
|
"field": "description",
|
|
"title": "描述",
|
|
"width": "30%"
|
|
},
|
|
{
|
|
"field": "doc_count",
|
|
"title": "文档数",
|
|
"width": "10%"
|
|
},
|
|
{
|
|
"field": "total_size",
|
|
"title": "大小",
|
|
"width": "10%"
|
|
},
|
|
{
|
|
"field": "embedding_engine",
|
|
"title": "向量引擎",
|
|
"width": "15%"
|
|
},
|
|
{
|
|
"field": "created_at",
|
|
"title": "创建时间",
|
|
"width": "15%"
|
|
}
|
|
],
|
|
"editfields": [
|
|
{
|
|
"field": "name",
|
|
"uitype": "Text",
|
|
"required": true
|
|
},
|
|
{
|
|
"field": "description",
|
|
"uitype": "Text"
|
|
},
|
|
{
|
|
"field": "embedding_engine",
|
|
"uitype": "Text",
|
|
"default": "clip-vith14"
|
|
},
|
|
{
|
|
"field": "vdb_collection",
|
|
"uitype": "Text"
|
|
},
|
|
{
|
|
"field": "graph_name",
|
|
"uitype": "Text"
|
|
}
|
|
],
|
|
"searchfields": [
|
|
"name",
|
|
"description"
|
|
],
|
|
"sort": "created_at desc",
|
|
"data_filter": {
|
|
"org_id": "{{userorgid}}"
|
|
}
|
|
}
|
|
}
|