Files
qhmes/deploy-qhmes/frontend/js/AiKnowledgeBase.data-nRlwSUyf.js
2026-05-15 11:34:12 +08:00

2 lines
1.8 KiB
Java
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.
const t=[{label:"id",field:"id",component:"Input",show:!1},{label:"知识库名称",field:"name",required:!0,componentProps:{placeholder:"请输入知识库名称",showCount:!0,maxlength:64},component:"Input"},{label:"知识库描述",field:"descr",component:"InputTextArea",componentProps:{placeholder:"描述知识库的内容详尽的描述将帮助AI能深入理解该知识库的内容能更准确的检索到内容提高该知识库的命中率。",showCount:!0,maxlength:256}},{label:"向量模型",field:"embedId",required:!0,component:"JDictSelectTag",componentProps:{dictCode:"airag_model where model_type = 'EMBED' and activate_flag = 1,name,id"}},{label:"状态",field:"status",required:!0,component:"JDictSelectTag",componentProps:{options:[{label:"启用",value:"enable"},{label:"禁用",value:"disable"}],type:"radioButton"},defaultValue:"enable"},{label:"类型",field:"type",required:!0,component:"JDictSelectTag",componentProps:{options:[{label:"知识库",value:"knowledge"},{label:"记忆库",value:"memory"}],type:"radioButton"},defaultValue:"knowledge"}],l=[{label:"id",field:"id",component:"Input",show:!1},{label:"知识库id",field:"knowledgeId",show:!1,component:"Input"},{label:"标题",field:"title",required:!0,component:"Input"},{label:"类型",field:"type",required:!0,component:"Input",show:!1},{label:"内容",field:"content",rules:[{required:!0,message:"请输入内容"}],component:"JMarkdownEditor",componentProps:{placeholder:"请输入内容",preview:{mode:"view",action:[]}},ifShow:({values:e})=>e.type==="text"},{label:"文件",field:"filePath",rules:[{required:!0,message:"请上传文件"}],component:"JUpload",helpMessage:"支持txt、markdown、pdf、docx、xlsx、pptx",componentProps:{fileType:"file",maxCount:1,multiple:!1,text:"上传文档"},ifShow:({values:e})=>e.type==="file"}];export{l as d,t as f};