\ No newline at end of file
+404: This page could not be found
404
This page could not be found.
\ No newline at end of file
diff --git a/pilot/server/static/404/index.html b/pilot/server/static/404/index.html
index a129dad56..e887f40f4 100644
--- a/pilot/server/static/404/index.html
+++ b/pilot/server/static/404/index.html
@@ -1 +1 @@
-404: This page could not be found
404
This page could not be found.
\ No newline at end of file
+404: This page could not be found
404
This page could not be found.
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/A03tTCRMVq61CqNtuDOvh/_buildManifest.js b/pilot/server/static/_next/static/9LH3ZUeLe8qGf5V4iFVgD/_buildManifest.js
similarity index 100%
rename from pilot/server/static/_next/static/A03tTCRMVq61CqNtuDOvh/_buildManifest.js
rename to pilot/server/static/_next/static/9LH3ZUeLe8qGf5V4iFVgD/_buildManifest.js
diff --git a/pilot/server/static/_next/static/A03tTCRMVq61CqNtuDOvh/_ssgManifest.js b/pilot/server/static/_next/static/9LH3ZUeLe8qGf5V4iFVgD/_ssgManifest.js
similarity index 100%
rename from pilot/server/static/_next/static/A03tTCRMVq61CqNtuDOvh/_ssgManifest.js
rename to pilot/server/static/_next/static/9LH3ZUeLe8qGf5V4iFVgD/_ssgManifest.js
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-15bd54399f756d3e.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-15bd54399f756d3e.js
deleted file mode 100644
index 2c7d1dce2..000000000
--- a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-15bd54399f756d3e.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{42414:function(e,t,n){Promise.resolve().then(n.bind(n,87278))},87278:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return K}});var s=n(9268),a=n(56008),i=n(86006),r=n(50645),o=n(5737),l=n(78635),c=n(80937),d=n(44334),x=n(311),u=n(22046),g=n(53113),h=n(83192),m=n(58927),p=n(81528),j=n(90545),Z=n(35086),f=n(866),v=n(28086),y=n(65326),b=n.n(y),w=n(72474),P=n(59534),k=n(78141),_=n(68949),S=n(73220),C=n(50157),R=n(23910),z=n(21628),B=n(29766),L=n(78915),T=n(89081),D=n(59970),F=n(30929),N=n(79214),E=n(99011),O=n(62483),A=n(76394),I=n.n(A),U=e=>{var t,n,a,r,l,d,x,u,h,m,v,y,b,w,P,k,_,S;let{spaceName:C}=e,[B,A]=(0,i.useState)(!1),[U,V]=(0,i.useState)({}),{data:M}=(0,T.Z)(()=>(0,L.PR)("/knowledge/".concat(C,"/arguments")),{onSuccess(e){V(e.data)}}),W=[{key:"Embedding",label:(0,s.jsxs)(j.Z,{children:[(0,s.jsx)(N.Z,{sx:{marginRight:"5px"}}),"Embedding"]}),children:(0,s.jsxs)(j.Z,{children:[(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["topk",(0,s.jsx)(R.Z,{content:"the top k vectors based on similarity score",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(t=M.data)||void 0===t?void 0:null===(n=t.embedding)||void 0===n?void 0:n.topk)||"",onChange:e=>{U.embedding.topk=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["recall_score",(0,s.jsx)(R.Z,{content:"Set a threshold score for the retrieval of similar vectors",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:""+(null==M?void 0:null===(a=M.data)||void 0===a?void 0:null===(r=a.embedding)||void 0===r?void 0:r.recall_score)||"",onChange:e=>{U.embedding.recall_score=e.target.value,V({...U})},disabled:!0})})]})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["recall_type",(0,s.jsx)(R.Z,{content:"recall type",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(l=M.data)||void 0===l?void 0:null===(d=l.embedding)||void 0===d?void 0:d.recall_type)||"",onChange:e=>{U.embedding.recall_type=e.target.value,V({...U})},disabled:!0})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["model",(0,s.jsx)(R.Z,{content:"A model used to create vector representations of text or other data.The model only supports the Hugging Face specification(https://huggingface.co).",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(x=M.data)||void 0===x?void 0:null===(u=x.embedding)||void 0===u?void 0:u.model)||"",onChange:e=>{U.embedding.model=e.target.value,V({...U})},disabled:!0,startDecorator:(0,s.jsx)(I(),{src:"/huggingface_logo.svg",alt:"huggingface logo",width:20,height:20})})})]})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["chunk_size",(0,s.jsx)(R.Z,{content:"The size of the data chunks used in processing",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(h=M.data)||void 0===h?void 0:null===(m=h.embedding)||void 0===m?void 0:m.chunk_size)||"",onChange:e=>{U.embedding.chunk_size=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["chunk_overlap",(0,s.jsx)(R.Z,{content:"The amount of overlap between adjacent data chunks",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(v=M.data)||void 0===v?void 0:null===(y=v.embedding)||void 0===y?void 0:y.chunk_overlap)||"",onChange:e=>{U.embedding.chunk_overlap=e.target.value,V({...U})}})})]})]})]})},{key:"Prompt",label:(0,s.jsxs)(j.Z,{children:[(0,s.jsx)(E.Z,{sx:{marginRight:"5px"}}),"Prompt"]}),children:(0,s.jsxs)(j.Z,{sx:{maxHeight:"600px",overflow:"auto","&::-webkit-scrollbar":{display:"none"}},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",marginTop:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["scene",(0,s.jsx)(R.Z,{content:"A contextual parameter used to define the setting or environment in which the prompt is being used",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(f.Z,{defaultValue:(null==M?void 0:null===(b=M.data)||void 0===b?void 0:null===(w=b.prompt)||void 0===w?void 0:w.scene)||"",onChange:e=>{U.prompt.scene=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["template",(0,s.jsx)(R.Z,{content:"A pre-defined structure or format for the prompt, which can help ensure that the AI system generates responses that are consistent with the desired style or tone.",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(f.Z,{defaultValue:(null==M?void 0:null===(P=M.data)||void 0===P?void 0:null===(k=P.prompt)||void 0===k?void 0:k.template)||"",onChange:e=>{U.prompt.template=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["max_token",(0,s.jsx)(R.Z,{content:"The maximum number of tokens or words allowed in a prompt",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(_=M.data)||void 0===_?void 0:null===(S=_.prompt)||void 0===S?void 0:S.max_token)||"",onChange:e=>{U.prompt.max_token=e.target.value,V({...U})}})})]})]})}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.Z,{variant:"outlined",onClick:()=>A(!0),children:[(0,s.jsx)(F.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Arguments"]}),(0,s.jsx)(p.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:B,onClose:()=>A(!1),children:(0,s.jsxs)(o.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,s.jsx)(O.Z,{defaultActiveKey:"Embedding",items:W}),(0,s.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",sx:{marginTop:"20px",marginBottom:"20px"},children:(0,s.jsx)(g.Z,{variant:"outlined",onClick:()=>{(0,L.PR)("/knowledge/".concat(C,"/argument/save"),{argument:JSON.stringify(U)}).then(e=>{e.success?(window.location.reload(),z.ZP.success("success")):z.ZP.error(e.err_msg||"failed")})},children:"Submit"})})]})})]})};let{Dragger:V}=C.default,M=(0,r.Z)(o.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),W=["Choose a Datasource type","Setup the Datasource"],H=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var K=()=>{let e=(0,a.useRouter)(),t=(0,a.useSearchParams)().get("name"),{mode:n}=(0,l.tv)(),[r,y]=(0,i.useState)(!1),[C,T]=(0,i.useState)(0),[D,F]=(0,i.useState)(""),[N,E]=(0,i.useState)([]),[O,A]=(0,i.useState)(""),[I,K]=(0,i.useState)(""),[Y,J]=(0,i.useState)(""),[G,X]=(0,i.useState)(""),[q,Q]=(0,i.useState)(null),[$,ee]=(0,i.useState)(0),[et,en]=(0,i.useState)(0),[es,ea]=(0,i.useState)(!0);return(0,i.useEffect)(()=>{(async function(){let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))})()},[]),(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,s.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,s.jsx)(x.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,s.jsx)(u.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,s.jsxs)(c.Z,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(g.Z,{variant:"outlined",onClick:async()=>{var n,s;let a=await (0,L.PR)("/api/v1/chat/dialogue/new",{chat_mode:"chat_knowledge"});(null==a?void 0:a.success)&&(null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.conv_uid)&&e.push("/chat?id=".concat(null==a?void 0:null===(s=a.data)||void 0===s?void 0:s.conv_uid,"&scene=chat_knowledge&spaceNameOriginal=").concat(t))},sx:{marginRight:"20px",backgroundColor:"rgb(39, 155, 255) !important",color:"white",border:"none"},children:[(0,s.jsx)(S.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Chat"]}),(0,s.jsx)(g.Z,{variant:"outlined",onClick:()=>y(!0),sx:{marginRight:"20px"},children:"+ Add Datasource"}),(0,s.jsx)(U,{spaceName:t})]})]}),N.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(h.Z,{color:"primary",variant:"plain",size:"sm",sx:{"& tbody tr: hover":{backgroundColor:"light"===n?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"},"& tr > *:last-child":{textAlign:"right"}},children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Name"}),(0,s.jsx)("th",{children:"Type"}),(0,s.jsx)("th",{children:"Size"}),(0,s.jsx)("th",{children:"Last Synch"}),(0,s.jsx)("th",{children:"Status"}),(0,s.jsx)("th",{children:"Result"}),(0,s.jsx)("th",{style:{width:"30%"},children:"Operation"})]})}),(0,s.jsx)("tbody",{children:N.map(n=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:n.doc_name}),(0,s.jsx)("td",{children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"neutral",sx:{opacity:.5},children:n.doc_type})}),(0,s.jsxs)("td",{children:[n.chunk_size," chunks"]}),(0,s.jsx)("td",{children:b()(n.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,s.jsx)("td",{children:(0,s.jsx)(m.Z,{size:"sm",sx:{opacity:.5},variant:"solid",color:function(){switch(n.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:n.status})}),(0,s.jsx)("td",{children:"TODO"===n.status||"RUNNING"===n.status?"":"FINISHED"===n.status?(0,s.jsx)(R.Z,{content:n.result,trigger:"hover",children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,s.jsx)(R.Z,{content:n.result,trigger:"hover",children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,s.jsx)("td",{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:async()=>{let e=await (0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[n.id]});e.success?z.ZP.success("success"):z.ZP.error(e.err_msg||"failed")},children:["Synch",(0,s.jsx)(k.Z,{})]}),(0,s.jsx)(g.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(n.id))},children:"Details"}),(0,s.jsxs)(g.Z,{variant:"outlined",size:"sm",color:"danger",onClick:async()=>{let e=await (0,L.PR)("/knowledge/".concat(t,"/document/delete"),{doc_name:n.doc_name});if(e.success){z.ZP.success("success");let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")},children:["Delete",(0,s.jsx)(_.Z,{})]})]})})]},n.id))})]}),(0,s.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,s.jsx)(B.Z,{defaultPageSize:20,showSizeChanger:!1,current:et,total:$,onChange:async e=>{let n=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});n.success&&(E(n.data.data),ee(n.data.total),en(n.data.page))},hideOnSinglePage:!0})})]}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(p.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:r,onClose:()=>y(!1),children:(0,s.jsxs)(o.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,s.jsx)(j.Z,{sx:{width:"100%"},children:(0,s.jsx)(c.Z,{spacing:2,direction:"row",children:W.map((e,t)=>(0,s.jsxs)(M,{sx:{fontWeight:C===t?"bold":"",color:C===t?"#2AA3FF":""},children:[t(0,s.jsxs)(o.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{F(e.type),T(1)},children:[(0,s.jsx)(o.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,s.jsx)(o.Z,{children:e.subTitle})]},e.type))})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.Z,{sx:{margin:"30px auto"},children:["Name:",(0,s.jsx)(Z.ZP,{placeholder:"Please input the name",onChange:e=>K(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===D?(0,s.jsxs)(s.Fragment,{children:["Web Page URL:",(0,s.jsx)(Z.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>A(e.target.value)})]}):"file"===D?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(V,{name:"file",multiple:!1,onChange(e){var t;if(console.log(e),0===e.fileList.length){Q(null),K("");return}Q(e.file.originFileObj),K(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,s.jsx)("p",{className:"ant-upload-drag-icon",children:(0,s.jsx)(w.Z,{})}),(0,s.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,s.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,s.jsxs)(s.Fragment,{children:["Text Source(Optional):",(0,s.jsx)(Z.ZP,{placeholder:"Please input the text source",onChange:e=>J(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,s.jsx)(f.Z,{onChange:e=>X(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,s.jsx)(u.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,s.jsx)(v.Z,{checked:es,onChange:e=>ea(e.target.checked)}),children:"Synch:"})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,s.jsx)(g.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>T(0),children:"< Back"}),(0,s.jsx)(g.Z,{variant:"outlined",onClick:async()=>{if(""===I){z.ZP.error("Please input the name");return}if("webPage"===D){if(""===O){z.ZP.error("Please input the Web Page URL");return}let e=await (0,L.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:I,content:O,doc_type:"URL"});if(e.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")}else if("file"===D){if(!q){z.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",I),e.append("doc_file",q),e.append("doc_type","DOCUMENT");let n=await (0,L.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(n.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[n.data]}),n.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(n.err_msg||"failed")}else{if(""===G){z.ZP.error("Please input the text");return}let e=await (0,L.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:I,source:Y,content:G,doc_type:"TEXT"});if(e.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return x},PR:function(){return u},Ej:function(){return g}});var s=n(21628),a=n(24214),i=n(52040);let r=a.Z.create({baseURL:i.env.API_BASE_URL});r.defaults.timeout=1e4,r.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=n(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return r.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},x=(e,t)=>{let n=c(t);return r.post("/api"+e,{body:n,headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},u=(e,t)=>(c(t),r.post(e,t,{headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})),g=(e,t)=>r.post(e,t).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,550,877,230,759,192,81,86,409,394,790,946,767,207,872,388,253,769,744],function(){return e(e.s=42414)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/documents/page-33643da78853c3ea.js b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-33643da78853c3ea.js
new file mode 100644
index 000000000..4277fd6c6
--- /dev/null
+++ b/pilot/server/static/_next/static/chunks/app/datastores/documents/page-33643da78853c3ea.js
@@ -0,0 +1 @@
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[470],{42414:function(e,t,n){Promise.resolve().then(n.bind(n,87278))},87278:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return K}});var s=n(9268),a=n(56008),r=n(86006),i=n(50645),o=n(5737),l=n(78635),c=n(80937),d=n(44334),x=n(311),u=n(22046),h=n(53113),g=n(83192),m=n(58927),p=n(81528),j=n(90545),Z=n(35086),f=n(866),v=n(28086),y=n(65326),b=n.n(y),w=n(72474),P=n(59534),k=n(78141),_=n(68949),S=n(73220),C=n(50157),R=n(23910),z=n(21628),B=n(29766),L=n(78915),T=n(89081),D=n(59970),N=n(30929),F=n(79214),E=n(99011),O=n(62483),A=n(76394),I=n.n(A),U=e=>{var t,n,a,i,l,d,x,u,g,m,v,y,b,w,P,k,_,S;let{spaceName:C}=e,[B,A]=(0,r.useState)(!1),[U,V]=(0,r.useState)({}),{data:M}=(0,T.Z)(()=>(0,L.PR)("/knowledge/".concat(C,"/arguments")),{onSuccess(e){V(e.data)}}),W=[{key:"Embedding",label:(0,s.jsxs)(j.Z,{children:[(0,s.jsx)(F.Z,{sx:{marginRight:"5px"}}),"Embedding"]}),children:(0,s.jsxs)(j.Z,{children:[(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["topk",(0,s.jsx)(R.Z,{content:"the top k vectors based on similarity score",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(t=M.data)||void 0===t?void 0:null===(n=t.embedding)||void 0===n?void 0:n.topk)||"",onChange:e=>{U.embedding.topk=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["recall_score",(0,s.jsx)(R.Z,{content:"Set a threshold score for the retrieval of similar vectors",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:""+(null==M?void 0:null===(a=M.data)||void 0===a?void 0:null===(i=a.embedding)||void 0===i?void 0:i.recall_score)||"",onChange:e=>{U.embedding.recall_score=e.target.value,V({...U})},disabled:!0})})]})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["recall_type",(0,s.jsx)(R.Z,{content:"recall type",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(l=M.data)||void 0===l?void 0:null===(d=l.embedding)||void 0===d?void 0:d.recall_type)||"",onChange:e=>{U.embedding.recall_type=e.target.value,V({...U})},disabled:!0})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["model",(0,s.jsx)(R.Z,{content:"A model used to create vector representations of text or other data",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(x=M.data)||void 0===x?void 0:null===(u=x.embedding)||void 0===u?void 0:u.model)||"",onChange:e=>{U.embedding.model=e.target.value,V({...U})},disabled:!0,startDecorator:(0,s.jsx)(I(),{src:"/huggingface_logo.svg",alt:"huggingface logo",width:20,height:20})})})]})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",sx:{marginTop:"20px",marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0",marginRight:"30px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["chunk_size",(0,s.jsx)(R.Z,{content:"The size of the data chunks used in processing",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(g=M.data)||void 0===g?void 0:null===(m=g.embedding)||void 0===m?void 0:m.chunk_size)||"",onChange:e=>{U.embedding.chunk_size=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",flex:"1 1 0"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["chunk_overlap",(0,s.jsx)(R.Z,{content:"The amount of overlap between adjacent data chunks",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(v=M.data)||void 0===v?void 0:null===(y=v.embedding)||void 0===y?void 0:y.chunk_overlap)||"",onChange:e=>{U.embedding.chunk_overlap=e.target.value,V({...U})}})})]})]})]})},{key:"Prompt",label:(0,s.jsxs)(j.Z,{children:[(0,s.jsx)(E.Z,{sx:{marginRight:"5px"}}),"Prompt"]}),children:(0,s.jsxs)(j.Z,{sx:{maxHeight:"600px",overflow:"auto","&::-webkit-scrollbar":{display:"none"}},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px",marginTop:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["scene",(0,s.jsx)(R.Z,{content:"A contextual parameter used to define the setting or environment in which the prompt is being used",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(f.Z,{defaultValue:(null==M?void 0:null===(b=M.data)||void 0===b?void 0:null===(w=b.prompt)||void 0===w?void 0:w.scene)||"",onChange:e=>{U.prompt.scene=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["template",(0,s.jsx)(R.Z,{content:"A pre-defined structure or format for the prompt, which can help ensure that the AI system generates responses that are consistent with the desired style or tone.",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(f.Z,{defaultValue:(null==M?void 0:null===(P=M.data)||void 0===P?void 0:null===(k=P.prompt)||void 0===k?void 0:k.template)||"",onChange:e=>{U.prompt.template=e.target.value,V({...U})}})})]}),(0,s.jsxs)(j.Z,{sx:{marginBottom:"20px"},children:[(0,s.jsxs)(j.Z,{sx:{marginBottom:"10px"},children:["max_token",(0,s.jsx)(R.Z,{content:"The maximum number of tokens or words allowed in a prompt",trigger:"hover",style:{marginLeft:"20px"},children:(0,s.jsx)(D.Z,{sx:{marginLeft:"10px"}})})]}),(0,s.jsx)(j.Z,{children:(0,s.jsx)(Z.ZP,{defaultValue:(null==M?void 0:null===(_=M.data)||void 0===_?void 0:null===(S=_.prompt)||void 0===S?void 0:S.max_token)||"",onChange:e=>{U.prompt.max_token=e.target.value,V({...U})}})})]})]})}];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(h.Z,{variant:"outlined",onClick:()=>A(!0),children:[(0,s.jsx)(N.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Arguments"]}),(0,s.jsx)(p.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:B,onClose:()=>A(!1),children:(0,s.jsxs)(o.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,s.jsx)(O.Z,{defaultActiveKey:"Embedding",items:W}),(0,s.jsx)(c.Z,{direction:"row",justifyContent:"flex-start",sx:{marginTop:"20px",marginBottom:"20px"},children:(0,s.jsx)(h.Z,{variant:"outlined",onClick:()=>{(0,L.PR)("/knowledge/".concat(C,"/argument/save"),{argument:JSON.stringify(U)}).then(e=>{e.success?(window.location.reload(),z.ZP.success("success")):z.ZP.error(e.err_msg||"failed")})},children:"Submit"})})]})})]})};let{Dragger:V}=C.default,M=(0,i.Z)(o.Z)(e=>{let{theme:t}=e;return{width:"50%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),W=["Choose a Datasource type","Setup the Datasource"],H=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];var K=()=>{let e=(0,a.useRouter)(),t=(0,a.useSearchParams)().get("name"),{mode:n}=(0,l.tv)(),[i,y]=(0,r.useState)(!1),[C,T]=(0,r.useState)(0),[D,N]=(0,r.useState)(""),[F,E]=(0,r.useState)([]),[O,A]=(0,r.useState)(""),[I,K]=(0,r.useState)(""),[Y,J]=(0,r.useState)(""),[G,X]=(0,r.useState)(""),[q,Q]=(0,r.useState)(null),[$,ee]=(0,r.useState)(0),[et,en]=(0,r.useState)(0),[es,ea]=(0,r.useState)(!0);return(0,r.useEffect)(()=>{(async function(){let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:1,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))})()},[]),(0,s.jsxs)("div",{className:"p-4",children:[(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,s.jsxs)(d.Z,{"aria-label":"breadcrumbs",children:[(0,s.jsx)(x.Z,{onClick:()=>{e.push("/datastores")},underline:"hover",color:"neutral",fontSize:"inherit",children:"Knowledge Space"},"Knowledge Space"),(0,s.jsx)(u.ZP,{fontSize:"inherit",children:"Documents"})]}),(0,s.jsxs)(c.Z,{direction:"row",alignItems:"center",children:[(0,s.jsxs)(h.Z,{variant:"outlined",onClick:async()=>{var n,s;let a=await (0,L.PR)("/api/v1/chat/dialogue/new",{chat_mode:"chat_knowledge"});(null==a?void 0:a.success)&&(null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.conv_uid)&&e.push("/chat?id=".concat(null==a?void 0:null===(s=a.data)||void 0===s?void 0:s.conv_uid,"&scene=chat_knowledge&spaceNameOriginal=").concat(t))},sx:{marginRight:"20px",backgroundColor:"rgb(39, 155, 255) !important",color:"white",border:"none"},children:[(0,s.jsx)(S.Z,{sx:{marginRight:"6px",fontSize:"18px"}}),"Chat"]}),(0,s.jsx)(h.Z,{variant:"outlined",onClick:()=>y(!0),sx:{marginRight:"20px"},children:"+ Add Datasource"}),(0,s.jsx)(U,{spaceName:t})]})]}),F.length?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(g.Z,{color:"primary",variant:"plain",size:"sm",sx:{"& tbody tr: hover":{backgroundColor:"light"===n?"rgb(246, 246, 246)":"rgb(33, 33, 40)"},"& tbody tr: hover a":{textDecoration:"underline"},"& tr > *:last-child":{textAlign:"right"}},children:[(0,s.jsx)("thead",{children:(0,s.jsxs)("tr",{children:[(0,s.jsx)("th",{children:"Name"}),(0,s.jsx)("th",{children:"Type"}),(0,s.jsx)("th",{children:"Size"}),(0,s.jsx)("th",{children:"Last Synch"}),(0,s.jsx)("th",{children:"Status"}),(0,s.jsx)("th",{children:"Result"}),(0,s.jsx)("th",{style:{width:"30%"},children:"Operation"})]})}),(0,s.jsx)("tbody",{children:F.map(n=>(0,s.jsxs)("tr",{children:[(0,s.jsx)("td",{children:n.doc_name}),(0,s.jsx)("td",{children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"neutral",sx:{opacity:.5},children:n.doc_type})}),(0,s.jsxs)("td",{children:[n.chunk_size," chunks"]}),(0,s.jsx)("td",{children:b()(n.last_sync).format("YYYY-MM-DD HH:MM:SS")}),(0,s.jsx)("td",{children:(0,s.jsx)(m.Z,{size:"sm",sx:{opacity:.5},variant:"solid",color:function(){switch(n.status){case"TODO":return"neutral";case"RUNNING":return"primary";case"FINISHED":return"success";case"FAILED":return"danger"}}(),children:n.status})}),(0,s.jsx)("td",{children:"TODO"===n.status||"RUNNING"===n.status?"":"FINISHED"===n.status?(0,s.jsx)(R.Z,{content:n.result,trigger:"hover",children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"success",sx:{opacity:.5},children:"SUCCESS"})}):(0,s.jsx)(R.Z,{content:n.result,trigger:"hover",children:(0,s.jsx)(m.Z,{size:"sm",variant:"solid",color:"danger",sx:{opacity:.5},children:"FAILED"})})}),(0,s.jsx)("td",{children:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(h.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:async()=>{let e=await (0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[n.id]});e.success?z.ZP.success("success"):z.ZP.error(e.err_msg||"failed")},children:["Synch",(0,s.jsx)(k.Z,{})]}),(0,s.jsx)(h.Z,{variant:"outlined",size:"sm",sx:{marginRight:"2px"},onClick:()=>{e.push("/datastores/documents/chunklist?spacename=".concat(t,"&documentid=").concat(n.id))},children:"Details"}),(0,s.jsxs)(h.Z,{variant:"outlined",size:"sm",color:"danger",onClick:async()=>{let e=await (0,L.PR)("/knowledge/".concat(t,"/document/delete"),{doc_name:n.doc_name});if(e.success){z.ZP.success("success");let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")},children:["Delete",(0,s.jsx)(_.Z,{})]})]})})]},n.id))})]}),(0,s.jsx)(c.Z,{direction:"row",justifyContent:"flex-end",sx:{marginTop:"20px"},children:(0,s.jsx)(B.Z,{defaultPageSize:20,showSizeChanger:!1,current:et,total:$,onChange:async e=>{let n=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:e,page_size:20});n.success&&(E(n.data.data),ee(n.data.total),en(n.data.page))},hideOnSinglePage:!0})})]}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(p.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:i,onClose:()=>y(!1),children:(0,s.jsxs)(o.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,s.jsx)(j.Z,{sx:{width:"100%"},children:(0,s.jsx)(c.Z,{spacing:2,direction:"row",children:W.map((e,t)=>(0,s.jsxs)(M,{sx:{fontWeight:C===t?"bold":"",color:C===t?"#2AA3FF":""},children:[t(0,s.jsxs)(o.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{N(e.type),T(1)},children:[(0,s.jsx)(o.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,s.jsx)(o.Z,{children:e.subTitle})]},e.type))})}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(j.Z,{sx:{margin:"30px auto"},children:["Name:",(0,s.jsx)(Z.ZP,{placeholder:"Please input the name",onChange:e=>K(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===D?(0,s.jsxs)(s.Fragment,{children:["Web Page URL:",(0,s.jsx)(Z.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>A(e.target.value)})]}):"file"===D?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)(V,{name:"file",multiple:!1,beforeUpload:()=>!1,onChange(e){if(0===e.fileList.length){Q(null),K("");return}Q(e.file),K(e.file.name)},children:[(0,s.jsx)("p",{className:"ant-upload-drag-icon",children:(0,s.jsx)(w.Z,{})}),(0,s.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,s.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,s.jsxs)(s.Fragment,{children:["Text Source(Optional):",(0,s.jsx)(Z.ZP,{placeholder:"Please input the text source",onChange:e=>J(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,s.jsx)(f.Z,{onChange:e=>X(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,s.jsx)(u.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,s.jsx)(v.Z,{checked:es,onChange:e=>ea(e.target.checked)}),children:"Synch:"})]}),(0,s.jsxs)(c.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,s.jsx)(h.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>T(0),children:"< Back"}),(0,s.jsx)(h.Z,{variant:"outlined",onClick:async()=>{if(""===I){z.ZP.error("Please input the name");return}if("webPage"===D){if(""===O){z.ZP.error("Please input the Web Page URL");return}let e=await (0,L.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:I,content:O,doc_type:"URL"});if(e.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")}else if("file"===D){if(!q){z.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",I),e.append("doc_file",q),e.append("doc_type","DOCUMENT");let n=await (0,L.Ej)("/knowledge/".concat(t,"/document/upload"),e);if(n.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[n.data]}),n.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(n.err_msg||"failed")}else{if(""===G){z.ZP.error("Please input the text");return}let e=await (0,L.PR)("/knowledge/".concat(t,"/document/add"),{doc_name:I,source:Y,content:G,doc_type:"TEXT"});if(e.success&&es&&(0,L.PR)("/knowledge/".concat(t,"/document/sync"),{doc_ids:[e.data]}),e.success){z.ZP.success("success"),y(!1);let e=await (0,L.PR)("/knowledge/".concat(t,"/document/list"),{page:et,page_size:20});e.success&&(E(e.data.data),ee(e.data.total),en(e.data.page))}else z.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})})]})}},78915:function(e,t,n){"use strict";n.d(t,{Tk:function(){return d},Kw:function(){return x},PR:function(){return u},Ej:function(){return h}});var s=n(21628),a=n(24214),r=n(52040);let i=a.Z.create({baseURL:r.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var o=n(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,o.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let n=t[e];"string"==typeof n&&(t[e]=n.trim())}return JSON.stringify(t)},d=(e,t)=>{if(t){let n=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");n&&(e+="?".concat(n))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},x=(e,t)=>{let n=c(t);return i.post("/api"+e,{body:n,headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})},u=(e,t)=>(c(t),i.post(e,t,{headers:l}).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})),h=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{s.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,550,877,230,759,192,81,86,409,394,790,946,767,207,872,388,253,769,744],function(){return e(e.s=42414)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/_next/static/chunks/app/datastores/page-e3faa10929c9a39f.js b/pilot/server/static/_next/static/chunks/app/datastores/page-b52ecaeb94a6af31.js
similarity index 55%
rename from pilot/server/static/_next/static/chunks/app/datastores/page-e3faa10929c9a39f.js
rename to pilot/server/static/_next/static/chunks/app/datastores/page-b52ecaeb94a6af31.js
index 140ec8661..75c1023ce 100644
--- a/pilot/server/static/_next/static/chunks/app/datastores/page-e3faa10929c9a39f.js
+++ b/pilot/server/static/_next/static/chunks/app/datastores/page-b52ecaeb94a6af31.js
@@ -1 +1 @@
-(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{85182:function(e,t,r){Promise.resolve().then(r.bind(r,44323))},44323:function(e,t,r){"use strict";r.r(t);var n=r(9268),s=r(56008),o=r(86006),i=r(72474),a=r(59534),l=r(29382),c=r(68949),x=r(74852),d=r(50157),p=r(21628),u=r(50645),h=r(5737),g=r(90545),m=r(80937),j=r(81528),f=r(35086),Z=r(53113),b=r(866),P=r(22046),w=r(28086),y=r(30530),k=r(50318),S=r(78915);let{Dragger:C}=d.default,F=(0,u.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),v=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],R=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),[t,r]=(0,o.useState)(0),[d,u]=(0,o.useState)(""),[_,A]=(0,o.useState)([]),[N,T]=(0,o.useState)(!1),[B,E]=(0,o.useState)(""),[z,D]=(0,o.useState)(""),[O,W]=(0,o.useState)(""),[U,L]=(0,o.useState)(""),[G,I]=(0,o.useState)(""),[K,M]=(0,o.useState)(""),[J,V]=(0,o.useState)(""),[H,X]=(0,o.useState)(null),[Y,q]=(0,o.useState)(!0),[Q,$]=(0,o.useState)(!1),[ee,et]=(0,o.useState)({});return(0,o.useEffect)(()=>{(async function(){let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)})()},[]),(0,n.jsxs)(g.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,n.jsx)(g.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,n.jsxs)(g.Z,{sx:{display:"flex",alignContent:"start",boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"16px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>T(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,n.jsx)(g.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,n.jsx)(g.Z,{sx:{fontSize:"16px"},children:"space"})]}),_.map((t,r)=>(0,n.jsxs)(g.Z,{sx:{position:"relative",padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"4px solid rgb(84, 164, 248)",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"10px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,n.jsxs)(g.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,n.jsx)(l.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]}),(0,n.jsx)(g.Z,{sx:{position:"absolute",right:"10px",top:"10px",color:"rgb(205, 32, 41)"},onClick:e=>{e.stopPropagation(),et(t),$(!0)},children:(0,n.jsx)(c.Z,{sx:{fontSize:"30px"}})})]},r)),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})}),(0,n.jsx)(j.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:N,onClose:()=>T(!1),children:(0,n.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(g.Z,{sx:{width:"100%"},children:(0,n.jsx)(m.Z,{spacing:2,direction:"row",children:v.map((e,r)=>(0,n.jsxs)(F,{sx:{fontWeight:t===r?"bold":"",color:t===r?"#2AA3FF":""},children:[rE(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,n.jsx)(f.ZP,{placeholder:"Please input the owner",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,n.jsx)(f.ZP,{placeholder:"Please input the description",onChange:e=>W(e.target.value),sx:{marginBottom:"20px"}})]}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===B){p.ZP.error("please input the name");return}if(/[^\u4e00-\u9fa50-9a-zA-Z_-]/.test(B)){p.ZP.error('the name can only contain numbers, letters, Chinese characters, "-" and "_"');return}if(""===z){p.ZP.error("please input the owner");return}if(""===O){p.ZP.error("please input the description");return}let e=await (0,S.PR)("/knowledge/space/add",{name:B,vector_type:"Chroma",owner:z,desc:O});if(e.success){p.ZP.success("success"),r(1);let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(g.Z,{sx:{margin:"30px auto"},children:R.map(e=>(0,n.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{u(e.type),r(2)},children:[(0,n.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,n.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>I(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===d?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>L(e.target.value)})]}):"file"===d?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(C,{name:"file",multiple:!1,onChange(e){var t;if(0===e.fileList.length){X(null),I("");return}X(e.file.originFileObj),I(null===(t=e.file.originFileObj)||void 0===t?void 0:t.name)},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(i.Z,{})}),(0,n.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,n.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,n.jsxs)(n.Fragment,{children:["Text Source(Optional):",(0,n.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>M(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(b.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(P.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(w.Z,{checked:Y,onChange:e=>q(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(Z.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>r(1),children:"< Back"}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===G){p.ZP.error("Please input the name");return}if("webPage"===d){if(""===U){p.ZP.error("Please input the Web Page URL");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,content:U,doc_type:"URL"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}else if("file"===d){if(!H){p.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",G),e.append("doc_file",H),e.append("doc_type","DOCUMENT");let t=await (0,S.Ej)("/knowledge/".concat(B,"/document/upload"),e);t.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[t.data]})):p.ZP.error(t.err_msg||"failed")}else{if(""===J){p.ZP.error("Please input the text");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,source:K,content:J,doc_type:"TEXT"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})}),(0,n.jsx)(j.Z,{open:Q,onClose:()=>$(!1),children:(0,n.jsxs)(y.Z,{variant:"outlined",role:"alertdialog","aria-labelledby":"alert-dialog-modal-title","aria-describedby":"alert-dialog-modal-description",children:[(0,n.jsx)(P.ZP,{id:"alert-dialog-modal-title",component:"h2",startDecorator:(0,n.jsx)(x.Z,{style:{color:"rgb(205, 32, 41)"}}),sx:{color:"black"},children:"Confirmation"}),(0,n.jsx)(k.Z,{}),(0,n.jsxs)(P.ZP,{id:"alert-dialog-modal-description",textColor:"text.tertiary",sx:{fontWeight:"500",color:"black"},children:["Sure to delete ",null==ee?void 0:ee.name,"?"]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",gap:1,justifyContent:"flex-end",pt:2},children:[(0,n.jsx)(Z.Z,{variant:"outlined",color:"neutral",onClick:()=>$(!1),children:"Cancel"}),(0,n.jsx)(Z.Z,{variant:"outlined",color:"danger",onClick:async()=>{$(!1);let e=await (0,S.PR)("/knowledge/space/delete",{name:null==ee?void 0:ee.name});if(e.success){p.ZP.success("success");let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Yes"})]})]})})]})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return x},Kw:function(){return d},PR:function(){return p},Ej:function(){return u}});var n=r(21628),s=r(24214),o=r(52040);let i=s.Z.create({baseURL:o.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},x=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let r=c(t);return i.post("/api"+e,{body:r,headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(c(t),i.post(e,t,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),u=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,877,230,759,192,86,790,946,872,2,253,769,744],function(){return e(e.s=85182)}),_N_E=e.O()}]);
\ No newline at end of file
+(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[43],{85182:function(e,t,r){Promise.resolve().then(r.bind(r,44323))},44323:function(e,t,r){"use strict";r.r(t);var n=r(9268),s=r(56008),o=r(86006),i=r(72474),a=r(59534),l=r(29382),c=r(68949),x=r(74852),d=r(50157),p=r(21628),u=r(50645),h=r(5737),g=r(90545),m=r(80937),j=r(81528),f=r(35086),Z=r(53113),b=r(866),P=r(22046),w=r(28086),y=r(30530),k=r(50318),S=r(78915);let{Dragger:C}=d.default,F=(0,u.Z)(h.Z)(e=>{let{theme:t}=e;return{width:"33%",backgroundColor:"dark"===t.palette.mode?t.palette.background.level1:"#fff",...t.typography.body2,padding:t.spacing(1),textAlign:"center",borderRadius:4,color:t.vars.palette.text.secondary}}),R=["Knowledge Space Config","Choose a Datasource type","Setup the Datasource"],v=[{type:"text",title:"Text",subTitle:"Fill your raw text"},{type:"webPage",title:"URL",subTitle:"Fetch the content of a URL"},{type:"file",title:"Document",subTitle:"Upload a document, document type can be PDF, CSV, Text, PowerPoint, Word, Markdown"}];t.default=()=>{let e=(0,s.useRouter)(),[t,r]=(0,o.useState)(0),[d,u]=(0,o.useState)(""),[_,A]=(0,o.useState)([]),[N,T]=(0,o.useState)(!1),[B,E]=(0,o.useState)(""),[z,D]=(0,o.useState)(""),[W,U]=(0,o.useState)(""),[O,L]=(0,o.useState)(""),[G,I]=(0,o.useState)(""),[K,M]=(0,o.useState)(""),[J,V]=(0,o.useState)(""),[H,X]=(0,o.useState)(null),[Y,q]=(0,o.useState)(!0),[Q,$]=(0,o.useState)(!1),[ee,et]=(0,o.useState)({});return(0,o.useEffect)(()=>{(async function(){let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)})()},[]),(0,n.jsxs)(g.Z,{sx:{width:"100%",height:"100%"},className:"bg-[#F1F2F5] dark:bg-[#212121]",children:[(0,n.jsx)(g.Z,{className:"page-body p-4",sx:{"&":{height:"90%",overflow:"auto"},"&::-webkit-scrollbar":{display:"none"}},children:(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",sx:{"& i":{width:"430px",marginRight:"30px"}},children:[(0,n.jsxs)(g.Z,{sx:{display:"flex",alignContent:"start",boxSizing:"content-box",width:"390px",height:"79px",padding:"33px 20px 40px",marginRight:"30px",marginBottom:"30px",fontSize:"18px",fontWeight:"bold",color:"black",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"16px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>T(!0),className:"bg-[#E9EBEE] dark:bg-[#484848]",children:[(0,n.jsx)(g.Z,{sx:{width:"32px",height:"32px",lineHeight:"28px",border:"1px solid #2AA3FF",textAlign:"center",borderRadius:"5px",marginRight:"5px",fontWeight:"300",color:"#2AA3FF"},children:"+"}),(0,n.jsx)(g.Z,{sx:{fontSize:"16px"},children:"space"})]}),_.map((t,r)=>(0,n.jsxs)(g.Z,{sx:{position:"relative",padding:"30px 20px 40px",marginRight:"30px",marginBottom:"30px",borderTop:"4px solid rgb(84, 164, 248)",flexShrink:0,flexGrow:0,cursor:"pointer",borderRadius:"10px","&: hover":{boxShadow:"0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);"}},onClick:()=>{e.push("/datastores/documents?name=".concat(t.name))},className:"bg-[#FFFFFF] dark:bg-[#484848]",children:[(0,n.jsxs)(g.Z,{sx:{fontSize:"18px",marginBottom:"10px",fontWeight:"bold",color:"black"},children:[(0,n.jsx)(l.Z,{sx:{marginRight:"5px",color:"#2AA3FF"}}),t.name]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",justifyContent:"flex-start"},children:[(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.vector_type}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Vector"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.owner}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Owner"})]}),(0,n.jsxs)(g.Z,{sx:{width:"130px",flexGrow:0,flexShrink:0},children:[(0,n.jsx)(g.Z,{sx:{color:"#2AA3FF"},children:t.docs||0}),(0,n.jsx)(g.Z,{sx:{fontSize:"12px",color:"black"},children:"Docs"})]})]}),(0,n.jsx)(g.Z,{sx:{position:"absolute",right:"10px",top:"10px",color:"rgb(205, 32, 41)"},onClick:e=>{e.stopPropagation(),et(t),$(!0)},children:(0,n.jsx)(c.Z,{sx:{fontSize:"30px"}})})]},r)),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{}),(0,n.jsx)("i",{})]})}),(0,n.jsx)(j.Z,{sx:{display:"flex",justifyContent:"center",alignItems:"center","z-index":1e3},open:N,onClose:()=>T(!1),children:(0,n.jsxs)(h.Z,{variant:"outlined",sx:{width:800,borderRadius:"md",p:3,boxShadow:"lg"},children:[(0,n.jsx)(g.Z,{sx:{width:"100%"},children:(0,n.jsx)(m.Z,{spacing:2,direction:"row",children:R.map((e,r)=>(0,n.jsxs)(F,{sx:{fontWeight:t===r?"bold":"",color:t===r?"#2AA3FF":""},children:[rE(e.target.value),sx:{marginBottom:"20px"}}),"Owner:",(0,n.jsx)(f.ZP,{placeholder:"Please input the owner",onChange:e=>D(e.target.value),sx:{marginBottom:"20px"}}),"Description:",(0,n.jsx)(f.ZP,{placeholder:"Please input the description",onChange:e=>U(e.target.value),sx:{marginBottom:"20px"}})]}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===B){p.ZP.error("please input the name");return}if(/[^\u4e00-\u9fa50-9a-zA-Z_-]/.test(B)){p.ZP.error('the name can only contain numbers, letters, Chinese characters, "-" and "_"');return}if(""===z){p.ZP.error("please input the owner");return}if(""===W){p.ZP.error("please input the description");return}let e=await (0,S.PR)("/knowledge/space/add",{name:B,vector_type:"Chroma",owner:z,desc:W});if(e.success){p.ZP.success("success"),r(1);let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Next"})]}):1===t?(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(g.Z,{sx:{margin:"30px auto"},children:v.map(e=>(0,n.jsxs)(h.Z,{sx:{boxSizing:"border-box",height:"80px",padding:"12px",display:"flex",flexDirection:"column",justifyContent:"space-between",border:"1px solid gray",borderRadius:"6px",marginBottom:"20px",cursor:"pointer"},onClick:()=>{u(e.type),r(2)},children:[(0,n.jsx)(h.Z,{sx:{fontSize:"20px",fontWeight:"bold"},children:e.title}),(0,n.jsx)(h.Z,{children:e.subTitle})]},e.type))})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(g.Z,{sx:{margin:"30px auto"},children:["Name:",(0,n.jsx)(f.ZP,{placeholder:"Please input the name",onChange:e=>I(e.target.value),sx:{marginBottom:"20px"}}),"webPage"===d?(0,n.jsxs)(n.Fragment,{children:["Web Page URL:",(0,n.jsx)(f.ZP,{placeholder:"Please input the Web Page URL",onChange:e=>L(e.target.value)})]}):"file"===d?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(C,{name:"file",multiple:!1,beforeUpload:()=>!1,onChange(e){if(0===e.fileList.length){X(null),I("");return}X(e.file),I(e.file.name)},children:[(0,n.jsx)("p",{className:"ant-upload-drag-icon",children:(0,n.jsx)(i.Z,{})}),(0,n.jsx)("p",{style:{color:"rgb(22, 108, 255)",fontSize:"20px"},children:"Select or Drop file"}),(0,n.jsx)("p",{className:"ant-upload-hint",style:{color:"rgb(22, 108, 255)"},children:"PDF, PowerPoint, Excel, Word, Text, Markdown,"})]})}):(0,n.jsxs)(n.Fragment,{children:["Text Source(Optional):",(0,n.jsx)(f.ZP,{placeholder:"Please input the text source",onChange:e=>M(e.target.value),sx:{marginBottom:"20px"}}),"Text:",(0,n.jsx)(b.Z,{onChange:e=>V(e.target.value),minRows:4,sx:{marginBottom:"20px"}})]}),(0,n.jsx)(P.ZP,{component:"label",sx:{marginTop:"20px"},endDecorator:(0,n.jsx)(w.Z,{checked:Y,onChange:e=>q(e.target.checked)}),children:"Synch:"})]}),(0,n.jsxs)(m.Z,{direction:"row",justifyContent:"flex-start",alignItems:"center",sx:{marginBottom:"20px"},children:[(0,n.jsx)(Z.Z,{variant:"outlined",sx:{marginRight:"20px"},onClick:()=>r(1),children:"< Back"}),(0,n.jsx)(Z.Z,{variant:"outlined",onClick:async()=>{if(""===G){p.ZP.error("Please input the name");return}if("webPage"===d){if(""===O){p.ZP.error("Please input the Web Page URL");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,content:O,doc_type:"URL"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}else if("file"===d){if(!H){p.ZP.error("Please select a file");return}let e=new FormData;e.append("doc_name",G),e.append("doc_file",H),e.append("doc_type","DOCUMENT");let t=await (0,S.Ej)("/knowledge/".concat(B,"/document/upload"),e);t.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[t.data]})):p.ZP.error(t.err_msg||"failed")}else{if(""===J){p.ZP.error("Please input the text");return}let e=await (0,S.PR)("/knowledge/".concat(B,"/document/add"),{doc_name:G,source:K,content:J,doc_type:"TEXT"});e.success?(p.ZP.success("success"),T(!1),Y&&(0,S.PR)("/knowledge/".concat(B,"/document/sync"),{doc_ids:[e.data]})):p.ZP.error(e.err_msg||"failed")}},children:"Finish"})]})]})]})}),(0,n.jsx)(j.Z,{open:Q,onClose:()=>$(!1),children:(0,n.jsxs)(y.Z,{variant:"outlined",role:"alertdialog","aria-labelledby":"alert-dialog-modal-title","aria-describedby":"alert-dialog-modal-description",children:[(0,n.jsx)(P.ZP,{id:"alert-dialog-modal-title",component:"h2",startDecorator:(0,n.jsx)(x.Z,{style:{color:"rgb(205, 32, 41)"}}),sx:{color:"black"},children:"Confirmation"}),(0,n.jsx)(k.Z,{}),(0,n.jsxs)(P.ZP,{id:"alert-dialog-modal-description",textColor:"text.tertiary",sx:{fontWeight:"500",color:"black"},children:["Sure to delete ",null==ee?void 0:ee.name,"?"]}),(0,n.jsxs)(g.Z,{sx:{display:"flex",gap:1,justifyContent:"flex-end",pt:2},children:[(0,n.jsx)(Z.Z,{variant:"outlined",color:"neutral",onClick:()=>$(!1),children:"Cancel"}),(0,n.jsx)(Z.Z,{variant:"outlined",color:"danger",onClick:async()=>{$(!1);let e=await (0,S.PR)("/knowledge/space/delete",{name:null==ee?void 0:ee.name});if(e.success){p.ZP.success("success");let e=await (0,S.PR)("/knowledge/space/list",{});e.success&&A(e.data)}else p.ZP.error(e.err_msg||"failed")},children:"Yes"})]})]})})]})}},78915:function(e,t,r){"use strict";r.d(t,{Tk:function(){return x},Kw:function(){return d},PR:function(){return p},Ej:function(){return u}});var n=r(21628),s=r(24214),o=r(52040);let i=s.Z.create({baseURL:o.env.API_BASE_URL});i.defaults.timeout=1e4,i.interceptors.response.use(e=>e.data,e=>Promise.reject(e));var a=r(84835);let l={"content-type":"application/json"},c=e=>{if(!(0,a.isPlainObject)(e))return JSON.stringify(e);let t={...e};for(let e in t){let r=t[e];"string"==typeof r&&(t[e]=r.trim())}return JSON.stringify(t)},x=(e,t)=>{if(t){let r=Object.keys(t).filter(e=>void 0!==t[e]&&""!==t[e]).map(e=>"".concat(e,"=").concat(t[e])).join("&");r&&(e+="?".concat(r))}return i.get("/api"+e,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},d=(e,t)=>{let r=c(t);return i.post("/api"+e,{body:r,headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})},p=(e,t)=>(c(t),i.post(e,t,{headers:l}).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})),u=(e,t)=>i.post(e,t).then(e=>e).catch(e=>{n.ZP.error(e),Promise.reject(e)})}},function(e){e.O(0,[180,877,230,759,192,86,790,946,872,2,253,769,744],function(){return e(e.s=85182)}),_N_E=e.O()}]);
\ No newline at end of file
diff --git a/pilot/server/static/chat/index.html b/pilot/server/static/chat/index.html
index 49f90b476..2629d555c 100644
--- a/pilot/server/static/chat/index.html
+++ b/pilot/server/static/chat/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/chat/index.txt b/pilot/server/static/chat/index.txt
index 9da2462b3..7b2343a49 100644
--- a/pilot/server/static/chat/index.txt
+++ b/pilot/server/static/chat/index.txt
@@ -1,5 +1,5 @@
1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}]
-0:["A03tTCRMVq61CqNtuDOvh",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]]
+0:["9LH3ZUeLe8qGf5V4iFVgD",[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]]
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-0a94eba37232c629.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
diff --git a/pilot/server/static/datastores/documents/chunklist/index.html b/pilot/server/static/datastores/documents/chunklist/index.html
index 5a02df94f..57baeec88 100644
--- a/pilot/server/static/datastores/documents/chunklist/index.html
+++ b/pilot/server/static/datastores/documents/chunklist/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/datastores/documents/chunklist/index.txt b/pilot/server/static/datastores/documents/chunklist/index.txt
index 7915937f3..b26f10890 100644
--- a/pilot/server/static/datastores/documents/chunklist/index.txt
+++ b/pilot/server/static/datastores/documents/chunklist/index.txt
@@ -1,5 +1,5 @@
1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}]
-0:["A03tTCRMVq61CqNtuDOvh",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]]
+0:["9LH3ZUeLe8qGf5V4iFVgD",[[["",{"children":["datastores",{"children":["documents",{"children":["chunklist",{"children":["__PAGE__",{}]}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]]
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-0a94eba37232c629.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
diff --git a/pilot/server/static/datastores/documents/index.html b/pilot/server/static/datastores/documents/index.html
index 9e5be7ad9..de83f2fd4 100644
--- a/pilot/server/static/datastores/documents/index.html
+++ b/pilot/server/static/datastores/documents/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/datastores/documents/index.txt b/pilot/server/static/datastores/documents/index.txt
index 199e26b92..3e8803685 100644
--- a/pilot/server/static/datastores/documents/index.txt
+++ b/pilot/server/static/datastores/documents/index.txt
@@ -1,9 +1,9 @@
1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}]
-0:["A03tTCRMVq61CqNtuDOvh",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]]
+0:["9LH3ZUeLe8qGf5V4iFVgD",[[["",{"children":["datastores",{"children":["documents",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]]
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-0a94eba37232c629.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
7:I{"id":"37396","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
-8:I{"id":"87278","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","550:static/chunks/925f3d25-1af7259455ef26bd.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","192:static/chunks/192-e9f419fb9f5bc502.js","81:static/chunks/81-96228d374838bf49.js","86:static/chunks/86-6193a530bd8e3ef4.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","767:static/chunks/767-b93280f4b5b5e975.js","207:static/chunks/207-2d692c761ec68010.js","872:static/chunks/872-4a145d8028102d89.js","388:static/chunks/388-0639392dd59206df.js","470:static/chunks/app/datastores/documents/page-15bd54399f756d3e.js"],"name":"","async":false}
+8:I{"id":"87278","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","550:static/chunks/925f3d25-1af7259455ef26bd.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","192:static/chunks/192-e9f419fb9f5bc502.js","81:static/chunks/81-96228d374838bf49.js","86:static/chunks/86-6193a530bd8e3ef4.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","767:static/chunks/767-b93280f4b5b5e975.js","207:static/chunks/207-2d692c761ec68010.js","872:static/chunks/872-4a145d8028102d89.js","388:static/chunks/388-0639392dd59206df.js","470:static/chunks/app/datastores/documents/page-33643da78853c3ea.js"],"name":"","async":false}
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children","documents","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"documents"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null]
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
diff --git a/pilot/server/static/datastores/index.html b/pilot/server/static/datastores/index.html
index 05b582c6c..a21cb99b7 100644
--- a/pilot/server/static/datastores/index.html
+++ b/pilot/server/static/datastores/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/datastores/index.txt b/pilot/server/static/datastores/index.txt
index 218a37489..1ff2f4bab 100644
--- a/pilot/server/static/datastores/index.txt
+++ b/pilot/server/static/datastores/index.txt
@@ -1,9 +1,9 @@
1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}]
-0:["A03tTCRMVq61CqNtuDOvh",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]]
+0:["9LH3ZUeLe8qGf5V4iFVgD",[[["",{"children":["datastores",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]]
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-0a94eba37232c629.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
7:I{"id":"37396","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
-8:I{"id":"44323","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","192:static/chunks/192-e9f419fb9f5bc502.js","86:static/chunks/86-6193a530bd8e3ef4.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","872:static/chunks/872-4a145d8028102d89.js","2:static/chunks/2-a60cf38d8ab305bb.js","43:static/chunks/app/datastores/page-e3faa10929c9a39f.js"],"name":"","async":false}
+8:I{"id":"44323","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","192:static/chunks/192-e9f419fb9f5bc502.js","86:static/chunks/86-6193a530bd8e3ef4.js","790:static/chunks/790-97e6b769f5c791cb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","872:static/chunks/872-4a145d8028102d89.js","2:static/chunks/2-a60cf38d8ab305bb.js","43:static/chunks/app/datastores/page-b52ecaeb94a6af31.js"],"name":"","async":false}
2:[["$","$L4",null,{"children":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":["$","$L5",null,{"parallelRouterKey":"children","segmentPath":["children","datastores","children"],"error":"$undefined","errorStyles":"$undefined","loading":"$undefined","loadingStyles":"$undefined","hasLoading":false,"template":["$","$L6",null,{}],"templateStyles":"$undefined","notFound":"$undefined","notFoundStyles":"$undefined","childProp":{"current":[["$","$L7",null,{"propsForComponent":{"params":{}},"Component":"$8"}],null],"segment":"__PAGE__"},"styles":[]}],"segment":"datastores"},"styles":[]}],"params":{}}],null]
3:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}],["$","link","2",{"rel":"icon","href":"/favicon.ico","type":"image/x-icon","sizes":"any"}]]
diff --git a/pilot/server/static/index.html b/pilot/server/static/index.html
index 43e1bb53f..8296ad2b3 100644
--- a/pilot/server/static/index.html
+++ b/pilot/server/static/index.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pilot/server/static/index.txt b/pilot/server/static/index.txt
index a0ad73e1d..f8a469369 100644
--- a/pilot/server/static/index.txt
+++ b/pilot/server/static/index.txt
@@ -1,5 +1,5 @@
1:HL["/_next/static/css/1dfcd77e60327762.css",{"as":"style"}]
-0:["A03tTCRMVq61CqNtuDOvh",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]]
+0:["9LH3ZUeLe8qGf5V4iFVgD",[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],"$L2",[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/1dfcd77e60327762.css","precedence":"next"}]],["$L3",null]]]]]
4:I{"id":"50902","chunks":["180:static/chunks/0e02fca3-615d0d51fa074d92.js","877:static/chunks/877-546903595944ff79.js","230:static/chunks/230-9b7eec94114cc7c3.js","759:static/chunks/759-92fc0713bcb724b3.js","81:static/chunks/81-96228d374838bf49.js","409:static/chunks/409-4b199bf070fd70fc.js","394:static/chunks/394-0ffa189aa535d3eb.js","946:static/chunks/946-3a66ddfd20b8ad3d.js","751:static/chunks/751-30fee9a32c6e64a2.js","796:static/chunks/796-efa6197beb2ead5e.js","185:static/chunks/app/layout-0a94eba37232c629.js"],"name":"","async":false}
5:I{"id":"13211","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
6:I{"id":"5767","chunks":["272:static/chunks/webpack-73c0531c498ccd8d.js","253:static/chunks/bce60fc1-18c9f145b45d8f36.js","769:static/chunks/769-76f7aafd375fdd6b.js"],"name":"","async":false}
diff --git a/setup.py b/setup.py
index 0b950b480..5c4a4d7f4 100644
--- a/setup.py
+++ b/setup.py
@@ -19,7 +19,7 @@ def parse_requirements(file_name: str) -> List[str]:
setuptools.setup(
name="db-gpt",
packages=find_packages(),
- version="0.3.4",
+ version="0.3.5",
author="csunny",
author_email="cfqcsunny@gmail.com",
description="DB-GPT is an experimental open-source project that uses localized GPT large models to interact with your data and environment."