8 lines
33 KiB
JavaScript
8 lines
33 KiB
JavaScript
|
|
import{ay as ye,aA as we,az as Ce,aC as f,aB as m,aU as ke,aV as Fe,aD as i,aE as u,aF as v,b2 as D,bY as Q,aG as t,aH as o,aI as d,ce as Se,aK as y,aJ as c,b1 as W,aS as x,ds as q,b3 as Ae,cf as Qe,aZ as eo,aO as Oe,aP as oo,b6 as to,cQ as ao,b7 as lo,b8 as no,aW as te,aX as Te,aY as De,dt as io,cE as so,bX as We,cG as ro,cH as po,bW as ae,b_ as co,bG as le,bJ as M,bI as z,bK as P,bH as N,c0 as Ve,c1 as uo}from"./admin-DgPvPHD7.js";import{_ as _o}from"./icon_import-D9IDqZyN.js";import{b as Me}from"./data-CRwDCy2p.js";const mo="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M0.833313%207.4004C0.833313%207.04021%201.20266%206.79818%201.53291%206.94197L8.77364%2010.0945C8.95607%2010.1739%209.07404%2010.354%209.07404%2010.553V18.339C9.07404%2018.7152%208.67435%2018.9566%208.34141%2018.7816L1.14372%2014.9983C1.05096%2014.9474%200.973499%2014.8738%200.919056%2014.7847C0.864612%2014.6957%200.835079%2014.5943%200.833395%2014.4907L0.833313%2014.4814V7.4004ZM18.4644%206.93223C18.795%206.78607%2019.1666%207.0281%2019.1666%207.38952V14.4814C19.1666%2014.5866%2019.1379%2014.6899%2019.0833%2014.7807C19.0288%2014.8715%2018.9504%2014.9466%2018.8562%2014.9983L11.6585%2018.7816C11.3256%2018.9566%2010.9259%2018.7152%2010.9259%2018.339L10.9259%2010.5912C10.9259%2010.3933%2011.0427%2010.214%2011.2237%2010.1339L18.4644%206.93223ZM9.69988%201.7434C9.79147%201.69315%209.89483%201.66675%209.99998%201.66675C10.1051%201.66675%2010.2085%201.69315%2010.3001%201.7434L17.198%204.80727C17.5962%204.98413%2017.5934%205.55024%2017.1935%205.72316L10.1984%208.74757C10.0718%208.80232%209.92817%208.80232%209.80155%208.74757L2.80644%205.72316C2.40651%205.55025%202.40371%204.98413%202.80191%204.80727L9.69988%201.7434Z'%20fill='white'/%3e%3c/svg%3e",fo="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.18428%204.04678C3.99599%203.49862%204.93827%203.33337%205.56826%203.33337H12.5001C12.0398%203.33337%2011.6667%203.70647%2011.6667%204.16671C11.6667%204.62694%2012.0398%205.00004%2012.5001%205.00004H5.56826C5.17552%205.00004%204.58372%205.11283%204.11702%205.428C3.69634%205.71209%203.33341%206.18316%203.33341%207.06392C3.33341%207.94608%203.69793%208.42805%204.12319%208.72081C4.59235%209.04379%205.18357%209.16132%205.56826%209.16132H14.4978C15.1332%209.16132%2016.0634%209.3331%2016.8602%209.89052C17.7012%2010.4789%2018.3334%2011.4598%2018.3334%2012.9079C18.3334%2014.3555%2017.7017%2015.3385%2016.8624%2015.9298C16.0666%2016.4905%2015.1362%2016.6667%2014.4978%2016.6667H7.50008C7.96032%2016.6667%208.33342%2016.2936%208.33342%2015.8334C8.33342%2015.3731%207.96032%2015%207.50008%2015H14.4978C14.882%2015%2015.4529%2014.8841%2015.9025%2014.5673C16.3087%2014.2812%2016.6667%2013.8014%2016.6667%2012.9079C16.6667%2012.0149%2016.3092%2011.5391%2015.9047%2011.2562C15.4561%2010.9423%2014.8851%2010.828%2014.4978%2010.828H5.56826C4.93022%2010.828%203.98736%2010.6507%203.17811%2010.0936C2.32496%209.50629%201.66675%208.52289%201.66675%207.06392C1.66675%205.60354%202.32656%204.62601%203.18428%204.04678Z'%20fill='white'/%3e%3cpath%20d='M7.50008%2015C7.03984%2015%206.66675%2015.3731%206.66675%2015.8334C6.66675%2016.2936%207.03984%2016.6667%207.50008%2016.6667H2.50008C2.03984%2016.6667%201.66675%2016.2936%201.66675%2015.8334C1.66675%2015.3731%202.03984%2015%202.50008%2015H7.50008Z'%20fill='white'/%3e%3cpath%20d='M12.5001%205.00004C12.9603%205.00004%2013.3334%204.62694%2013.3334%204.16671C13.3334%203.70647%2012.9603%203.33337%2012.5001%203.33337H17.4546C17.9148%203.33337%2018.2879%203.70647%2018.2879%204.16671C18.2879%204.62694%2017.9148%205.00004%2017.4546%205.00004H12.5001Z'%20fill='white'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M12.5%203.33329C12.0398%203.33329%2011.6667%203.70639%2011.6667%204.16663C11.6667%204.62686%2012.0398%204.99996%2012.5%204.99996C12.9602%204.99996%2013.3333%204.62686%2013.3333%204.16663C13.3333%203.70639%2012.9602%203.33329%2012.5%203.33329ZM
|
|||
|
|
- XXX 主要功能有什么?
|
|||
|
|
- XXX 如何收费?
|
|||
|
|
- 需要转人工服务`,tts_type:"BROWSER"},input_field_list:[],user_input_config:{title:"用户输入"},api_input_field_list:[],user_input_field_list:[]}},{id:"start-node",type:"start-node",x:120,y:929.6914999999999,properties:{config:{fields:[{label:"用户问题",value:"question"}],globalFields:[{label:"当前时间",value:"time"},{label:"历史聊天记录",value:"history_context"},{label:"对话 ID",value:"chat_id"}]},fields:[{label:"用户问题",value:"question"}],height:364,showNode:!0,stepName:"开始",globalFields:[{label:"当前时间",value:"time"}]}},{id:"fd0324fc-f5e4-4fa6-a2d9-cb251b467605",type:"search-knowledge-node",x:710,y:929.6914999999999,properties:{config:{fields:[{label:"检索结果的分段列表",value:"paragraph_list"},{label:"满足直接回答的分段列表",value:"is_hit_handling_method_list"},{label:"检索结果",value:"data"},{label:"满足直接回答的分段内容",value:"directly_return"}]},height:794,showNode:!0,stepName:"知识库检索",condition:"AND",node_data:{knowledge_id_list:[],knowledge_setting:{top_n:3,similarity:.6,search_mode:"embedding",max_paragraph_char_number:5e3},question_reference_address:["start-node","question"],all_knowledge_id_list:[],knowledge_list:[]}}},{id:"420a6e4f-44ff-4847-bb81-0923630846b5",type:"condition-node",x:1300,y:929.6914999999999,properties:{width:600,config:{fields:[{label:"分支名称",value:"branch_name"}]},height:544.148,showNode:!0,stepName:"判断器",condition:"AND",node_data:{branch:[{id:"7887",type:"IF",condition:"and",conditions:[{field:["fd0324fc-f5e4-4fa6-a2d9-cb251b467605","is_hit_handling_method_list"],value:1,compare:"is_not_null"}]},{id:"6847",type:"ELSE IF 1",condition:"and",conditions:[{field:["fd0324fc-f5e4-4fa6-a2d9-cb251b467605","paragraph_list"],value:1,compare:"is_not_null"}]},{id:"2794",type:"ELSE",condition:"and",conditions:[]}]},branch_condition_list:[{index:0,height:121.383,id:"7887"},{index:1,height:121.383,id:"6847"},{index:2,height:44,id:"2794"}]}},{id:"36a440a9-5b00-4d82-b13a-8e7819112918",type:"reply-node",x:1890,y:120,properties:{config:{fields:[{label:"内容",value:"answer"}]},height:386,showNode:!0,stepName:"指定回复",condition:"AND",node_data:{fields:["fd0324fc-f5e4-4fa6-a2d9-cb251b467605","directly_return"],content:"",is_result:!0,reply_type:"referencing"}}},{id:"f7c3b4a2-cb80-4e47-b050-7fef0315daaf",type:"ai-chat-node",x:1890,y:929.6914999999999,properties:{config:{fields:[{label:"AI 回答内容",value:"answer"},{label:"思考过程",value:"reasoning_content"}]},height:993.383,showNode:!0,stepName:"AI 对话",condition:"AND",node_data:{prompt:`已知信息:
|
|||
|
|
{{知识库检索.data}}
|
|||
|
|
问题:
|
|||
|
|
{{开始.question}}`,system:"",model_id:"",is_result:!0,max_tokens:null,temperature:null,dialogue_type:"WORKFLOW",model_setting:{reasoning_content_end:"</think>",reasoning_content_start:"<think>",reasoning_content_enable:!1},dialogue_number:1}}},{id:"04dd6c1e-95f9-4757-bb3e-134d503fce54",type:"reply-node",x:1890,y:1798.383,properties:{config:{fields:[{label:"内容",value:"answer"}]},height:504,showNode:!0,stepName:"指定回复1",condition:"AND",node_data:{fields:[],content:"抱歉,没有在知识库查询到相关内容,请提供更详细的信息。",is_result:!0,reply_type:"content"}}}],edges:[{id:"73f8992c-65ef-409a-a151-378d0927f2aa",type:"app-edge",sourceNodeId:"start-node",targetNodeId:"fd0324fc-f5e4-4fa6-a2d9-cb251b467605",startPoint:{x:280,y:929.6914999999999},endPoint:{x:550,y:929.6914999999999},properties:{},pointsList:[{x:280,y:929.6914999999999},{x:390,y:929.6914999999999},{x:440,y:929.6914999999999},{x:550,y:929.6914999999999}],sourceAnchorId:"start-node_right",targetAnchorId:"fd0324fc-f5e4-4fa6-a2d9-cb251b467605_left"},{id:"6a8d23d9-5179-424e-80c2-f08d37cdb8d4",type:"app-edge",sourceNodeId:"fd0324fc-f5e4-4fa6-a2d9-cb251b467605",targetNodeId:"420a6e4f-44ff-4847-bb81-0923630846b5",startPoint:{x:870,y:929.6914999999999},endPoint:{x:1010,y:929.6914999999999},properties:{},pointsList:[{x:870,y:929.6914999999999},{x:980,y:929.6914999999999},{x:900,y:929.6914999999999},{x:1010,y:929.6914999999999}],sourceAnchorId:"fd0324fc-f5e4-4fa6-a2d9-cb251b467605_right",targetAnchorId:"420a6e4f-44ff-4847-bb81-0923630846b5_left"},{id:"56006748-d9fe-491b-a14b-04fd568cac08",type:"app-edge",sourceNodeId:"420a6e4f-44ff-4847-bb81-0923630846b5",targetNodeId:"36a440a9-5b00-4d82-b13a-8e7819112918",startPoint:{x:1590,y:793.3089999999999},endPoint:{x:1730,y:120},properties:{},pointsList:[{x:1590,y:793.3089999999999},{x:1700,y:793.3089999999999},{x:1620,y:120},{x:1730,y:120}],sourceAnchorId:"420a6e4f-44ff-4847-bb81-0923630846b5_7887_right",targetAnchorId:"36a440a9-5b00-4d82-b13a-8e7819112918_left"},{id:"9bc8721b-07aa-4730-9347-910ed64e26b9",type:"app-edge",sourceNodeId:"420a6e4f-44ff-4847-bb81-0923630846b5",targetNodeId:"f7c3b4a2-cb80-4e47-b050-7fef0315daaf",startPoint:{x:1590,y:922.6919999999999},endPoint:{x:1730,y:929.6914999999999},properties:{},pointsList:[{x:1590,y:922.6919999999999},{x:1700,y:922.6919999999999},{x:1620,y:929.6914999999999},{x:1730,y:929.6914999999999}],sourceAnchorId:"420a6e4f-44ff-4847-bb81-0923630846b5_6847_right",targetAnchorId:"f7c3b4a2-cb80-4e47-b050-7fef0315daaf_left"},{id:"c276a5b6-ec29-4ab9-b911-a0a929ff193f",type:"app-edge",sourceNodeId:"420a6e4f-44ff-4847-bb81-0923630846b5",targetNodeId:"04dd6c1e-95f9-4757-bb3e-134d503fce54",startPoint:{x:1590,y:1013.3834999999998},endPoint:{x:1730,y:1798.383},properties:{},pointsList:[{x:1590,y:1013.3834999999998},{x:1700,y:1013.3834999999998},{x:1620,y:1798.383},{x:1730,y:1798.383}],sourceAnchorId:"420a6e4f-44ff-4847-bb81-0923630846b5_2794_right",targetAnchorId:"04dd6c1e-95f9-4757-bb3e-134d503fce54_left"}]}},vo={class:"w-full"},bo={class:"flex-center p-24"},ho={class:"dialog-footer"},yo=ye({__name:"CreateApplicationDialog",emits:["refresh"],setup(Ie,{expose:H,emit:U}){const{user:E}=we(),w=Ce(),X=U,V=f("views.application.form.prompt.defaultPrompt",{data:"{data}",question:"{question}"}),b=f("views.application.dialog.defaultPrompt1",{question:"{question}"})+"<data></data>"+f("views.application.dialog.defaultPrompt2"),g=m({edges:[],nodes:Me}),k=m("blank"),F=m(),C=m(!1),R=m(!1),l=m({name:"",desc:"",model_id:void 0,dialogue_number:1,prologue:f("views.application.form.defaultPrologue"),knowledge_id_list:[],knowledge_setting:{top_n:3,similarity:.6,max_paragraph_char_number:5e3,search_mode:"embedding",no_references_setting:{status:"ai_questioning",value:"{question}"}},model_setting:{prompt:V,system:"",no_references_prompt:"{question}"},model_params_setting:{},problem_optimization:!1,problem_optimization_prompt:b,stt_model_id:void 0,tts_model_id:void 0,stt_model_enable:!1,tts_model_enable:!1,tts_type:"BROWSER",type:"SIMPLE"}),_=ke({name:[{required:!0,message:f("views.applic
|