diff --git a/404.html b/404.html index 97f9d775f..8c0e7f058 100644 --- a/404.html +++ b/404.html @@ -4,8 +4,8 @@ MongoDB Chatbot Framework - - + +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

diff --git a/assets/js/00126ca9.82a00d5c.js b/assets/js/00126ca9.2d3da3aa.js similarity index 89% rename from assets/js/00126ca9.82a00d5c.js rename to assets/js/00126ca9.2d3da3aa.js index 50ef4880e..40d3b4a7b 100644 --- a/assets/js/00126ca9.82a00d5c.js +++ b/assets/js/00126ca9.2d3da3aa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8086],{3230:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>a,toc:()=>d});var s=t(85893),r=t(11151);const o={id:"ConversationConstants",title:"Interface: ConversationConstants",sidebar_label:"ConversationConstants",sidebar_position:0,custom_edit_url:null},i=void 0,a={id:"reference/server/interfaces/ConversationConstants",title:"Interface: ConversationConstants",description:"Static responses to send in pre-defined edge case scenarios.",source:"@site/docs/reference/server/interfaces/ConversationConstants.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ConversationConstants",permalink:"/chatbot/reference/server/interfaces/ConversationConstants",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationConstants",title:"Interface: ConversationConstants",sidebar_label:"ConversationConstants",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Conversation",permalink:"/chatbot/reference/server/interfaces/Conversation"},next:{title:"ConversationsRateLimitConfig",permalink:"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"LLM_NOT_WORKING",id:"llm_not_working",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"NO_RELEVANT_CONTENT",id:"no_relevant_content",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.p,{children:"Static responses to send in pre-defined edge case scenarios."}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"llm_not_working",children:"LLM_NOT_WORKING"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"LLM_NOT_WORKING"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Response message sent when the chatbot's LLM is not working."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L223",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:223"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"no_relevant_content",children:"NO_RELEVANT_CONTENT"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"NO_RELEVANT_CONTENT"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Response message sent when the user sends a message that the chatbot\nthat doesn't match anything in the chatbot's knowledge base."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L219",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:219"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>i});var s=t(67294);const r={},o=s.createContext(r);function i(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8086],{3230:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>a,toc:()=>d});var s=t(85893),r=t(11151);const o={id:"ConversationConstants",title:"Interface: ConversationConstants",sidebar_label:"ConversationConstants",sidebar_position:0,custom_edit_url:null},i=void 0,a={id:"reference/server/interfaces/ConversationConstants",title:"Interface: ConversationConstants",description:"Static responses to send in pre-defined edge case scenarios.",source:"@site/docs/reference/server/interfaces/ConversationConstants.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ConversationConstants",permalink:"/chatbot/reference/server/interfaces/ConversationConstants",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationConstants",title:"Interface: ConversationConstants",sidebar_label:"ConversationConstants",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Conversation",permalink:"/chatbot/reference/server/interfaces/Conversation"},next:{title:"ConversationsRateLimitConfig",permalink:"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"LLM_NOT_WORKING",id:"llm_not_working",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"NO_RELEVANT_CONTENT",id:"no_relevant_content",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.p,{children:"Static responses to send in pre-defined edge case scenarios."}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"llm_not_working",children:"LLM_NOT_WORKING"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"LLM_NOT_WORKING"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Response message sent when the chatbot's LLM is not working."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L230",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:230"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"no_relevant_content",children:"NO_RELEVANT_CONTENT"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"NO_RELEVANT_CONTENT"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Response message sent when the user sends a message that the chatbot\nthat doesn't match anything in the chatbot's knowledge base."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L226",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:226"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>i});var s=t(67294);const r={},o=s.createContext(r);function i(e){const n=s.useContext(o);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/00ed12f2.250a6eee.js b/assets/js/00ed12f2.250a6eee.js new file mode 100644 index 000000000..2325bb5f0 --- /dev/null +++ b/assets/js/00ed12f2.250a6eee.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4113],{76992:(e,n,d)=>{d.r(n),d.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>a,frontMatter:()=>t,metadata:()=>l,toc:()=>h});var r=d(85893),s=d(11151);const t={id:"modules",title:"mongodb-rag-core",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},i=void 0,l={id:"reference/core/modules",title:"mongodb-rag-core",description:"Interfaces",source:"@site/docs/reference/core/modules.md",sourceDirName:"reference/core",slug:"/reference/core/modules",permalink:"/chatbot/reference/core/modules",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:.5,frontMatter:{id:"modules",title:"mongodb-rag-core",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},sidebar:"main",previous:{title:"Readme",permalink:"/chatbot/reference/core/"},next:{title:"AzureOpenAiServiceConfig",permalink:"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig"}},c={},h=[{value:"Interfaces",id:"interfaces",level:2},{value:"Type Aliases",id:"type-aliases",level:2},{value:"DatabaseConnection",id:"databaseconnection",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"EmbedArgs",id:"embedargs",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"EmbedResult",id:"embedresult",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"EmbeddedContentStore",id:"embeddedcontentstore",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"Embedder",id:"embedder",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"FindNearestNeighborsOptions",id:"findnearestneighborsoptions",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"LoadPagesArgs",id:"loadpagesargs",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Type declaration",id:"type-declaration-5",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"MakeLangChainEmbedderParams",id:"makelangchainembedderparams",level:3},{value:"Type declaration",id:"type-declaration-6",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"MakeOpenAiEmbedderArgs",id:"makeopenaiembedderargs",level:3},{value:"Type declaration",id:"type-declaration-7",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"MakeTypeChatJsonTranslateFuncArgs",id:"maketypechatjsontranslatefuncargs",level:3},{value:"Type declaration",id:"type-declaration-8",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"MongoDbPageStore",id:"mongodbpagestore",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"Page",id:"page",level:3},{value:"Type declaration",id:"type-declaration-9",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"PageAction",id:"pageaction",level:3},{value:"Defined in",id:"defined-in-12",level:4},{value:"PageFormat",id:"pageformat",level:3},{value:"Defined in",id:"defined-in-13",level:4},{value:"PageMetadata",id:"pagemetadata",level:3},{value:"Index signature",id:"index-signature",level:4},{value:"Type declaration",id:"type-declaration-10",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"PageStore",id:"pagestore",level:3},{value:"Type declaration",id:"type-declaration-11",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"PersistedPage",id:"persistedpage",level:3},{value:"Defined in",id:"defined-in-16",level:4},{value:"Question",id:"question",level:3},{value:"Defined in",id:"defined-in-17",level:4},{value:"Reference",id:"reference",level:3},{value:"Defined in",id:"defined-in-18",level:4},{value:"References",id:"references",level:3},{value:"Defined in",id:"defined-in-19",level:4},{value:"VectorStore",id:"vectorstore",level:3},{value:"Type parameters",id:"type-parameters-1",level:4},{value:"Type declaration",id:"type-declaration-12",level:4},{value:"Defined in",id:"defined-in-20",level:4},{value:"VerifiedAnswer",id:"verifiedanswer",level:3},{value:"Defined in",id:"defined-in-21",level:4},{value:"VerifiedAnswerStore",id:"verifiedanswerstore",level:3},{value:"Defined in",id:"defined-in-22",level:4},{value:"WithScore",id:"withscore",level:3},{value:"Type parameters",id:"type-parameters-2",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"Variables",id:"variables",level:2},{value:"CORE_ENV_VARS",id:"core_env_vars",level:3},{value:"Type declaration",id:"type-declaration-13",level:4},{value:"Defined in",id:"defined-in-24",level:4},{value:"Question",id:"question-1",level:3},{value:"Defined in",id:"defined-in-25",level:4},{value:"Reference",id:"reference-1",level:3},{value:"Defined in",id:"defined-in-26",level:4},{value:"References",id:"references-1",level:3},{value:"Defined in",id:"defined-in-27",level:4},{value:"VerifiedAnswer",id:"verifiedanswer-1",level:3},{value:"Defined in",id:"defined-in-28",level:4},{value:"logger",id:"logger",level:3},{value:"Defined in",id:"defined-in-29",level:4},{value:"pageFormats",id:"pageformats",level:3},{value:"Defined in",id:"defined-in-30",level:4},{value:"Functions",id:"functions",level:2},{value:"asPageFormat",id:"aspageformat",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-31",level:4},{value:"assertEnvVars",id:"assertenvvars",level:3},{value:"Type parameters",id:"type-parameters-3",level:4},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-32",level:4},{value:"createLoggerMessage",id:"createloggermessage",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-33",level:4},{value:"extractFrontMatter",id:"extractfrontmatter",level:3},{value:"Type parameters",id:"type-parameters-4",level:4},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-34",level:4},{value:"filterDefined",id:"filterdefined",level:3},{value:"Type parameters",id:"type-parameters-5",level:4},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-35",level:4},{value:"filterFulfilled",id:"filterfulfilled",level:3},{value:"Type parameters",id:"type-parameters-6",level:4},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-36",level:4},{value:"isPageFormat",id:"ispageformat",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-37",level:4},{value:"makeLangChainEmbedder",id:"makelangchainembedder",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-38",level:4},{value:"makeMongoDbEmbeddedContentStore",id:"makemongodbembeddedcontentstore",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-39",level:4},{value:"makeMongoDbPageStore",id:"makemongodbpagestore",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-40",level:4},{value:"makeMongoDbVerifiedAnswerStore",id:"makemongodbverifiedanswerstore",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-41",level:4},{value:"makeOpenAiEmbedder",id:"makeopenaiembedder",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-42",level:4},{value:"makeTypeChatJsonTranslateFunc",id:"maketypechatjsontranslatefunc",level:3},{value:"Type parameters",id:"type-parameters-7",level:4},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-12",level:4},{value:"Parameters",id:"parameters-13",level:5},{value:"Returns",id:"returns-13",level:5},{value:"Defined in",id:"defined-in-43",level:4},{value:"pageFormat",id:"pageformat-1",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Defined in",id:"defined-in-44",level:4},{value:"removeFrontMatter",id:"removefrontmatter",level:3},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Defined in",id:"defined-in-45",level:4},{value:"updateFrontMatter",id:"updatefrontmatter",level:3},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-16",level:4},{value:"Defined in",id:"defined-in-46",level:4}];function o(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig",children:"AzureOpenAiServiceConfig"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/interfaces/EmbeddedContent",children:"EmbeddedContent"})}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,r.jsx)(n.h3,{id:"databaseconnection",children:"DatabaseConnection"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"DatabaseConnection"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"close"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,r.jsx)(n.code,{children:"force?"}),": ",(0,r.jsx)(n.code,{children:"boolean"}),") => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"drop"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["() => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/DatabaseConnection.ts#L1",children:"packages/mongodb-rag-core/src/DatabaseConnection.ts:1"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"embedargs",children:"EmbedArgs"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"EmbedArgs"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"text"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The text to embed."})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/Embedder.ts#L1",children:"packages/mongodb-rag-core/src/Embedder.ts:1"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"embedresult",children:"EmbedResult"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"EmbedResult"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"embedding"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"number"}),"[]"]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Vector embedding of the text."})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/Embedder.ts#L8",children:"packages/mongodb-rag-core/src/Embedder.ts:8"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"embeddedcontentstore",children:"EmbeddedContentStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"EmbeddedContentStore"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#vectorstore",children:(0,r.jsx)(n.code,{children:"VectorStore"})}),"<",(0,r.jsx)(n.a,{href:"interfaces/EmbeddedContent.md",children:(0,r.jsx)(n.code,{children:"EmbeddedContent"})}),"> & { ",(0,r.jsx)(n.code,{children:"close?"}),": () => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),"> ; ",(0,r.jsx)(n.code,{children:"deleteEmbeddedContent"}),": (",(0,r.jsx)(n.code,{children:"args"}),": { ",(0,r.jsx)(n.code,{children:"page"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#page",children:(0,r.jsx)(n.code,{children:"Page"})})," }) => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),"> ; ",(0,r.jsx)(n.code,{children:"loadEmbeddedContent"}),": (",(0,r.jsx)(n.code,{children:"args"}),": { ",(0,r.jsx)(n.code,{children:"page"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#page",children:(0,r.jsx)(n.code,{children:"Page"})})," }) => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/interfaces/EmbeddedContent",children:(0,r.jsx)(n.code,{children:"EmbeddedContent"})}),"[]> ; ",(0,r.jsx)(n.code,{children:"updateEmbeddedContent"}),": (",(0,r.jsx)(n.code,{children:"args"}),": { ",(0,r.jsx)(n.code,{children:"embeddedContent"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/interfaces/EmbeddedContent",children:(0,r.jsx)(n.code,{children:"EmbeddedContent"})}),"[] ; ",(0,r.jsx)(n.code,{children:"page"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#page",children:(0,r.jsx)(n.code,{children:"Page"})})," }) => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),"> }"]}),"\n",(0,r.jsx)(n.p,{children:"Data store of the embedded content."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/EmbeddedContent.ts#L60",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:60"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"embedder",children:"Embedder"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"Embedder"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.p,{children:"Takes a string of text and returns an array of numbers representing the\nvector embedding of the text."}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"embed"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,r.jsx)(n.code,{children:"args"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#embedargs",children:(0,r.jsx)(n.code,{children:"EmbedArgs"})}),") => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#embedresult",children:(0,r.jsx)(n.code,{children:"EmbedResult"})}),">"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/Embedder.ts#L19",children:"packages/mongodb-rag-core/src/Embedder.ts:19"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"findnearestneighborsoptions",children:"FindNearestNeighborsOptions"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"FindNearestNeighborsOptions"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.p,{children:"Options for performing a nearest-neighbor search."}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"filter"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"Record"}),"<",(0,r.jsx)(n.code,{children:"string"}),", ",(0,r.jsx)(n.code,{children:"unknown"}),">"]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Search filter expression."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"indexName"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The name of the index to use."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"k"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"number"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The number of nearest neighbors to return."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"minScore"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"number"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The minimum nearest-neighbor score threshold between 0-1."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"numCandidates"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"number"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Number of nearest neighbors to use during the search. Value must be less than or equal to 10000. You can't specify a number less than the number of documents to return (k)."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"path"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The keypath to the field with the vector data to use."})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VectorStore.ts#L21",children:"packages/mongodb-rag-core/src/VectorStore.ts:21"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"loadpagesargs",children:"LoadPagesArgs"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"LoadPagesArgs"}),"<",(0,r.jsx)(n.code,{children:"QueryShape"}),">: ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"QueryShape"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"unknown"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-5",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"query?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"QueryShape"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"A custom query to refine the pages to load."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"sources?"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"string"}),"[]"]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The names of the sources to load pages from. If undefined, loads available pages from all sources."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"updated?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"Date"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"If specified, refines the query to load pages with an updated date later or equal to the given date."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"urls?"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"string"}),"[]"]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"If specified, refines the query to only load pages where the url is included in the list."})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/Page.ts#L61",children:"packages/mongodb-rag-core/src/Page.ts:61"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makelangchainembedderparams",children:"MakeLangChainEmbedderParams"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"MakeLangChainEmbedderParams"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-6",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"langChainEmbeddings"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"Embeddings"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["LangChain.js ",(0,r.jsx)(n.code,{children:"Embeddings"})," instance. You can configure things like caching and retry behavior in the ",(0,r.jsx)(n.code,{children:"Embeddings"})," instance."]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/LangChainEmbedder.ts#L3",children:"packages/mongodb-rag-core/src/LangChainEmbedder.ts:3"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makeopenaiembedderargs",children:"MakeOpenAiEmbedderArgs"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"MakeOpenAiEmbedderArgs"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-7",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"backoffOptions?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"BackoffOptions"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Options used for automatic retry (usually due to rate limiting)."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"deployment"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The deployment key."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"openAiClient"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"OpenAIClient"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The OpenAI client."})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/OpenAiEmbedder.ts#L7",children:"packages/mongodb-rag-core/src/OpenAiEmbedder.ts:7"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"maketypechatjsontranslatefuncargs",children:"MakeTypeChatJsonTranslateFuncArgs"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"MakeTypeChatJsonTranslateFuncArgs"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-8",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"azureOpenAiServiceConfig"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig",children:(0,r.jsx)(n.code,{children:"AzureOpenAiServiceConfig"})})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Settings for using the Azure service."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"numRetries?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"number"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Number of times to retry the query preprocessor if it fails."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"retryDelayMs?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"number"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Delay between retries in milliseconds."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"schema"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The text of a .d.ts that would inform the schema."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"schemaName"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The name of the TypeChat schema or interface."})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L11",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:11"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"mongodbpagestore",children:"MongoDbPageStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"MongoDbPageStore"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#databaseconnection",children:(0,r.jsx)(n.code,{children:"DatabaseConnection"})})," & ",(0,r.jsx)(n.code,{children:"Omit"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#pagestore",children:(0,r.jsx)(n.code,{children:"PageStore"})}),", ",(0,r.jsx)(n.code,{children:'"loadPages"'}),"> & { ",(0,r.jsx)(n.code,{children:"queryType"}),": ",(0,r.jsx)(n.code,{children:'"mongodb"'})," ; ",(0,r.jsx)(n.code,{children:"loadPages"}),": (",(0,r.jsx)(n.code,{children:"args?"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#loadpagesargs",children:(0,r.jsx)(n.code,{children:"LoadPagesArgs"})}),"<",(0,r.jsx)(n.code,{children:"Filter"}),"<",(0,r.jsx)(n.a,{href:"modules.md#persistedpage",children:(0,r.jsx)(n.code,{children:"PersistedPage"})}),">>) => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#persistedpage",children:(0,r.jsx)(n.code,{children:"PersistedPage"})}),"[]> }"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/MongoDbPageStore.ts#L10",children:"packages/mongodb-rag-core/src/MongoDbPageStore.ts:10"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"page",children:"Page"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"Page"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.p,{children:"Represents a page from a data source."}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-9",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"body"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The text of the page."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"format"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#pageformat",children:(0,r.jsx)(n.code,{children:"PageFormat"})})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The file format of the page. This format determines how the page should be chunked and vector-embedded."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"metadata?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#pagemetadata",children:(0,r.jsx)(n.code,{children:"PageMetadata"})})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Arbitrary metadata for page."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"sourceName"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Data source name."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"title?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"A human-readable title."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"url"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/Page.ts#L6",children:"packages/mongodb-rag-core/src/Page.ts:6"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"pageaction",children:"PageAction"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"PageAction"}),": ",(0,r.jsx)(n.code,{children:'"created"'})," | ",(0,r.jsx)(n.code,{children:'"updated"'})," | ",(0,r.jsx)(n.code,{children:'"deleted"'})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/Page.ts#L44",children:"packages/mongodb-rag-core/src/Page.ts:44"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"pageformat",children:"PageFormat"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"PageFormat"}),": typeof ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#pageformats",children:(0,r.jsx)(n.code,{children:"pageFormats"})}),"[",(0,r.jsx)(n.code,{children:"number"}),"]"]}),"\n",(0,r.jsx)(n.p,{children:"A canonical page format."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/PageFormat.ts#L80",children:"packages/mongodb-rag-core/src/PageFormat.ts:80"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"pagemetadata",children:"PageMetadata"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"PageMetadata"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"index-signature",children:"Index signature"}),"\n",(0,r.jsxs)(n.p,{children:["\u25aa [k: ",(0,r.jsx)(n.code,{children:"string"}),"]: ",(0,r.jsx)(n.code,{children:"unknown"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-10",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"tags?"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"string"}),"[]"]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Arbitrary tags."})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/Page.ts#L36",children:"packages/mongodb-rag-core/src/Page.ts:36"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"pagestore",children:"PageStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"PageStore"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsxs)(n.p,{children:["Data store for ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#page",children:"Page"})," objects."]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-11",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"close?"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["() => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Close connection to data store."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"queryType?"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:'"mongodb"'})," | ",(0,r.jsx)(n.code,{children:"string"})]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The format that the store uses for custom queries. If not specified, the store does not allow custom queries."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"loadPages"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,r.jsx)(n.code,{children:"args?"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#loadpagesargs",children:(0,r.jsx)(n.code,{children:"LoadPagesArgs"})}),"<",(0,r.jsx)(n.code,{children:"unknown"}),">) => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#persistedpage",children:(0,r.jsx)(n.code,{children:"PersistedPage"})}),"[]>"]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Loads pages from the Page store."})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"updatePages"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,r.jsx)(n.code,{children:"pages"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#persistedpage",children:(0,r.jsx)(n.code,{children:"PersistedPage"})}),"[]) => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"Updates or adds the given pages in the store."})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-15",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/Page.ts#L89",children:"packages/mongodb-rag-core/src/Page.ts:89"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"persistedpage",children:"PersistedPage"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"PersistedPage"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#page",children:(0,r.jsx)(n.code,{children:"Page"})})," & { ",(0,r.jsx)(n.code,{children:"action"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#pageaction",children:(0,r.jsx)(n.code,{children:"PageAction"})})," ; ",(0,r.jsx)(n.code,{children:"updated"}),": ",(0,r.jsx)(n.code,{children:"Date"})," }"]}),"\n",(0,r.jsxs)(n.p,{children:["Represents a ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#page",children:"Page"})," stored in the database."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-16",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/Page.ts#L49",children:"packages/mongodb-rag-core/src/Page.ts:49"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"question",children:"Question"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"Question"}),": ",(0,r.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-17",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L5",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:5"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L12",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:12"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"reference",children:"Reference"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"Reference"}),": ",(0,r.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,r.jsx)(n.p,{children:"A formatted reference for an assistant message."}),"\n",(0,r.jsx)(n.p,{children:"For example, a Reference might be a docs page, dev center article, or\na MongoDB University module."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-18",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/services/conversations.ts#L9",children:"packages/mongodb-rag-core/src/services/conversations.ts:9"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/services/conversations.ts#L10",children:"packages/mongodb-rag-core/src/services/conversations.ts:10"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"references",children:"References"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"References"}),": ",(0,r.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-19",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/services/conversations.ts#L15",children:"packages/mongodb-rag-core/src/services/conversations.ts:15"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/services/conversations.ts#L16",children:"packages/mongodb-rag-core/src/services/conversations.ts:16"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"vectorstore",children:"VectorStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"VectorStore"}),"<",(0,r.jsx)(n.code,{children:"T"}),">: ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.p,{children:"Generic vector store for vector-searchable data."}),"\n",(0,r.jsx)(n.h4,{id:"type-parameters-1",children:"Type parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,r.jsx)(n.tbody,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-12",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"close?"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["() => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"findNearestNeighbors"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,r.jsx)(n.code,{children:"vector"}),": ",(0,r.jsx)(n.code,{children:"number"}),"[], ",(0,r.jsx)(n.code,{children:"options?"}),": ",(0,r.jsx)(n.code,{children:"Partial"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#findnearestneighborsoptions",children:(0,r.jsx)(n.code,{children:"FindNearestNeighborsOptions"})}),">) => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#withscore",children:(0,r.jsx)(n.code,{children:"WithScore"})}),"<",(0,r.jsx)(n.code,{children:"T"}),">[]>"]})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-20",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VectorStore.ts#L4",children:"packages/mongodb-rag-core/src/VectorStore.ts:4"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"verifiedanswer",children:"VerifiedAnswer"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"VerifiedAnswer"}),": ",(0,r.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-21",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L14",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:14"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L25",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:25"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"verifiedanswerstore",children:"VerifiedAnswerStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"VerifiedAnswerStore"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#vectorstore",children:(0,r.jsx)(n.code,{children:"VectorStore"})}),"<",(0,r.jsx)(n.a,{href:"modules.md#verifiedanswer-1",children:(0,r.jsx)(n.code,{children:"VerifiedAnswer"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-22",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L26",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:26"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"withscore",children:"WithScore"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"WithScore"}),"<",(0,r.jsx)(n.code,{children:"T"}),">: ",(0,r.jsx)(n.code,{children:"T"})," & { ",(0,r.jsx)(n.code,{children:"score"}),": ",(0,r.jsx)(n.code,{children:"number"})," }"]}),"\n",(0,r.jsx)(n.h4,{id:"type-parameters-2",children:"Type parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,r.jsx)(n.tbody,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-23",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VectorStore.ts#L16",children:"packages/mongodb-rag-core/src/VectorStore.ts:16"})}),"\n",(0,r.jsx)(n.h2,{id:"variables",children:"Variables"}),"\n",(0,r.jsx)(n.h3,{id:"core_env_vars",children:"CORE_ENV_VARS"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Const"})," ",(0,r.jsx)(n.strong,{children:"CORE_ENV_VARS"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-13",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"MONGODB_CONNECTION_URI"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"MONGODB_DATABASE_NAME"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"NODE_ENV"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"OPENAI_API_KEY"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"OPENAI_CHAT_COMPLETION_DEPLOYMENT"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"OPENAI_CHAT_COMPLETION_MODEL_VERSION"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"OPENAI_EMBEDDING_DEPLOYMENT"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"OPENAI_EMBEDDING_MODEL"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"OPENAI_EMBEDDING_MODEL_VERSION"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"OPENAI_ENDPOINT"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"VECTOR_SEARCH_INDEX_NAME"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-24",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/CoreEnvVars.ts#L1",children:"packages/mongodb-rag-core/src/CoreEnvVars.ts:1"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"question-1",children:"Question"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Const"})," ",(0,r.jsx)(n.strong,{children:"Question"}),": ",(0,r.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(n.code,{children:"embedding"}),": ",(0,r.jsx)(n.code,{children:"ZodArray"}),"<",(0,r.jsx)(n.code,{children:"ZodNumber"}),", ",(0,r.jsx)(n.code,{children:'"many"'}),"> ; ",(0,r.jsx)(n.code,{children:"embedding_model"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"text"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," }, ",(0,r.jsx)(n.code,{children:'"strip"'}),", ",(0,r.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(n.code,{children:"embedding"}),": ",(0,r.jsx)(n.code,{children:"number"}),"[] ; ",(0,r.jsx)(n.code,{children:"embedding_model"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"text"}),": ",(0,r.jsx)(n.code,{children:"string"})," }, { ",(0,r.jsx)(n.code,{children:"embedding"}),": ",(0,r.jsx)(n.code,{children:"number"}),"[] ; ",(0,r.jsx)(n.code,{children:"embedding_model"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"text"}),": ",(0,r.jsx)(n.code,{children:"string"})," }>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-25",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L5",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:5"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L12",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:12"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"reference-1",children:"Reference"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"Reference"}),": ",(0,r.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(n.code,{children:"title"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"url"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," }, ",(0,r.jsx)(n.code,{children:'"strip"'}),", ",(0,r.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(n.code,{children:"title"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"url"}),": ",(0,r.jsx)(n.code,{children:"string"})," }, { ",(0,r.jsx)(n.code,{children:"title"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"url"}),": ",(0,r.jsx)(n.code,{children:"string"})," }>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-26",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/services/conversations.ts#L9",children:"packages/mongodb-rag-core/src/services/conversations.ts:9"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/services/conversations.ts#L10",children:"packages/mongodb-rag-core/src/services/conversations.ts:10"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"references-1",children:"References"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"References"}),": ",(0,r.jsx)(n.code,{children:"ZodArray"}),"<",(0,r.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(n.code,{children:"title"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"url"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," }, ",(0,r.jsx)(n.code,{children:'"strip"'}),", ",(0,r.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(n.code,{children:"title"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"url"}),": ",(0,r.jsx)(n.code,{children:"string"})," }, { ",(0,r.jsx)(n.code,{children:"title"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"url"}),": ",(0,r.jsx)(n.code,{children:"string"})," }>, ",(0,r.jsx)(n.code,{children:'"many"'}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-27",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/services/conversations.ts#L15",children:"packages/mongodb-rag-core/src/services/conversations.ts:15"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/services/conversations.ts#L16",children:"packages/mongodb-rag-core/src/services/conversations.ts:16"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"verifiedanswer-1",children:"VerifiedAnswer"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Const"})," ",(0,r.jsx)(n.strong,{children:"VerifiedAnswer"}),": ",(0,r.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(n.code,{children:"_id"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"answer"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"author_email"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"created"}),": ",(0,r.jsx)(n.code,{children:"ZodDate"})," ; ",(0,r.jsx)(n.code,{children:"hidden"}),": ",(0,r.jsx)(n.code,{children:"ZodOptional"}),"<",(0,r.jsx)(n.code,{children:"ZodBoolean"}),"> ; ",(0,r.jsx)(n.code,{children:"question"}),": ",(0,r.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(n.code,{children:"embedding"}),": ",(0,r.jsx)(n.code,{children:"ZodArray"}),"<",(0,r.jsx)(n.code,{children:"ZodNumber"}),", ",(0,r.jsx)(n.code,{children:'"many"'}),"> ; ",(0,r.jsx)(n.code,{children:"embedding_model"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"text"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," }, ",(0,r.jsx)(n.code,{children:'"strip"'}),", ",(0,r.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(n.code,{children:"embedding"}),": ",(0,r.jsx)(n.code,{children:"number"}),"[] ; ",(0,r.jsx)(n.code,{children:"embedding_model"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"text"}),": ",(0,r.jsx)(n.code,{children:"string"})," }, { ",(0,r.jsx)(n.code,{children:"embedding"}),": ",(0,r.jsx)(n.code,{children:"number"}),"[] ; ",(0,r.jsx)(n.code,{children:"embedding_model"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"text"}),": ",(0,r.jsx)(n.code,{children:"string"})," }> = Question; ",(0,r.jsx)(n.code,{children:"references"}),": ",(0,r.jsx)(n.code,{children:"ZodArray"}),"<",(0,r.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(n.code,{children:"title"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"url"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," }, ",(0,r.jsx)(n.code,{children:'"strip"'}),", ",(0,r.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(n.code,{children:"title"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"url"}),": ",(0,r.jsx)(n.code,{children:"string"})," }, { ",(0,r.jsx)(n.code,{children:"title"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"url"}),": ",(0,r.jsx)(n.code,{children:"string"})," }>, ",(0,r.jsx)(n.code,{children:'"many"'}),"> ; ",(0,r.jsx)(n.code,{children:"updated"}),": ",(0,r.jsx)(n.code,{children:"ZodOptional"}),"<",(0,r.jsx)(n.code,{children:"ZodDate"}),"> }, ",(0,r.jsx)(n.code,{children:'"strip"'}),", ",(0,r.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(n.code,{children:"_id"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"answer"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"author_email"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"created"}),": ",(0,r.jsx)(n.code,{children:"Date"})," ; ",(0,r.jsx)(n.code,{children:"hidden?"}),": ",(0,r.jsx)(n.code,{children:"boolean"})," ; ",(0,r.jsx)(n.code,{children:"question"}),": { text: string; embedding: number[]; embedding_model: string; embedding_model_version: string; } = Question; ",(0,r.jsx)(n.code,{children:"references"}),": { url: string; title: string; }[] ; ",(0,r.jsx)(n.code,{children:"updated?"}),": ",(0,r.jsx)(n.code,{children:"Date"})," }, { ",(0,r.jsx)(n.code,{children:"_id"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"answer"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"author_email"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"created"}),": ",(0,r.jsx)(n.code,{children:"Date"})," ; ",(0,r.jsx)(n.code,{children:"hidden?"}),": ",(0,r.jsx)(n.code,{children:"boolean"})," ; ",(0,r.jsx)(n.code,{children:"question"}),": { text: string; embedding: number[]; embedding_model: string; embedding_model_version: string; } = Question; ",(0,r.jsx)(n.code,{children:"references"}),": { url: string; title: string; }[] ; ",(0,r.jsx)(n.code,{children:"updated?"}),": ",(0,r.jsx)(n.code,{children:"Date"})," }>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-28",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L14",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:14"})}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L25",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:25"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"logger",children:"logger"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Const"})," ",(0,r.jsx)(n.strong,{children:"logger"}),": ",(0,r.jsx)(n.code,{children:"Logger"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-29",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/services/logger.ts#L42",children:"packages/mongodb-rag-core/src/services/logger.ts:42"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"pageformats",children:"pageFormats"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Const"})," ",(0,r.jsx)(n.strong,{children:"pageFormats"}),": (",(0,r.jsx)(n.code,{children:'"txt"'})," | ",(0,r.jsx)(n.code,{children:'"md"'})," | ",(0,r.jsx)(n.code,{children:'"mdx"'})," | ",(0,r.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,r.jsx)(n.code,{children:'"csv"'})," | ",(0,r.jsx)(n.code,{children:'"json"'})," | ",(0,r.jsx)(n.code,{children:'"yaml"'})," | ",(0,r.jsx)(n.code,{children:'"toml"'})," | ",(0,r.jsx)(n.code,{children:'"xml"'})," | ",(0,r.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,r.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,r.jsx)(n.code,{children:'"graphql"'})," | ",(0,r.jsx)(n.code,{children:'"c"'})," | ",(0,r.jsx)(n.code,{children:'"cpp"'})," | ",(0,r.jsx)(n.code,{children:'"csharp"'})," | ",(0,r.jsx)(n.code,{children:'"go"'})," | ",(0,r.jsx)(n.code,{children:'"html"'})," | ",(0,r.jsx)(n.code,{children:'"java"'})," | ",(0,r.jsx)(n.code,{children:'"javascript"'})," | ",(0,r.jsx)(n.code,{children:'"kotlin"'})," | ",(0,r.jsx)(n.code,{children:'"latex"'})," | ",(0,r.jsx)(n.code,{children:'"objective-c"'})," | ",(0,r.jsx)(n.code,{children:'"php"'})," | ",(0,r.jsx)(n.code,{children:'"python"'})," | ",(0,r.jsx)(n.code,{children:'"ruby"'})," | ",(0,r.jsx)(n.code,{children:'"rust"'})," | ",(0,r.jsx)(n.code,{children:'"scala"'})," | ",(0,r.jsx)(n.code,{children:'"shell"'})," | ",(0,r.jsx)(n.code,{children:'"swift"'})," | ",(0,r.jsx)(n.code,{children:'"typescript"'}),")[]"]}),"\n",(0,r.jsx)(n.p,{children:"The list of canonical file formats that we support for pages."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-30",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/PageFormat.ts#L51",children:"packages/mongodb-rag-core/src/PageFormat.ts:51"})}),"\n",(0,r.jsx)(n.h2,{id:"functions",children:"Functions"}),"\n",(0,r.jsx)(n.h3,{id:"aspageformat",children:"asPageFormat"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"asPageFormat"}),"(",(0,r.jsx)(n.code,{children:"str"}),"): ",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.code,{children:'"txt"'})," | ",(0,r.jsx)(n.code,{children:'"md"'})," | ",(0,r.jsx)(n.code,{children:'"mdx"'})," | ",(0,r.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,r.jsx)(n.code,{children:'"csv"'})," | ",(0,r.jsx)(n.code,{children:'"json"'})," | ",(0,r.jsx)(n.code,{children:'"yaml"'})," | ",(0,r.jsx)(n.code,{children:'"toml"'})," | ",(0,r.jsx)(n.code,{children:'"xml"'})," | ",(0,r.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,r.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,r.jsx)(n.code,{children:'"graphql"'})," | ",(0,r.jsx)(n.code,{children:'"c"'})," | ",(0,r.jsx)(n.code,{children:'"cpp"'})," | ",(0,r.jsx)(n.code,{children:'"csharp"'})," | ",(0,r.jsx)(n.code,{children:'"go"'})," | ",(0,r.jsx)(n.code,{children:'"html"'})," | ",(0,r.jsx)(n.code,{children:'"java"'})," | ",(0,r.jsx)(n.code,{children:'"javascript"'})," | ",(0,r.jsx)(n.code,{children:'"kotlin"'})," | ",(0,r.jsx)(n.code,{children:'"latex"'})," | ",(0,r.jsx)(n.code,{children:'"objective-c"'})," | ",(0,r.jsx)(n.code,{children:'"php"'})," | ",(0,r.jsx)(n.code,{children:'"python"'})," | ",(0,r.jsx)(n.code,{children:'"ruby"'})," | ",(0,r.jsx)(n.code,{children:'"rust"'})," | ",(0,r.jsx)(n.code,{children:'"scala"'})," | ",(0,r.jsx)(n.code,{children:'"shell"'})," | ",(0,r.jsx)(n.code,{children:'"swift"'})," | ",(0,r.jsx)(n.code,{children:'"typescript"'})]}),"\n",(0,r.jsx)(n.p,{children:"Maps a string to the canonical page format it represents."}),"\n",(0,r.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"str"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.code,{children:'"txt"'})," | ",(0,r.jsx)(n.code,{children:'"md"'})," | ",(0,r.jsx)(n.code,{children:'"mdx"'})," | ",(0,r.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,r.jsx)(n.code,{children:'"csv"'})," | ",(0,r.jsx)(n.code,{children:'"json"'})," | ",(0,r.jsx)(n.code,{children:'"yaml"'})," | ",(0,r.jsx)(n.code,{children:'"toml"'})," | ",(0,r.jsx)(n.code,{children:'"xml"'})," | ",(0,r.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,r.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,r.jsx)(n.code,{children:'"graphql"'})," | ",(0,r.jsx)(n.code,{children:'"c"'})," | ",(0,r.jsx)(n.code,{children:'"cpp"'})," | ",(0,r.jsx)(n.code,{children:'"csharp"'})," | ",(0,r.jsx)(n.code,{children:'"go"'})," | ",(0,r.jsx)(n.code,{children:'"html"'})," | ",(0,r.jsx)(n.code,{children:'"java"'})," | ",(0,r.jsx)(n.code,{children:'"javascript"'})," | ",(0,r.jsx)(n.code,{children:'"kotlin"'})," | ",(0,r.jsx)(n.code,{children:'"latex"'})," | ",(0,r.jsx)(n.code,{children:'"objective-c"'})," | ",(0,r.jsx)(n.code,{children:'"php"'})," | ",(0,r.jsx)(n.code,{children:'"python"'})," | ",(0,r.jsx)(n.code,{children:'"ruby"'})," | ",(0,r.jsx)(n.code,{children:'"rust"'})," | ",(0,r.jsx)(n.code,{children:'"scala"'})," | ",(0,r.jsx)(n.code,{children:'"shell"'})," | ",(0,r.jsx)(n.code,{children:'"swift"'})," | ",(0,r.jsx)(n.code,{children:'"typescript"'})]}),"\n",(0,r.jsx)(n.p,{children:"The canonical page format, or undefined if the string is not\na recognized page format."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-31",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/PageFormat.ts#L69",children:"packages/mongodb-rag-core/src/PageFormat.ts:69"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"assertenvvars",children:"assertEnvVars"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"assertEnvVars"}),"<",(0,r.jsx)(n.code,{children:"T"}),">(",(0,r.jsx)(n.code,{children:"ENV_VARS"}),"): ",(0,r.jsx)(n.code,{children:"T"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-parameters-3",children:"Type parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"T"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,r.jsx)(n.code,{children:"Record"}),"<",(0,r.jsx)(n.code,{children:"string"}),", ",(0,r.jsx)(n.code,{children:"string"}),">"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"ENV_VARS"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"T"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"T"})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-32",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/assertEnvVars.ts#L1",children:"packages/mongodb-rag-core/src/assertEnvVars.ts:1"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"createloggermessage",children:"createLoggerMessage"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"createLoggerMessage"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"CreateMessageParams"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"Object"})}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"ipAddress"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.code,{children:"string"})]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"message"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"requestBody"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"unknown"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"requestId"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.code,{children:"string"})]})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-33",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/services/logger.ts#L10",children:"packages/mongodb-rag-core/src/services/logger.ts:10"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"extractfrontmatter",children:"extractFrontMatter"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"extractFrontMatter"}),"<",(0,r.jsx)(n.code,{children:"T"}),">(",(0,r.jsx)(n.code,{children:"text"}),", ",(0,r.jsx)(n.code,{children:"language?"}),", ",(0,r.jsx)(n.code,{children:"delimiter?"}),"): ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.p,{children:"This function extracts frontmatter from a string.\nThe generic type does not validate that the frontmatter\nconforms to the type. It just provides the type\nfor developer convenience."}),"\n",(0,r.jsx)(n.h4,{id:"type-parameters-4",children:"Type parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"T"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,r.jsx)(n.code,{children:"Record"}),"<",(0,r.jsx)(n.code,{children:"string"}),", ",(0,r.jsx)(n.code,{children:"unknown"}),">"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"text"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"language?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"delimiter?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"Object"})}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"body"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"metadata?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"T"})})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-34",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/extractFrontMatter.ts#L10",children:"packages/mongodb-rag-core/src/extractFrontMatter.ts:10"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"filterdefined",children:"filterDefined"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"filterDefined"}),"<",(0,r.jsx)(n.code,{children:"T"}),">(",(0,r.jsx)(n.code,{children:"array"}),"): ",(0,r.jsx)(n.code,{children:"Exclude"}),"<",(0,r.jsx)(n.code,{children:"T"}),", ",(0,r.jsx)(n.code,{children:"undefined"}),">[]"]}),"\n",(0,r.jsx)(n.p,{children:"Given an array of possibly undefined T, return those that are defined."}),"\n",(0,r.jsx)(n.h4,{id:"type-parameters-5",children:"Type parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,r.jsx)(n.tbody,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"array"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"T"}),"[]"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Exclude"}),"<",(0,r.jsx)(n.code,{children:"T"}),", ",(0,r.jsx)(n.code,{children:"undefined"}),">[]"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-35",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/arrayFilters.ts#L14",children:"packages/mongodb-rag-core/src/arrayFilters.ts:14"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"filterfulfilled",children:"filterFulfilled"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"filterFulfilled"}),"<",(0,r.jsx)(n.code,{children:"T"}),">(",(0,r.jsx)(n.code,{children:"array"}),"): ",(0,r.jsx)(n.code,{children:"PromiseFulfilledResult"}),"<",(0,r.jsx)(n.code,{children:"T"}),">[]"]}),"\n",(0,r.jsx)(n.p,{children:"Given an array of PromiseSettledResults, return those that are fulfilled as PromiseFulfilledResults."}),"\n",(0,r.jsx)(n.h4,{id:"type-parameters-6",children:"Type parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,r.jsx)(n.tbody,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-5",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"array"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"PromiseSettledResult"}),"<",(0,r.jsx)(n.code,{children:"T"}),">[]"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"PromiseFulfilledResult"}),"<",(0,r.jsx)(n.code,{children:"T"}),">[]"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-36",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/arrayFilters.ts#L4",children:"packages/mongodb-rag-core/src/arrayFilters.ts:4"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"ispageformat",children:"isPageFormat"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"isPageFormat"}),"(",(0,r.jsx)(n.code,{children:"str"}),'): str is "txt" | "md" | "mdx" | "restructuredtext" | "csv" | "json" | "yaml" | "toml" | "xml" | "openapi-yaml" | "openapi-json" | "graphql" | "c" | "cpp" | "csharp" | "go" | "html" | "java" | "javascript" | "kotlin" | "latex" | "objective-c" | "php" | "python" | "ruby" | "rust" | "scala" | "shell" | "swift" | "typescript"']}),"\n",(0,r.jsx)(n.p,{children:"Type guard to check if a string is a canonical page format."}),"\n",(0,r.jsx)(n.h4,{id:"parameters-6",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"str"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-6",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:'str is "txt" | "md" | "mdx" | "restructuredtext" | "csv" | "json" | "yaml" | "toml" | "xml" | "openapi-yaml" | "openapi-json" | "graphql" | "c" | "cpp" | "csharp" | "go" | "html" | "java" | "javascript" | "kotlin" | "latex" | "objective-c" | "php" | "python" | "ruby" | "rust" | "scala" | "shell" | "swift" | "typescript"'}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-37",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/PageFormat.ts#L85",children:"packages/mongodb-rag-core/src/PageFormat.ts:85"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makelangchainembedder",children:"makeLangChainEmbedder"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeLangChainEmbedder"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#embedder",children:(0,r.jsx)(n.code,{children:"Embedder"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Constructor for implementation of the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#embedder",children:"Embedder"})," using a LangChain.js ",(0,r.jsx)(n.a,{href:"https://js.langchain.com/docs/modules/data_connection/text_embedding/",children:(0,r.jsx)(n.code,{children:"Embeddings"})})," class."]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-7",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#makelangchainembedderparams",children:(0,r.jsx)(n.code,{children:"MakeLangChainEmbedderParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-7",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#embedder",children:(0,r.jsx)(n.code,{children:"Embedder"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-38",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/LangChainEmbedder.ts#L14",children:"packages/mongodb-rag-core/src/LangChainEmbedder.ts:14"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makemongodbembeddedcontentstore",children:"makeMongoDbEmbeddedContentStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeMongoDbEmbeddedContentStore"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#embeddedcontentstore",children:(0,r.jsx)(n.code,{children:"EmbeddedContentStore"})})," & ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#databaseconnection",children:(0,r.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"MakeMongoDbDatabaseConnectionParams"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#embeddedcontentstore",children:(0,r.jsx)(n.code,{children:"EmbeddedContentStore"})})," & ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#databaseconnection",children:(0,r.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-39",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/MongoDbEmbeddedContentStore.ts#L11",children:"packages/mongodb-rag-core/src/MongoDbEmbeddedContentStore.ts:11"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makemongodbpagestore",children:"makeMongoDbPageStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeMongoDbPageStore"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#mongodbpagestore",children:(0,r.jsx)(n.code,{children:"MongoDbPageStore"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Data store for ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#page",children:"Page"})," objects using MongoDB."]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"MakeMongoDbDatabaseConnectionParams"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-9",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#mongodbpagestore",children:(0,r.jsx)(n.code,{children:"MongoDbPageStore"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-40",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/MongoDbPageStore.ts#L22",children:"packages/mongodb-rag-core/src/MongoDbPageStore.ts:22"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makemongodbverifiedanswerstore",children:"makeMongoDbVerifiedAnswerStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeMongoDbVerifiedAnswerStore"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#verifiedanswerstore",children:(0,r.jsx)(n.code,{children:"VerifiedAnswerStore"})})," & ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#databaseconnection",children:(0,r.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"MakeMongoDbDatabaseConnectionParams"})," & { ",(0,r.jsx)(n.code,{children:"collectionName"}),": ",(0,r.jsx)(n.code,{children:"string"})," }"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-10",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#verifiedanswerstore",children:(0,r.jsx)(n.code,{children:"VerifiedAnswerStore"})})," & ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#databaseconnection",children:(0,r.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-41",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/MongoDbVerifiedAnswerStore.ts#L9",children:"packages/mongodb-rag-core/src/MongoDbVerifiedAnswerStore.ts:9"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makeopenaiembedder",children:"makeOpenAiEmbedder"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeOpenAiEmbedder"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#embedder",children:(0,r.jsx)(n.code,{children:"Embedder"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Constructor for implementation of the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#embedder",children:"Embedder"})," using ",(0,r.jsx)(n.a,{href:"https://platform.openai.com/docs/guides/embeddings",children:"OpenAI\nEmbeddings API"}),"."]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-11",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#makeopenaiembedderargs",children:(0,r.jsx)(n.code,{children:"MakeOpenAiEmbedderArgs"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-11",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#embedder",children:(0,r.jsx)(n.code,{children:"Embedder"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-42",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/OpenAiEmbedder.ts#L28",children:"packages/mongodb-rag-core/src/OpenAiEmbedder.ts:28"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"maketypechatjsontranslatefunc",children:"makeTypeChatJsonTranslateFunc"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeTypeChatJsonTranslateFunc"}),"<",(0,r.jsx)(n.code,{children:"SchemaType"}),">(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): (",(0,r.jsx)(n.code,{children:"prompt"}),": ",(0,r.jsx)(n.code,{children:"string"}),") => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"SchemaType"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"type-parameters-7",children:"Type parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"SchemaType"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,r.jsx)(n.code,{children:"object"})]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-12",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#maketypechatjsontranslatefuncargs",children:(0,r.jsx)(n.code,{children:"MakeTypeChatJsonTranslateFuncArgs"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-12",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"fn"})}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 (",(0,r.jsx)(n.code,{children:"prompt"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"SchemaType"}),">"]}),"\n",(0,r.jsx)(n.h5,{id:"parameters-13",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"prompt"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,r.jsx)(n.h5,{id:"returns-13",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"SchemaType"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-43",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L38",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:38"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"pageformat-1",children:"pageFormat"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"pageFormat"}),"(",(0,r.jsx)(n.code,{children:"str"}),", ",(0,r.jsx)(n.code,{children:"defaultPageFormat?"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#pageformat",children:(0,r.jsx)(n.code,{children:"PageFormat"})})]}),"\n",(0,r.jsx)(n.p,{children:"Converts a string to a canonical page format. If the string is not a\nrecognized page format or a synonym for one, this returns a default\npage format."}),"\n",(0,r.jsx)(n.h4,{id:"parameters-14",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Default value"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"str"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"undefined"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"defaultPageFormat"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:'"txt"'})," | ",(0,r.jsx)(n.code,{children:'"md"'})," | ",(0,r.jsx)(n.code,{children:'"mdx"'})," | ",(0,r.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,r.jsx)(n.code,{children:'"csv"'})," | ",(0,r.jsx)(n.code,{children:'"json"'})," | ",(0,r.jsx)(n.code,{children:'"yaml"'})," | ",(0,r.jsx)(n.code,{children:'"toml"'})," | ",(0,r.jsx)(n.code,{children:'"xml"'})," | ",(0,r.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,r.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,r.jsx)(n.code,{children:'"graphql"'})," | ",(0,r.jsx)(n.code,{children:'"c"'})," | ",(0,r.jsx)(n.code,{children:'"cpp"'})," | ",(0,r.jsx)(n.code,{children:'"csharp"'})," | ",(0,r.jsx)(n.code,{children:'"go"'})," | ",(0,r.jsx)(n.code,{children:'"html"'})," | ",(0,r.jsx)(n.code,{children:'"java"'})," | ",(0,r.jsx)(n.code,{children:'"javascript"'})," | ",(0,r.jsx)(n.code,{children:'"kotlin"'})," | ",(0,r.jsx)(n.code,{children:'"latex"'})," | ",(0,r.jsx)(n.code,{children:'"objective-c"'})," | ",(0,r.jsx)(n.code,{children:'"php"'})," | ",(0,r.jsx)(n.code,{children:'"python"'})," | ",(0,r.jsx)(n.code,{children:'"ruby"'})," | ",(0,r.jsx)(n.code,{children:'"rust"'})," | ",(0,r.jsx)(n.code,{children:'"scala"'})," | ",(0,r.jsx)(n.code,{children:'"shell"'})," | ",(0,r.jsx)(n.code,{children:'"swift"'})," | ",(0,r.jsx)(n.code,{children:'"typescript"'})]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:'"txt"'})})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-14",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/core/modules#pageformat",children:(0,r.jsx)(n.code,{children:"PageFormat"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-44",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/PageFormat.ts#L94",children:"packages/mongodb-rag-core/src/PageFormat.ts:94"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"removefrontmatter",children:"removeFrontMatter"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"removeFrontMatter"}),"(",(0,r.jsx)(n.code,{children:"content"}),", ",(0,r.jsx)(n.code,{children:"options?"}),"): ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-15",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"content"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"options?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"FrontMatterOptions"})})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-15",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"string"})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-45",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/removeFrontMatter.ts#L2",children:"packages/mongodb-rag-core/src/removeFrontMatter.ts:2"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"updatefrontmatter",children:"updateFrontMatter"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"updateFrontMatter"}),"(",(0,r.jsx)(n.code,{children:"text"}),", ",(0,r.jsx)(n.code,{children:"metadataIn"}),"): ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-16",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"text"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"metadataIn"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"Record"}),"<",(0,r.jsx)(n.code,{children:"string"}),", ",(0,r.jsx)(n.code,{children:"unknown"}),">"]})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-16",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"string"})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-46",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/updateFrontMatter.ts#L4",children:"packages/mongodb-rag-core/src/updateFrontMatter.ts:4"})})]})}function a(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(o,{...e})}):o(e)}},11151:(e,n,d)=>{d.d(n,{Z:()=>l,a:()=>i});var r=d(67294);const s={},t=r.createContext(s);function i(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/00ed12f2.c6b97fa5.js b/assets/js/00ed12f2.c6b97fa5.js deleted file mode 100644 index 5b42b45e0..000000000 --- a/assets/js/00ed12f2.c6b97fa5.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4113],{76992:(e,d,n)=>{n.r(d),n.d(d,{assets:()=>c,contentTitle:()=>i,default:()=>a,frontMatter:()=>t,metadata:()=>l,toc:()=>h});var r=n(85893),s=n(11151);const t={id:"modules",title:"mongodb-rag-core",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},i=void 0,l={id:"reference/core/modules",title:"mongodb-rag-core",description:"Interfaces",source:"@site/docs/reference/core/modules.md",sourceDirName:"reference/core",slug:"/reference/core/modules",permalink:"/chatbot/reference/core/modules",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:.5,frontMatter:{id:"modules",title:"mongodb-rag-core",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},sidebar:"main",previous:{title:"Readme",permalink:"/chatbot/reference/core/"},next:{title:"AzureOpenAiServiceConfig",permalink:"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig"}},c={},h=[{value:"Interfaces",id:"interfaces",level:2},{value:"Type Aliases",id:"type-aliases",level:2},{value:"DatabaseConnection",id:"databaseconnection",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"EmbedArgs",id:"embedargs",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"EmbedResult",id:"embedresult",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"EmbeddedContentStore",id:"embeddedcontentstore",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"Embedder",id:"embedder",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"FindNearestNeighborsOptions",id:"findnearestneighborsoptions",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"LoadPagesArgs",id:"loadpagesargs",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Type declaration",id:"type-declaration-5",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"MakeLangChainEmbedderParams",id:"makelangchainembedderparams",level:3},{value:"Type declaration",id:"type-declaration-6",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"MakeOpenAiEmbedderArgs",id:"makeopenaiembedderargs",level:3},{value:"Type declaration",id:"type-declaration-7",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"MakeTypeChatJsonTranslateFuncArgs",id:"maketypechatjsontranslatefuncargs",level:3},{value:"Type declaration",id:"type-declaration-8",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"MongoDbPageStore",id:"mongodbpagestore",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"Page",id:"page",level:3},{value:"Type declaration",id:"type-declaration-9",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"PageAction",id:"pageaction",level:3},{value:"Defined in",id:"defined-in-12",level:4},{value:"PageFormat",id:"pageformat",level:3},{value:"Defined in",id:"defined-in-13",level:4},{value:"PageMetadata",id:"pagemetadata",level:3},{value:"Index signature",id:"index-signature",level:4},{value:"Type declaration",id:"type-declaration-10",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"PageStore",id:"pagestore",level:3},{value:"Type declaration",id:"type-declaration-11",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"PersistedPage",id:"persistedpage",level:3},{value:"Defined in",id:"defined-in-16",level:4},{value:"Question",id:"question",level:3},{value:"Defined in",id:"defined-in-17",level:4},{value:"Reference",id:"reference",level:3},{value:"Defined in",id:"defined-in-18",level:4},{value:"References",id:"references",level:3},{value:"Defined in",id:"defined-in-19",level:4},{value:"VectorStore",id:"vectorstore",level:3},{value:"Type parameters",id:"type-parameters-1",level:4},{value:"Type declaration",id:"type-declaration-12",level:4},{value:"Defined in",id:"defined-in-20",level:4},{value:"VerifiedAnswer",id:"verifiedanswer",level:3},{value:"Defined in",id:"defined-in-21",level:4},{value:"VerifiedAnswerStore",id:"verifiedanswerstore",level:3},{value:"Defined in",id:"defined-in-22",level:4},{value:"WithScore",id:"withscore",level:3},{value:"Type parameters",id:"type-parameters-2",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"Variables",id:"variables",level:2},{value:"CORE_ENV_VARS",id:"core_env_vars",level:3},{value:"Type declaration",id:"type-declaration-13",level:4},{value:"Defined in",id:"defined-in-24",level:4},{value:"Question",id:"question-1",level:3},{value:"Defined in",id:"defined-in-25",level:4},{value:"Reference",id:"reference-1",level:3},{value:"Defined in",id:"defined-in-26",level:4},{value:"References",id:"references-1",level:3},{value:"Defined in",id:"defined-in-27",level:4},{value:"VerifiedAnswer",id:"verifiedanswer-1",level:3},{value:"Defined in",id:"defined-in-28",level:4},{value:"logger",id:"logger",level:3},{value:"Defined in",id:"defined-in-29",level:4},{value:"pageFormats",id:"pageformats",level:3},{value:"Defined in",id:"defined-in-30",level:4},{value:"Functions",id:"functions",level:2},{value:"asPageFormat",id:"aspageformat",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-31",level:4},{value:"assertEnvVars",id:"assertenvvars",level:3},{value:"Type parameters",id:"type-parameters-3",level:4},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-32",level:4},{value:"createLoggerMessage",id:"createloggermessage",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-33",level:4},{value:"extractFrontMatter",id:"extractfrontmatter",level:3},{value:"Type parameters",id:"type-parameters-4",level:4},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-34",level:4},{value:"filterDefined",id:"filterdefined",level:3},{value:"Type parameters",id:"type-parameters-5",level:4},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-35",level:4},{value:"filterFulfilled",id:"filterfulfilled",level:3},{value:"Type parameters",id:"type-parameters-6",level:4},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-36",level:4},{value:"isPageFormat",id:"ispageformat",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-37",level:4},{value:"makeLangChainEmbedder",id:"makelangchainembedder",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-38",level:4},{value:"makeMongoDbEmbeddedContentStore",id:"makemongodbembeddedcontentstore",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-39",level:4},{value:"makeMongoDbPageStore",id:"makemongodbpagestore",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-40",level:4},{value:"makeMongoDbVerifiedAnswerStore",id:"makemongodbverifiedanswerstore",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-41",level:4},{value:"makeOpenAiEmbedder",id:"makeopenaiembedder",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-42",level:4},{value:"makeTypeChatJsonTranslateFunc",id:"maketypechatjsontranslatefunc",level:3},{value:"Type parameters",id:"type-parameters-7",level:4},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-12",level:4},{value:"Parameters",id:"parameters-13",level:5},{value:"Returns",id:"returns-13",level:5},{value:"Defined in",id:"defined-in-43",level:4},{value:"pageFormat",id:"pageformat-1",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Defined in",id:"defined-in-44",level:4},{value:"removeFrontMatter",id:"removefrontmatter",level:3},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Defined in",id:"defined-in-45",level:4},{value:"updateFrontMatter",id:"updatefrontmatter",level:3},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-16",level:4},{value:"Defined in",id:"defined-in-46",level:4}];function o(e){const d={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(d.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,r.jsxs)(d.ul,{children:["\n",(0,r.jsx)(d.li,{children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig",children:"AzureOpenAiServiceConfig"})}),"\n",(0,r.jsx)(d.li,{children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/interfaces/EmbeddedContent",children:"EmbeddedContent"})}),"\n"]}),"\n",(0,r.jsx)(d.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,r.jsx)(d.h3,{id:"databaseconnection",children:"DatabaseConnection"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"DatabaseConnection"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"close"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["(",(0,r.jsx)(d.code,{children:"force?"}),": ",(0,r.jsx)(d.code,{children:"boolean"}),") => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.code,{children:"void"}),">"]})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"drop"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["() => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.code,{children:"void"}),">"]})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/DatabaseConnection.ts#L1",children:"packages/mongodb-rag-core/src/DatabaseConnection.ts:1"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"embedargs",children:"EmbedArgs"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"EmbedArgs"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"text"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The text to embed."})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/Embedder.ts#L1",children:"packages/mongodb-rag-core/src/Embedder.ts:1"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"embedresult",children:"EmbedResult"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"EmbedResult"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"embedding"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:"number"}),"[]"]}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Vector embedding of the text."})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/Embedder.ts#L8",children:"packages/mongodb-rag-core/src/Embedder.ts:8"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"embeddedcontentstore",children:"EmbeddedContentStore"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"EmbeddedContentStore"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#vectorstore",children:(0,r.jsx)(d.code,{children:"VectorStore"})}),"<",(0,r.jsx)(d.a,{href:"interfaces/EmbeddedContent.md",children:(0,r.jsx)(d.code,{children:"EmbeddedContent"})}),"> & { ",(0,r.jsx)(d.code,{children:"close?"}),": () => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.code,{children:"void"}),"> ; ",(0,r.jsx)(d.code,{children:"deleteEmbeddedContent"}),": (",(0,r.jsx)(d.code,{children:"args"}),": { ",(0,r.jsx)(d.code,{children:"page"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#page",children:(0,r.jsx)(d.code,{children:"Page"})})," }) => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.code,{children:"void"}),"> ; ",(0,r.jsx)(d.code,{children:"loadEmbeddedContent"}),": (",(0,r.jsx)(d.code,{children:"args"}),": { ",(0,r.jsx)(d.code,{children:"page"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#page",children:(0,r.jsx)(d.code,{children:"Page"})})," }) => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/interfaces/EmbeddedContent",children:(0,r.jsx)(d.code,{children:"EmbeddedContent"})}),"[]> ; ",(0,r.jsx)(d.code,{children:"updateEmbeddedContent"}),": (",(0,r.jsx)(d.code,{children:"args"}),": { ",(0,r.jsx)(d.code,{children:"embeddedContent"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/interfaces/EmbeddedContent",children:(0,r.jsx)(d.code,{children:"EmbeddedContent"})}),"[] ; ",(0,r.jsx)(d.code,{children:"page"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#page",children:(0,r.jsx)(d.code,{children:"Page"})})," }) => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.code,{children:"void"}),"> }"]}),"\n",(0,r.jsx)(d.p,{children:"Data store of the embedded content."}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/EmbeddedContent.ts#L60",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:60"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"embedder",children:"Embedder"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"Embedder"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.p,{children:"Takes a string of text and returns an array of numbers representing the\nvector embedding of the text."}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"embed"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["(",(0,r.jsx)(d.code,{children:"args"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#embedargs",children:(0,r.jsx)(d.code,{children:"EmbedArgs"})}),") => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#embedresult",children:(0,r.jsx)(d.code,{children:"EmbedResult"})}),">"]})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/Embedder.ts#L19",children:"packages/mongodb-rag-core/src/Embedder.ts:19"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"findnearestneighborsoptions",children:"FindNearestNeighborsOptions"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"FindNearestNeighborsOptions"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.p,{children:"Options for performing a nearest-neighbor search."}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"filter"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:"Record"}),"<",(0,r.jsx)(d.code,{children:"string"}),", ",(0,r.jsx)(d.code,{children:"unknown"}),">"]}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Search filter expression."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"indexName"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The name of the index to use."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"k"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"number"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The number of nearest neighbors to return."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"minScore"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"number"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The minimum nearest-neighbor score threshold between 0-1."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"numCandidates"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"number"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Number of nearest neighbors to use during the search. Value must be less than or equal to 10000. You can't specify a number less than the number of documents to return (k)."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"path"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The keypath to the field with the vector data to use."})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VectorStore.ts#L21",children:"packages/mongodb-rag-core/src/VectorStore.ts:21"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"loadpagesargs",children:"LoadPagesArgs"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"LoadPagesArgs"}),"<",(0,r.jsx)(d.code,{children:"QueryShape"}),">: ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"QueryShape"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"unknown"})})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-5",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"query?"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"QueryShape"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"A custom query to refine the pages to load."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"sources?"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:"string"}),"[]"]}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The names of the sources to load pages from. If undefined, loads available pages from all sources."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"updated?"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"Date"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"If specified, refines the query to load pages with an updated date later or equal to the given date."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"urls?"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:"string"}),"[]"]}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"If specified, refines the query to only load pages where the url is included in the list."})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/Page.ts#L61",children:"packages/mongodb-rag-core/src/Page.ts:61"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"makelangchainembedderparams",children:"MakeLangChainEmbedderParams"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"MakeLangChainEmbedderParams"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-6",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"langChainEmbeddings"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"Embeddings"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["LangChain.js ",(0,r.jsx)(d.code,{children:"Embeddings"})," instance. You can configure things like caching and retry behavior in the ",(0,r.jsx)(d.code,{children:"Embeddings"})," instance."]})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/LangChainEmbedder.ts#L3",children:"packages/mongodb-rag-core/src/LangChainEmbedder.ts:3"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"makeopenaiembedderargs",children:"MakeOpenAiEmbedderArgs"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"MakeOpenAiEmbedderArgs"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-7",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"backoffOptions?"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"BackoffOptions"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Options used for automatic retry (usually due to rate limiting)."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"deployment"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The deployment key."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"openAiClient"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"OpenAIClient"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The OpenAI client."})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/OpenAiEmbedder.ts#L7",children:"packages/mongodb-rag-core/src/OpenAiEmbedder.ts:7"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"maketypechatjsontranslatefuncargs",children:"MakeTypeChatJsonTranslateFuncArgs"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"MakeTypeChatJsonTranslateFuncArgs"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-8",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"azureOpenAiServiceConfig"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig",children:(0,r.jsx)(d.code,{children:"AzureOpenAiServiceConfig"})})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Settings for using the Azure service."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"numRetries?"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"number"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Number of times to retry the query preprocessor if it fails."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"retryDelayMs?"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"number"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Delay between retries in milliseconds."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"schema"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The text of a .d.ts that would inform the schema."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"schemaName"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The name of the TypeChat schema or interface."})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L11",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:11"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"mongodbpagestore",children:"MongoDbPageStore"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"MongoDbPageStore"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#databaseconnection",children:(0,r.jsx)(d.code,{children:"DatabaseConnection"})})," & ",(0,r.jsx)(d.code,{children:"Omit"}),"<",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#pagestore",children:(0,r.jsx)(d.code,{children:"PageStore"})}),", ",(0,r.jsx)(d.code,{children:'"loadPages"'}),"> & { ",(0,r.jsx)(d.code,{children:"queryType"}),": ",(0,r.jsx)(d.code,{children:'"mongodb"'})," ; ",(0,r.jsx)(d.code,{children:"loadPages"}),": (",(0,r.jsx)(d.code,{children:"args?"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#loadpagesargs",children:(0,r.jsx)(d.code,{children:"LoadPagesArgs"})}),"<",(0,r.jsx)(d.code,{children:"Filter"}),"<",(0,r.jsx)(d.a,{href:"modules.md#persistedpage",children:(0,r.jsx)(d.code,{children:"PersistedPage"})}),">>) => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#persistedpage",children:(0,r.jsx)(d.code,{children:"PersistedPage"})}),"[]> }"]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/MongoDbPageStore.ts#L10",children:"packages/mongodb-rag-core/src/MongoDbPageStore.ts:10"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"page",children:"Page"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"Page"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.p,{children:"Represents a page from a data source."}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-9",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"body"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The text of the page."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"format"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#pageformat",children:(0,r.jsx)(d.code,{children:"PageFormat"})})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The file format of the page. This format determines how the page should be chunked and vector-embedded."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"metadata?"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#pagemetadata",children:(0,r.jsx)(d.code,{children:"PageMetadata"})})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Arbitrary metadata for page."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"sourceName"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Data source name."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"title?"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"A human-readable title."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"url"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"-"})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/Page.ts#L6",children:"packages/mongodb-rag-core/src/Page.ts:6"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"pageaction",children:"PageAction"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"PageAction"}),": ",(0,r.jsx)(d.code,{children:'"created"'})," | ",(0,r.jsx)(d.code,{children:'"updated"'})," | ",(0,r.jsx)(d.code,{children:'"deleted"'})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/Page.ts#L44",children:"packages/mongodb-rag-core/src/Page.ts:44"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"pageformat",children:"PageFormat"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"PageFormat"}),": typeof ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#pageformats",children:(0,r.jsx)(d.code,{children:"pageFormats"})}),"[",(0,r.jsx)(d.code,{children:"number"}),"]"]}),"\n",(0,r.jsx)(d.p,{children:"A canonical page format."}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/PageFormat.ts#L80",children:"packages/mongodb-rag-core/src/PageFormat.ts:80"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"pagemetadata",children:"PageMetadata"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"PageMetadata"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.h4,{id:"index-signature",children:"Index signature"}),"\n",(0,r.jsxs)(d.p,{children:["\u25aa [k: ",(0,r.jsx)(d.code,{children:"string"}),"]: ",(0,r.jsx)(d.code,{children:"unknown"})]}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-10",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"tags?"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:"string"}),"[]"]}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Arbitrary tags."})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/Page.ts#L36",children:"packages/mongodb-rag-core/src/Page.ts:36"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"pagestore",children:"PageStore"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"PageStore"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsxs)(d.p,{children:["Data store for ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#page",children:"Page"})," objects."]}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-11",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"close?"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["() => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.code,{children:"void"}),">"]}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Close connection to data store."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"queryType?"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:'"mongodb"'})," | ",(0,r.jsx)(d.code,{children:"string"})]}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"The format that the store uses for custom queries. If not specified, the store does not allow custom queries."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"loadPages"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["(",(0,r.jsx)(d.code,{children:"args?"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#loadpagesargs",children:(0,r.jsx)(d.code,{children:"LoadPagesArgs"})}),"<",(0,r.jsx)(d.code,{children:"unknown"}),">) => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#persistedpage",children:(0,r.jsx)(d.code,{children:"PersistedPage"})}),"[]>"]}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Loads pages from the Page store."})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"updatePages"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["(",(0,r.jsx)(d.code,{children:"pages"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#persistedpage",children:(0,r.jsx)(d.code,{children:"PersistedPage"})}),"[]) => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.code,{children:"void"}),">"]}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:"Updates or adds the given pages in the store."})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-15",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/Page.ts#L89",children:"packages/mongodb-rag-core/src/Page.ts:89"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"persistedpage",children:"PersistedPage"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"PersistedPage"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#page",children:(0,r.jsx)(d.code,{children:"Page"})})," & { ",(0,r.jsx)(d.code,{children:"action"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#pageaction",children:(0,r.jsx)(d.code,{children:"PageAction"})})," ; ",(0,r.jsx)(d.code,{children:"updated"}),": ",(0,r.jsx)(d.code,{children:"Date"})," }"]}),"\n",(0,r.jsxs)(d.p,{children:["Represents a ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#page",children:"Page"})," stored in the database."]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-16",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/Page.ts#L49",children:"packages/mongodb-rag-core/src/Page.ts:49"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"question",children:"Question"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"Question"}),": ",(0,r.jsx)(d.code,{children:"z.infer"}),""]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-17",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L5",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:5"})}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L12",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:12"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"reference",children:"Reference"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"Reference"}),": ",(0,r.jsx)(d.code,{children:"z.infer"}),""]}),"\n",(0,r.jsx)(d.p,{children:"A formatted reference for an assistant message."}),"\n",(0,r.jsx)(d.p,{children:"For example, a Reference might be a docs page, dev center article, or\na MongoDB University module."}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-18",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/services/conversations.ts#L9",children:"packages/mongodb-rag-core/src/services/conversations.ts:9"})}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/services/conversations.ts#L10",children:"packages/mongodb-rag-core/src/services/conversations.ts:10"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"references",children:"References"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"References"}),": ",(0,r.jsx)(d.code,{children:"z.infer"}),""]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-19",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/services/conversations.ts#L15",children:"packages/mongodb-rag-core/src/services/conversations.ts:15"})}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/services/conversations.ts#L16",children:"packages/mongodb-rag-core/src/services/conversations.ts:16"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"vectorstore",children:"VectorStore"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"VectorStore"}),"<",(0,r.jsx)(d.code,{children:"T"}),">: ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.p,{children:"Generic vector store for vector-searchable data."}),"\n",(0,r.jsx)(d.h4,{id:"type-parameters-1",children:"Type parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsx)(d.tr,{children:(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"})})}),(0,r.jsx)(d.tbody,{children:(0,r.jsx)(d.tr,{children:(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"T"})})})})]}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-12",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"close?"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["() => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.code,{children:"void"}),">"]})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"findNearestNeighbors"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["(",(0,r.jsx)(d.code,{children:"vector"}),": ",(0,r.jsx)(d.code,{children:"number"}),"[], ",(0,r.jsx)(d.code,{children:"options?"}),": ",(0,r.jsx)(d.code,{children:"Partial"}),"<",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#findnearestneighborsoptions",children:(0,r.jsx)(d.code,{children:"FindNearestNeighborsOptions"})}),">) => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#withscore",children:(0,r.jsx)(d.code,{children:"WithScore"})}),"<",(0,r.jsx)(d.code,{children:"T"}),">[]>"]})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-20",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VectorStore.ts#L4",children:"packages/mongodb-rag-core/src/VectorStore.ts:4"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"verifiedanswer",children:"VerifiedAnswer"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"VerifiedAnswer"}),": ",(0,r.jsx)(d.code,{children:"z.infer"}),""]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-21",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L14",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:14"})}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L25",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:25"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"verifiedanswerstore",children:"VerifiedAnswerStore"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"VerifiedAnswerStore"}),": ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#vectorstore",children:(0,r.jsx)(d.code,{children:"VectorStore"})}),"<",(0,r.jsx)(d.a,{href:"modules.md#verifiedanswer-1",children:(0,r.jsx)(d.code,{children:"VerifiedAnswer"})}),">"]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-22",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L26",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:26"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"withscore",children:"WithScore"}),"\n",(0,r.jsxs)(d.p,{children:["\u01ac ",(0,r.jsx)(d.strong,{children:"WithScore"}),"<",(0,r.jsx)(d.code,{children:"T"}),">: ",(0,r.jsx)(d.code,{children:"T"})," & { ",(0,r.jsx)(d.code,{children:"score"}),": ",(0,r.jsx)(d.code,{children:"number"})," }"]}),"\n",(0,r.jsx)(d.h4,{id:"type-parameters-2",children:"Type parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsx)(d.tr,{children:(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"})})}),(0,r.jsx)(d.tbody,{children:(0,r.jsx)(d.tr,{children:(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"T"})})})})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-23",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VectorStore.ts#L16",children:"packages/mongodb-rag-core/src/VectorStore.ts:16"})}),"\n",(0,r.jsx)(d.h2,{id:"variables",children:"Variables"}),"\n",(0,r.jsx)(d.h3,{id:"core_env_vars",children:"CORE_ENV_VARS"}),"\n",(0,r.jsxs)(d.p,{children:["\u2022 ",(0,r.jsx)(d.code,{children:"Const"})," ",(0,r.jsx)(d.strong,{children:"CORE_ENV_VARS"}),": ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.h4,{id:"type-declaration-13",children:"Type declaration"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"MONGODB_CONNECTION_URI"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"MONGODB_DATABASE_NAME"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"NODE_ENV"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"OPENAI_API_KEY"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"OPENAI_CHAT_COMPLETION_DEPLOYMENT"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"OPENAI_CHAT_COMPLETION_MODEL_VERSION"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"OPENAI_EMBEDDING_DEPLOYMENT"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"OPENAI_EMBEDDING_MODEL"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"OPENAI_EMBEDDING_MODEL_VERSION"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"OPENAI_ENDPOINT"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"VECTOR_SEARCH_INDEX_NAME"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-24",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/CoreEnvVars.ts#L1",children:"packages/mongodb-rag-core/src/CoreEnvVars.ts:1"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"question-1",children:"Question"}),"\n",(0,r.jsxs)(d.p,{children:["\u2022 ",(0,r.jsx)(d.code,{children:"Const"})," ",(0,r.jsx)(d.strong,{children:"Question"}),": ",(0,r.jsx)(d.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(d.code,{children:"embedding"}),": ",(0,r.jsx)(d.code,{children:"ZodArray"}),"<",(0,r.jsx)(d.code,{children:"ZodNumber"}),", ",(0,r.jsx)(d.code,{children:'"many"'}),"> ; ",(0,r.jsx)(d.code,{children:"embedding_model"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," ; ",(0,r.jsx)(d.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," ; ",(0,r.jsx)(d.code,{children:"text"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," }, ",(0,r.jsx)(d.code,{children:'"strip"'}),", ",(0,r.jsx)(d.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(d.code,{children:"embedding"}),": ",(0,r.jsx)(d.code,{children:"number"}),"[] ; ",(0,r.jsx)(d.code,{children:"embedding_model"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"text"}),": ",(0,r.jsx)(d.code,{children:"string"})," }, { ",(0,r.jsx)(d.code,{children:"embedding"}),": ",(0,r.jsx)(d.code,{children:"number"}),"[] ; ",(0,r.jsx)(d.code,{children:"embedding_model"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"text"}),": ",(0,r.jsx)(d.code,{children:"string"})," }>"]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-25",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L5",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:5"})}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L12",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:12"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"reference-1",children:"Reference"}),"\n",(0,r.jsxs)(d.p,{children:["\u2022 ",(0,r.jsx)(d.strong,{children:"Reference"}),": ",(0,r.jsx)(d.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(d.code,{children:"title"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," ; ",(0,r.jsx)(d.code,{children:"url"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," }, ",(0,r.jsx)(d.code,{children:'"strip"'}),", ",(0,r.jsx)(d.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(d.code,{children:"title"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"url"}),": ",(0,r.jsx)(d.code,{children:"string"})," }, { ",(0,r.jsx)(d.code,{children:"title"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"url"}),": ",(0,r.jsx)(d.code,{children:"string"})," }>"]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-26",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/services/conversations.ts#L9",children:"packages/mongodb-rag-core/src/services/conversations.ts:9"})}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/services/conversations.ts#L10",children:"packages/mongodb-rag-core/src/services/conversations.ts:10"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"references-1",children:"References"}),"\n",(0,r.jsxs)(d.p,{children:["\u2022 ",(0,r.jsx)(d.strong,{children:"References"}),": ",(0,r.jsx)(d.code,{children:"ZodArray"}),"<",(0,r.jsx)(d.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(d.code,{children:"title"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," ; ",(0,r.jsx)(d.code,{children:"url"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," }, ",(0,r.jsx)(d.code,{children:'"strip"'}),", ",(0,r.jsx)(d.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(d.code,{children:"title"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"url"}),": ",(0,r.jsx)(d.code,{children:"string"})," }, { ",(0,r.jsx)(d.code,{children:"title"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"url"}),": ",(0,r.jsx)(d.code,{children:"string"})," }>, ",(0,r.jsx)(d.code,{children:'"many"'}),">"]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-27",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/services/conversations.ts#L15",children:"packages/mongodb-rag-core/src/services/conversations.ts:15"})}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/services/conversations.ts#L16",children:"packages/mongodb-rag-core/src/services/conversations.ts:16"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"verifiedanswer-1",children:"VerifiedAnswer"}),"\n",(0,r.jsxs)(d.p,{children:["\u2022 ",(0,r.jsx)(d.code,{children:"Const"})," ",(0,r.jsx)(d.strong,{children:"VerifiedAnswer"}),": ",(0,r.jsx)(d.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(d.code,{children:"_id"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," ; ",(0,r.jsx)(d.code,{children:"answer"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," ; ",(0,r.jsx)(d.code,{children:"author_email"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," ; ",(0,r.jsx)(d.code,{children:"created"}),": ",(0,r.jsx)(d.code,{children:"ZodDate"})," ; ",(0,r.jsx)(d.code,{children:"hidden"}),": ",(0,r.jsx)(d.code,{children:"ZodOptional"}),"<",(0,r.jsx)(d.code,{children:"ZodBoolean"}),"> ; ",(0,r.jsx)(d.code,{children:"question"}),": ",(0,r.jsx)(d.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(d.code,{children:"embedding"}),": ",(0,r.jsx)(d.code,{children:"ZodArray"}),"<",(0,r.jsx)(d.code,{children:"ZodNumber"}),", ",(0,r.jsx)(d.code,{children:'"many"'}),"> ; ",(0,r.jsx)(d.code,{children:"embedding_model"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," ; ",(0,r.jsx)(d.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," ; ",(0,r.jsx)(d.code,{children:"text"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," }, ",(0,r.jsx)(d.code,{children:'"strip"'}),", ",(0,r.jsx)(d.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(d.code,{children:"embedding"}),": ",(0,r.jsx)(d.code,{children:"number"}),"[] ; ",(0,r.jsx)(d.code,{children:"embedding_model"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"text"}),": ",(0,r.jsx)(d.code,{children:"string"})," }, { ",(0,r.jsx)(d.code,{children:"embedding"}),": ",(0,r.jsx)(d.code,{children:"number"}),"[] ; ",(0,r.jsx)(d.code,{children:"embedding_model"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"embedding_model_version"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"text"}),": ",(0,r.jsx)(d.code,{children:"string"})," }> = Question; ",(0,r.jsx)(d.code,{children:"references"}),": ",(0,r.jsx)(d.code,{children:"ZodArray"}),"<",(0,r.jsx)(d.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(d.code,{children:"title"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," ; ",(0,r.jsx)(d.code,{children:"url"}),": ",(0,r.jsx)(d.code,{children:"ZodString"})," }, ",(0,r.jsx)(d.code,{children:'"strip"'}),", ",(0,r.jsx)(d.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(d.code,{children:"title"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"url"}),": ",(0,r.jsx)(d.code,{children:"string"})," }, { ",(0,r.jsx)(d.code,{children:"title"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"url"}),": ",(0,r.jsx)(d.code,{children:"string"})," }>, ",(0,r.jsx)(d.code,{children:'"many"'}),"> ; ",(0,r.jsx)(d.code,{children:"updated"}),": ",(0,r.jsx)(d.code,{children:"ZodOptional"}),"<",(0,r.jsx)(d.code,{children:"ZodDate"}),"> }, ",(0,r.jsx)(d.code,{children:'"strip"'}),", ",(0,r.jsx)(d.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(d.code,{children:"_id"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"answer"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"author_email"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"created"}),": ",(0,r.jsx)(d.code,{children:"Date"})," ; ",(0,r.jsx)(d.code,{children:"hidden?"}),": ",(0,r.jsx)(d.code,{children:"boolean"})," ; ",(0,r.jsx)(d.code,{children:"question"}),": { text: string; embedding: number[]; embedding_model: string; embedding_model_version: string; } = Question; ",(0,r.jsx)(d.code,{children:"references"}),": { url: string; title: string; }[] ; ",(0,r.jsx)(d.code,{children:"updated?"}),": ",(0,r.jsx)(d.code,{children:"Date"})," }, { ",(0,r.jsx)(d.code,{children:"_id"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"answer"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"author_email"}),": ",(0,r.jsx)(d.code,{children:"string"})," ; ",(0,r.jsx)(d.code,{children:"created"}),": ",(0,r.jsx)(d.code,{children:"Date"})," ; ",(0,r.jsx)(d.code,{children:"hidden?"}),": ",(0,r.jsx)(d.code,{children:"boolean"})," ; ",(0,r.jsx)(d.code,{children:"question"}),": { text: string; embedding: number[]; embedding_model: string; embedding_model_version: string; } = Question; ",(0,r.jsx)(d.code,{children:"references"}),": { url: string; title: string; }[] ; ",(0,r.jsx)(d.code,{children:"updated?"}),": ",(0,r.jsx)(d.code,{children:"Date"})," }>"]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-28",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L14",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:14"})}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/VerifiedAnswer.ts#L25",children:"packages/mongodb-rag-core/src/VerifiedAnswer.ts:25"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"logger",children:"logger"}),"\n",(0,r.jsxs)(d.p,{children:["\u2022 ",(0,r.jsx)(d.code,{children:"Const"})," ",(0,r.jsx)(d.strong,{children:"logger"}),": ",(0,r.jsx)(d.code,{children:"Logger"})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-29",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/services/logger.ts#L42",children:"packages/mongodb-rag-core/src/services/logger.ts:42"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"pageformats",children:"pageFormats"}),"\n",(0,r.jsxs)(d.p,{children:["\u2022 ",(0,r.jsx)(d.code,{children:"Const"})," ",(0,r.jsx)(d.strong,{children:"pageFormats"}),": (",(0,r.jsx)(d.code,{children:'"txt"'})," | ",(0,r.jsx)(d.code,{children:'"md"'})," | ",(0,r.jsx)(d.code,{children:'"mdx"'})," | ",(0,r.jsx)(d.code,{children:'"restructuredtext"'})," | ",(0,r.jsx)(d.code,{children:'"csv"'})," | ",(0,r.jsx)(d.code,{children:'"json"'})," | ",(0,r.jsx)(d.code,{children:'"yaml"'})," | ",(0,r.jsx)(d.code,{children:'"toml"'})," | ",(0,r.jsx)(d.code,{children:'"xml"'})," | ",(0,r.jsx)(d.code,{children:'"openapi-yaml"'})," | ",(0,r.jsx)(d.code,{children:'"openapi-json"'})," | ",(0,r.jsx)(d.code,{children:'"graphql"'})," | ",(0,r.jsx)(d.code,{children:'"c"'})," | ",(0,r.jsx)(d.code,{children:'"cpp"'})," | ",(0,r.jsx)(d.code,{children:'"csharp"'})," | ",(0,r.jsx)(d.code,{children:'"go"'})," | ",(0,r.jsx)(d.code,{children:'"html"'})," | ",(0,r.jsx)(d.code,{children:'"java"'})," | ",(0,r.jsx)(d.code,{children:'"javascript"'})," | ",(0,r.jsx)(d.code,{children:'"kotlin"'})," | ",(0,r.jsx)(d.code,{children:'"latex"'})," | ",(0,r.jsx)(d.code,{children:'"objective-c"'})," | ",(0,r.jsx)(d.code,{children:'"php"'})," | ",(0,r.jsx)(d.code,{children:'"python"'})," | ",(0,r.jsx)(d.code,{children:'"ruby"'})," | ",(0,r.jsx)(d.code,{children:'"rust"'})," | ",(0,r.jsx)(d.code,{children:'"scala"'})," | ",(0,r.jsx)(d.code,{children:'"shell"'})," | ",(0,r.jsx)(d.code,{children:'"swift"'})," | ",(0,r.jsx)(d.code,{children:'"typescript"'}),")[]"]}),"\n",(0,r.jsx)(d.p,{children:"The list of canonical file formats that we support for pages."}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-30",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/PageFormat.ts#L51",children:"packages/mongodb-rag-core/src/PageFormat.ts:51"})}),"\n",(0,r.jsx)(d.h2,{id:"functions",children:"Functions"}),"\n",(0,r.jsx)(d.h3,{id:"aspageformat",children:"asPageFormat"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"asPageFormat"}),"(",(0,r.jsx)(d.code,{children:"str"}),"): ",(0,r.jsx)(d.code,{children:"undefined"})," | ",(0,r.jsx)(d.code,{children:'"txt"'})," | ",(0,r.jsx)(d.code,{children:'"md"'})," | ",(0,r.jsx)(d.code,{children:'"mdx"'})," | ",(0,r.jsx)(d.code,{children:'"restructuredtext"'})," | ",(0,r.jsx)(d.code,{children:'"csv"'})," | ",(0,r.jsx)(d.code,{children:'"json"'})," | ",(0,r.jsx)(d.code,{children:'"yaml"'})," | ",(0,r.jsx)(d.code,{children:'"toml"'})," | ",(0,r.jsx)(d.code,{children:'"xml"'})," | ",(0,r.jsx)(d.code,{children:'"openapi-yaml"'})," | ",(0,r.jsx)(d.code,{children:'"openapi-json"'})," | ",(0,r.jsx)(d.code,{children:'"graphql"'})," | ",(0,r.jsx)(d.code,{children:'"c"'})," | ",(0,r.jsx)(d.code,{children:'"cpp"'})," | ",(0,r.jsx)(d.code,{children:'"csharp"'})," | ",(0,r.jsx)(d.code,{children:'"go"'})," | ",(0,r.jsx)(d.code,{children:'"html"'})," | ",(0,r.jsx)(d.code,{children:'"java"'})," | ",(0,r.jsx)(d.code,{children:'"javascript"'})," | ",(0,r.jsx)(d.code,{children:'"kotlin"'})," | ",(0,r.jsx)(d.code,{children:'"latex"'})," | ",(0,r.jsx)(d.code,{children:'"objective-c"'})," | ",(0,r.jsx)(d.code,{children:'"php"'})," | ",(0,r.jsx)(d.code,{children:'"python"'})," | ",(0,r.jsx)(d.code,{children:'"ruby"'})," | ",(0,r.jsx)(d.code,{children:'"rust"'})," | ",(0,r.jsx)(d.code,{children:'"scala"'})," | ",(0,r.jsx)(d.code,{children:'"shell"'})," | ",(0,r.jsx)(d.code,{children:'"swift"'})," | ",(0,r.jsx)(d.code,{children:'"typescript"'})]}),"\n",(0,r.jsx)(d.p,{children:"Maps a string to the canonical page format it represents."}),"\n",(0,r.jsx)(d.h4,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"str"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(d.p,{children:[(0,r.jsx)(d.code,{children:"undefined"})," | ",(0,r.jsx)(d.code,{children:'"txt"'})," | ",(0,r.jsx)(d.code,{children:'"md"'})," | ",(0,r.jsx)(d.code,{children:'"mdx"'})," | ",(0,r.jsx)(d.code,{children:'"restructuredtext"'})," | ",(0,r.jsx)(d.code,{children:'"csv"'})," | ",(0,r.jsx)(d.code,{children:'"json"'})," | ",(0,r.jsx)(d.code,{children:'"yaml"'})," | ",(0,r.jsx)(d.code,{children:'"toml"'})," | ",(0,r.jsx)(d.code,{children:'"xml"'})," | ",(0,r.jsx)(d.code,{children:'"openapi-yaml"'})," | ",(0,r.jsx)(d.code,{children:'"openapi-json"'})," | ",(0,r.jsx)(d.code,{children:'"graphql"'})," | ",(0,r.jsx)(d.code,{children:'"c"'})," | ",(0,r.jsx)(d.code,{children:'"cpp"'})," | ",(0,r.jsx)(d.code,{children:'"csharp"'})," | ",(0,r.jsx)(d.code,{children:'"go"'})," | ",(0,r.jsx)(d.code,{children:'"html"'})," | ",(0,r.jsx)(d.code,{children:'"java"'})," | ",(0,r.jsx)(d.code,{children:'"javascript"'})," | ",(0,r.jsx)(d.code,{children:'"kotlin"'})," | ",(0,r.jsx)(d.code,{children:'"latex"'})," | ",(0,r.jsx)(d.code,{children:'"objective-c"'})," | ",(0,r.jsx)(d.code,{children:'"php"'})," | ",(0,r.jsx)(d.code,{children:'"python"'})," | ",(0,r.jsx)(d.code,{children:'"ruby"'})," | ",(0,r.jsx)(d.code,{children:'"rust"'})," | ",(0,r.jsx)(d.code,{children:'"scala"'})," | ",(0,r.jsx)(d.code,{children:'"shell"'})," | ",(0,r.jsx)(d.code,{children:'"swift"'})," | ",(0,r.jsx)(d.code,{children:'"typescript"'})]}),"\n",(0,r.jsx)(d.p,{children:"The canonical page format, or undefined if the string is not\na recognized page format."}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-31",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/PageFormat.ts#L69",children:"packages/mongodb-rag-core/src/PageFormat.ts:69"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"assertenvvars",children:"assertEnvVars"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"assertEnvVars"}),"<",(0,r.jsx)(d.code,{children:"T"}),">(",(0,r.jsx)(d.code,{children:"ENV_VARS"}),"): ",(0,r.jsx)(d.code,{children:"T"})]}),"\n",(0,r.jsx)(d.h4,{id:"type-parameters-3",children:"Type parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"T"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["extends ",(0,r.jsx)(d.code,{children:"Record"}),"<",(0,r.jsx)(d.code,{children:"string"}),", ",(0,r.jsx)(d.code,{children:"string"}),">"]})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"ENV_VARS"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"T"})})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-1",children:"Returns"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.code,{children:"T"})}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-32",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/assertEnvVars.ts#L1",children:"packages/mongodb-rag-core/src/assertEnvVars.ts:1"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"createloggermessage",children:"createLoggerMessage"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"createLoggerMessage"}),"(",(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"CreateMessageParams"})})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-2",children:"Returns"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.code,{children:"Object"})}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"ipAddress"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:"undefined"})," | ",(0,r.jsx)(d.code,{children:"string"})]})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"message"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"requestBody"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"unknown"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"requestId"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:"undefined"})," | ",(0,r.jsx)(d.code,{children:"string"})]})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-33",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/services/logger.ts#L10",children:"packages/mongodb-rag-core/src/services/logger.ts:10"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"extractfrontmatter",children:"extractFrontMatter"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"extractFrontMatter"}),"<",(0,r.jsx)(d.code,{children:"T"}),">(",(0,r.jsx)(d.code,{children:"text"}),", ",(0,r.jsx)(d.code,{children:"language?"}),", ",(0,r.jsx)(d.code,{children:"delimiter?"}),"): ",(0,r.jsx)(d.code,{children:"Object"})]}),"\n",(0,r.jsx)(d.p,{children:"This function extracts frontmatter from a string.\nThe generic type does not validate that the frontmatter\nconforms to the type. It just provides the type\nfor developer convenience."}),"\n",(0,r.jsx)(d.h4,{id:"type-parameters-4",children:"Type parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"T"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["extends ",(0,r.jsx)(d.code,{children:"Record"}),"<",(0,r.jsx)(d.code,{children:"string"}),", ",(0,r.jsx)(d.code,{children:"unknown"}),">"]})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"text"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"language?"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"delimiter?"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-3",children:"Returns"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.code,{children:"Object"})}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"body"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"metadata?"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"T"})})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-34",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/extractFrontMatter.ts#L10",children:"packages/mongodb-rag-core/src/extractFrontMatter.ts:10"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"filterdefined",children:"filterDefined"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"filterDefined"}),"<",(0,r.jsx)(d.code,{children:"T"}),">(",(0,r.jsx)(d.code,{children:"array"}),"): ",(0,r.jsx)(d.code,{children:"Exclude"}),"<",(0,r.jsx)(d.code,{children:"T"}),", ",(0,r.jsx)(d.code,{children:"undefined"}),">[]"]}),"\n",(0,r.jsx)(d.p,{children:"Given an array of possibly undefined T, return those that are defined."}),"\n",(0,r.jsx)(d.h4,{id:"type-parameters-5",children:"Type parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsx)(d.tr,{children:(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"})})}),(0,r.jsx)(d.tbody,{children:(0,r.jsx)(d.tr,{children:(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"T"})})})})]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"array"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:"T"}),"[]"]})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-4",children:"Returns"}),"\n",(0,r.jsxs)(d.p,{children:[(0,r.jsx)(d.code,{children:"Exclude"}),"<",(0,r.jsx)(d.code,{children:"T"}),", ",(0,r.jsx)(d.code,{children:"undefined"}),">[]"]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-35",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/arrayFilters.ts#L14",children:"packages/mongodb-rag-core/src/arrayFilters.ts:14"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"filterfulfilled",children:"filterFulfilled"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"filterFulfilled"}),"<",(0,r.jsx)(d.code,{children:"T"}),">(",(0,r.jsx)(d.code,{children:"array"}),"): ",(0,r.jsx)(d.code,{children:"PromiseFulfilledResult"}),"<",(0,r.jsx)(d.code,{children:"T"}),">[]"]}),"\n",(0,r.jsx)(d.p,{children:"Given an array of PromiseSettledResults, return those that are fulfilled as PromiseFulfilledResults."}),"\n",(0,r.jsx)(d.h4,{id:"type-parameters-6",children:"Type parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsx)(d.tr,{children:(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"})})}),(0,r.jsx)(d.tbody,{children:(0,r.jsx)(d.tr,{children:(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"T"})})})})]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-5",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"array"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:"PromiseSettledResult"}),"<",(0,r.jsx)(d.code,{children:"T"}),">[]"]})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-5",children:"Returns"}),"\n",(0,r.jsxs)(d.p,{children:[(0,r.jsx)(d.code,{children:"PromiseFulfilledResult"}),"<",(0,r.jsx)(d.code,{children:"T"}),">[]"]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-36",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/arrayFilters.ts#L4",children:"packages/mongodb-rag-core/src/arrayFilters.ts:4"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"ispageformat",children:"isPageFormat"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"isPageFormat"}),"(",(0,r.jsx)(d.code,{children:"str"}),'): str is "txt" | "md" | "mdx" | "restructuredtext" | "csv" | "json" | "yaml" | "toml" | "xml" | "openapi-yaml" | "openapi-json" | "graphql" | "c" | "cpp" | "csharp" | "go" | "html" | "java" | "javascript" | "kotlin" | "latex" | "objective-c" | "php" | "python" | "ruby" | "rust" | "scala" | "shell" | "swift" | "typescript"']}),"\n",(0,r.jsx)(d.p,{children:"Type guard to check if a string is a canonical page format."}),"\n",(0,r.jsx)(d.h4,{id:"parameters-6",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"str"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-6",children:"Returns"}),"\n",(0,r.jsx)(d.p,{children:'str is "txt" | "md" | "mdx" | "restructuredtext" | "csv" | "json" | "yaml" | "toml" | "xml" | "openapi-yaml" | "openapi-json" | "graphql" | "c" | "cpp" | "csharp" | "go" | "html" | "java" | "javascript" | "kotlin" | "latex" | "objective-c" | "php" | "python" | "ruby" | "rust" | "scala" | "shell" | "swift" | "typescript"'}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-37",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/PageFormat.ts#L85",children:"packages/mongodb-rag-core/src/PageFormat.ts:85"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"makelangchainembedder",children:"makeLangChainEmbedder"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"makeLangChainEmbedder"}),"(",(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#embedder",children:(0,r.jsx)(d.code,{children:"Embedder"})})]}),"\n",(0,r.jsxs)(d.p,{children:["Constructor for implementation of the ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#embedder",children:"Embedder"})," using a LangChain.js ",(0,r.jsx)(d.a,{href:"https://js.langchain.com/docs/modules/data_connection/text_embedding/",children:(0,r.jsx)(d.code,{children:"Embeddings"})})," class."]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-7",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#makelangchainembedderparams",children:(0,r.jsx)(d.code,{children:"MakeLangChainEmbedderParams"})})})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-7",children:"Returns"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#embedder",children:(0,r.jsx)(d.code,{children:"Embedder"})})}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-38",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/LangChainEmbedder.ts#L14",children:"packages/mongodb-rag-core/src/LangChainEmbedder.ts:14"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"makemongodbembeddedcontentstore",children:"makeMongoDbEmbeddedContentStore"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"makeMongoDbEmbeddedContentStore"}),"(",(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#embeddedcontentstore",children:(0,r.jsx)(d.code,{children:"EmbeddedContentStore"})})," & ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#databaseconnection",children:(0,r.jsx)(d.code,{children:"DatabaseConnection"})})]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"MakeMongoDbDatabaseConnectionParams"})})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-8",children:"Returns"}),"\n",(0,r.jsxs)(d.p,{children:[(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#embeddedcontentstore",children:(0,r.jsx)(d.code,{children:"EmbeddedContentStore"})})," & ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#databaseconnection",children:(0,r.jsx)(d.code,{children:"DatabaseConnection"})})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-39",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/MongoDbEmbeddedContentStore.ts#L11",children:"packages/mongodb-rag-core/src/MongoDbEmbeddedContentStore.ts:11"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"makemongodbpagestore",children:"makeMongoDbPageStore"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"makeMongoDbPageStore"}),"(",(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#mongodbpagestore",children:(0,r.jsx)(d.code,{children:"MongoDbPageStore"})})]}),"\n",(0,r.jsxs)(d.p,{children:["Data store for ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#page",children:"Page"})," objects using MongoDB."]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"MakeMongoDbDatabaseConnectionParams"})})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-9",children:"Returns"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#mongodbpagestore",children:(0,r.jsx)(d.code,{children:"MongoDbPageStore"})})}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-40",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/MongoDbPageStore.ts#L22",children:"packages/mongodb-rag-core/src/MongoDbPageStore.ts:22"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"makemongodbverifiedanswerstore",children:"makeMongoDbVerifiedAnswerStore"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"makeMongoDbVerifiedAnswerStore"}),"(",(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#verifiedanswerstore",children:(0,r.jsx)(d.code,{children:"VerifiedAnswerStore"})})," & ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#databaseconnection",children:(0,r.jsx)(d.code,{children:"DatabaseConnection"})})]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:"MakeMongoDbDatabaseConnectionParams"})," & { ",(0,r.jsx)(d.code,{children:"collectionName"}),": ",(0,r.jsx)(d.code,{children:"string"})," }"]})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-10",children:"Returns"}),"\n",(0,r.jsxs)(d.p,{children:[(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#verifiedanswerstore",children:(0,r.jsx)(d.code,{children:"VerifiedAnswerStore"})})," & ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#databaseconnection",children:(0,r.jsx)(d.code,{children:"DatabaseConnection"})})]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-41",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/MongoDbVerifiedAnswerStore.ts#L9",children:"packages/mongodb-rag-core/src/MongoDbVerifiedAnswerStore.ts:9"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"makeopenaiembedder",children:"makeOpenAiEmbedder"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"makeOpenAiEmbedder"}),"(",(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#embedder",children:(0,r.jsx)(d.code,{children:"Embedder"})})]}),"\n",(0,r.jsxs)(d.p,{children:["Constructor for implementation of the ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#embedder",children:"Embedder"})," using ",(0,r.jsx)(d.a,{href:"https://platform.openai.com/docs/guides/embeddings",children:"OpenAI\nEmbeddings API"}),"."]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-11",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#makeopenaiembedderargs",children:(0,r.jsx)(d.code,{children:"MakeOpenAiEmbedderArgs"})})})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-11",children:"Returns"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#embedder",children:(0,r.jsx)(d.code,{children:"Embedder"})})}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-42",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/OpenAiEmbedder.ts#L28",children:"packages/mongodb-rag-core/src/OpenAiEmbedder.ts:28"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"maketypechatjsontranslatefunc",children:"makeTypeChatJsonTranslateFunc"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"makeTypeChatJsonTranslateFunc"}),"<",(0,r.jsx)(d.code,{children:"SchemaType"}),">(",(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"}),"): (",(0,r.jsx)(d.code,{children:"prompt"}),": ",(0,r.jsx)(d.code,{children:"string"}),") => ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.code,{children:"SchemaType"}),">"]}),"\n",(0,r.jsx)(d.h4,{id:"type-parameters-7",children:"Type parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"SchemaType"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:["extends ",(0,r.jsx)(d.code,{children:"object"})]})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-12",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#maketypechatjsontranslatefuncargs",children:(0,r.jsx)(d.code,{children:"MakeTypeChatJsonTranslateFuncArgs"})})})]})})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-12",children:"Returns"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.code,{children:"fn"})}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 (",(0,r.jsx)(d.code,{children:"prompt"}),"): ",(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.code,{children:"SchemaType"}),">"]}),"\n",(0,r.jsx)(d.h5,{id:"parameters-13",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(d.tbody,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"prompt"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]})})]}),"\n",(0,r.jsx)(d.h5,{id:"returns-13",children:"Returns"}),"\n",(0,r.jsxs)(d.p,{children:[(0,r.jsx)(d.code,{children:"Promise"}),"<",(0,r.jsx)(d.code,{children:"SchemaType"}),">"]}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-43",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L38",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:38"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"pageformat-1",children:"pageFormat"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"pageFormat"}),"(",(0,r.jsx)(d.code,{children:"str"}),", ",(0,r.jsx)(d.code,{children:"defaultPageFormat?"}),"): ",(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#pageformat",children:(0,r.jsx)(d.code,{children:"PageFormat"})})]}),"\n",(0,r.jsx)(d.p,{children:"Converts a string to a canonical page format. If the string is not a\nrecognized page format or a synonym for one, this returns a default\npage format."}),"\n",(0,r.jsx)(d.h4,{id:"parameters-14",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Default value"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"str"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"undefined"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"defaultPageFormat"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:'"txt"'})," | ",(0,r.jsx)(d.code,{children:'"md"'})," | ",(0,r.jsx)(d.code,{children:'"mdx"'})," | ",(0,r.jsx)(d.code,{children:'"restructuredtext"'})," | ",(0,r.jsx)(d.code,{children:'"csv"'})," | ",(0,r.jsx)(d.code,{children:'"json"'})," | ",(0,r.jsx)(d.code,{children:'"yaml"'})," | ",(0,r.jsx)(d.code,{children:'"toml"'})," | ",(0,r.jsx)(d.code,{children:'"xml"'})," | ",(0,r.jsx)(d.code,{children:'"openapi-yaml"'})," | ",(0,r.jsx)(d.code,{children:'"openapi-json"'})," | ",(0,r.jsx)(d.code,{children:'"graphql"'})," | ",(0,r.jsx)(d.code,{children:'"c"'})," | ",(0,r.jsx)(d.code,{children:'"cpp"'})," | ",(0,r.jsx)(d.code,{children:'"csharp"'})," | ",(0,r.jsx)(d.code,{children:'"go"'})," | ",(0,r.jsx)(d.code,{children:'"html"'})," | ",(0,r.jsx)(d.code,{children:'"java"'})," | ",(0,r.jsx)(d.code,{children:'"javascript"'})," | ",(0,r.jsx)(d.code,{children:'"kotlin"'})," | ",(0,r.jsx)(d.code,{children:'"latex"'})," | ",(0,r.jsx)(d.code,{children:'"objective-c"'})," | ",(0,r.jsx)(d.code,{children:'"php"'})," | ",(0,r.jsx)(d.code,{children:'"python"'})," | ",(0,r.jsx)(d.code,{children:'"ruby"'})," | ",(0,r.jsx)(d.code,{children:'"rust"'})," | ",(0,r.jsx)(d.code,{children:'"scala"'})," | ",(0,r.jsx)(d.code,{children:'"shell"'})," | ",(0,r.jsx)(d.code,{children:'"swift"'})," | ",(0,r.jsx)(d.code,{children:'"typescript"'})]}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:'"txt"'})})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-14",children:"Returns"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"/chatbot/reference/core/modules#pageformat",children:(0,r.jsx)(d.code,{children:"PageFormat"})})}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-44",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/PageFormat.ts#L94",children:"packages/mongodb-rag-core/src/PageFormat.ts:94"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"removefrontmatter",children:"removeFrontMatter"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"removeFrontMatter"}),"(",(0,r.jsx)(d.code,{children:"content"}),", ",(0,r.jsx)(d.code,{children:"options?"}),"): ",(0,r.jsx)(d.code,{children:"string"})]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-15",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"content"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"options?"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"FrontMatterOptions"})})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-15",children:"Returns"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.code,{children:"string"})}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-45",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/removeFrontMatter.ts#L2",children:"packages/mongodb-rag-core/src/removeFrontMatter.ts:2"})}),"\n",(0,r.jsx)(d.hr,{}),"\n",(0,r.jsx)(d.h3,{id:"updatefrontmatter",children:"updateFrontMatter"}),"\n",(0,r.jsxs)(d.p,{children:["\u25b8 ",(0,r.jsx)(d.strong,{children:"updateFrontMatter"}),"(",(0,r.jsx)(d.code,{children:"text"}),", ",(0,r.jsx)(d.code,{children:"metadataIn"}),"): ",(0,r.jsx)(d.code,{children:"string"})]}),"\n",(0,r.jsx)(d.h4,{id:"parameters-16",children:"Parameters"}),"\n",(0,r.jsxs)(d.table,{children:[(0,r.jsx)(d.thead,{children:(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(d.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(d.tbody,{children:[(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"text"})}),(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"string"})})]}),(0,r.jsxs)(d.tr,{children:[(0,r.jsx)(d.td,{style:{textAlign:"left"},children:(0,r.jsx)(d.code,{children:"metadataIn"})}),(0,r.jsxs)(d.td,{style:{textAlign:"left"},children:[(0,r.jsx)(d.code,{children:"Record"}),"<",(0,r.jsx)(d.code,{children:"string"}),", ",(0,r.jsx)(d.code,{children:"unknown"}),">"]})]})]})]}),"\n",(0,r.jsx)(d.h4,{id:"returns-16",children:"Returns"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.code,{children:"string"})}),"\n",(0,r.jsx)(d.h4,{id:"defined-in-46",children:"Defined in"}),"\n",(0,r.jsx)(d.p,{children:(0,r.jsx)(d.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/updateFrontMatter.ts#L4",children:"packages/mongodb-rag-core/src/updateFrontMatter.ts:4"})})]})}function a(e={}){const{wrapper:d}={...(0,s.a)(),...e.components};return d?(0,r.jsx)(d,{...e,children:(0,r.jsx)(o,{...e})}):o(e)}},11151:(e,d,n)=>{n.d(d,{Z:()=>l,a:()=>i});var r=n(67294);const s={},t=r.createContext(s);function i(e){const d=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(d):{...d,...e}}),[d,e])}function l(e){let d;return d=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),r.createElement(t.Provider,{value:d},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/04607c60.2e84415e.js b/assets/js/04607c60.3acd5da5.js similarity index 95% rename from assets/js/04607c60.2e84415e.js rename to assets/js/04607c60.3acd5da5.js index 81a143d15..16b7cc687 100644 --- a/assets/js/04607c60.2e84415e.js +++ b/assets/js/04607c60.3acd5da5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9412],{55034:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>l,contentTitle:()=>o,default:()=>m,frontMatter:()=>s,metadata:()=>i,toc:()=>c});var t=n(85893),r=n(11151);const s={id:"MakeGenerateLlmConversationDataParams",title:"Interface: MakeGenerateLlmConversationDataParams",sidebar_label:"MakeGenerateLlmConversationDataParams",sidebar_position:0,custom_edit_url:null},o=void 0,i={id:"reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams",title:"Interface: MakeGenerateLlmConversationDataParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeGenerateLlmConversationDataParams",title:"Interface: MakeGenerateLlmConversationDataParams",sidebar_label:"MakeGenerateLlmConversationDataParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeGenerateConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams"},next:{title:"MakeMongoDbCommandMetadataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams"}},l={},c=[{value:"Properties",id:"properties",level:2},{value:"chatLlm",id:"chatllm",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"sleepMs",id:"sleepms",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"systemMessage",id:"systemmessage",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const a={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(a.h3,{id:"chatllm",children:"chatLlm"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"chatLlm"}),": ",(0,t.jsx)(a.code,{children:"ChatLlm"})]}),"\n",(0,t.jsx)(a.p,{children:"The large language model to use for generating conversation data."}),"\n",(0,t.jsx)(a.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts:28"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"sleepms",children:"sleepMs"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.code,{children:"Optional"})," ",(0,t.jsx)(a.strong,{children:"sleepMs"}),": ",(0,t.jsx)(a.code,{children:"number"})]}),"\n",(0,t.jsx)(a.p,{children:"Number of milliseconds to sleep between each conversation generation.\nHelpful for rate limiting."}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts#L34",children:"packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts:34"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"systemmessage",children:"systemMessage"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.code,{children:"Optional"})," ",(0,t.jsx)(a.strong,{children:"systemMessage"}),": ",(0,t.jsx)(a.code,{children:"string"})]}),"\n",(0,t.jsx)(a.p,{children:"Any system message that you want to include in the conversation."}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts:23"})})]})}function m(e={}){const{wrapper:a}={...(0,r.a)(),...e.components};return a?(0,t.jsx)(a,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},11151:(e,a,n)=>{n.d(a,{Z:()=>i,a:()=>o});var t=n(67294);const r={},s=t.createContext(r);function o(e){const a=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function i(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(s.Provider,{value:a},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9412],{55034:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>l,contentTitle:()=>o,default:()=>m,frontMatter:()=>s,metadata:()=>i,toc:()=>c});var t=n(85893),r=n(11151);const s={id:"MakeGenerateLlmConversationDataParams",title:"Interface: MakeGenerateLlmConversationDataParams",sidebar_label:"MakeGenerateLlmConversationDataParams",sidebar_position:0,custom_edit_url:null},o=void 0,i={id:"reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams",title:"Interface: MakeGenerateLlmConversationDataParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeGenerateLlmConversationDataParams",title:"Interface: MakeGenerateLlmConversationDataParams",sidebar_label:"MakeGenerateLlmConversationDataParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeGenerateConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams"},next:{title:"MakeMongoDbCommandMetadataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams"}},l={},c=[{value:"Properties",id:"properties",level:2},{value:"chatLlm",id:"chatllm",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"sleepMs",id:"sleepms",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"systemMessage",id:"systemmessage",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const a={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(a.h3,{id:"chatllm",children:"chatLlm"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"chatLlm"}),": ",(0,t.jsx)(a.code,{children:"ChatLlm"})]}),"\n",(0,t.jsx)(a.p,{children:"The large language model to use for generating conversation data."}),"\n",(0,t.jsx)(a.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts:28"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"sleepms",children:"sleepMs"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.code,{children:"Optional"})," ",(0,t.jsx)(a.strong,{children:"sleepMs"}),": ",(0,t.jsx)(a.code,{children:"number"})]}),"\n",(0,t.jsx)(a.p,{children:"Number of milliseconds to sleep between each conversation generation.\nHelpful for rate limiting."}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts#L34",children:"packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts:34"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"systemmessage",children:"systemMessage"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.code,{children:"Optional"})," ",(0,t.jsx)(a.strong,{children:"systemMessage"}),": ",(0,t.jsx)(a.code,{children:"string"})]}),"\n",(0,t.jsx)(a.p,{children:"Any system message that you want to include in the conversation."}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts:23"})})]})}function m(e={}){const{wrapper:a}={...(0,r.a)(),...e.components};return a?(0,t.jsx)(a,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},11151:(e,a,n)=>{n.d(a,{Z:()=>i,a:()=>o});var t=n(67294);const r={},s=t.createContext(r);function o(e){const a=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function i(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(s.Provider,{value:a},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/053515eb.f17f95e6.js b/assets/js/053515eb.3a0f5d02.js similarity index 75% rename from assets/js/053515eb.f17f95e6.js rename to assets/js/053515eb.3a0f5d02.js index 021501d1c..15f708d74 100644 --- a/assets/js/053515eb.f17f95e6.js +++ b/assets/js/053515eb.3a0f5d02.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[378],{51428:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>a,contentTitle:()=>o,default:()=>m,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var r=s(85893),t=s(11151);const i={id:"CommentMessageParams",title:"Interface: CommentMessageParams",sidebar_label:"CommentMessageParams",sidebar_position:0,custom_edit_url:null},o=void 0,c={id:"reference/server/interfaces/CommentMessageParams",title:"Interface: CommentMessageParams",description:"Properties",source:"@site/docs/reference/server/interfaces/CommentMessageParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/CommentMessageParams",permalink:"/chatbot/reference/server/interfaces/CommentMessageParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CommentMessageParams",title:"Interface: CommentMessageParams",sidebar_label:"CommentMessageParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ChatLlm",permalink:"/chatbot/reference/server/interfaces/ChatLlm"},next:{title:"Conversation",permalink:"/chatbot/reference/server/interfaces/Conversation"}},a={},d=[{value:"Properties",id:"properties",level:2},{value:"comment",id:"comment",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"conversationId",id:"conversationid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"messageId",id:"messageid",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"comment",children:"comment"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"comment"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L208",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:208"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"conversationid",children:"conversationId"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"conversationId"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L206",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:206"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"messageid",children:"messageId"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"messageId"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L207",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:207"})})]})}function m(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,s)=>{s.d(n,{Z:()=>c,a:()=>o});var r=s(67294);const t={},i=r.createContext(t);function o(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[378],{51428:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>i,metadata:()=>a,toc:()=>d});var r=s(85893),t=s(11151);const i={id:"CommentMessageParams",title:"Interface: CommentMessageParams",sidebar_label:"CommentMessageParams",sidebar_position:0,custom_edit_url:null},o=void 0,a={id:"reference/server/interfaces/CommentMessageParams",title:"Interface: CommentMessageParams",description:"Properties",source:"@site/docs/reference/server/interfaces/CommentMessageParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/CommentMessageParams",permalink:"/chatbot/reference/server/interfaces/CommentMessageParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CommentMessageParams",title:"Interface: CommentMessageParams",sidebar_label:"CommentMessageParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ChatLlm",permalink:"/chatbot/reference/server/interfaces/ChatLlm"},next:{title:"Conversation",permalink:"/chatbot/reference/server/interfaces/Conversation"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"comment",id:"comment",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"conversationId",id:"conversationid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"messageId",id:"messageid",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"comment",children:"comment"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"comment"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L215",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:215"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"conversationid",children:"conversationId"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"conversationId"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L213",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:213"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"messageid",children:"messageId"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"messageId"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L214",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:214"})})]})}function m(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>o});var r=s(67294);const t={},i=r.createContext(t);function o(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/06cd8c03.1a5eb588.js b/assets/js/06cd8c03.870dfb5a.js similarity index 96% rename from assets/js/06cd8c03.1a5eb588.js rename to assets/js/06cd8c03.870dfb5a.js index 58170f310..41fbd78f5 100644 --- a/assets/js/06cd8c03.1a5eb588.js +++ b/assets/js/06cd8c03.870dfb5a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6387],{1824:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>l,contentTitle:()=>c,default:()=>h,frontMatter:()=>o,metadata:()=>i,toc:()=>a});var r=n(85893),t=n(11151);const o={id:"CallToolResponse",title:"Interface: CallToolResponse",sidebar_label:"CallToolResponse",sidebar_position:0,custom_edit_url:null},c=void 0,i={id:"reference/server/interfaces/CallToolResponse",title:"Interface: CallToolResponse",description:"Properties",source:"@site/docs/reference/server/interfaces/CallToolResponse.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/CallToolResponse",permalink:"/chatbot/reference/server/interfaces/CallToolResponse",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CallToolResponse",title:"Interface: CallToolResponse",sidebar_label:"CallToolResponse",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"AzureOpenAiServiceConfig",permalink:"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig"},next:{title:"ChatLlm",permalink:"/chatbot/reference/server/interfaces/ChatLlm"}},l={},a=[{value:"Properties",id:"properties",level:2},{value:"references",id:"references",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"rejectUserQuery",id:"rejectuserquery",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"toolCallMessage",id:"toolcallmessage",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const s={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(s.h3,{id:"references",children:"references"}),"\n",(0,r.jsxs)(s.p,{children:["\u2022 ",(0,r.jsx)(s.code,{children:"Optional"})," ",(0,r.jsx)(s.strong,{children:"references"}),": { ",(0,r.jsx)(s.code,{children:"title"}),": ",(0,r.jsx)(s.code,{children:"string"})," ; ",(0,r.jsx)(s.code,{children:"url"}),": ",(0,r.jsx)(s.code,{children:"string"})," }[]"]}),"\n",(0,r.jsxs)(s.p,{children:["References to add to the ",(0,r.jsx)(s.a,{href:"/chatbot/reference/server/modules#assistantmessage",children:"AssistantMessage"})," sent to the user."]}),"\n",(0,r.jsx)(s.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L107",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:107"})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.h3,{id:"rejectuserquery",children:"rejectUserQuery"}),"\n",(0,r.jsxs)(s.p,{children:["\u2022 ",(0,r.jsx)(s.code,{children:"Optional"})," ",(0,r.jsx)(s.strong,{children:"rejectUserQuery"}),": ",(0,r.jsx)(s.code,{children:"boolean"})]}),"\n",(0,r.jsxs)(s.p,{children:["If ",(0,r.jsx)(s.code,{children:"true"}),", the user query should be rejected.\nYou can use this to short circuit the conversation,\nand return the ",(0,r.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/ConversationConstants#no_relevant_content",children:"ConversationConstants.NO_RELEVANT_CONTENT"})," message."]}),"\n",(0,r.jsx)(s.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L102",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:102"})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.h3,{id:"toolcallmessage",children:"toolCallMessage"}),"\n",(0,r.jsxs)(s.p,{children:["\u2022 ",(0,r.jsx)(s.strong,{children:"toolCallMessage"}),": ",(0,r.jsx)(s.code,{children:"ChatRequestMessage"})," & { ",(0,r.jsx)(s.code,{children:"content"}),": ",(0,r.jsx)(s.code,{children:"null"})," | ",(0,r.jsx)(s.code,{children:"string"})," ; ",(0,r.jsx)(s.code,{children:"embedding?"}),": ",(0,r.jsx)(s.code,{children:"number"}),"[] ; ",(0,r.jsx)(s.code,{children:"role"}),": ",(0,r.jsx)(s.a,{href:"/chatbot/reference/server/modules#openaimessagerole",children:(0,r.jsx)(s.code,{children:"OpenAiMessageRole"})})," }"]}),"\n",(0,r.jsx)(s.p,{children:"Message to add to the conversation."}),"\n",(0,r.jsx)(s.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L95",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:95"})})]})}function h(e={}){const{wrapper:s}={...(0,t.a)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},11151:(e,s,n)=>{n.d(s,{Z:()=>i,a:()=>c});var r=n(67294);const t={},o=r.createContext(t);function c(e){const s=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),r.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6387],{1824:(e,s,n)=>{n.r(s),n.d(s,{assets:()=>l,contentTitle:()=>c,default:()=>h,frontMatter:()=>o,metadata:()=>i,toc:()=>a});var r=n(85893),t=n(11151);const o={id:"CallToolResponse",title:"Interface: CallToolResponse",sidebar_label:"CallToolResponse",sidebar_position:0,custom_edit_url:null},c=void 0,i={id:"reference/server/interfaces/CallToolResponse",title:"Interface: CallToolResponse",description:"Properties",source:"@site/docs/reference/server/interfaces/CallToolResponse.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/CallToolResponse",permalink:"/chatbot/reference/server/interfaces/CallToolResponse",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CallToolResponse",title:"Interface: CallToolResponse",sidebar_label:"CallToolResponse",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"AzureOpenAiServiceConfig",permalink:"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig"},next:{title:"ChatLlm",permalink:"/chatbot/reference/server/interfaces/ChatLlm"}},l={},a=[{value:"Properties",id:"properties",level:2},{value:"references",id:"references",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"rejectUserQuery",id:"rejectuserquery",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"toolCallMessage",id:"toolcallmessage",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const s={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(s.h3,{id:"references",children:"references"}),"\n",(0,r.jsxs)(s.p,{children:["\u2022 ",(0,r.jsx)(s.code,{children:"Optional"})," ",(0,r.jsx)(s.strong,{children:"references"}),": { ",(0,r.jsx)(s.code,{children:"title"}),": ",(0,r.jsx)(s.code,{children:"string"})," ; ",(0,r.jsx)(s.code,{children:"url"}),": ",(0,r.jsx)(s.code,{children:"string"})," }[]"]}),"\n",(0,r.jsxs)(s.p,{children:["References to add to the ",(0,r.jsx)(s.a,{href:"/chatbot/reference/server/modules#assistantmessage",children:"AssistantMessage"})," sent to the user."]}),"\n",(0,r.jsx)(s.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L107",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:107"})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.h3,{id:"rejectuserquery",children:"rejectUserQuery"}),"\n",(0,r.jsxs)(s.p,{children:["\u2022 ",(0,r.jsx)(s.code,{children:"Optional"})," ",(0,r.jsx)(s.strong,{children:"rejectUserQuery"}),": ",(0,r.jsx)(s.code,{children:"boolean"})]}),"\n",(0,r.jsxs)(s.p,{children:["If ",(0,r.jsx)(s.code,{children:"true"}),", the user query should be rejected.\nYou can use this to short circuit the conversation,\nand return the ",(0,r.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/ConversationConstants#no_relevant_content",children:"ConversationConstants.NO_RELEVANT_CONTENT"})," message."]}),"\n",(0,r.jsx)(s.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L102",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:102"})}),"\n",(0,r.jsx)(s.hr,{}),"\n",(0,r.jsx)(s.h3,{id:"toolcallmessage",children:"toolCallMessage"}),"\n",(0,r.jsxs)(s.p,{children:["\u2022 ",(0,r.jsx)(s.strong,{children:"toolCallMessage"}),": ",(0,r.jsx)(s.code,{children:"ChatRequestMessage"})," & { ",(0,r.jsx)(s.code,{children:"content"}),": ",(0,r.jsx)(s.code,{children:"null"})," | ",(0,r.jsx)(s.code,{children:"string"})," ; ",(0,r.jsx)(s.code,{children:"embedding?"}),": ",(0,r.jsx)(s.code,{children:"number"}),"[] ; ",(0,r.jsx)(s.code,{children:"role"}),": ",(0,r.jsx)(s.a,{href:"/chatbot/reference/server/modules#openaimessagerole",children:(0,r.jsx)(s.code,{children:"OpenAiMessageRole"})})," }"]}),"\n",(0,r.jsx)(s.p,{children:"Message to add to the conversation."}),"\n",(0,r.jsx)(s.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(s.p,{children:(0,r.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L95",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:95"})})]})}function h(e={}){const{wrapper:s}={...(0,t.a)(),...e.components};return s?(0,r.jsx)(s,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},11151:(e,s,n)=>{n.d(s,{Z:()=>i,a:()=>c});var r=n(67294);const t={},o=r.createContext(t);function c(e){const s=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function i(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),r.createElement(o.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/075a07c3.598d4828.js b/assets/js/075a07c3.7df6b215.js similarity index 91% rename from assets/js/075a07c3.598d4828.js rename to assets/js/075a07c3.7df6b215.js index 7b3234fc3..4118a98f2 100644 --- a/assets/js/075a07c3.598d4828.js +++ b/assets/js/075a07c3.7df6b215.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4788],{77502:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>i,default:()=>u,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var r=t(85893),a=t(11151);const o={id:"ReportEvalFuncParams",title:"Interface: ReportEvalFuncParams",sidebar_label:"ReportEvalFuncParams",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/evaluation/interfaces/ReportEvalFuncParams",title:"Interface: ReportEvalFuncParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/ReportEvalFuncParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ReportEvalFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ReportEvalFuncParams",title:"Interface: ReportEvalFuncParams",sidebar_label:"ReportEvalFuncParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Report",permalink:"/chatbot/reference/evaluation/interfaces/Report"},next:{title:"ReportStore",permalink:"/chatbot/reference/evaluation/interfaces/ReportStore"}},s={},l=[{value:"Properties",id:"properties",level:2},{value:"evaluationRunId",id:"evaluationrunid",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"evaluationStore",id:"evaluationstore",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"reportName",id:"reportname",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"runId",id:"runid",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"evaluationrunid",children:"evaluationRunId"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"evaluationRunId"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L8",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:8"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"evaluationstore",children:"evaluationStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"evaluationStore"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:(0,r.jsx)(n.code,{children:"EvaluationStore"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L7",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:7"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"reportname",children:"reportName"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"reportName"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L9",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:9"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"runid",children:"runId"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"runId"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L6",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:6"})})]})}function u(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>c,a:()=>i});var r=t(67294);const a={},o=r.createContext(a);function i(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4788],{77502:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>i,default:()=>u,frontMatter:()=>o,metadata:()=>c,toc:()=>l});var r=t(85893),a=t(11151);const o={id:"ReportEvalFuncParams",title:"Interface: ReportEvalFuncParams",sidebar_label:"ReportEvalFuncParams",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/evaluation/interfaces/ReportEvalFuncParams",title:"Interface: ReportEvalFuncParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/ReportEvalFuncParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ReportEvalFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ReportEvalFuncParams",title:"Interface: ReportEvalFuncParams",sidebar_label:"ReportEvalFuncParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Report",permalink:"/chatbot/reference/evaluation/interfaces/Report"},next:{title:"ReportStore",permalink:"/chatbot/reference/evaluation/interfaces/ReportStore"}},s={},l=[{value:"Properties",id:"properties",level:2},{value:"evaluationRunId",id:"evaluationrunid",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"evaluationStore",id:"evaluationstore",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"reportName",id:"reportname",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"runId",id:"runid",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"evaluationrunid",children:"evaluationRunId"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"evaluationRunId"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L8",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:8"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"evaluationstore",children:"evaluationStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"evaluationStore"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:(0,r.jsx)(n.code,{children:"EvaluationStore"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L7",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:7"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"reportname",children:"reportName"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"reportName"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L9",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:9"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"runid",children:"runId"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"runId"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L6",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:6"})})]})}function u(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>c,a:()=>i});var r=t(67294);const a={},o=r.createContext(a);function i(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/095cad7e.b2cf40c5.js b/assets/js/095cad7e.c34111ad.js similarity index 84% rename from assets/js/095cad7e.b2cf40c5.js rename to assets/js/095cad7e.c34111ad.js index 932776f52..c9474b565 100644 --- a/assets/js/095cad7e.b2cf40c5.js +++ b/assets/js/095cad7e.c34111ad.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5745],{19790:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>c,contentTitle:()=>a,default:()=>u,frontMatter:()=>i,metadata:()=>d,toc:()=>o});var t=n(85893),s=n(11151);const i={id:"FindByIdParams",title:"Interface: FindByIdParams",sidebar_label:"FindByIdParams",sidebar_position:0,custom_edit_url:null},a=void 0,d={id:"reference/server/interfaces/FindByIdParams",title:"Interface: FindByIdParams",description:"Properties",source:"@site/docs/reference/server/interfaces/FindByIdParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/FindByIdParams",permalink:"/chatbot/reference/server/interfaces/FindByIdParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"FindByIdParams",title:"Interface: FindByIdParams",sidebar_label:"FindByIdParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"EmbeddedContent",permalink:"/chatbot/reference/server/interfaces/EmbeddedContent"},next:{title:"GenerateUserPromptFuncReturnValue",permalink:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue"}},c={},o=[{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4}];function l(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",p:"p",strong:"strong",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(r.h3,{id:"_id",children:"_id"}),"\n",(0,t.jsxs)(r.p,{children:["\u2022 ",(0,t.jsx)(r.strong,{children:"_id"}),": ",(0,t.jsx)(r.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L198",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:198"})})]})}function u(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,r,n)=>{n.d(r,{Z:()=>d,a:()=>a});var t=n(67294);const s={},i=t.createContext(s);function a(e){const r=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function d(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),t.createElement(i.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5745],{19790:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>o,contentTitle:()=>a,default:()=>u,frontMatter:()=>i,metadata:()=>d,toc:()=>c});var t=n(85893),s=n(11151);const i={id:"FindByIdParams",title:"Interface: FindByIdParams",sidebar_label:"FindByIdParams",sidebar_position:0,custom_edit_url:null},a=void 0,d={id:"reference/server/interfaces/FindByIdParams",title:"Interface: FindByIdParams",description:"Properties",source:"@site/docs/reference/server/interfaces/FindByIdParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/FindByIdParams",permalink:"/chatbot/reference/server/interfaces/FindByIdParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"FindByIdParams",title:"Interface: FindByIdParams",sidebar_label:"FindByIdParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"EmbeddedContent",permalink:"/chatbot/reference/server/interfaces/EmbeddedContent"},next:{title:"GenerateUserPromptFuncReturnValue",permalink:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue"}},o={},c=[{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4}];function l(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",p:"p",strong:"strong",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(r.h3,{id:"_id",children:"_id"}),"\n",(0,t.jsxs)(r.p,{children:["\u2022 ",(0,t.jsx)(r.strong,{children:"_id"}),": ",(0,t.jsx)(r.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L205",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:205"})})]})}function u(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,r,n)=>{n.d(r,{Z:()=>d,a:()=>a});var t=n(67294);const s={},i=t.createContext(s);function a(e){const r=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function d(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),t.createElement(i.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/09aec7c4.8ebb326f.js b/assets/js/09aec7c4.53cff365.js similarity index 95% rename from assets/js/09aec7c4.8ebb326f.js rename to assets/js/09aec7c4.53cff365.js index b29764279..f6ff5e4e1 100644 --- a/assets/js/09aec7c4.8ebb326f.js +++ b/assets/js/09aec7c4.53cff365.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8904],{8468:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>l,metadata:()=>s,toc:()=>o});var r=t(85893),i=t(11151);const l={id:"MongoDbEvaluationStore",title:"Interface: MongoDbEvaluationStore",sidebar_label:"MongoDbEvaluationStore",sidebar_position:0,custom_edit_url:null},a=void 0,s={id:"reference/evaluation/interfaces/MongoDbEvaluationStore",title:"Interface: MongoDbEvaluationStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/MongoDbEvaluationStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MongoDbEvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MongoDbEvaluationStore",title:"Interface: MongoDbEvaluationStore",sidebar_label:"MongoDbEvaluationStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeMongoDbReportStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams"},next:{title:"MongoDbGeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore"}},d={},o=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"aggregate",id:"aggregate",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"close",id:"close",level:3},{value:"Returns",id:"returns-1",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Overrides",id:"overrides-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"insertMany",id:"insertmany",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-4",level:4}];function c(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:(0,r.jsx)(n.code,{children:"EvaluationStore"})})}),"\n",(0,r.jsxs)(n.p,{children:["\u21b3 ",(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"MongoDbEvaluationStore"})})]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,r.jsx)(n.h3,{id:"aggregate",children:"aggregate"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"aggregate"}),"(",(0,r.jsx)(n.code,{children:"pipeline"}),", ",(0,r.jsx)(n.code,{children:"options?"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"Document"}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"pipeline"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"Document"}),"[]"]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"options?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"AggregateOptions"})})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"Document"}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"overrides",children:"Overrides"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore#aggregate",children:"aggregate"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L46",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:46"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"close",children:"close"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"close"}),"(): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore#close",children:"close"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L32",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:32"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"find",children:"find"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"find"}),"(",(0,r.jsx)(n.code,{children:"filter"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"filter"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"Filter"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),">"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"overrides-1",children:"Overrides"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore#find",children:"find"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L45",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:45"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertmany",children:"insertMany"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertMany"}),"(",(0,r.jsx)(n.code,{children:"evalResults"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"evalResults"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),"[]"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-1",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore#insertmany",children:"insertMany"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L29",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:29"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertone",children:"insertOne"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertOne"}),"(",(0,r.jsx)(n.code,{children:"evalResult"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"evalResult"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-2",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore#insertone",children:"insertOne"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:28"})})]})}function h(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>s,a:()=>a});var r=t(67294);const i={},l=r.createContext(i);function a(e){const n=r.useContext(l);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),r.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8904],{8468:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>a,default:()=>h,frontMatter:()=>l,metadata:()=>s,toc:()=>d});var r=t(85893),i=t(11151);const l={id:"MongoDbEvaluationStore",title:"Interface: MongoDbEvaluationStore",sidebar_label:"MongoDbEvaluationStore",sidebar_position:0,custom_edit_url:null},a=void 0,s={id:"reference/evaluation/interfaces/MongoDbEvaluationStore",title:"Interface: MongoDbEvaluationStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/MongoDbEvaluationStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MongoDbEvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MongoDbEvaluationStore",title:"Interface: MongoDbEvaluationStore",sidebar_label:"MongoDbEvaluationStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeMongoDbReportStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams"},next:{title:"MongoDbGeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore"}},o={},d=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"aggregate",id:"aggregate",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"close",id:"close",level:3},{value:"Returns",id:"returns-1",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Overrides",id:"overrides-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"insertMany",id:"insertmany",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-4",level:4}];function c(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:(0,r.jsx)(n.code,{children:"EvaluationStore"})})}),"\n",(0,r.jsxs)(n.p,{children:["\u21b3 ",(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"MongoDbEvaluationStore"})})]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,r.jsx)(n.h3,{id:"aggregate",children:"aggregate"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"aggregate"}),"(",(0,r.jsx)(n.code,{children:"pipeline"}),", ",(0,r.jsx)(n.code,{children:"options?"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"Document"}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"pipeline"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"Document"}),"[]"]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"options?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"AggregateOptions"})})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"Document"}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"overrides",children:"Overrides"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore#aggregate",children:"aggregate"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L46",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:46"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"close",children:"close"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"close"}),"(): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore#close",children:"close"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L32",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:32"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"find",children:"find"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"find"}),"(",(0,r.jsx)(n.code,{children:"filter"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"filter"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"Filter"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),">"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"overrides-1",children:"Overrides"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore#find",children:"find"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L45",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:45"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertmany",children:"insertMany"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertMany"}),"(",(0,r.jsx)(n.code,{children:"evalResults"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"evalResults"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),"[]"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-1",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore#insertmany",children:"insertMany"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L29",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:29"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertone",children:"insertOne"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertOne"}),"(",(0,r.jsx)(n.code,{children:"evalResult"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"evalResult"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-2",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore#insertone",children:"insertOne"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:28"})})]})}function h(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>s,a:()=>a});var r=t(67294);const i={},l=r.createContext(i);function a(e){const n=r.useContext(l);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),r.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0a965094.ba8da631.js b/assets/js/0a965094.e5a01e06.js similarity index 95% rename from assets/js/0a965094.ba8da631.js rename to assets/js/0a965094.e5a01e06.js index 151960fcc..44aa500e5 100644 --- a/assets/js/0a965094.ba8da631.js +++ b/assets/js/0a965094.e5a01e06.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8030],{7291:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>t,metadata:()=>o,toc:()=>a});var r=s(85893),c=s(11151);const t={id:"sources.ProjectBase",title:"Interface: ProjectBase",sidebar_label:"sources.ProjectBase",custom_edit_url:null},i=void 0,o={id:"reference/ingest/interfaces/sources.ProjectBase",title:"Interface: ProjectBase",description:"sources.ProjectBase",source:"@site/docs/reference/ingest/interfaces/sources.ProjectBase.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.ProjectBase",permalink:"/chatbot/reference/ingest/interfaces/sources.ProjectBase",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.ProjectBase",title:"Interface: ProjectBase",sidebar_label:"sources.ProjectBase",custom_edit_url:null},sidebar:"main",previous:{title:"sources.MakeMongoDbUniversityDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams"},next:{title:"sources.SnootyProject",permalink:"/chatbot/reference/ingest/interfaces/sources.SnootyProject"}},d={},a=[{value:"Properties",id:"properties",level:2},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"productName",id:"productname",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"tags",id:"tags",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"version",id:"version",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,c.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".ProjectBase"]}),"\n",(0,r.jsx)(n.p,{children:"Base project type used in all project data sources (snooty sites, devcenter, etc.)"}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"Snooty project name"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"Example"})})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'"kotlin"\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/ProjectBase.ts#L14",children:"mongodb-rag-ingest/src/sources/ProjectBase.ts:14"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"productname",children:"productName"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"productName"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"Name of the product."}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"Example"})})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'"MongoDB Atlas"\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/ProjectBase.ts#L25",children:"mongodb-rag-ingest/src/sources/ProjectBase.ts:25"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"tags",children:"tags"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"tags"}),": ",(0,r.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,r.jsx)(n.p,{children:"Tags to include in all documents from the site in the embedded_content collection"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"Example"})})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'["kotlin", "docs", "driver"]\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/ProjectBase.ts#L19",children:"mongodb-rag-ingest/src/sources/ProjectBase.ts:19"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"type",children:"type"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"type"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"Type of project"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"Example"})})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'"snooty" | "devcenter"\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/ProjectBase.ts#L9",children:"mongodb-rag-ingest/src/sources/ProjectBase.ts:9"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"version",children:"version"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"version"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"The version of the project."}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"Example"})})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'"v4.4"\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/ProjectBase.ts#L31",children:"mongodb-rag-ingest/src/sources/ProjectBase.ts:31"})})]})}function h(e={}){const{wrapper:n}={...(0,c.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,s)=>{s.d(n,{Z:()=>o,a:()=>i});var r=s(67294);const c={},t=r.createContext(c);function i(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:i(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8030],{7291:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>t,metadata:()=>o,toc:()=>a});var r=s(85893),c=s(11151);const t={id:"sources.ProjectBase",title:"Interface: ProjectBase",sidebar_label:"sources.ProjectBase",custom_edit_url:null},i=void 0,o={id:"reference/ingest/interfaces/sources.ProjectBase",title:"Interface: ProjectBase",description:"sources.ProjectBase",source:"@site/docs/reference/ingest/interfaces/sources.ProjectBase.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.ProjectBase",permalink:"/chatbot/reference/ingest/interfaces/sources.ProjectBase",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.ProjectBase",title:"Interface: ProjectBase",sidebar_label:"sources.ProjectBase",custom_edit_url:null},sidebar:"main",previous:{title:"sources.MakeMongoDbUniversityDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams"},next:{title:"sources.SnootyProject",permalink:"/chatbot/reference/ingest/interfaces/sources.SnootyProject"}},d={},a=[{value:"Properties",id:"properties",level:2},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"productName",id:"productname",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"tags",id:"tags",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"version",id:"version",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,c.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".ProjectBase"]}),"\n",(0,r.jsx)(n.p,{children:"Base project type used in all project data sources (snooty sites, devcenter, etc.)"}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"Snooty project name"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"Example"})})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'"kotlin"\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/ProjectBase.ts#L14",children:"mongodb-rag-ingest/src/sources/ProjectBase.ts:14"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"productname",children:"productName"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"productName"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"Name of the product."}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"Example"})})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'"MongoDB Atlas"\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/ProjectBase.ts#L25",children:"mongodb-rag-ingest/src/sources/ProjectBase.ts:25"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"tags",children:"tags"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"tags"}),": ",(0,r.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,r.jsx)(n.p,{children:"Tags to include in all documents from the site in the embedded_content collection"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"Example"})})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'["kotlin", "docs", "driver"]\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/ProjectBase.ts#L19",children:"mongodb-rag-ingest/src/sources/ProjectBase.ts:19"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"type",children:"type"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"type"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"Type of project"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"Example"})})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'"snooty" | "devcenter"\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/ProjectBase.ts#L9",children:"mongodb-rag-ingest/src/sources/ProjectBase.ts:9"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"version",children:"version"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"version"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"The version of the project."}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"Example"})})}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'"v4.4"\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/ProjectBase.ts#L31",children:"mongodb-rag-ingest/src/sources/ProjectBase.ts:31"})})]})}function h(e={}){const{wrapper:n}={...(0,c.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,s)=>{s.d(n,{Z:()=>o,a:()=>i});var r=s(67294);const c={},t=r.createContext(c);function i(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:i(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0dc0950a.6f1c2db9.js b/assets/js/0dc0950a.6f1c2db9.js new file mode 100644 index 000000000..58ebb154f --- /dev/null +++ b/assets/js/0dc0950a.6f1c2db9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6321],{57018:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>a,frontMatter:()=>r,metadata:()=>o,toc:()=>h});var s=n(85893),d=n(11151);const r={},i="Chatbot UI",o={id:"ui",title:"Chatbot UI",description:"The MongoDB Chatbot UI is a React.js component library that you can use to build a chatbot UI.",source:"@site/docs/ui.md",sourceDirName:".",slug:"/ui",permalink:"/chatbot/ui",draft:!1,unlisted:!1,editUrl:"https://github.com/mongodb/chatbot/tree/main/docs/docs/ui.md",tags:[],version:"current",frontMatter:{},sidebar:"main",previous:{title:"Evaluate Chatbot Responses",permalink:"/chatbot/server/evaluate"},next:{title:"Configure the Evaluation CLI",permalink:"/chatbot/evaluation/"}},c={},h=[{value:"Install",id:"install",level:2},{value:"Usage",id:"usage",level:2},{value:"Components",id:"components",level:2},{value:"Chatbot Root Component",id:"chatbot-root-component",level:3},{value:"ActionButtonTrigger",id:"actionbuttontrigger",level:3},{value:"FloatingActionButtonTrigger",id:"floatingactionbuttontrigger",level:3},{value:"InputBarTrigger",id:"inputbartrigger",level:3},{value:"ModalView",id:"modalview",level:3}];function l(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",img:"img",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,d.a)(),...e.components},{Details:r}=t;return r||function(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{id:"chatbot-ui",children:"Chatbot UI"}),"\n",(0,s.jsx)(t.p,{children:"The MongoDB Chatbot UI is a React.js component library that you can use to build a chatbot UI."}),"\n",(0,s.jsx)(t.p,{children:"Currently, it's focused on internal MongoDB use cases. However, we may make it more generic in the future if there is sufficient external interest."}),"\n",(0,s.jsxs)(r,{children:[(0,s.jsx)("summary",{children:" Demo GIF "}),(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Chatbot UI Demo GIF",src:n(30817).Z+"",width:"1308",height:"1054"})})]}),"\n",(0,s.jsx)(t.h2,{id:"install",children:"Install"}),"\n",(0,s.jsxs)(t.p,{children:["Install the ",(0,s.jsx)(t.code,{children:"mongodb-chatbot-ui"})," package from npm. This contains the React.js components that you can use to build a chatbot UI."]}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-shell",children:"npm install mongodb-chatbot-ui\n"})}),"\n",(0,s.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-tsx",children:'import Chatbot, {\n FloatingActionButtonTrigger,\n InputBarTrigger,\n ModalView,\n MongoDbLegalDisclosure,\n mongoDbVerifyInformationMessage,\n} from "mongodb-chatbot-ui";\n\nfunction MyApp() {\n const suggestedPrompts = [\n "How do I create a new MongoDB Atlas cluster?",\n "Can MongoDB store lists of data?",\n "How does vector search work?",\n ];\n return (\n
\n \n }\n suggestedPrompts={suggestedPrompts}\n />\n \n }\n initialMessageText="Welcome to my MongoDB AI Assistant. What can I help you with?"\n initialMessageSuggestedPrompts={suggestedPrompts}\n inputBottomText={mongoDbVerifyInformationMessage}\n />\n \n
\n );\n}\n'})}),"\n",(0,s.jsx)(t.h2,{id:"components",children:"Components"}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:"mongodb-chatbot-ui"})," package exports the following components."]}),"\n",(0,s.jsxs)(t.h3,{id:"chatbot-root-component",children:[(0,s.jsx)(t.code,{children:"Chatbot"})," Root Component"]}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:""})," component is effectively a React context provider that wraps your chatbot. It accepts the following props:"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Prop"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Description"}),(0,s.jsx)(t.th,{children:"Default"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"children"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"ReactElement | ReactElement[]"})}),(0,s.jsxs)(t.td,{children:["Trigger and View components for the chatbot, e.g. ",(0,s.jsx)(t.code,{children:"FloatingActionButtonTrigger"})," and ",(0,s.jsx)(t.code,{children:"ModalView"}),"."]}),(0,s.jsx)(t.td,{})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"darkMode"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", the UI renders in dark mode. This overrides any theme ",(0,s.jsx)(t.code,{children:"darkMode"})," setting."]}),(0,s.jsxs)(t.td,{children:["The user's OS preference or theme value of ",(0,s.jsx)(t.code,{children:"darkMode"}),"."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"fetchOptions"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"ConversationFetchOptions?"})}),(0,s.jsxs)(t.td,{children:["If set, the provided options are included with every fetch request to the server. For more information on the available fetch options, refer to ",(0,s.jsx)(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#supplying_request_options",children:"Supplying request options"})," in the MDN documentation."]}),(0,s.jsx)(t.td,{})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"isExperimental"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", the UI includes EXPERIMENTAL badges throughout."]}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"true"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"maxCommentCharacters"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"number?"})}),(0,s.jsx)(t.td,{children:"The maximum number of characters allowed in a user's comment on an assistant message."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"500"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"maxInputCharacters"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"number?"})}),(0,s.jsx)(t.td,{children:"The maximum number of characters allowed in a user message."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"300"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"name"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The name of the chatbot. Used as the default in text throughout the UI."}),(0,s.jsx)(t.td,{children:"If unspecified, the chatbot is anonymous."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"serverBaseUrl"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The base URL for the Chatbot API."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"https://knowledge.mongodb.com/api/v1"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"shouldStream"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", responses are streamed with SSE. Otherwise the entire response is awaited."]}),(0,s.jsxs)(t.td,{children:["If the browser supports SSE, ",(0,s.jsx)(t.code,{children:"true"}),", else ",(0,s.jsx)(t.code,{children:"false"}),"."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"tck"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"An analytics identifier to add to the end of all hyperlinks."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:'"docs_chatbot"'})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"user"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"{ name: string; }?"})}),(0,s.jsx)(t.td,{children:"An object with information about the current user (if there is one)."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"undefined"})})]})]})]}),"\n",(0,s.jsx)(t.h3,{id:"actionbuttontrigger",children:(0,s.jsx)(t.code,{children:"ActionButtonTrigger"})}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:""})," component opens a view component (like ",(0,s.jsx)(t.code,{children:""}),") when clicked. It accepts the following props:"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Prop"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Description"}),(0,s.jsx)(t.th,{children:"Default"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"className"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom class name for the trigger container. Use this to apply custom css styles."}),(0,s.jsx)(t.td,{})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"darkMode"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", this renders in dark mode. This overrides any theme or provider ",(0,s.jsx)(t.code,{children:"darkMode"})," setting."]}),(0,s.jsxs)(t.td,{children:["The user's OS preference or theme value of ",(0,s.jsx)(t.code,{children:"darkMode"}),"."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"text"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The text shown in the floating action button."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:'"MongoDB AI"'})})]})]})]}),"\n",(0,s.jsx)(t.h3,{id:"floatingactionbuttontrigger",children:(0,s.jsx)(t.code,{children:"FloatingActionButtonTrigger"})}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:""})," component opens a view component (like ",(0,s.jsx)(t.code,{children:""}),") when clicked. It accepts the same props as ",(0,s.jsx)(t.a,{href:"#actionbuttontrigger",children:"ActionButtonTrigger"})," but also includes a default ",(0,s.jsx)(t.code,{children:"position: fixed"})," style that makes the button float in the bottom right of the window on top of the content (",(0,s.jsx)(t.code,{children:"z-index: 100"}),")."]}),"\n",(0,s.jsx)(t.h3,{id:"inputbartrigger",children:(0,s.jsx)(t.code,{children:"InputBarTrigger"})}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:""})," component opens a view component (like ",(0,s.jsx)(t.code,{children:""}),") when the user sends their first message. It accepts the following props:"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Prop"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Description"}),(0,s.jsx)(t.th,{children:"Default"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"bottomContent"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"ReactNode?"})}),(0,s.jsx)(t.td,{children:"Content that appears immediately below the input bar, e.g. for a terms of use disclaimer."}),(0,s.jsx)(t.td,{children:"If not specified, no content is shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"className"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom class name for the trigger container. Use this to apply custom css styles."}),(0,s.jsx)(t.td,{})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"darkMode"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", this renders in dark mode. This overrides any theme or provider ",(0,s.jsx)(t.code,{children:"darkMode"})," setting."]}),(0,s.jsxs)(t.td,{children:["The user's OS preference or theme value of ",(0,s.jsx)(t.code,{children:"darkMode"}),"."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"fatalErrorMessage"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom error message shown in the input bar when an unrecoverable error has occurred."}),(0,s.jsx)(t.td,{children:'"Something went wrong. Try reloading the page and starting a new conversation."'})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"suggestedPrompts"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string[]?"})}),(0,s.jsx)(t.td,{children:"A list of suggested prompts that appear in the input bar dropdown menu."}),(0,s.jsx)(t.td,{children:"If no prompts are specified, the dropdown is not shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"placeholder"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The placeholder text shown when the input bar is empty."}),(0,s.jsx)(t.td,{children:"If not specified, the input bar uses default placeholders."})]})]})]}),"\n",(0,s.jsx)(t.h3,{id:"modalview",children:(0,s.jsx)(t.code,{children:"ModalView"})}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:""})," component renders a chat message feed in a modal window. It accepts the following props:"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Prop"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Description"}),(0,s.jsx)(t.th,{children:"Default"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"className"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom class name for the view container. Use this to apply custom css styles."}),(0,s.jsx)(t.td,{})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"darkMode"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", this renders in dark mode. This overrides any theme or provider ",(0,s.jsx)(t.code,{children:"darkMode"})," setting."]}),(0,s.jsxs)(t.td,{children:["The user's OS preference or theme value of ",(0,s.jsx)(t.code,{children:"darkMode"}),"."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"disclaimer"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"ReactNode?"})}),(0,s.jsx)(t.td,{children:"A disclaimer message shown at the top of the message feed. Can include terms of service, etc."}),(0,s.jsx)(t.td,{children:"If not specified, no disclaimer is shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"disclaimerHeading"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom heading for the disclaimer at the top of the message feed."}),(0,s.jsx)(t.td,{children:'"Terms of Use"'})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"fatalErrorMessage"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom error message shown in the input bar when an unrecoverable error has occurred."}),(0,s.jsx)(t.td,{children:'"Something went wrong. Try reloading the page and starting a new conversation."'})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"initialMessageSuggestedPrompts"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string[]?"})}),(0,s.jsx)(t.td,{children:"A list of suggested prompts that appear alongside the initial assistant message."}),(0,s.jsx)(t.td,{children:"If no prompts are specified, then no prompts are shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"initialMessageText"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The text content of an initial assistant message at the top of the message feed."}),(0,s.jsx)(t.td,{children:"If no text is specified, then no message is shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"inputBarPlaceholder"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The placeholder text shown when the input bar is empty."}),(0,s.jsx)(t.td,{children:"If not specified, the input bar uses default placeholders."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"inputBottomText"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"Text that appears immediately below the input bar."}),(0,s.jsx)(t.td,{children:"If not specified, no bottom text is shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"windowTitle"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The text shown at the top of the chat window."}),(0,s.jsxs)(t.td,{children:["If not specified, this is the ",(0,s.jsx)(t.code,{children:"Chatbot.name"}),". If that's ",(0,s.jsx)(t.code,{children:"undefined"})," the window has no title."]})]})]})]})]})}function a(e={}){const{wrapper:t}={...(0,d.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},30817:(e,t,n)=>{n.d(t,{Z:()=>s});const s=n.p+"assets/images/ui-demo-a98c96aafb77d876d00364d1fa4510b1.gif"},11151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>i});var s=n(67294);const d={},r=s.createContext(d);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0dc0950a.aab22c61.js b/assets/js/0dc0950a.aab22c61.js deleted file mode 100644 index e5e243b86..000000000 --- a/assets/js/0dc0950a.aab22c61.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6321],{57018:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>i,default:()=>a,frontMatter:()=>r,metadata:()=>o,toc:()=>h});var s=n(85893),d=n(11151);const r={},i="Chatbot UI",o={id:"ui",title:"Chatbot UI",description:"The MongoDB Chatbot UI is a React.js component library that you can use to build a chatbot UI.",source:"@site/docs/ui.md",sourceDirName:".",slug:"/ui",permalink:"/chatbot/ui",draft:!1,unlisted:!1,editUrl:"https://github.com/mongodb/chatbot/tree/main/docs/docs/ui.md",tags:[],version:"current",frontMatter:{},sidebar:"main",previous:{title:"Evaluate Chatbot Responses",permalink:"/chatbot/server/evaluate"},next:{title:"Evaluation CLI",permalink:"/chatbot/evaluation/"}},c={},h=[{value:"Install",id:"install",level:2},{value:"Usage",id:"usage",level:2},{value:"Components",id:"components",level:2},{value:"Chatbot Root Component",id:"chatbot-root-component",level:3},{value:"ActionButtonTrigger",id:"actionbuttontrigger",level:3},{value:"FloatingActionButtonTrigger",id:"floatingactionbuttontrigger",level:3},{value:"InputBarTrigger",id:"inputbartrigger",level:3},{value:"ModalView",id:"modalview",level:3}];function l(e){const t={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",img:"img",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,d.a)(),...e.components},{Details:r}=t;return r||function(e,t){throw new Error("Expected "+(t?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{id:"chatbot-ui",children:"Chatbot UI"}),"\n",(0,s.jsx)(t.p,{children:"The MongoDB Chatbot UI is a React.js component library that you can use to build a chatbot UI."}),"\n",(0,s.jsx)(t.p,{children:"Currently, it's focused on internal MongoDB use cases. However, we may make it more generic in the future if there is sufficient external interest."}),"\n",(0,s.jsxs)(r,{children:[(0,s.jsx)("summary",{children:" Demo GIF "}),(0,s.jsx)(t.p,{children:(0,s.jsx)(t.img,{alt:"Chatbot UI Demo GIF",src:n(30817).Z+"",width:"1308",height:"1054"})})]}),"\n",(0,s.jsx)(t.h2,{id:"install",children:"Install"}),"\n",(0,s.jsxs)(t.p,{children:["Install the ",(0,s.jsx)(t.code,{children:"mongodb-chatbot-ui"})," package from npm. This contains the React.js components that you can use to build a chatbot UI."]}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-shell",children:"npm install mongodb-chatbot-ui\n"})}),"\n",(0,s.jsx)(t.h2,{id:"usage",children:"Usage"}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-tsx",children:'import Chatbot, {\n FloatingActionButtonTrigger,\n InputBarTrigger,\n ModalView,\n MongoDbLegalDisclosure,\n mongoDbVerifyInformationMessage,\n} from "mongodb-chatbot-ui";\n\nfunction MyApp() {\n const suggestedPrompts = [\n "How do I create a new MongoDB Atlas cluster?",\n "Can MongoDB store lists of data?",\n "How does vector search work?",\n ];\n return (\n
\n \n }\n suggestedPrompts={suggestedPrompts}\n />\n \n }\n initialMessageText="Welcome to my MongoDB AI Assistant. What can I help you with?"\n initialMessageSuggestedPrompts={suggestedPrompts}\n inputBottomText={mongoDbVerifyInformationMessage}\n />\n \n
\n );\n}\n'})}),"\n",(0,s.jsx)(t.h2,{id:"components",children:"Components"}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:"mongodb-chatbot-ui"})," package exports the following components."]}),"\n",(0,s.jsxs)(t.h3,{id:"chatbot-root-component",children:[(0,s.jsx)(t.code,{children:"Chatbot"})," Root Component"]}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:""})," component is effectively a React context provider that wraps your chatbot. It accepts the following props:"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Prop"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Description"}),(0,s.jsx)(t.th,{children:"Default"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"children"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"ReactElement | ReactElement[]"})}),(0,s.jsxs)(t.td,{children:["Trigger and View components for the chatbot, e.g. ",(0,s.jsx)(t.code,{children:"FloatingActionButtonTrigger"})," and ",(0,s.jsx)(t.code,{children:"ModalView"}),"."]}),(0,s.jsx)(t.td,{})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"darkMode"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", the UI renders in dark mode. This overrides any theme ",(0,s.jsx)(t.code,{children:"darkMode"})," setting."]}),(0,s.jsxs)(t.td,{children:["The user's OS preference or theme value of ",(0,s.jsx)(t.code,{children:"darkMode"}),"."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"fetchOptions"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"ConversationFetchOptions?"})}),(0,s.jsxs)(t.td,{children:["If set, the provided options are included with every fetch request to the server. For more information on the available fetch options, refer to ",(0,s.jsx)(t.a,{href:"https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch#supplying_request_options",children:"Supplying request options"})," in the MDN documentation."]}),(0,s.jsx)(t.td,{})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"isExperimental"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", the UI includes EXPERIMENTAL badges throughout."]}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"true"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"maxCommentCharacters"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"number?"})}),(0,s.jsx)(t.td,{children:"The maximum number of characters allowed in a user's comment on an assistant message."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"500"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"maxInputCharacters"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"number?"})}),(0,s.jsx)(t.td,{children:"The maximum number of characters allowed in a user message."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"300"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"name"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The name of the chatbot. Used as the default in text throughout the UI."}),(0,s.jsx)(t.td,{children:"If unspecified, the chatbot is anonymous."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"serverBaseUrl"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The base URL for the Chatbot API."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"https://knowledge.mongodb.com/api/v1"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"shouldStream"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", responses are streamed with SSE. Otherwise the entire response is awaited."]}),(0,s.jsxs)(t.td,{children:["If the browser supports SSE, ",(0,s.jsx)(t.code,{children:"true"}),", else ",(0,s.jsx)(t.code,{children:"false"}),"."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"tck"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"An analytics identifier to add to the end of all hyperlinks."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:'"docs_chatbot"'})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"user"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"{ name: string; }?"})}),(0,s.jsx)(t.td,{children:"An object with information about the current user (if there is one)."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"undefined"})})]})]})]}),"\n",(0,s.jsx)(t.h3,{id:"actionbuttontrigger",children:(0,s.jsx)(t.code,{children:"ActionButtonTrigger"})}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:""})," component opens a view component (like ",(0,s.jsx)(t.code,{children:""}),") when clicked. It accepts the following props:"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Prop"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Description"}),(0,s.jsx)(t.th,{children:"Default"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"className"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom class name for the trigger container. Use this to apply custom css styles."}),(0,s.jsx)(t.td,{})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"darkMode"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", this renders in dark mode. This overrides any theme or provider ",(0,s.jsx)(t.code,{children:"darkMode"})," setting."]}),(0,s.jsxs)(t.td,{children:["The user's OS preference or theme value of ",(0,s.jsx)(t.code,{children:"darkMode"}),"."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"text"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The text shown in the floating action button."}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:'"MongoDB AI"'})})]})]})]}),"\n",(0,s.jsx)(t.h3,{id:"floatingactionbuttontrigger",children:(0,s.jsx)(t.code,{children:"FloatingActionButtonTrigger"})}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:""})," component opens a view component (like ",(0,s.jsx)(t.code,{children:""}),") when clicked. It accepts the same props as ",(0,s.jsx)(t.a,{href:"#actionbuttontrigger",children:"ActionButtonTrigger"})," but also includes a default ",(0,s.jsx)(t.code,{children:"position: fixed"})," style that makes the button float in the bottom right of the window on top of the content (",(0,s.jsx)(t.code,{children:"z-index: 100"}),")."]}),"\n",(0,s.jsx)(t.h3,{id:"inputbartrigger",children:(0,s.jsx)(t.code,{children:"InputBarTrigger"})}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:""})," component opens a view component (like ",(0,s.jsx)(t.code,{children:""}),") when the user sends their first message. It accepts the following props:"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Prop"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Description"}),(0,s.jsx)(t.th,{children:"Default"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"bottomContent"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"ReactNode?"})}),(0,s.jsx)(t.td,{children:"Content that appears immediately below the input bar, e.g. for a terms of use disclaimer."}),(0,s.jsx)(t.td,{children:"If not specified, no content is shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"className"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom class name for the trigger container. Use this to apply custom css styles."}),(0,s.jsx)(t.td,{})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"darkMode"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", this renders in dark mode. This overrides any theme or provider ",(0,s.jsx)(t.code,{children:"darkMode"})," setting."]}),(0,s.jsxs)(t.td,{children:["The user's OS preference or theme value of ",(0,s.jsx)(t.code,{children:"darkMode"}),"."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"fatalErrorMessage"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom error message shown in the input bar when an unrecoverable error has occurred."}),(0,s.jsx)(t.td,{children:'"Something went wrong. Try reloading the page and starting a new conversation."'})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"suggestedPrompts"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string[]?"})}),(0,s.jsx)(t.td,{children:"A list of suggested prompts that appear in the input bar dropdown menu."}),(0,s.jsx)(t.td,{children:"If no prompts are specified, the dropdown is not shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"placeholder"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The placeholder text shown when the input bar is empty."}),(0,s.jsx)(t.td,{children:"If not specified, the input bar uses default placeholders."})]})]})]}),"\n",(0,s.jsx)(t.h3,{id:"modalview",children:(0,s.jsx)(t.code,{children:"ModalView"})}),"\n",(0,s.jsxs)(t.p,{children:["The ",(0,s.jsx)(t.code,{children:""})," component renders a chat message feed in a modal window. It accepts the following props:"]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{children:"Prop"}),(0,s.jsx)(t.th,{children:"Type"}),(0,s.jsx)(t.th,{children:"Description"}),(0,s.jsx)(t.th,{children:"Default"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"className"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom class name for the view container. Use this to apply custom css styles."}),(0,s.jsx)(t.td,{})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"darkMode"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"boolean?"})}),(0,s.jsxs)(t.td,{children:["If ",(0,s.jsx)(t.code,{children:"true"}),", this renders in dark mode. This overrides any theme or provider ",(0,s.jsx)(t.code,{children:"darkMode"})," setting."]}),(0,s.jsxs)(t.td,{children:["The user's OS preference or theme value of ",(0,s.jsx)(t.code,{children:"darkMode"}),"."]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"disclaimer"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"ReactNode?"})}),(0,s.jsx)(t.td,{children:"A disclaimer message shown at the top of the message feed. Can include terms of service, etc."}),(0,s.jsx)(t.td,{children:"If not specified, no disclaimer is shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"disclaimerHeading"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom heading for the disclaimer at the top of the message feed."}),(0,s.jsx)(t.td,{children:'"Terms of Use"'})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"fatalErrorMessage"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"A custom error message shown in the input bar when an unrecoverable error has occurred."}),(0,s.jsx)(t.td,{children:'"Something went wrong. Try reloading the page and starting a new conversation."'})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"initialMessageSuggestedPrompts"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string[]?"})}),(0,s.jsx)(t.td,{children:"A list of suggested prompts that appear alongside the initial assistant message."}),(0,s.jsx)(t.td,{children:"If no prompts are specified, then no prompts are shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"initialMessageText"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The text content of an initial assistant message at the top of the message feed."}),(0,s.jsx)(t.td,{children:"If no text is specified, then no message is shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"inputBarPlaceholder"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The placeholder text shown when the input bar is empty."}),(0,s.jsx)(t.td,{children:"If not specified, the input bar uses default placeholders."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"inputBottomText"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"Text that appears immediately below the input bar."}),(0,s.jsx)(t.td,{children:"If not specified, no bottom text is shown."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"windowTitle"})}),(0,s.jsx)(t.td,{children:(0,s.jsx)(t.code,{children:"string?"})}),(0,s.jsx)(t.td,{children:"The text shown at the top of the chat window."}),(0,s.jsxs)(t.td,{children:["If not specified, this is the ",(0,s.jsx)(t.code,{children:"Chatbot.name"}),". If that's ",(0,s.jsx)(t.code,{children:"undefined"})," the window has no title."]})]})]})]})]})}function a(e={}){const{wrapper:t}={...(0,d.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},30817:(e,t,n)=>{n.d(t,{Z:()=>s});const s=n.p+"assets/images/ui-demo-a98c96aafb77d876d00364d1fa4510b1.gif"},11151:(e,t,n)=>{n.d(t,{Z:()=>o,a:()=>i});var s=n(67294);const d={},r=s.createContext(d);function i(e){const t=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function o(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0e2fd017.a7316a7e.js b/assets/js/0e2fd017.935b2d8b.js similarity index 95% rename from assets/js/0e2fd017.a7316a7e.js rename to assets/js/0e2fd017.935b2d8b.js index 5fb427e4a..64678bde3 100644 --- a/assets/js/0e2fd017.a7316a7e.js +++ b/assets/js/0e2fd017.935b2d8b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8063],{39842:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>r,default:()=>u,frontMatter:()=>i,metadata:()=>s,toc:()=>l});var t=a(85893),o=a(11151);const i={id:"MakeMongoDbEvaluationStoreParams",title:"Interface: MakeMongoDbEvaluationStoreParams",sidebar_label:"MakeMongoDbEvaluationStoreParams",sidebar_position:0,custom_edit_url:null},r=void 0,s={id:"reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams",title:"Interface: MakeMongoDbEvaluationStoreParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeMongoDbEvaluationStoreParams",title:"Interface: MakeMongoDbEvaluationStoreParams",sidebar_label:"MakeMongoDbEvaluationStoreParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeMongoDbCommandMetadataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams"},next:{title:"MakeMongoDbGeneratedDataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams"}},c={},l=[{value:"Properties",id:"properties",level:2},{value:"collectionName",id:"collectionname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"connectionUri",id:"connectionuri",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"databaseName",id:"databasename",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,o.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"collectionname",children:"collectionName"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"collectionName"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"Default"})})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:'"evaluations"\n'})}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L41",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:41"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"connectionuri",children:"connectionUri"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"connectionUri"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L36",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:36"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"databasename",children:"databaseName"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"databaseName"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L37",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:37"})})]})}function u(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>s,a:()=>r});var t=a(67294);const o={},i=t.createContext(o);function r(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8063],{39842:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>r,default:()=>u,frontMatter:()=>i,metadata:()=>s,toc:()=>l});var t=a(85893),o=a(11151);const i={id:"MakeMongoDbEvaluationStoreParams",title:"Interface: MakeMongoDbEvaluationStoreParams",sidebar_label:"MakeMongoDbEvaluationStoreParams",sidebar_position:0,custom_edit_url:null},r=void 0,s={id:"reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams",title:"Interface: MakeMongoDbEvaluationStoreParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeMongoDbEvaluationStoreParams",title:"Interface: MakeMongoDbEvaluationStoreParams",sidebar_label:"MakeMongoDbEvaluationStoreParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeMongoDbCommandMetadataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams"},next:{title:"MakeMongoDbGeneratedDataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams"}},c={},l=[{value:"Properties",id:"properties",level:2},{value:"collectionName",id:"collectionname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"connectionUri",id:"connectionuri",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"databaseName",id:"databasename",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,o.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"collectionname",children:"collectionName"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"collectionName"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"Default"})})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:'"evaluations"\n'})}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L41",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:41"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"connectionuri",children:"connectionUri"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"connectionUri"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L36",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:36"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"databasename",children:"databaseName"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"databaseName"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L37",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:37"})})]})}function u(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>s,a:()=>r});var t=a(67294);const o={},i=t.createContext(o);function r(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:r(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/0ff22746.3963f235.js b/assets/js/0ff22746.84ff586f.js similarity index 95% rename from assets/js/0ff22746.3963f235.js rename to assets/js/0ff22746.84ff586f.js index 32e55b5ec..d4c654c67 100644 --- a/assets/js/0ff22746.3963f235.js +++ b/assets/js/0ff22746.84ff586f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8733],{60326:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var a=t(85893),r=t(11151);const i={id:"EvalConfig",title:"Interface: EvalConfig",sidebar_label:"EvalConfig",sidebar_position:0,custom_edit_url:null},o=void 0,l={id:"reference/evaluation/interfaces/EvalConfig",title:"Interface: EvalConfig",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/EvalConfig.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/EvalConfig",permalink:"/chatbot/reference/evaluation/interfaces/EvalConfig",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"EvalConfig",title:"Interface: EvalConfig",sidebar_label:"EvalConfig",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationTestCase",permalink:"/chatbot/reference/evaluation/interfaces/ConversationTestCase"},next:{title:"EvalResult",permalink:"/chatbot/reference/evaluation/interfaces/EvalResult"}},d={},s=[{value:"Properties",id:"properties",level:2},{value:"afterAll",id:"afterall",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"commands",id:"commands",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"evaluationStore",id:"evaluationstore",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"generatedDataStore",id:"generateddatastore",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"metadataStore",id:"metadatastore",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"reportStore",id:"reportstore",level:3},{value:"Defined in",id:"defined-in-5",level:4}];function c(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,a.jsx)(n.h3,{id:"afterall",children:"afterAll"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Optional"})," ",(0,a.jsx)(n.strong,{children:"afterAll"}),": () => ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 (): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.p,{children:"Function that runs after all actions in the eval command.\nCan use for things like cleaning up resources besides the stores.\nThe stores are cleaned up automatically."}),"\n",(0,a.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L40",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:40"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"commands",children:"commands"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"commands"}),": ",(0,a.jsx)(n.code,{children:"Object"})]}),"\n",(0,a.jsx)(n.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsxs)(n.tbody,{children:[(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"evaluate?"})}),(0,a.jsxs)(n.td,{style:{textAlign:"left"},children:["{ ",(0,a.jsx)(n.code,{children:"[k: string]"}),": { ",(0,a.jsx)(n.code,{children:"evaluator"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})})," }; }"]})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"generate?"})}),(0,a.jsxs)(n.td,{style:{textAlign:"left"},children:["{ ",(0,a.jsx)(n.code,{children:"[k: string]"}),": { ",(0,a.jsx)(n.code,{children:"generator"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,a.jsx)(n.code,{children:"GenerateDataFunc"})})," ; ",(0,a.jsx)(n.code,{children:"testCases"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,a.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,a.jsx)(n.code,{children:"type"}),": ",(0,a.jsx)(n.code,{children:"string"})," }; }"]})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"report?"})}),(0,a.jsxs)(n.td,{style:{textAlign:"left"},children:["{ ",(0,a.jsx)(n.code,{children:"[k: string]"}),": { ",(0,a.jsx)(n.code,{children:"reporter"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#reportevalfunc",children:(0,a.jsx)(n.code,{children:"ReportEvalFunc"})})," }; }"]})]})]})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L15",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:15"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"evaluationstore",children:"evaluationStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"evaluationStore"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:(0,a.jsx)(n.code,{children:"EvaluationStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:13"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"generateddatastore",children:"generatedDataStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"generatedDataStore"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:(0,a.jsx)(n.code,{children:"GeneratedDataStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:12"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"metadatastore",children:"metadataStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"metadataStore"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:(0,a.jsx)(n.code,{children:"CommandMetadataStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L11",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:11"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"reportstore",children:"reportStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"reportStore"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:(0,a.jsx)(n.code,{children:"ReportStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L14",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:14"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(c,{...e})}):c(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var a=t(67294);const r={},i=a.createContext(r);function o(e){const n=a.useContext(i);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8733],{60326:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var a=t(85893),r=t(11151);const i={id:"EvalConfig",title:"Interface: EvalConfig",sidebar_label:"EvalConfig",sidebar_position:0,custom_edit_url:null},o=void 0,l={id:"reference/evaluation/interfaces/EvalConfig",title:"Interface: EvalConfig",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/EvalConfig.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/EvalConfig",permalink:"/chatbot/reference/evaluation/interfaces/EvalConfig",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"EvalConfig",title:"Interface: EvalConfig",sidebar_label:"EvalConfig",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationTestCase",permalink:"/chatbot/reference/evaluation/interfaces/ConversationTestCase"},next:{title:"EvalResult",permalink:"/chatbot/reference/evaluation/interfaces/EvalResult"}},d={},s=[{value:"Properties",id:"properties",level:2},{value:"afterAll",id:"afterall",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"commands",id:"commands",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"evaluationStore",id:"evaluationstore",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"generatedDataStore",id:"generateddatastore",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"metadataStore",id:"metadatastore",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"reportStore",id:"reportstore",level:3},{value:"Defined in",id:"defined-in-5",level:4}];function c(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,a.jsx)(n.h3,{id:"afterall",children:"afterAll"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Optional"})," ",(0,a.jsx)(n.strong,{children:"afterAll"}),": () => ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 (): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.p,{children:"Function that runs after all actions in the eval command.\nCan use for things like cleaning up resources besides the stores.\nThe stores are cleaned up automatically."}),"\n",(0,a.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L40",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:40"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"commands",children:"commands"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"commands"}),": ",(0,a.jsx)(n.code,{children:"Object"})]}),"\n",(0,a.jsx)(n.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsxs)(n.tbody,{children:[(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"evaluate?"})}),(0,a.jsxs)(n.td,{style:{textAlign:"left"},children:["{ ",(0,a.jsx)(n.code,{children:"[k: string]"}),": { ",(0,a.jsx)(n.code,{children:"evaluator"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})})," }; }"]})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"generate?"})}),(0,a.jsxs)(n.td,{style:{textAlign:"left"},children:["{ ",(0,a.jsx)(n.code,{children:"[k: string]"}),": { ",(0,a.jsx)(n.code,{children:"generator"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,a.jsx)(n.code,{children:"GenerateDataFunc"})})," ; ",(0,a.jsx)(n.code,{children:"testCases"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,a.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,a.jsx)(n.code,{children:"type"}),": ",(0,a.jsx)(n.code,{children:"string"})," }; }"]})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"report?"})}),(0,a.jsxs)(n.td,{style:{textAlign:"left"},children:["{ ",(0,a.jsx)(n.code,{children:"[k: string]"}),": { ",(0,a.jsx)(n.code,{children:"reporter"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#reportevalfunc",children:(0,a.jsx)(n.code,{children:"ReportEvalFunc"})})," }; }"]})]})]})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L15",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:15"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"evaluationstore",children:"evaluationStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"evaluationStore"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:(0,a.jsx)(n.code,{children:"EvaluationStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:13"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"generateddatastore",children:"generatedDataStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"generatedDataStore"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:(0,a.jsx)(n.code,{children:"GeneratedDataStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:12"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"metadatastore",children:"metadataStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"metadataStore"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:(0,a.jsx)(n.code,{children:"CommandMetadataStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L11",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:11"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"reportstore",children:"reportStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"reportStore"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:(0,a.jsx)(n.code,{children:"ReportStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L14",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:14"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(c,{...e})}):c(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var a=t(67294);const r={},i=a.createContext(r);function o(e){const n=a.useContext(i);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),a.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/1374c2dd.d485e24c.js b/assets/js/1374c2dd.d485e24c.js new file mode 100644 index 000000000..c941f9f5e --- /dev/null +++ b/assets/js/1374c2dd.d485e24c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1665],{35382:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>i,default:()=>h,frontMatter:()=>r,metadata:()=>c,toc:()=>s});var o=t(85893),a=t(11151);const r={},i="CLI Command Reference",c={id:"evaluation/command-reference",title:"CLI Command Reference",description:"The MongoDB Chatbot Evaluation CLI has the following commands.",source:"@site/docs/evaluation/command-reference.md",sourceDirName:"evaluation",slug:"/evaluation/command-reference",permalink:"/chatbot/evaluation/command-reference",draft:!1,unlisted:!1,editUrl:"https://github.com/mongodb/chatbot/tree/main/docs/docs/evaluation/command-reference.md",tags:[],version:"current",frontMatter:{},sidebar:"main",previous:{title:"Configure the Evaluation CLI",permalink:"/chatbot/evaluation/"},next:{title:"Configuration Reference",permalink:"/chatbot/evaluation/configuration-reference"}},l={},s=[{value:"generate",id:"generate",level:2},{value:"evaluate",id:"evaluate",level:2},{value:"report",id:"report",level:2}];function d(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",pre:"pre",...(0,a.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h1,{id:"cli-command-reference",children:"CLI Command Reference"}),"\n",(0,o.jsx)(n.p,{children:"The MongoDB Chatbot Evaluation CLI has the following commands."}),"\n",(0,o.jsxs)(n.p,{children:["You must install the CLI before you can run it. See the ",(0,o.jsx)(n.a,{href:"/chatbot/evaluation/#install",children:"installation documentation"}),"."]}),"\n",(0,o.jsxs)(n.p,{children:["For all commands, you can use the ",(0,o.jsx)(n.code,{children:"--help"})," flag to get more information about the command."]}),"\n",(0,o.jsxs)(n.p,{children:["Run commands with the ",(0,o.jsx)(n.code,{children:"mongodb-chatbot-evaluation"})," CLI application:"]}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-sh",children:"mongodb-chatbot-evaluation [options]\n"})}),"\n",(0,o.jsx)(n.h2,{id:"generate",children:(0,o.jsx)(n.code,{children:"generate"})}),"\n",(0,o.jsx)(n.p,{children:"Create generated data to be used in evaluation."}),"\n",(0,o.jsx)(n.p,{children:"Options:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-txt",children:" --version Show version number [boolean]\n --help Show help [boolean]\n --config Path to config JS file. [string]\n --name Name of the data generation. [string] [required]\n"})}),"\n",(0,o.jsx)(n.h2,{id:"evaluate",children:(0,o.jsx)(n.code,{children:"evaluate"})}),"\n",(0,o.jsx)(n.p,{children:"Evaluate the generated data."}),"\n",(0,o.jsx)(n.p,{children:"Options:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-txt",children:" --version Show version number [boolean]\n --help Show help [boolean]\n --config Path to config JS file. [string]\n --name Name of the evaluation. [string] [required]\n --generatedDataRunId RunId for a 'generate' command that you want to create\n evaluations for. [string] [required]\n"})}),"\n",(0,o.jsx)(n.h2,{id:"report",children:(0,o.jsx)(n.code,{children:"report"})}),"\n",(0,o.jsx)(n.p,{children:"Generate a report from the evaluation data."}),"\n",(0,o.jsx)(n.p,{children:"Options:"}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-txt",children:" --version Show version number [boolean]\n --help Show help [boolean]\n --config Path to config JS file. [string]\n --name Name of the report. [string] [required]\n --evalResultsRunId RunId for an 'evaluate' command that you want to create a\n report for. [string] [required]\n"})})]})}function h(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>c,a:()=>i});var o=t(67294);const a={},r=o.createContext(a);function i(e){const n=o.useContext(r);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),o.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/16d7d47e.5f491e22.js b/assets/js/16d7d47e.b6b4b1f5.js similarity index 96% rename from assets/js/16d7d47e.5f491e22.js rename to assets/js/16d7d47e.b6b4b1f5.js index 8233e9d89..83e727c86 100644 --- a/assets/js/16d7d47e.5f491e22.js +++ b/assets/js/16d7d47e.b6b4b1f5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9763],{12189:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>a,frontMatter:()=>d,metadata:()=>l,toc:()=>o});var s=t(85893),r=t(11151);const d={id:"sources",title:"Module: sources",sidebar_label:"sources",sidebar_position:0,custom_edit_url:null},i=void 0,l={id:"reference/ingest/modules/sources",title:"Module: sources",description:"Interfaces",source:"@site/docs/reference/ingest/modules/sources.md",sourceDirName:"reference/ingest/modules",slug:"/reference/ingest/modules/sources",permalink:"/chatbot/reference/ingest/modules/sources",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"sources",title:"Module: sources",sidebar_label:"sources",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"embed",permalink:"/chatbot/reference/ingest/modules/embed"},next:{title:"sources.Branch",permalink:"/chatbot/reference/ingest/interfaces/sources.Branch"}},c={},o=[{value:"Interfaces",id:"interfaces",level:2},{value:"Type Aliases",id:"type-aliases",level:2},{value:"Cell",id:"cell",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"DataSource",id:"datasource",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"DevCenterEntry",id:"devcenterentry",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"DevCenterProjectConfig",id:"devcenterprojectconfig",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"FilterFunc",id:"filterfunc",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-4",level:4},{value:"GetSnootyProjectsResponse",id:"getsnootyprojectsresponse",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"HandleHtmlPageFuncOptions",id:"handlehtmlpagefuncoptions",level:3},{value:"Type declaration",id:"type-declaration-5",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"HandlePageFunc",id:"handlepagefunc",level:3},{value:"Type declaration",id:"type-declaration-6",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-7",level:4},{value:"LocallySpecifiedSnootyProjectConfig",id:"locallyspecifiedsnootyprojectconfig",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"MakeCodeOnGithubTextDataSourceParams",id:"makecodeongithubtextdatasourceparams",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"MakeGitHubDataSourceArgs",id:"makegithubdatasourceargs",level:3},{value:"Type declaration",id:"type-declaration-7",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"MakeMdOnGithubDataSourceParams",id:"makemdongithubdatasourceparams",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"MakeSnootyDataSourceArgs",id:"makesnootydatasourceargs",level:3},{value:"Type declaration",id:"type-declaration-8",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"Row",id:"row",level:3},{value:"Type declaration",id:"type-declaration-9",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"SnootyManifestEntry",id:"snootymanifestentry",level:3},{value:"Type declaration",id:"type-declaration-10",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"SnootyNode",id:"snootynode",level:3},{value:"Index signature",id:"index-signature",level:4},{value:"Type declaration",id:"type-declaration-11",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"SnootyPageData",id:"snootypagedata",level:3},{value:"Type declaration",id:"type-declaration-12",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"SnootyPageEntry",id:"snootypageentry",level:3},{value:"Defined in",id:"defined-in-17",level:4},{value:"SnootyProjectConfig",id:"snootyprojectconfig",level:3},{value:"Defined in",id:"defined-in-18",level:4},{value:"SnootyProjectsInfo",id:"snootyprojectsinfo",level:3},{value:"Type declaration",id:"type-declaration-13",level:4},{value:"Defined in",id:"defined-in-19",level:4},{value:"SnootyTextNode",id:"snootytextnode",level:3},{value:"Defined in",id:"defined-in-20",level:4},{value:"Table",id:"table",level:3},{value:"Type declaration",id:"type-declaration-14",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"Functions",id:"functions",level:2},{value:"extractHtmlH1",id:"extracthtmlh1",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-22",level:4},{value:"extractTags",id:"extracttags",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"filterOnlyPublicActiveTiCatalogItems",id:"filteronlypublicactiveticatalogitems",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-24",level:4},{value:"getAcquitTestsFromGithubRepo",id:"getacquittestsfromgithubrepo",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-25",level:4},{value:"getRelevantFilePathsInDir",id:"getrelevantfilepathsindir",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-26",level:4},{value:"getRelevantFilesAsStrings",id:"getrelevantfilesasstrings",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-27",level:4},{value:"getRepoLocally",id:"getrepolocally",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-28",level:4},{value:"getTitleFromSnootyAst",id:"gettitlefromsnootyast",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-29",level:4},{value:"getTitleFromSnootyOpenApiSpecAst",id:"gettitlefromsnootyopenapispecast",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-30",level:4},{value:"handleHtmlDocument",id:"handlehtmldocument",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-31",level:4},{value:"handlePage",id:"handlepage",level:3},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-12",level:4},{value:"Defined in",id:"defined-in-32",level:4},{value:"makeAcquitRequireMdOnGithubDataSource",id:"makeacquitrequiremdongithubdatasource",level:3},{value:"Parameters",id:"parameters-13",level:4},{value:"Returns",id:"returns-13",level:4},{value:"Defined in",id:"defined-in-33",level:4},{value:"makeCodeOnGithubTextDataSource",id:"makecodeongithubtextdatasource",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Defined in",id:"defined-in-34",level:4},{value:"makeDevCenterDataSource",id:"makedevcenterdatasource",level:3},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Defined in",id:"defined-in-35",level:4},{value:"makeDevCenterPage",id:"makedevcenterpage",level:3},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-16",level:4},{value:"Defined in",id:"defined-in-36",level:4},{value:"makeDevCenterPageBody",id:"makedevcenterpagebody",level:3},{value:"Parameters",id:"parameters-17",level:4},{value:"Returns",id:"returns-17",level:4},{value:"Defined in",id:"defined-in-37",level:4},{value:"makeGitDataSource",id:"makegitdatasource",level:3},{value:"Parameters",id:"parameters-18",level:4},{value:"Returns",id:"returns-18",level:4},{value:"Defined in",id:"defined-in-38",level:4},{value:"makeGitHubDataSource",id:"makegithubdatasource",level:3},{value:"Parameters",id:"parameters-19",level:4},{value:"Returns",id:"returns-19",level:4},{value:"Defined in",id:"defined-in-39",level:4},{value:"makeLangChainDocumentLoaderDataSource",id:"makelangchaindocumentloaderdatasource",level:3},{value:"Parameters",id:"parameters-20",level:4},{value:"Returns",id:"returns-20",level:4},{value:"Defined in",id:"defined-in-40",level:4},{value:"makeMdOnGithubDataSource",id:"makemdongithubdatasource",level:3},{value:"Parameters",id:"parameters-21",level:4},{value:"Returns",id:"returns-21",level:4},{value:"Defined in",id:"defined-in-41",level:4},{value:"makeMongoDbUniversityDataSource",id:"makemongodbuniversitydatasource",level:3},{value:"Parameters",id:"parameters-22",level:4},{value:"Returns",id:"returns-22",level:4},{value:"Defined in",id:"defined-in-42",level:4},{value:"makeRandomTmp",id:"makerandomtmp",level:3},{value:"Parameters",id:"parameters-23",level:4},{value:"Returns",id:"returns-23",level:4},{value:"Defined in",id:"defined-in-43",level:4},{value:"makeRstOnGitHubDataSource",id:"makerstongithubdatasource",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Parameters",id:"parameters-24",level:4},{value:"Returns",id:"returns-24",level:4},{value:"Defined in",id:"defined-in-44",level:4},{value:"makeSnootyDataSource",id:"makesnootydatasource",level:3},{value:"Parameters",id:"parameters-25",level:4},{value:"Returns",id:"returns-25",level:4},{value:"Defined in",id:"defined-in-45",level:4},{value:"makeSnootyProjectsInfo",id:"makesnootyprojectsinfo",level:3},{value:"Parameters",id:"parameters-26",level:4},{value:"Returns",id:"returns-26",level:4},{value:"Defined in",id:"defined-in-46",level:4},{value:"pageBlobUrl",id:"pagebloburl",level:3},{value:"Parameters",id:"parameters-27",level:4},{value:"Returns",id:"returns-27",level:4},{value:"Defined in",id:"defined-in-47",level:4},{value:"parseSnootyTable",id:"parsesnootytable",level:3},{value:"Parameters",id:"parameters-28",level:4},{value:"Returns",id:"returns-28",level:4},{value:"Defined in",id:"defined-in-48",level:4},{value:"prepareSnootySources",id:"preparesnootysources",level:3},{value:"Parameters",id:"parameters-29",level:4},{value:"Returns",id:"returns-29",level:4},{value:"Defined in",id:"defined-in-49",level:4},{value:"removeMarkdownImagesAndLinks",id:"removemarkdownimagesandlinks",level:3},{value:"Parameters",id:"parameters-30",level:4},{value:"Returns",id:"returns-30",level:4},{value:"Defined in",id:"defined-in-50",level:4},{value:"renderCells",id:"rendercells",level:3},{value:"Parameters",id:"parameters-31",level:4},{value:"Returns",id:"returns-31",level:4},{value:"Defined in",id:"defined-in-51",level:4},{value:"renderRows",id:"renderrows",level:3},{value:"Parameters",id:"parameters-32",level:4},{value:"Returns",id:"returns-32",level:4},{value:"Defined in",id:"defined-in-52",level:4},{value:"renderSnootyTable",id:"rendersnootytable",level:3},{value:"Parameters",id:"parameters-33",level:4},{value:"Returns",id:"returns-33",level:4},{value:"Defined in",id:"defined-in-53",level:4},{value:"rstToSnootyAst",id:"rsttosnootyast",level:3},{value:"Parameters",id:"parameters-34",level:4},{value:"Returns",id:"returns-34",level:4},{value:"Defined in",id:"defined-in-54",level:4},{value:"snootyAstToMd",id:"snootyasttomd",level:3},{value:"Parameters",id:"parameters-35",level:4},{value:"Returns",id:"returns-35",level:4},{value:"Defined in",id:"defined-in-55",level:4},{value:"snootyAstToOpenApiSpec",id:"snootyasttoopenapispec",level:3},{value:"Parameters",id:"parameters-36",level:4},{value:"Returns",id:"returns-36",level:4},{value:"Defined in",id:"defined-in-56",level:4}];function h(e){const n={a:"a",blockquote:"blockquote",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.Branch",children:"Branch"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag",children:"DevCenterEntryTag"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams",children:"MakeGitDataSourceParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams",children:"MakeLangChainDocumentLoaderDataSourceParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams",children:"MakeMongoDbUniversityDataSourceParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.ProjectBase",children:"ProjectBase"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.SnootyProject",children:"SnootyProject"})}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,s.jsx)(n.h3,{id:"cell",children:"Cell"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Cell"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"columnName?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L66",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:66"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"datasource",children:"DataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"DataSource"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"Represents a source of page data."}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"name"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The unique name among registered data sources."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"fetchPages"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Page"}),"[]>"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Fetches pages in the data source."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/DataSource.ts#L6",children:"mongodb-rag-ingest/src/sources/DataSource.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"devcenterentry",children:"DevCenterEntry"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"DevCenterEntry"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"calculated_slug"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"null"})]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"description"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"name"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"tags"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag",children:(0,s.jsx)(n.code,{children:"DevCenterEntryTag"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"type"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L18",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:18"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"devcenterprojectconfig",children:"DevCenterProjectConfig"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"DevCenterProjectConfig"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.ProjectBase",children:(0,s.jsx)(n.code,{children:"ProjectBase"})})," & { ",(0,s.jsx)(n.code,{children:"baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"collectionName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"databaseName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"devcenter"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L10",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:10"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filterfunc",children:"FilterFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FilterFunc"}),": (",(0,s.jsx)(n.code,{children:"path"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"path"}),"): ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.h5,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"path"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"boolean"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L159",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:159"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getsnootyprojectsresponse",children:"GetSnootyProjectsResponse"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"GetSnootyProjectsResponse"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsxs)(n.p,{children:["Schema for API response from ",(0,s.jsx)(n.a,{href:"https://snooty-data-api.mongodb.com/prod/projects",children:"https://snooty-data-api.mongodb.com/prod/projects"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"data"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.SnootyProject",children:(0,s.jsx)(n.code,{children:"SnootyProject"})}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts#L12",children:"mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts:12"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"handlehtmlpagefuncoptions",children:"HandleHtmlPageFuncOptions"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"HandleHtmlPageFuncOptions"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-5",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"extractMetadata?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"domDoc"}),": ",(0,s.jsx)(n.code,{children:"Document"}),") => ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["Extract metadata from page DOM. Added to the ",(0,s.jsx)(n.code,{children:"Page.metadata"})," field. If a in the result of ",(0,s.jsx)(n.code,{children:"extractMetadata()"})," is the same as a key in ",(0,s.jsx)(n.code,{children:"metadata"}),", the ",(0,s.jsx)(n.code,{children:"extractMetadata()"})," key will override it."]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"extractTitle?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"domDoc"}),": ",(0,s.jsx)(n.code,{children:"Document"}),") => ",(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"undefined"})]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["Extract ",(0,s.jsx)(n.code,{children:"Page.title"})," from page content and path."]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"metadata?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"PageMetadata"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Page.metadata"})," passed from config. Included in all documents"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"pathToPageUrl"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"path"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"string"})]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["Construct the ",(0,s.jsx)(n.code,{children:"Page.url"})," from page path."]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"postProcessMarkdown?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"markdown"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Transform Markdown once it's been generated"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"removeElements"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"domDoc"}),": ",(0,s.jsx)(n.code,{children:"Document"}),") => ",(0,s.jsx)(n.code,{children:"Element"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Returns an array of DOM elements to be removed from the parsed document."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/handleHtmlDocument.ts#L6",children:"mongodb-rag-ingest/src/sources/handleHtmlDocument.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"handlepagefunc",children:"HandlePageFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"HandlePageFunc"}),": (",(0,s.jsx)(n.code,{children:"path"}),": ",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),"> | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-6",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"path"}),", ",(0,s.jsx)(n.code,{children:"content"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),"> | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">[]>"]}),"\n",(0,s.jsxs)(n.p,{children:["Function to convert a file in the repo into a ",(0,s.jsx)(n.code,{children:"Page"})," or ",(0,s.jsx)(n.code,{children:"Page[]"}),"."]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"path"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Path to file in repo"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Contents of file in repo"})]})]})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-1",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),"> | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L20",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:20"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"locallyspecifiedsnootyprojectconfig",children:"LocallySpecifiedSnootyProjectConfig"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"LocallySpecifiedSnootyProjectConfig"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootyprojectconfig",children:(0,s.jsx)(n.code,{children:"SnootyProjectConfig"})}),", ",(0,s.jsx)(n.code,{children:'"baseUrl"'})," | ",(0,s.jsx)(n.code,{children:'"currentBranch"'})," | ",(0,s.jsx)(n.code,{children:'"version"'}),"> & { ",(0,s.jsx)(n.code,{children:"baseUrl?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"currentBranch?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"versionNameOverride?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Specifies a locally-overrideable Snooty project configuration."}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"baseUrl"})," and ",(0,s.jsx)(n.code,{children:"currentBranch"}),", if undefined, will be filled in by the Snooty\nData API GET projects endpoint. You can set them yourself to override the data\nin the Snooty Data API. ",(0,s.jsx)(n.code,{children:"currentBranch"})," will be the name of the first branch\nentry with ",(0,s.jsx)(n.code,{children:"isStableBranch"})," set to true in the Data API response."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L86",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:86"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makecodeongithubtextdatasourceparams",children:"MakeCodeOnGithubTextDataSourceParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeCodeOnGithubTextDataSourceParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})}),", ",(0,s.jsx)(n.code,{children:'"handleDocumentInRepo"'}),"> & { ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"PageMetadata"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts#L9",children:"mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makegithubdatasourceargs",children:"MakeGitHubDataSourceArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeGitHubDataSourceArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-7",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"filter?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams",children:(0,s.jsx)(n.code,{children:"MakeGitDataSourceParams"})}),"[",(0,s.jsx)(n.code,{children:'"filter"'}),"]"]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["Filter function to filter out files from the repo. Using this overrides the ",(0,s.jsx)(n.code,{children:"repoLoaderOptions.ignorePaths"})," option. Note that file paths will have a leading slash (e.g. ",(0,s.jsx)(n.code,{children:"/somedir/somefile.txt"}),")."]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"name"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The data source name."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"repoLoaderOptions?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.code,{children:"GithubRepoLoaderParams"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The branch to fetch."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"repoUrl"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The GitHub repo URL."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"handleDocumentInRepo"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"document"}),": ",(0,s.jsx)(n.code,{children:"Document"}),"<{ ",(0,s.jsx)(n.code,{children:"source"}),": ",(0,s.jsx)(n.code,{children:"string"})," }>) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),"> | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">[]>"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Handle a given file in the repo. Any number of Pages can be returned for a given file. The exact details depend on the given repo. Return undefined to skip this document. Page sourceName will be overridden by the name passed to makeGitHubDataSource."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitHubDataSource.ts#L7",children:"mongodb-rag-ingest/src/sources/GitHubDataSource.ts:7"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemdongithubdatasourceparams",children:"MakeMdOnGithubDataSourceParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeMdOnGithubDataSourceParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})}),", ",(0,s.jsx)(n.code,{children:'"handleDocumentInRepo"'}),"> & { ",(0,s.jsx)(n.code,{children:"extractMetadata?"}),": (",(0,s.jsx)(n.code,{children:"pageContent"}),": ",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"frontMatter?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">) => ",(0,s.jsx)(n.code,{children:"PageMetadata"})," ; ",(0,s.jsx)(n.code,{children:"extractTitle?"}),": (",(0,s.jsx)(n.code,{children:"pageContent"}),": ",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"frontMatter?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">) => ",(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"undefined"})," ; ",(0,s.jsx)(n.code,{children:"filter?"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})}),"[",(0,s.jsx)(n.code,{children:'"filter"'}),"] ; ",(0,s.jsx)(n.code,{children:"frontMatter?"}),": { ",(0,s.jsx)(n.code,{children:"format?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"process"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"separator?"}),": ",(0,s.jsx)(n.code,{children:"string"})," } ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"PageMetadata"})," ; ",(0,s.jsx)(n.code,{children:"pathToPageUrl"}),": (",(0,s.jsx)(n.code,{children:"pathInRepo"}),": ",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"frontMatter?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">) => ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/MdOnGithubDataSource.ts#L9",children:"mongodb-rag-ingest/src/sources/MdOnGithubDataSource.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makesnootydatasourceargs",children:"MakeSnootyDataSourceArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeSnootyDataSourceArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-8",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"name"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The data source name."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"project"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootyprojectconfig",children:(0,s.jsx)(n.code,{children:"SnootyProjectConfig"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The configuration for the Snooty project."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"snootyDataApiBaseUrl"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The base URL for Snooty Data API requests."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"version?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L95",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:95"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"row",children:"Row"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Row"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-9",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"cells"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#cell",children:(0,s.jsx)(n.code,{children:"Cell"})}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L71",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:71"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootymanifestentry",children:"SnootyManifestEntry"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyManifestEntry"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-10",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"data"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"unknown"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"type"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:'"page"'})," | ",(0,s.jsx)(n.code,{children:'"timestamp"'})," | ",(0,s.jsx)(n.code,{children:'"metadata"'})," | ",(0,s.jsx)(n.code,{children:'"asset"'})]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L13",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:13"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootynode",children:"SnootyNode"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyNode"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"A node in the Snooty AST."}),"\n",(0,s.jsx)(n.h4,{id:"index-signature",children:"Index signature"}),"\n",(0,s.jsxs)(n.p,{children:["\u25aa [key: ",(0,s.jsx)(n.code,{children:"string"}),"]: ",(0,s.jsx)(n.code,{children:"unknown"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-11",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"children?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootytextnode",children:(0,s.jsx)(n.code,{children:"SnootyTextNode"})}),")[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"options?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"type"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-15",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L29",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:29"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootypagedata",children:"SnootyPageData"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyPageData"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"A page in the Snooty manifest."}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-12",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ast"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"deleted"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"boolean"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"page_id"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"tags?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-16",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L48",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:48"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootypageentry",children:"SnootyPageEntry"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyPageEntry"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootymanifestentry",children:(0,s.jsx)(n.code,{children:"SnootyManifestEntry"})})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootypagedata",children:(0,s.jsx)(n.code,{children:"SnootyPageData"})})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"page"'})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Represents a page entry in a Snooty manifest file."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-17",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L21",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootyprojectconfig",children:"SnootyProjectConfig"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyProjectConfig"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.ProjectBase",children:(0,s.jsx)(n.code,{children:"ProjectBase"})})," & { ",(0,s.jsx)(n.code,{children:"baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"currentBranch"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"snooty"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-18",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L55",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:55"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootyprojectsinfo",children:"SnootyProjectsInfo"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyProjectsInfo"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-13",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"getBaseUrl"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"branchName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"projectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"getCurrentBranch"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"projectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.Branch",children:(0,s.jsx)(n.code,{children:"Branch"})}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"getCurrentVersionName"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"projectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"}),">"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-19",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts#L16",children:"mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts:16"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootytextnode",children:"SnootyTextNode"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyTextNode"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})," & { ",(0,s.jsx)(n.code,{children:"children"}),": ",(0,s.jsx)(n.code,{children:"never"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"text"'})," ; ",(0,s.jsx)(n.code,{children:"value"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.p,{children:"A Snooty AST node with a text value."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-20",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L39",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:39"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"table",children:"Table"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Table"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-14",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"dataRows"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#row",children:(0,s.jsx)(n.code,{children:"Row"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"headerRows"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#row",children:(0,s.jsx)(n.code,{children:"Row"})}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-21",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L75",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:75"})}),"\n",(0,s.jsx)(n.h2,{id:"functions",children:"Functions"}),"\n",(0,s.jsx)(n.h3,{id:"extracthtmlh1",children:"extractHtmlH1"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"extractHtmlH1"}),"(",(0,s.jsx)(n.code,{children:"domDoc"}),"): ",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"domDoc"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Document"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-22",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/handleHtmlDocument.ts#L95",children:"mongodb-rag-ingest/src/sources/handleHtmlDocument.ts:95"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"extracttags",children:"extractTags"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"extractTags"}),"(",(0,s.jsx)(n.code,{children:"tags"}),"): ",(0,s.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,s.jsx)(n.p,{children:"Extract relevant tags from dev center entry tags"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"tags"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag",children:(0,s.jsx)(n.code,{children:"DevCenterEntryTag"})}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-23",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L98",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:98"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filteronlypublicactiveticatalogitems",children:"filterOnlyPublicActiveTiCatalogItems"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"filterOnlyPublicActiveTiCatalogItems"}),"(",(0,s.jsx)(n.code,{children:"item"}),"): ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.p,{children:"Filter function to only include public, published,\nand non-legacy MongoDB University content."}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:["\u26a0\ufe0f ",(0,s.jsx)(n.strong,{children:"Important"})," \u26a0\ufe0f"]}),"\n",(0,s.jsxs)(n.p,{children:["You should include ",(0,s.jsx)(n.em,{children:"only"})," this content or a subset of it\nin externally facing applications."]}),"\n"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"item"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"TiCatalogItem"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"boolean"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-24",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L38",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:38"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getacquittestsfromgithubrepo",children:"getAcquitTestsFromGithubRepo"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getAcquitTestsFromGithubRepo"}),"(",(0,s.jsx)(n.code,{children:"repoUrl"}),", ",(0,s.jsx)(n.code,{children:"repoLoaderOptions"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),"[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-5",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"repoUrl"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"repoLoaderOptions"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.code,{children:"GithubRepoLoaderParams"}),">"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),"[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-25",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/AcquitRequireMdOnGithubDataSource.ts#L96",children:"mongodb-rag-ingest/src/sources/AcquitRequireMdOnGithubDataSource.ts:96"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getrelevantfilepathsindir",children:"getRelevantFilePathsInDir"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getRelevantFilePathsInDir"}),"(",(0,s.jsx)(n.code,{children:"directoryPath"}),", ",(0,s.jsx)(n.code,{children:"filter"}),", ",(0,s.jsx)(n.code,{children:"fileList?"}),"): ",(0,s.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-6",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Default value"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"directoryPath"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"undefined"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"filter"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#filterfunc",children:(0,s.jsx)(n.code,{children:"FilterFunc"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"undefined"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"fileList"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"[]"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-6",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-26",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L161",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:161"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getrelevantfilesasstrings",children:"getRelevantFilesAsStrings"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getRelevantFilesAsStrings"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"string"}),">>"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-7",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"directoryPath"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"filter"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#filterfunc",children:(0,s.jsx)(n.code,{children:"FilterFunc"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-7",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"string"}),">>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-27",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L182",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:182"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getrepolocally",children:"getRepoLocally"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getRepoLocally"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"localPath"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"options?"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"TaskOptions"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"repoPath"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-28",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L136",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:136"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"gettitlefromsnootyast",children:"getTitleFromSnootyAst"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getTitleFromSnootyAst"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-9",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-29",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/snootyAstToMd.ts#L196",children:"mongodb-rag-ingest/src/sources/snooty/snootyAstToMd.ts:196"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"gettitlefromsnootyopenapispecast",children:"getTitleFromSnootyOpenApiSpecAst"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getTitleFromSnootyOpenApiSpecAst"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-10",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-30",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/snootyAstToOpenApiSpec.ts#L43",children:"mongodb-rag-ingest/src/sources/snooty/snootyAstToOpenApiSpec.ts:43"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"handlehtmldocument",children:"handleHtmlDocument"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"handleHtmlDocument"}),"(",(0,s.jsx)(n.code,{children:"path"}),", ",(0,s.jsx)(n.code,{children:"content"}),", ",(0,s.jsx)(n.code,{children:"options"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">>"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-11",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"path"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"options"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#handlehtmlpagefuncoptions",children:(0,s.jsx)(n.code,{children:"HandleHtmlPageFuncOptions"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-11",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-31",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/handleHtmlDocument.ts#L30",children:"mongodb-rag-ingest/src/sources/handleHtmlDocument.ts:30"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"handlepage",children:"handlePage"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"handlePage"}),"(",(0,s.jsx)(n.code,{children:"page"}),", ",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Page"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-12",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"page"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootypagedata",children:(0,s.jsx)(n.code,{children:"SnootyPageData"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"baseUrl"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"productName?"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"sourceName"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"tags"})]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"version?"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-12",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Page"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-32",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L264",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:264"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeacquitrequiremdongithubdatasource",children:"makeAcquitRequireMdOnGithubDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeAcquitRequireMdOnGithubDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Loads an MD/Acquit docs site from a GitHub repo.\n",(0,s.jsx)(n.a,{href:"https://www.npmjs.com/package/acquit",children:"Acquit"})," is a tool for writing tests in comments,\nand then extracting them into a test suite.\nThis function loads the tests from the repo, and then transforms the document content\nto include tests from the test suite in the document.\nAcquit is used in the ",(0,s.jsx)(n.a,{href:"https://mongoosejs.com/docs",children:"Mongoose ODM"})," documentation.\nThis data source assumes that the test files are in the same repo as the docs."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-13",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})}),", ",(0,s.jsx)(n.code,{children:'"handleDocumentInRepo"'}),"> & { ",(0,s.jsx)(n.code,{children:"acquitCodeBlockLanguageReplacement?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"PageMetadata"})," ; ",(0,s.jsx)(n.code,{children:"pathToPageUrl"}),": (",(0,s.jsx)(n.code,{children:"pathInRepo"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"testFileLoaderOptions"}),": ",(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.code,{children:"GithubRepoLoaderParams"}),"> }"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-13",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-33",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/AcquitRequireMdOnGithubDataSource.ts#L21",children:"mongodb-rag-ingest/src/sources/AcquitRequireMdOnGithubDataSource.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makecodeongithubtextdatasource",children:"makeCodeOnGithubTextDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeCodeOnGithubTextDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.p,{children:"Loads source code files from a GitHub repo."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-14",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makecodeongithubtextdatasourceparams",children:(0,s.jsx)(n.code,{children:"MakeCodeOnGithubTextDataSourceParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-14",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-34",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts#L21",children:"mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedevcenterdatasource",children:"makeDevCenterDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDevCenterDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-15",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#devcenterprojectconfig",children:(0,s.jsx)(n.code,{children:"DevCenterProjectConfig"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-15",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-35",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L32",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:32"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedevcenterpage",children:"makeDevCenterPage"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDevCenterPage"}),"(",(0,s.jsx)(n.code,{children:"document"}),", ",(0,s.jsx)(n.code,{children:"name"}),", ",(0,s.jsx)(n.code,{children:"baseUrl"}),"): ",(0,s.jsx)(n.code,{children:"Page"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-16",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"document"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#devcenterentry",children:(0,s.jsx)(n.code,{children:"DevCenterEntry"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"name"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"baseUrl"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-16",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Page"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-36",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L67",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:67"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedevcenterpagebody",children:"makeDevCenterPageBody"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDevCenterPageBody"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-17",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"content"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"title?"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-17",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-37",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L109",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:109"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makegitdatasource",children:"makeGitDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeGitDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})]}),"\n",(0,s.jsx)(n.p,{children:"Loads and processes files from a Git repo (can be hosted anywhere)."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-18",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams",children:(0,s.jsx)(n.code,{children:"MakeGitDataSourceParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-18",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-38",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L61",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:61"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makegithubdatasource",children:"makeGitHubDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeGitHubDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})]}),"\n",(0,s.jsx)(n.p,{children:"Loads an arbitrary GitHub repo and converts its contents into pages."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-19",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-19",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-39",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitHubDataSource.ts#L50",children:"mongodb-rag-ingest/src/sources/GitHubDataSource.ts:50"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makelangchaindocumentloaderdatasource",children:"makeLangChainDocumentLoaderDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeLangChainDocumentLoaderDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Create a data source that loads pages from a ",(0,s.jsx)(n.a,{href:"https://js.langchain.com/docs/modules/data_connection/document_loaders/",children:"Langchain document loader"}),"."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-20",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams",children:(0,s.jsx)(n.code,{children:"MakeLangChainDocumentLoaderDataSourceParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-20",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-40",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts#L37",children:"mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts:37"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemdongithubdatasource",children:"makeMdOnGithubDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMdOnGithubDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.p,{children:"Loads an .md/.mdx docs site from a GitHub repo."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-21",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makemdongithubdatasourceparams",children:(0,s.jsx)(n.code,{children:"MakeMdOnGithubDataSourceParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-21",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-41",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/MdOnGithubDataSource.ts#L72",children:"mongodb-rag-ingest/src/sources/MdOnGithubDataSource.ts:72"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemongodbuniversitydatasource",children:"makeMongoDbUniversityDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMongoDbUniversityDataSource"}),"(",(0,s.jsx)(n.code,{children:"params"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})]}),"\n",(0,s.jsx)(n.p,{children:"Data source constructor function for ingesting data\nfrom the MongoDB University Data API.\n(This is an internal API.)"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-22",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"params"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams",children:(0,s.jsx)(n.code,{children:"MakeMongoDbUniversityDataSourceParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-22",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-42",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L69",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:69"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makerandomtmp",children:"makeRandomTmp"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeRandomTmp"}),"(",(0,s.jsx)(n.code,{children:"prefix"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-23",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"prefix"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"prefix for the temporary directory name"})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-23",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-43",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L127",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:127"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makerstongithubdatasource",children:"makeRstOnGitHubDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeRstOnGitHubDataSource"}),"<",(0,s.jsx)(n.code,{children:"MetadataType"}),">(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})]}),"\n",(0,s.jsx)(n.p,{children:"Loads an rST docs site from a GitHub repo."}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MetadataType"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-24",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})}),", ",(0,s.jsx)(n.code,{children:'"handleDocumentInRepo"'}),"> & { ",(0,s.jsx)(n.code,{children:"getMetadata?"}),": (",(0,s.jsx)(n.code,{children:"info"}),": { ",(0,s.jsx)(n.code,{children:"bodyMarkdown"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"document"}),": ",(0,s.jsx)(n.code,{children:"Document"}),"<{ ",(0,s.jsx)(n.code,{children:"source"}),": ",(0,s.jsx)(n.code,{children:"string"})," }> ; ",(0,s.jsx)(n.code,{children:"title?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }) => ",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"MetadataType"})," ; ",(0,s.jsx)(n.code,{children:"pathToPageUrl"}),": (",(0,s.jsx)(n.code,{children:"pathInRepo"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"string"})," }"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-24",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-44",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/RstOnGitHubDataSource.ts#L13",children:"mongodb-rag-ingest/src/sources/RstOnGitHubDataSource.ts:13"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makesnootydatasource",children:"makeSnootyDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeSnootyDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})," & { ",(0,s.jsx)(n.code,{children:"_baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_currentBranch"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_snootyProjectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_version?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-25",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makesnootydatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeSnootyDataSourceArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-25",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})," & { ",(0,s.jsx)(n.code,{children:"_baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_currentBranch"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_snootyProjectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_version?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-45",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L114",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:114"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makesnootyprojectsinfo",children:"makeSnootyProjectsInfo"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeSnootyProjectsInfo"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootyprojectsinfo",children:(0,s.jsx)(n.code,{children:"SnootyProjectsInfo"})})," & { ",(0,s.jsx)(n.code,{children:"_data"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.SnootyProject",children:(0,s.jsx)(n.code,{children:"SnootyProject"})}),"[] }>"]}),"\n",(0,s.jsx)(n.p,{children:"Creates a SnootyProjectsInfo object from the Snooty Data API GET projects\nendpoint."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-26",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"snootyDataApiBaseUrl"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-26",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootyprojectsinfo",children:(0,s.jsx)(n.code,{children:"SnootyProjectsInfo"})})," & { ",(0,s.jsx)(n.code,{children:"_data"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.SnootyProject",children:(0,s.jsx)(n.code,{children:"SnootyProject"})}),"[] }>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-46",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts#L33",children:"mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts:33"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pagebloburl",children:"pageBlobUrl"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"pageBlobUrl"}),"(",(0,s.jsx)(n.code,{children:"args"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-27",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args.branch"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args.filePath?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"string"}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args.repoUrl"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-27",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-47",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts#L73",children:"mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts:73"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"parsesnootytable",children:"parseSnootyTable"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"parseSnootyTable"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#table",children:(0,s.jsx)(n.code,{children:"Table"})})]}),"\n",(0,s.jsx)(n.p,{children:"Turns a Snooty AST table into a Table data structure."}),"\n",(0,s.jsxs)(n.p,{children:['Tables in Snooty are represented as lists of lists under a list-table\ndirective. There is no concept for "rows" or "cells" in the AST, which adds\nfriction when working with the Snooty AST directly -- especially considering\nthat list already have rendering logic that differs from tables. Having an\nintermediate data structure ',(0,s.jsx)(n.code,{children:"Table"})," with ",(0,s.jsx)(n.code,{children:"Row"}),"s and ",(0,s.jsx)(n.code,{children:"Cell"}),"s makes it easier to\nwork with and render."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-28",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-28",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#table",children:(0,s.jsx)(n.code,{children:"Table"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-48",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L90",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:90"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"preparesnootysources",children:"prepareSnootySources"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"prepareSnootySources"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})," & { ",(0,s.jsx)(n.code,{children:"_baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_currentBranch"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_snootyProjectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_version?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[]>"]}),"\n",(0,s.jsx)(n.p,{children:"Fill the details of the defined Snooty data sources with the info in the\nSnooty Data API projects endpoint."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-29",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"projects"})]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#locallyspecifiedsnootyprojectconfig",children:(0,s.jsx)(n.code,{children:"LocallySpecifiedSnootyProjectConfig"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"snootyDataApiBaseUrl"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-29",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})," & { ",(0,s.jsx)(n.code,{children:"_baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_currentBranch"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_snootyProjectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_version?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-49",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts#L102",children:"mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts:102"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"removemarkdownimagesandlinks",children:"removeMarkdownImagesAndLinks"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"removeMarkdownImagesAndLinks"}),"(",(0,s.jsx)(n.code,{children:"content"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Utility function to remove markdown images and links from a string.\nUseful if you do not want to include images and links in content,\nwhich can add significantly add to the token count when creating embeddings\nwhile also diluting the semantic meaning of the content."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-30",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-30",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-50",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/removeMarkdownImagesAndLinks.ts#L7",children:"mongodb-rag-ingest/src/sources/removeMarkdownImagesAndLinks.ts:7"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"rendercells",children:"renderCells"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"renderCells"}),"(",(0,s.jsx)(n.code,{children:"cells"}),", ",(0,s.jsx)(n.code,{children:"options"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-31",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"cells"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#cell",children:(0,s.jsx)(n.code,{children:"Cell"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"options"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"RenderTableElementOptions"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-31",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-51",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L43",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:43"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"renderrows",children:"renderRows"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"renderRows"}),"(",(0,s.jsx)(n.code,{children:"rows"}),", ",(0,s.jsx)(n.code,{children:"options"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-32",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"rows"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#row",children:(0,s.jsx)(n.code,{children:"Row"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"options"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"RenderTableElementOptions"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-32",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-52",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L34",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:34"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"rendersnootytable",children:"renderSnootyTable"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"renderSnootyTable"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Return a string of MD from a Snooty AST node."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-33",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-33",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-53",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L10",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:10"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"rsttosnootyast",children:"rstToSnootyAst"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"rstToSnootyAst"}),"(",(0,s.jsx)(n.code,{children:"rst"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-34",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"rst"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-34",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-54",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/rstToSnootyAst.ts#L5",children:"mongodb-rag-ingest/src/sources/snooty/rstToSnootyAst.ts:5"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootyasttomd",children:"snootyAstToMd"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"snootyAstToMd"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Renders a snooty AST node as markdown."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-35",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-35",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-55",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/snootyAstToMd.ts#L8",children:"mongodb-rag-ingest/src/sources/snooty/snootyAstToMd.ts:8"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootyasttoopenapispec",children:"snootyAstToOpenApiSpec"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"snootyAstToOpenApiSpec"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-36",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-36",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-56",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/snootyAstToOpenApiSpec.ts#L4",children:"mongodb-rag-ingest/src/sources/snooty/snootyAstToOpenApiSpec.ts:4"})})]})}function a(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>i});var s=t(67294);const r={},d=s.createContext(r);function i(e){const n=s.useContext(d);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(d.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9763],{12189:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>a,frontMatter:()=>d,metadata:()=>l,toc:()=>o});var s=t(85893),r=t(11151);const d={id:"sources",title:"Module: sources",sidebar_label:"sources",sidebar_position:0,custom_edit_url:null},i=void 0,l={id:"reference/ingest/modules/sources",title:"Module: sources",description:"Interfaces",source:"@site/docs/reference/ingest/modules/sources.md",sourceDirName:"reference/ingest/modules",slug:"/reference/ingest/modules/sources",permalink:"/chatbot/reference/ingest/modules/sources",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"sources",title:"Module: sources",sidebar_label:"sources",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"embed",permalink:"/chatbot/reference/ingest/modules/embed"},next:{title:"sources.Branch",permalink:"/chatbot/reference/ingest/interfaces/sources.Branch"}},c={},o=[{value:"Interfaces",id:"interfaces",level:2},{value:"Type Aliases",id:"type-aliases",level:2},{value:"Cell",id:"cell",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"DataSource",id:"datasource",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"DevCenterEntry",id:"devcenterentry",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"DevCenterProjectConfig",id:"devcenterprojectconfig",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"FilterFunc",id:"filterfunc",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-4",level:4},{value:"GetSnootyProjectsResponse",id:"getsnootyprojectsresponse",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"HandleHtmlPageFuncOptions",id:"handlehtmlpagefuncoptions",level:3},{value:"Type declaration",id:"type-declaration-5",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"HandlePageFunc",id:"handlepagefunc",level:3},{value:"Type declaration",id:"type-declaration-6",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-7",level:4},{value:"LocallySpecifiedSnootyProjectConfig",id:"locallyspecifiedsnootyprojectconfig",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"MakeCodeOnGithubTextDataSourceParams",id:"makecodeongithubtextdatasourceparams",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"MakeGitHubDataSourceArgs",id:"makegithubdatasourceargs",level:3},{value:"Type declaration",id:"type-declaration-7",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"MakeMdOnGithubDataSourceParams",id:"makemdongithubdatasourceparams",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"MakeSnootyDataSourceArgs",id:"makesnootydatasourceargs",level:3},{value:"Type declaration",id:"type-declaration-8",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"Row",id:"row",level:3},{value:"Type declaration",id:"type-declaration-9",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"SnootyManifestEntry",id:"snootymanifestentry",level:3},{value:"Type declaration",id:"type-declaration-10",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"SnootyNode",id:"snootynode",level:3},{value:"Index signature",id:"index-signature",level:4},{value:"Type declaration",id:"type-declaration-11",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"SnootyPageData",id:"snootypagedata",level:3},{value:"Type declaration",id:"type-declaration-12",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"SnootyPageEntry",id:"snootypageentry",level:3},{value:"Defined in",id:"defined-in-17",level:4},{value:"SnootyProjectConfig",id:"snootyprojectconfig",level:3},{value:"Defined in",id:"defined-in-18",level:4},{value:"SnootyProjectsInfo",id:"snootyprojectsinfo",level:3},{value:"Type declaration",id:"type-declaration-13",level:4},{value:"Defined in",id:"defined-in-19",level:4},{value:"SnootyTextNode",id:"snootytextnode",level:3},{value:"Defined in",id:"defined-in-20",level:4},{value:"Table",id:"table",level:3},{value:"Type declaration",id:"type-declaration-14",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"Functions",id:"functions",level:2},{value:"extractHtmlH1",id:"extracthtmlh1",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-22",level:4},{value:"extractTags",id:"extracttags",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"filterOnlyPublicActiveTiCatalogItems",id:"filteronlypublicactiveticatalogitems",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-24",level:4},{value:"getAcquitTestsFromGithubRepo",id:"getacquittestsfromgithubrepo",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-25",level:4},{value:"getRelevantFilePathsInDir",id:"getrelevantfilepathsindir",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-26",level:4},{value:"getRelevantFilesAsStrings",id:"getrelevantfilesasstrings",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-27",level:4},{value:"getRepoLocally",id:"getrepolocally",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-28",level:4},{value:"getTitleFromSnootyAst",id:"gettitlefromsnootyast",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-29",level:4},{value:"getTitleFromSnootyOpenApiSpecAst",id:"gettitlefromsnootyopenapispecast",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-30",level:4},{value:"handleHtmlDocument",id:"handlehtmldocument",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-31",level:4},{value:"handlePage",id:"handlepage",level:3},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-12",level:4},{value:"Defined in",id:"defined-in-32",level:4},{value:"makeAcquitRequireMdOnGithubDataSource",id:"makeacquitrequiremdongithubdatasource",level:3},{value:"Parameters",id:"parameters-13",level:4},{value:"Returns",id:"returns-13",level:4},{value:"Defined in",id:"defined-in-33",level:4},{value:"makeCodeOnGithubTextDataSource",id:"makecodeongithubtextdatasource",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Defined in",id:"defined-in-34",level:4},{value:"makeDevCenterDataSource",id:"makedevcenterdatasource",level:3},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Defined in",id:"defined-in-35",level:4},{value:"makeDevCenterPage",id:"makedevcenterpage",level:3},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-16",level:4},{value:"Defined in",id:"defined-in-36",level:4},{value:"makeDevCenterPageBody",id:"makedevcenterpagebody",level:3},{value:"Parameters",id:"parameters-17",level:4},{value:"Returns",id:"returns-17",level:4},{value:"Defined in",id:"defined-in-37",level:4},{value:"makeGitDataSource",id:"makegitdatasource",level:3},{value:"Parameters",id:"parameters-18",level:4},{value:"Returns",id:"returns-18",level:4},{value:"Defined in",id:"defined-in-38",level:4},{value:"makeGitHubDataSource",id:"makegithubdatasource",level:3},{value:"Parameters",id:"parameters-19",level:4},{value:"Returns",id:"returns-19",level:4},{value:"Defined in",id:"defined-in-39",level:4},{value:"makeLangChainDocumentLoaderDataSource",id:"makelangchaindocumentloaderdatasource",level:3},{value:"Parameters",id:"parameters-20",level:4},{value:"Returns",id:"returns-20",level:4},{value:"Defined in",id:"defined-in-40",level:4},{value:"makeMdOnGithubDataSource",id:"makemdongithubdatasource",level:3},{value:"Parameters",id:"parameters-21",level:4},{value:"Returns",id:"returns-21",level:4},{value:"Defined in",id:"defined-in-41",level:4},{value:"makeMongoDbUniversityDataSource",id:"makemongodbuniversitydatasource",level:3},{value:"Parameters",id:"parameters-22",level:4},{value:"Returns",id:"returns-22",level:4},{value:"Defined in",id:"defined-in-42",level:4},{value:"makeRandomTmp",id:"makerandomtmp",level:3},{value:"Parameters",id:"parameters-23",level:4},{value:"Returns",id:"returns-23",level:4},{value:"Defined in",id:"defined-in-43",level:4},{value:"makeRstOnGitHubDataSource",id:"makerstongithubdatasource",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Parameters",id:"parameters-24",level:4},{value:"Returns",id:"returns-24",level:4},{value:"Defined in",id:"defined-in-44",level:4},{value:"makeSnootyDataSource",id:"makesnootydatasource",level:3},{value:"Parameters",id:"parameters-25",level:4},{value:"Returns",id:"returns-25",level:4},{value:"Defined in",id:"defined-in-45",level:4},{value:"makeSnootyProjectsInfo",id:"makesnootyprojectsinfo",level:3},{value:"Parameters",id:"parameters-26",level:4},{value:"Returns",id:"returns-26",level:4},{value:"Defined in",id:"defined-in-46",level:4},{value:"pageBlobUrl",id:"pagebloburl",level:3},{value:"Parameters",id:"parameters-27",level:4},{value:"Returns",id:"returns-27",level:4},{value:"Defined in",id:"defined-in-47",level:4},{value:"parseSnootyTable",id:"parsesnootytable",level:3},{value:"Parameters",id:"parameters-28",level:4},{value:"Returns",id:"returns-28",level:4},{value:"Defined in",id:"defined-in-48",level:4},{value:"prepareSnootySources",id:"preparesnootysources",level:3},{value:"Parameters",id:"parameters-29",level:4},{value:"Returns",id:"returns-29",level:4},{value:"Defined in",id:"defined-in-49",level:4},{value:"removeMarkdownImagesAndLinks",id:"removemarkdownimagesandlinks",level:3},{value:"Parameters",id:"parameters-30",level:4},{value:"Returns",id:"returns-30",level:4},{value:"Defined in",id:"defined-in-50",level:4},{value:"renderCells",id:"rendercells",level:3},{value:"Parameters",id:"parameters-31",level:4},{value:"Returns",id:"returns-31",level:4},{value:"Defined in",id:"defined-in-51",level:4},{value:"renderRows",id:"renderrows",level:3},{value:"Parameters",id:"parameters-32",level:4},{value:"Returns",id:"returns-32",level:4},{value:"Defined in",id:"defined-in-52",level:4},{value:"renderSnootyTable",id:"rendersnootytable",level:3},{value:"Parameters",id:"parameters-33",level:4},{value:"Returns",id:"returns-33",level:4},{value:"Defined in",id:"defined-in-53",level:4},{value:"rstToSnootyAst",id:"rsttosnootyast",level:3},{value:"Parameters",id:"parameters-34",level:4},{value:"Returns",id:"returns-34",level:4},{value:"Defined in",id:"defined-in-54",level:4},{value:"snootyAstToMd",id:"snootyasttomd",level:3},{value:"Parameters",id:"parameters-35",level:4},{value:"Returns",id:"returns-35",level:4},{value:"Defined in",id:"defined-in-55",level:4},{value:"snootyAstToOpenApiSpec",id:"snootyasttoopenapispec",level:3},{value:"Parameters",id:"parameters-36",level:4},{value:"Returns",id:"returns-36",level:4},{value:"Defined in",id:"defined-in-56",level:4}];function h(e){const n={a:"a",blockquote:"blockquote",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.Branch",children:"Branch"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag",children:"DevCenterEntryTag"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams",children:"MakeGitDataSourceParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams",children:"MakeLangChainDocumentLoaderDataSourceParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams",children:"MakeMongoDbUniversityDataSourceParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.ProjectBase",children:"ProjectBase"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.SnootyProject",children:"SnootyProject"})}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,s.jsx)(n.h3,{id:"cell",children:"Cell"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Cell"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"columnName?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L66",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:66"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"datasource",children:"DataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"DataSource"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"Represents a source of page data."}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"name"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The unique name among registered data sources."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"fetchPages"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Page"}),"[]>"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Fetches pages in the data source."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/DataSource.ts#L6",children:"mongodb-rag-ingest/src/sources/DataSource.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"devcenterentry",children:"DevCenterEntry"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"DevCenterEntry"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"calculated_slug"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"null"})]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"description"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"name"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"tags"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag",children:(0,s.jsx)(n.code,{children:"DevCenterEntryTag"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"type"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L18",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:18"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"devcenterprojectconfig",children:"DevCenterProjectConfig"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"DevCenterProjectConfig"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.ProjectBase",children:(0,s.jsx)(n.code,{children:"ProjectBase"})})," & { ",(0,s.jsx)(n.code,{children:"baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"collectionName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"databaseName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"devcenter"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L10",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:10"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filterfunc",children:"FilterFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FilterFunc"}),": (",(0,s.jsx)(n.code,{children:"path"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"path"}),"): ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.h5,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"path"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"boolean"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L159",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:159"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getsnootyprojectsresponse",children:"GetSnootyProjectsResponse"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"GetSnootyProjectsResponse"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsxs)(n.p,{children:["Schema for API response from ",(0,s.jsx)(n.a,{href:"https://snooty-data-api.mongodb.com/prod/projects",children:"https://snooty-data-api.mongodb.com/prod/projects"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"data"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.SnootyProject",children:(0,s.jsx)(n.code,{children:"SnootyProject"})}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts#L12",children:"mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts:12"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"handlehtmlpagefuncoptions",children:"HandleHtmlPageFuncOptions"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"HandleHtmlPageFuncOptions"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-5",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"extractMetadata?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"domDoc"}),": ",(0,s.jsx)(n.code,{children:"Document"}),") => ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["Extract metadata from page DOM. Added to the ",(0,s.jsx)(n.code,{children:"Page.metadata"})," field. If a in the result of ",(0,s.jsx)(n.code,{children:"extractMetadata()"})," is the same as a key in ",(0,s.jsx)(n.code,{children:"metadata"}),", the ",(0,s.jsx)(n.code,{children:"extractMetadata()"})," key will override it."]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"extractTitle?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"domDoc"}),": ",(0,s.jsx)(n.code,{children:"Document"}),") => ",(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"undefined"})]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["Extract ",(0,s.jsx)(n.code,{children:"Page.title"})," from page content and path."]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"metadata?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"PageMetadata"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Page.metadata"})," passed from config. Included in all documents"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"pathToPageUrl"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"path"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"string"})]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["Construct the ",(0,s.jsx)(n.code,{children:"Page.url"})," from page path."]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"postProcessMarkdown?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"markdown"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Transform Markdown once it's been generated"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"removeElements"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"domDoc"}),": ",(0,s.jsx)(n.code,{children:"Document"}),") => ",(0,s.jsx)(n.code,{children:"Element"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Returns an array of DOM elements to be removed from the parsed document."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/handleHtmlDocument.ts#L6",children:"mongodb-rag-ingest/src/sources/handleHtmlDocument.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"handlepagefunc",children:"HandlePageFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"HandlePageFunc"}),": (",(0,s.jsx)(n.code,{children:"path"}),": ",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),"> | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-6",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"path"}),", ",(0,s.jsx)(n.code,{children:"content"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),"> | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">[]>"]}),"\n",(0,s.jsxs)(n.p,{children:["Function to convert a file in the repo into a ",(0,s.jsx)(n.code,{children:"Page"})," or ",(0,s.jsx)(n.code,{children:"Page[]"}),"."]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"path"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Path to file in repo"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Contents of file in repo"})]})]})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-1",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),"> | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L20",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:20"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"locallyspecifiedsnootyprojectconfig",children:"LocallySpecifiedSnootyProjectConfig"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"LocallySpecifiedSnootyProjectConfig"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootyprojectconfig",children:(0,s.jsx)(n.code,{children:"SnootyProjectConfig"})}),", ",(0,s.jsx)(n.code,{children:'"baseUrl"'})," | ",(0,s.jsx)(n.code,{children:'"currentBranch"'})," | ",(0,s.jsx)(n.code,{children:'"version"'}),"> & { ",(0,s.jsx)(n.code,{children:"baseUrl?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"currentBranch?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"versionNameOverride?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Specifies a locally-overrideable Snooty project configuration."}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"baseUrl"})," and ",(0,s.jsx)(n.code,{children:"currentBranch"}),", if undefined, will be filled in by the Snooty\nData API GET projects endpoint. You can set them yourself to override the data\nin the Snooty Data API. ",(0,s.jsx)(n.code,{children:"currentBranch"})," will be the name of the first branch\nentry with ",(0,s.jsx)(n.code,{children:"isStableBranch"})," set to true in the Data API response."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L86",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:86"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makecodeongithubtextdatasourceparams",children:"MakeCodeOnGithubTextDataSourceParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeCodeOnGithubTextDataSourceParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})}),", ",(0,s.jsx)(n.code,{children:'"handleDocumentInRepo"'}),"> & { ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"PageMetadata"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts#L9",children:"mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makegithubdatasourceargs",children:"MakeGitHubDataSourceArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeGitHubDataSourceArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-7",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"filter?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams",children:(0,s.jsx)(n.code,{children:"MakeGitDataSourceParams"})}),"[",(0,s.jsx)(n.code,{children:'"filter"'}),"]"]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["Filter function to filter out files from the repo. Using this overrides the ",(0,s.jsx)(n.code,{children:"repoLoaderOptions.ignorePaths"})," option. Note that file paths will have a leading slash (e.g. ",(0,s.jsx)(n.code,{children:"/somedir/somefile.txt"}),")."]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"name"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The data source name."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"repoLoaderOptions?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.code,{children:"GithubRepoLoaderParams"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The branch to fetch."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"repoUrl"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The GitHub repo URL."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"handleDocumentInRepo"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"document"}),": ",(0,s.jsx)(n.code,{children:"Document"}),"<{ ",(0,s.jsx)(n.code,{children:"source"}),": ",(0,s.jsx)(n.code,{children:"string"})," }>) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),"> | ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">[]>"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Handle a given file in the repo. Any number of Pages can be returned for a given file. The exact details depend on the given repo. Return undefined to skip this document. Page sourceName will be overridden by the name passed to makeGitHubDataSource."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitHubDataSource.ts#L7",children:"mongodb-rag-ingest/src/sources/GitHubDataSource.ts:7"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemdongithubdatasourceparams",children:"MakeMdOnGithubDataSourceParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeMdOnGithubDataSourceParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})}),", ",(0,s.jsx)(n.code,{children:'"handleDocumentInRepo"'}),"> & { ",(0,s.jsx)(n.code,{children:"extractMetadata?"}),": (",(0,s.jsx)(n.code,{children:"pageContent"}),": ",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"frontMatter?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">) => ",(0,s.jsx)(n.code,{children:"PageMetadata"})," ; ",(0,s.jsx)(n.code,{children:"extractTitle?"}),": (",(0,s.jsx)(n.code,{children:"pageContent"}),": ",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"frontMatter?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">) => ",(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"undefined"})," ; ",(0,s.jsx)(n.code,{children:"filter?"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})}),"[",(0,s.jsx)(n.code,{children:'"filter"'}),"] ; ",(0,s.jsx)(n.code,{children:"frontMatter?"}),": { ",(0,s.jsx)(n.code,{children:"format?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"process"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"separator?"}),": ",(0,s.jsx)(n.code,{children:"string"})," } ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"PageMetadata"})," ; ",(0,s.jsx)(n.code,{children:"pathToPageUrl"}),": (",(0,s.jsx)(n.code,{children:"pathInRepo"}),": ",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"frontMatter?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">) => ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/MdOnGithubDataSource.ts#L9",children:"mongodb-rag-ingest/src/sources/MdOnGithubDataSource.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makesnootydatasourceargs",children:"MakeSnootyDataSourceArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeSnootyDataSourceArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-8",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"name"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The data source name."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"project"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootyprojectconfig",children:(0,s.jsx)(n.code,{children:"SnootyProjectConfig"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The configuration for the Snooty project."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"snootyDataApiBaseUrl"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The base URL for Snooty Data API requests."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"version?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L95",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:95"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"row",children:"Row"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Row"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-9",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"cells"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#cell",children:(0,s.jsx)(n.code,{children:"Cell"})}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L71",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:71"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootymanifestentry",children:"SnootyManifestEntry"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyManifestEntry"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-10",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"data"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"unknown"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"type"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:'"page"'})," | ",(0,s.jsx)(n.code,{children:'"timestamp"'})," | ",(0,s.jsx)(n.code,{children:'"metadata"'})," | ",(0,s.jsx)(n.code,{children:'"asset"'})]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L13",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:13"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootynode",children:"SnootyNode"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyNode"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"A node in the Snooty AST."}),"\n",(0,s.jsx)(n.h4,{id:"index-signature",children:"Index signature"}),"\n",(0,s.jsxs)(n.p,{children:["\u25aa [key: ",(0,s.jsx)(n.code,{children:"string"}),"]: ",(0,s.jsx)(n.code,{children:"unknown"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-11",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"children?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootytextnode",children:(0,s.jsx)(n.code,{children:"SnootyTextNode"})}),")[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"options?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"type"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-15",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L29",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:29"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootypagedata",children:"SnootyPageData"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyPageData"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"A page in the Snooty manifest."}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-12",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ast"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"deleted"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"boolean"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"page_id"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"tags?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-16",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L48",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:48"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootypageentry",children:"SnootyPageEntry"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyPageEntry"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootymanifestentry",children:(0,s.jsx)(n.code,{children:"SnootyManifestEntry"})})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootypagedata",children:(0,s.jsx)(n.code,{children:"SnootyPageData"})})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"page"'})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Represents a page entry in a Snooty manifest file."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-17",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L21",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootyprojectconfig",children:"SnootyProjectConfig"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyProjectConfig"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.ProjectBase",children:(0,s.jsx)(n.code,{children:"ProjectBase"})})," & { ",(0,s.jsx)(n.code,{children:"baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"currentBranch"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"snooty"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-18",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L55",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:55"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootyprojectsinfo",children:"SnootyProjectsInfo"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyProjectsInfo"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-13",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"getBaseUrl"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"branchName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"projectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"getCurrentBranch"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"projectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.Branch",children:(0,s.jsx)(n.code,{children:"Branch"})}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"getCurrentVersionName"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"projectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"}),">"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-19",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts#L16",children:"mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts:16"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootytextnode",children:"SnootyTextNode"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SnootyTextNode"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})," & { ",(0,s.jsx)(n.code,{children:"children"}),": ",(0,s.jsx)(n.code,{children:"never"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"text"'})," ; ",(0,s.jsx)(n.code,{children:"value"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.p,{children:"A Snooty AST node with a text value."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-20",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L39",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:39"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"table",children:"Table"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Table"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-14",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"dataRows"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#row",children:(0,s.jsx)(n.code,{children:"Row"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"headerRows"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#row",children:(0,s.jsx)(n.code,{children:"Row"})}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-21",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L75",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:75"})}),"\n",(0,s.jsx)(n.h2,{id:"functions",children:"Functions"}),"\n",(0,s.jsx)(n.h3,{id:"extracthtmlh1",children:"extractHtmlH1"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"extractHtmlH1"}),"(",(0,s.jsx)(n.code,{children:"domDoc"}),"): ",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"domDoc"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Document"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-22",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/handleHtmlDocument.ts#L95",children:"mongodb-rag-ingest/src/sources/handleHtmlDocument.ts:95"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"extracttags",children:"extractTags"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"extractTags"}),"(",(0,s.jsx)(n.code,{children:"tags"}),"): ",(0,s.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,s.jsx)(n.p,{children:"Extract relevant tags from dev center entry tags"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"tags"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag",children:(0,s.jsx)(n.code,{children:"DevCenterEntryTag"})}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-23",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L98",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:98"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filteronlypublicactiveticatalogitems",children:"filterOnlyPublicActiveTiCatalogItems"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"filterOnlyPublicActiveTiCatalogItems"}),"(",(0,s.jsx)(n.code,{children:"item"}),"): ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.p,{children:"Filter function to only include public, published,\nand non-legacy MongoDB University content."}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:["\u26a0\ufe0f ",(0,s.jsx)(n.strong,{children:"Important"})," \u26a0\ufe0f"]}),"\n",(0,s.jsxs)(n.p,{children:["You should include ",(0,s.jsx)(n.em,{children:"only"})," this content or a subset of it\nin externally facing applications."]}),"\n"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"item"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"TiCatalogItem"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"boolean"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-24",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L38",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:38"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getacquittestsfromgithubrepo",children:"getAcquitTestsFromGithubRepo"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getAcquitTestsFromGithubRepo"}),"(",(0,s.jsx)(n.code,{children:"repoUrl"}),", ",(0,s.jsx)(n.code,{children:"repoLoaderOptions"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),"[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-5",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"repoUrl"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"repoLoaderOptions"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.code,{children:"GithubRepoLoaderParams"}),">"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),"[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-25",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/AcquitRequireMdOnGithubDataSource.ts#L96",children:"mongodb-rag-ingest/src/sources/AcquitRequireMdOnGithubDataSource.ts:96"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getrelevantfilepathsindir",children:"getRelevantFilePathsInDir"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getRelevantFilePathsInDir"}),"(",(0,s.jsx)(n.code,{children:"directoryPath"}),", ",(0,s.jsx)(n.code,{children:"filter"}),", ",(0,s.jsx)(n.code,{children:"fileList?"}),"): ",(0,s.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-6",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Default value"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"directoryPath"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"undefined"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"filter"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#filterfunc",children:(0,s.jsx)(n.code,{children:"FilterFunc"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"undefined"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"fileList"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"[]"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-6",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-26",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L161",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:161"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getrelevantfilesasstrings",children:"getRelevantFilesAsStrings"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getRelevantFilesAsStrings"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"string"}),">>"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-7",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"directoryPath"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"filter"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#filterfunc",children:(0,s.jsx)(n.code,{children:"FilterFunc"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-7",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"string"}),">>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-27",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L182",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:182"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"getrepolocally",children:"getRepoLocally"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getRepoLocally"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"localPath"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"options?"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"TaskOptions"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"repoPath"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-28",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L136",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:136"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"gettitlefromsnootyast",children:"getTitleFromSnootyAst"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getTitleFromSnootyAst"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-9",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-29",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/snootyAstToMd.ts#L196",children:"mongodb-rag-ingest/src/sources/snooty/snootyAstToMd.ts:196"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"gettitlefromsnootyopenapispecast",children:"getTitleFromSnootyOpenApiSpecAst"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"getTitleFromSnootyOpenApiSpecAst"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-10",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-30",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/snootyAstToOpenApiSpec.ts#L43",children:"mongodb-rag-ingest/src/sources/snooty/snootyAstToOpenApiSpec.ts:43"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"handlehtmldocument",children:"handleHtmlDocument"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"handleHtmlDocument"}),"(",(0,s.jsx)(n.code,{children:"path"}),", ",(0,s.jsx)(n.code,{children:"content"}),", ",(0,s.jsx)(n.code,{children:"options"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">>"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-11",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"path"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"options"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#handlehtmlpagefuncoptions",children:(0,s.jsx)(n.code,{children:"HandleHtmlPageFuncOptions"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-11",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"Page"}),", ",(0,s.jsx)(n.code,{children:'"sourceName"'}),">>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-31",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/handleHtmlDocument.ts#L30",children:"mongodb-rag-ingest/src/sources/handleHtmlDocument.ts:30"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"handlepage",children:"handlePage"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"handlePage"}),"(",(0,s.jsx)(n.code,{children:"page"}),", ",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Page"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-12",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"page"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootypagedata",children:(0,s.jsx)(n.code,{children:"SnootyPageData"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"baseUrl"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"productName?"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"sourceName"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"tags"})]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"version?"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-12",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Page"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-32",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L264",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:264"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeacquitrequiremdongithubdatasource",children:"makeAcquitRequireMdOnGithubDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeAcquitRequireMdOnGithubDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Loads an MD/Acquit docs site from a GitHub repo.\n",(0,s.jsx)(n.a,{href:"https://www.npmjs.com/package/acquit",children:"Acquit"})," is a tool for writing tests in comments,\nand then extracting them into a test suite.\nThis function loads the tests from the repo, and then transforms the document content\nto include tests from the test suite in the document.\nAcquit is used in the ",(0,s.jsx)(n.a,{href:"https://mongoosejs.com/docs",children:"Mongoose ODM"})," documentation.\nThis data source assumes that the test files are in the same repo as the docs."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-13",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})}),", ",(0,s.jsx)(n.code,{children:'"handleDocumentInRepo"'}),"> & { ",(0,s.jsx)(n.code,{children:"acquitCodeBlockLanguageReplacement?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"PageMetadata"})," ; ",(0,s.jsx)(n.code,{children:"pathToPageUrl"}),": (",(0,s.jsx)(n.code,{children:"pathInRepo"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"testFileLoaderOptions"}),": ",(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.code,{children:"GithubRepoLoaderParams"}),"> }"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-13",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-33",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/AcquitRequireMdOnGithubDataSource.ts#L21",children:"mongodb-rag-ingest/src/sources/AcquitRequireMdOnGithubDataSource.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makecodeongithubtextdatasource",children:"makeCodeOnGithubTextDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeCodeOnGithubTextDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.p,{children:"Loads source code files from a GitHub repo."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-14",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makecodeongithubtextdatasourceparams",children:(0,s.jsx)(n.code,{children:"MakeCodeOnGithubTextDataSourceParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-14",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-34",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts#L21",children:"mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedevcenterdatasource",children:"makeDevCenterDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDevCenterDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-15",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#devcenterprojectconfig",children:(0,s.jsx)(n.code,{children:"DevCenterProjectConfig"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-15",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-35",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L32",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:32"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedevcenterpage",children:"makeDevCenterPage"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDevCenterPage"}),"(",(0,s.jsx)(n.code,{children:"document"}),", ",(0,s.jsx)(n.code,{children:"name"}),", ",(0,s.jsx)(n.code,{children:"baseUrl"}),"): ",(0,s.jsx)(n.code,{children:"Page"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-16",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"document"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#devcenterentry",children:(0,s.jsx)(n.code,{children:"DevCenterEntry"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"name"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"baseUrl"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-16",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Page"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-36",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L67",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:67"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedevcenterpagebody",children:"makeDevCenterPageBody"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDevCenterPageBody"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-17",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"content"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"title?"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-17",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-37",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L109",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:109"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makegitdatasource",children:"makeGitDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeGitDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})]}),"\n",(0,s.jsx)(n.p,{children:"Loads and processes files from a Git repo (can be hosted anywhere)."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-18",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams",children:(0,s.jsx)(n.code,{children:"MakeGitDataSourceParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-18",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-38",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L61",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:61"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makegithubdatasource",children:"makeGitHubDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeGitHubDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})]}),"\n",(0,s.jsx)(n.p,{children:"Loads an arbitrary GitHub repo and converts its contents into pages."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-19",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-19",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-39",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitHubDataSource.ts#L50",children:"mongodb-rag-ingest/src/sources/GitHubDataSource.ts:50"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makelangchaindocumentloaderdatasource",children:"makeLangChainDocumentLoaderDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeLangChainDocumentLoaderDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Create a data source that loads pages from a ",(0,s.jsx)(n.a,{href:"https://js.langchain.com/docs/modules/data_connection/document_loaders/",children:"Langchain document loader"}),"."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-20",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams",children:(0,s.jsx)(n.code,{children:"MakeLangChainDocumentLoaderDataSourceParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-20",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-40",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts#L37",children:"mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts:37"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemdongithubdatasource",children:"makeMdOnGithubDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMdOnGithubDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.p,{children:"Loads an .md/.mdx docs site from a GitHub repo."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-21",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makemdongithubdatasourceparams",children:(0,s.jsx)(n.code,{children:"MakeMdOnGithubDataSourceParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-21",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-41",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/MdOnGithubDataSource.ts#L72",children:"mongodb-rag-ingest/src/sources/MdOnGithubDataSource.ts:72"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemongodbuniversitydatasource",children:"makeMongoDbUniversityDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMongoDbUniversityDataSource"}),"(",(0,s.jsx)(n.code,{children:"params"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})]}),"\n",(0,s.jsx)(n.p,{children:"Data source constructor function for ingesting data\nfrom the MongoDB University Data API.\n(This is an internal API.)"}),"\n",(0,s.jsx)(n.h4,{id:"parameters-22",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"params"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams",children:(0,s.jsx)(n.code,{children:"MakeMongoDbUniversityDataSourceParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-22",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-42",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L69",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:69"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makerandomtmp",children:"makeRandomTmp"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeRandomTmp"}),"(",(0,s.jsx)(n.code,{children:"prefix"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-23",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"prefix"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"prefix for the temporary directory name"})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-23",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-43",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L127",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:127"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makerstongithubdatasource",children:"makeRstOnGitHubDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeRstOnGitHubDataSource"}),"<",(0,s.jsx)(n.code,{children:"MetadataType"}),">(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})]}),"\n",(0,s.jsx)(n.p,{children:"Loads an rST docs site from a GitHub repo."}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MetadataType"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-24",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makegithubdatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeGitHubDataSourceArgs"})}),", ",(0,s.jsx)(n.code,{children:'"handleDocumentInRepo"'}),"> & { ",(0,s.jsx)(n.code,{children:"getMetadata?"}),": (",(0,s.jsx)(n.code,{children:"info"}),": { ",(0,s.jsx)(n.code,{children:"bodyMarkdown"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"document"}),": ",(0,s.jsx)(n.code,{children:"Document"}),"<{ ",(0,s.jsx)(n.code,{children:"source"}),": ",(0,s.jsx)(n.code,{children:"string"})," }> ; ",(0,s.jsx)(n.code,{children:"title?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }) => ",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"MetadataType"})," ; ",(0,s.jsx)(n.code,{children:"pathToPageUrl"}),": (",(0,s.jsx)(n.code,{children:"pathInRepo"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"string"})," }"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-24",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-44",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/RstOnGitHubDataSource.ts#L13",children:"mongodb-rag-ingest/src/sources/RstOnGitHubDataSource.ts:13"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makesnootydatasource",children:"makeSnootyDataSource"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeSnootyDataSource"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})," & { ",(0,s.jsx)(n.code,{children:"_baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_currentBranch"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_snootyProjectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_version?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-25",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#makesnootydatasourceargs",children:(0,s.jsx)(n.code,{children:"MakeSnootyDataSourceArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-25",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})," & { ",(0,s.jsx)(n.code,{children:"_baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_currentBranch"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_snootyProjectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_version?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-45",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L114",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:114"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makesnootyprojectsinfo",children:"makeSnootyProjectsInfo"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeSnootyProjectsInfo"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootyprojectsinfo",children:(0,s.jsx)(n.code,{children:"SnootyProjectsInfo"})})," & { ",(0,s.jsx)(n.code,{children:"_data"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.SnootyProject",children:(0,s.jsx)(n.code,{children:"SnootyProject"})}),"[] }>"]}),"\n",(0,s.jsx)(n.p,{children:"Creates a SnootyProjectsInfo object from the Snooty Data API GET projects\nendpoint."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-26",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"snootyDataApiBaseUrl"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-26",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootyprojectsinfo",children:(0,s.jsx)(n.code,{children:"SnootyProjectsInfo"})})," & { ",(0,s.jsx)(n.code,{children:"_data"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.SnootyProject",children:(0,s.jsx)(n.code,{children:"SnootyProject"})}),"[] }>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-46",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts#L33",children:"mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts:33"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pagebloburl",children:"pageBlobUrl"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"pageBlobUrl"}),"(",(0,s.jsx)(n.code,{children:"args"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-27",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args.branch"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args.filePath?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"string"}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args.repoUrl"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-27",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-47",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts#L73",children:"mongodb-rag-ingest/src/sources/CodeOnGithubTextDataSource.ts:73"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"parsesnootytable",children:"parseSnootyTable"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"parseSnootyTable"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#table",children:(0,s.jsx)(n.code,{children:"Table"})})]}),"\n",(0,s.jsx)(n.p,{children:"Turns a Snooty AST table into a Table data structure."}),"\n",(0,s.jsxs)(n.p,{children:['Tables in Snooty are represented as lists of lists under a list-table\ndirective. There is no concept for "rows" or "cells" in the AST, which adds\nfriction when working with the Snooty AST directly -- especially considering\nthat list already have rendering logic that differs from tables. Having an\nintermediate data structure ',(0,s.jsx)(n.code,{children:"Table"})," with ",(0,s.jsx)(n.code,{children:"Row"}),"s and ",(0,s.jsx)(n.code,{children:"Cell"}),"s makes it easier to\nwork with and render."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-28",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-28",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#table",children:(0,s.jsx)(n.code,{children:"Table"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-48",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L90",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:90"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"preparesnootysources",children:"prepareSnootySources"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"prepareSnootySources"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})," & { ",(0,s.jsx)(n.code,{children:"_baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_currentBranch"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_snootyProjectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_version?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[]>"]}),"\n",(0,s.jsx)(n.p,{children:"Fill the details of the defined Snooty data sources with the info in the\nSnooty Data API projects endpoint."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-29",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"projects"})]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#locallyspecifiedsnootyprojectconfig",children:(0,s.jsx)(n.code,{children:"LocallySpecifiedSnootyProjectConfig"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"snootyDataApiBaseUrl"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-29",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(n.code,{children:"DataSource"})})," & { ",(0,s.jsx)(n.code,{children:"_baseUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_currentBranch"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_snootyProjectName"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"_version?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-49",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts#L102",children:"mongodb-rag-ingest/src/sources/snooty/SnootyProjectsInfo.ts:102"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"removemarkdownimagesandlinks",children:"removeMarkdownImagesAndLinks"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"removeMarkdownImagesAndLinks"}),"(",(0,s.jsx)(n.code,{children:"content"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Utility function to remove markdown images and links from a string.\nUseful if you do not want to include images and links in content,\nwhich can add significantly add to the token count when creating embeddings\nwhile also diluting the semantic meaning of the content."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-30",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-30",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-50",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/removeMarkdownImagesAndLinks.ts#L7",children:"mongodb-rag-ingest/src/sources/removeMarkdownImagesAndLinks.ts:7"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"rendercells",children:"renderCells"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"renderCells"}),"(",(0,s.jsx)(n.code,{children:"cells"}),", ",(0,s.jsx)(n.code,{children:"options"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-31",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"cells"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#cell",children:(0,s.jsx)(n.code,{children:"Cell"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"options"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"RenderTableElementOptions"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-31",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-51",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L43",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:43"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"renderrows",children:"renderRows"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"renderRows"}),"(",(0,s.jsx)(n.code,{children:"rows"}),", ",(0,s.jsx)(n.code,{children:"options"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-32",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"rows"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#row",children:(0,s.jsx)(n.code,{children:"Row"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"options"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"RenderTableElementOptions"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-32",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-52",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L34",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:34"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"rendersnootytable",children:"renderSnootyTable"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"renderSnootyTable"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Return a string of MD from a Snooty AST node."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-33",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-33",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-53",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts#L10",children:"mongodb-rag-ingest/src/sources/snooty/renderSnootyTable.ts:10"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"rsttosnootyast",children:"rstToSnootyAst"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"rstToSnootyAst"}),"(",(0,s.jsx)(n.code,{children:"rst"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-34",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"rst"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-34",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-54",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/rstToSnootyAst.ts#L5",children:"mongodb-rag-ingest/src/sources/snooty/rstToSnootyAst.ts:5"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootyasttomd",children:"snootyAstToMd"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"snootyAstToMd"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Renders a snooty AST node as markdown."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-35",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-35",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-55",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/snootyAstToMd.ts#L8",children:"mongodb-rag-ingest/src/sources/snooty/snootyAstToMd.ts:8"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"snootyasttoopenapispec",children:"snootyAstToOpenApiSpec"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"snootyAstToOpenApiSpec"}),"(",(0,s.jsx)(n.code,{children:"node"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-36",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"node"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#snootynode",children:(0,s.jsx)(n.code,{children:"SnootyNode"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-36",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"string"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-56",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/snootyAstToOpenApiSpec.ts#L4",children:"mongodb-rag-ingest/src/sources/snooty/snootyAstToOpenApiSpec.ts:4"})})]})}function a(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>i});var s=t(67294);const r={},d=s.createContext(r);function i(e){const n=s.useContext(d);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),s.createElement(d.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/19af0c64.35b9bd68.js b/assets/js/19af0c64.35b9bd68.js new file mode 100644 index 000000000..5ebda6691 --- /dev/null +++ b/assets/js/19af0c64.35b9bd68.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1538],{80600:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>l,contentTitle:()=>r,default:()=>u,frontMatter:()=>i,metadata:()=>s,toc:()=>c});var t=o(85893),a=o(11151);const i={},r="Configure the Evaluation CLI",s={id:"evaluation/index",title:"Configure the Evaluation CLI",description:"The MongoDB Chatbot Framework comes with an Evaluation CLI that allows you",source:"@site/docs/evaluation/index.md",sourceDirName:"evaluation",slug:"/evaluation/",permalink:"/chatbot/evaluation/",draft:!1,unlisted:!1,editUrl:"https://github.com/mongodb/chatbot/tree/main/docs/docs/evaluation/index.md",tags:[],version:"current",frontMatter:{},sidebar:"main",previous:{title:"Chatbot UI",permalink:"/chatbot/ui"},next:{title:"CLI Command Reference",permalink:"/chatbot/evaluation/command-reference"}},l={},c=[{value:"How It Works",id:"how-it-works",level:2},{value:"Install",id:"install",level:2},{value:"Create a Configuration File",id:"create-a-configuration-file",level:2},{value:"Define Configuration Files with TypeScript",id:"define-configuration-files-with-typescript",level:2},{value:"Example Configuration",id:"example-configuration",level:2},{value:"Additional Example Configurations",id:"additional-example-configurations",level:2}];function d(e){const n={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",li:"li",mermaid:"mermaid",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"configure-the-evaluation-cli",children:"Configure the Evaluation CLI"}),"\n",(0,t.jsx)(n.p,{children:"The MongoDB Chatbot Framework comes with an Evaluation CLI that allows you\nto evaluate the performance of your chatbot and its components."}),"\n",(0,t.jsx)(n.p,{children:"Evaluation is important to ensure that the chatbot is providing accurate and relevant responses to user queries.\nIt also helps you measure the effect of changes to the chatbot's components\nas you develop your application."}),"\n",(0,t.jsx)(n.p,{children:"The CLI evaluates the chatbot's performance by comparing the chatbot's responses to a set of questions with the expected answers."}),"\n",(0,t.jsx)(n.h2,{id:"how-it-works",children:"How It Works"}),"\n",(0,t.jsx)(n.p,{children:"The Evaluation CLI works by running a series of commands that generate, evaluate, and report on the performance of your chatbot."}),"\n",(0,t.jsx)(n.p,{children:"Here's a high-level overview of the process:"}),"\n",(0,t.jsx)(n.mermaid,{value:"graph LR\n generate[Generate] --\x3e evaluate[Evaluate]\n evaluate --\x3e report[Report]"}),"\n",(0,t.jsxs)(n.ol,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Generate Data"}),": Generate data for evaluation. You can pull data from test cases files, databases, or APIs. Generated data outputs to a ",(0,t.jsx)(n.code,{children:"GeneratedDataStore"}),"."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Evaluate Data"}),": Evaluate the generated data. You can evaluate the quality, faithfulness, and other aspects of the data. Evaluation outputs to the ",(0,t.jsx)(n.code,{children:"EvaluationStore"}),"."]}),"\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.strong,{children:"Report on Data"}),": Generate reports on an evaluation run. Reports output to the ",(0,t.jsx)(n.code,{children:"ReportStore"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["Each of these actions can be run with a command from the CLI.\nFor information on the available commands, refer to the ",(0,t.jsx)(n.a,{href:"/chatbot/evaluation/command-reference",children:"CLI Commands Reference"})," documentation."]}),"\n",(0,t.jsxs)(n.p,{children:["You can also run series of commands together in a pipeline.\nTo learn more about evaluation pipelines, refer to the ",(0,t.jsx)(n.a,{href:"./pipelines.md",children:"Pipelines"})," documentation."]}),"\n",(0,t.jsx)(n.h2,{id:"install",children:"Install"}),"\n",(0,t.jsx)(n.p,{children:"To install the Evaluation CLI, run the following command:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"npm i mongodb-chatbot-evaluation mongodb-chatbot-server\n"})}),"\n",(0,t.jsx)(n.h2,{id:"create-a-configuration-file",children:"Create a Configuration File"}),"\n",(0,t.jsxs)(n.p,{children:["The MongoDB Evaluation CLI uses a ",(0,t.jsx)(n.a,{href:"https://en.wikipedia.org/wiki/CommonJS",children:"CommonJS"}),"\nJavaScript configuration file to determine how to evaluate content."]}),"\n",(0,t.jsxs)(n.p,{children:["Every configuration file must export a ",(0,t.jsx)(n.a,{href:"/chatbot/reference/eval/modules#configconstructor",children:(0,t.jsx)(n.code,{children:"ConfigConstructor"})})," object as its default export."]}),"\n",(0,t.jsx)(n.p,{children:"You must either:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["Pass the path to a configuration file to every command with the ",(0,t.jsx)(n.code,{children:"--config"})," flag."]}),"\n",(0,t.jsxs)(n.li,{children:["Put a CommonJS file named ",(0,t.jsx)(n.code,{children:"eval.config.js"})," in the root of your project."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["For example, to run the ",(0,t.jsx)(n.code,{children:"generate"})," command with a configuration file called ",(0,t.jsx)(n.code,{children:"my-eval.config.js"})," and generation called ",(0,t.jsx)(n.code,{children:"my-conversations"}),", run the following command:"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"mongodb-chatbot-evaluation generate --config my-eval.config.js --name my-conversations\n"})}),"\n",(0,t.jsx)(n.h2,{id:"define-configuration-files-with-typescript",children:"Define Configuration Files with TypeScript"}),"\n",(0,t.jsx)(n.admonition,{title:"Use TypeScript Configuration Files!",type:"important",children:(0,t.jsxs)(n.p,{children:["We ",(0,t.jsx)(n.strong,{children:"strongly"})," recommend using TypeScript configuration files.\nThe typing system helps you ensure that your configuration is valid."]})}),"\n",(0,t.jsx)(n.p,{children:"You can use TypeScript to make your configuration file. This allows you to use\nthe type system to ensure that your configuration is valid."}),"\n",(0,t.jsxs)(n.p,{children:["You must compile your configuration file to ",(0,t.jsx)(n.strong,{children:"CommmonJS"})," before running the CLI.\nThe CLI only accepts CommonJS configuration files."]}),"\n",(0,t.jsxs)(n.p,{children:["You can build your CommonJS configuration file with ",(0,t.jsx)(n.code,{children:"tsc"}),":"]}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"tsc --module commonjs --target es2017 --outDir build eval.config.ts\n"})}),"\n",(0,t.jsx)(n.p,{children:"Then run the Evaluation CLI with the compiled configuration file:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-bash",children:"mongodb-chatbot-evaluation generate --config build/eval.config.js --name my-conversations\n"})}),"\n",(0,t.jsx)(n.h2,{id:"example-configuration",children:"Example Configuration"}),"\n",(0,t.jsx)(n.p,{children:"Here's a simple example configuration file for the Evaluation CLI.\nYou can use this configuration file as a starting point for your own configuration."}),"\n",(0,t.jsx)(n.p,{children:"Example configuration file:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:'// eval.config.ts\n\nimport {\n EvalConfig,\n makeMongoDbCommandMetadataStore,\n makeMongoDbGeneratedDataStore,\n makeGenerateConversationData,\n getConversationsTestCasesFromYaml,\n makeEvaluateConversationQuality,\n makeMongoDbEvaluationStore,\n makeMongoDbReportStore,\n mongodbResponseQualityExamples,\n reportStatsForBinaryEvalRun,\n makeEvaluateConversationFaithfulness,\n} from "mongodb-chatbot-evaluation";\nimport { makeMongoDbConversationsService } from "mongodb-chatbot-server";\nimport "dotenv/config";\nimport fs from "fs";\nimport path from "path";\nimport { MongoClient, assertEnvVars } from "mongodb-rag-core";\nimport { envVars } from "./envVars";\n\nexport default async () => {\n const {\n MONGODB_DATABASE_NAME,\n MONGODB_CONNECTION_URI,\n CONVERSATIONS_SERVER_BASE_URL,\n OPENAI_CHAT_COMPLETION_DEPLOYMENT,\n OPENAI_ENDPOINT,\n OPENAI_API_KEY,\n OPENAI_GPT_4_CHAT_COMPLETION_DEPLOYMENT,\n } = assertEnvVars(envVars);\n\n const { OpenAIClient, AzureKeyCredential } = await import("@azure/openai");\n const { OpenAI: LlamaIndexOpenAiLlm } = await import("llamaindex");\n const miscTestCases = getConversationsTestCasesFromYaml(\n fs.readFileSync(\n path.resolve(__dirname, "..", "testCases", "conversations.yml"),\n "utf8"\n )\n );\n const faqTestCases = getConversationsTestCasesFromYaml(\n fs.readFileSync(\n path.resolve(__dirname, "..", "testCases", "faq_conversations.yml"),\n "utf8"\n )\n );\n\n const storeDbOptions = {\n connectionUri: MONGODB_CONNECTION_URI,\n databaseName: MONGODB_DATABASE_NAME,\n };\n\n const mongodb = new MongoClient(MONGODB_CONNECTION_URI);\n await mongodb.connect();\n\n const db = mongodb.db(MONGODB_DATABASE_NAME);\n const conversations = makeMongoDbConversationsService(db);\n\n const evalConfig = {\n metadataStore: makeMongoDbCommandMetadataStore(storeDbOptions),\n generatedDataStore: makeMongoDbGeneratedDataStore(storeDbOptions),\n evaluationStore: makeMongoDbEvaluationStore(storeDbOptions),\n reportStore: makeMongoDbReportStore(storeDbOptions),\n\n commands: {\n generate: {\n conversations: {\n type: "conversation",\n testCases: [...miscTestCases, ...faqTestCases],\n generator: makeGenerateConversationData({\n conversations,\n httpHeaders: {\n Origin: "Testing",\n },\n apiBaseUrl: CONVERSATIONS_SERVER_BASE_URL,\n }),\n },\n faqConversations: {\n type: "conversation",\n testCases: faqTestCases,\n generator: makeGenerateConversationData({\n conversations,\n httpHeaders: {\n Origin: "Testing",\n },\n apiBaseUrl: CONVERSATIONS_SERVER_BASE_URL,\n }),\n },\n },\n evaluate: {\n conversationQuality: {\n evaluator: makeEvaluateConversationQuality({\n deploymentName: OPENAI_CHAT_COMPLETION_DEPLOYMENT,\n openAiClient: new OpenAIClient(\n OPENAI_ENDPOINT,\n new AzureKeyCredential(OPENAI_API_KEY)\n ),\n fewShotExamples: mongodbResponseQualityExamples,\n }),\n },\n conversationFaithfulness: {\n evaluator: makeEvaluateConversationFaithfulness({\n llamaIndexLlm: new LlamaIndexOpenAiLlm({\n azure: {\n apiKey: OPENAI_API_KEY,\n endpoint: OPENAI_ENDPOINT,\n deploymentName: OPENAI_GPT_4_CHAT_COMPLETION_DEPLOYMENT,\n },\n }),\n }),\n },\n },\n report: {\n conversationQualityRun: {\n reporter: reportStatsForBinaryEvalRun,\n },\n conversationFaithfulnessRun: {\n reporter: reportStatsForBinaryEvalRun,\n },\n },\n },\n async afterAll() {\n await mongodb.close();\n },\n } satisfies EvalConfig;\n return evalConfig;\n};\n'})}),"\n",(0,t.jsx)(n.h2,{id:"additional-example-configurations",children:"Additional Example Configurations"}),"\n",(0,t.jsx)(n.p,{children:"For additional example configurations, check out the following projects:"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:[(0,t.jsx)(n.a,{href:"https://github.com/mongodb/chatbot/blob/main/packages/chatbot-eval-mongodb-public/src/eval.config.ts",children:"MongoDB AI chatbot evaluation"}),": Evaluations for the MongoDB AI chatbot."]}),"\n"]})]})}function u(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},11151:(e,n,o)=>{o.d(n,{Z:()=>s,a:()=>r});var t=o(67294);const a={},i=t.createContext(a);function r(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:r(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/19af0c64.72b60fa3.js b/assets/js/19af0c64.72b60fa3.js deleted file mode 100644 index bba5ef351..000000000 --- a/assets/js/19af0c64.72b60fa3.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1538],{80600:(n,e,o)=>{o.r(e),o.d(e,{assets:()=>l,contentTitle:()=>s,default:()=>u,frontMatter:()=>i,metadata:()=>r,toc:()=>c});var t=o(85893),a=o(11151);const i={},s="Evaluation CLI",r={id:"evaluation/index",title:"Evaluation CLI",description:"The Evaluation CLI documentation is under active development",source:"@site/docs/evaluation/index.md",sourceDirName:"evaluation",slug:"/evaluation/",permalink:"/chatbot/evaluation/",draft:!1,unlisted:!1,editUrl:"https://github.com/mongodb/chatbot/tree/main/docs/docs/evaluation/index.md",tags:[],version:"current",frontMatter:{},sidebar:"main",previous:{title:"Chatbot UI",permalink:"/chatbot/ui"},next:{title:"API Reference",permalink:"/chatbot/reference/"}},l={},c=[{value:"How It Works",id:"how-it-works",level:2},{value:"Install",id:"install",level:2},{value:"Create a Configuration File",id:"create-a-configuration-file",level:2},{value:"Define Configuration Files with TypeScript",id:"define-configuration-files-with-typescript",level:2},{value:"Example Configuration",id:"example-configuration",level:2},{value:"Additional Example Configurations",id:"additional-example-configurations",level:2}];function d(n){const e={a:"a",admonition:"admonition",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,a.a)(),...n.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(e.h1,{id:"evaluation-cli",children:"Evaluation CLI"}),"\n",(0,t.jsxs)(e.admonition,{title:"\ud83d\udc77\u200d\u2642\ufe0f Work In Progress \ud83d\udc77\u200d\u2642\ufe0f",type:"warning",children:[(0,t.jsx)(e.p,{children:"The Evaluation CLI documentation is under active development\nand will be expanded in the near future."}),(0,t.jsxs)(e.p,{children:["If you see an issue or have a suggestion, please ",(0,t.jsx)(e.a,{href:"https://github.com/mongodb/chatbot/issues",children:"file an issue on Github"}),"."]})]}),"\n",(0,t.jsx)(e.p,{children:"The MongoDB Chatbot Framework comes with an Evaluation CLI that allows you\nto evaluate the performance of your chatbot and its components."}),"\n",(0,t.jsx)(e.p,{children:"Evaluation is important to ensure that the chatbot is providing accurate and relevant responses to user queries.\nIt also helps you measure the effect of changes to the chatbot's components\nas you develop your application."}),"\n",(0,t.jsx)(e.p,{children:"The CLI evaluates the chatbot's performance by comparing the chatbot's responses to a set of questions with the expected answers."}),"\n",(0,t.jsx)(e.h2,{id:"how-it-works",children:"How It Works"}),"\n",(0,t.jsx)(e.p,{children:"The Evaluation CLI works by running a series of commands that generate, evaluate, and report on the performance of your chatbot."}),"\n",(0,t.jsx)(e.h2,{id:"install",children:"Install"}),"\n",(0,t.jsx)(e.p,{children:"To install the Evaluation CLI, run the following command:"}),"\n",(0,t.jsx)(e.pre,{children:(0,t.jsx)(e.code,{className:"language-bash",children:"npm i mongodb-chatbot-evaluation mongodb-chatbot-server\n"})}),"\n",(0,t.jsx)(e.h2,{id:"create-a-configuration-file",children:"Create a Configuration File"}),"\n",(0,t.jsxs)(e.p,{children:["The MongoDB Evaluation CLI uses a ",(0,t.jsx)(e.a,{href:"https://en.wikipedia.org/wiki/CommonJS",children:"CommonJS"}),"\nJavaScript configuration file to determine how to evaluate content."]}),"\n",(0,t.jsxs)(e.p,{children:["Every configuration file must export a ",(0,t.jsx)(e.a,{href:"/chatbot/reference/eval/modules#configconstructor",children:(0,t.jsx)(e.code,{children:"ConfigConstructor"})})," object as its default export."]}),"\n",(0,t.jsx)(e.p,{children:"You must either:"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:["Pass the path to a configuration file to every command with the ",(0,t.jsx)(e.code,{children:"--config"})," flag."]}),"\n",(0,t.jsxs)(e.li,{children:["Put a CommonJS file named ",(0,t.jsx)(e.code,{children:"eval.config.js"})," in the root of your project."]}),"\n"]}),"\n",(0,t.jsxs)(e.p,{children:["For example, to run the ",(0,t.jsx)(e.code,{children:"generate"})," command with a configuration file called ",(0,t.jsx)(e.code,{children:"my-eval.config.js"})," and generation called ",(0,t.jsx)(e.code,{children:"my-conversations"}),", run the following command:"]}),"\n",(0,t.jsx)(e.pre,{children:(0,t.jsx)(e.code,{className:"language-bash",children:"mongodb-chatbot-evaluation generate --config my-eval.config.js --name my-conversations\n"})}),"\n",(0,t.jsx)(e.h2,{id:"define-configuration-files-with-typescript",children:"Define Configuration Files with TypeScript"}),"\n",(0,t.jsx)(e.admonition,{title:"Use TypeScript Configuration Files!",type:"important",children:(0,t.jsxs)(e.p,{children:["We ",(0,t.jsx)(e.strong,{children:"strongly"})," recommend using TypeScript configuration files.\nThe typing system helps you ensure that your configuration is valid."]})}),"\n",(0,t.jsx)(e.p,{children:"You can use TypeScript to make your configuration file. This allows you to use\nthe type system to ensure that your configuration is valid."}),"\n",(0,t.jsxs)(e.p,{children:["You must compile your configuration file to ",(0,t.jsx)(e.strong,{children:"CommmonJS"})," before running the CLI.\nThe CLI only accepts CommonJS configuration files."]}),"\n",(0,t.jsxs)(e.p,{children:["You can build your CommonJS configuration file with ",(0,t.jsx)(e.code,{children:"tsc"}),":"]}),"\n",(0,t.jsx)(e.pre,{children:(0,t.jsx)(e.code,{className:"language-bash",children:"tsc --module commonjs --target es2017 --outDir build eval.config.ts\n"})}),"\n",(0,t.jsx)(e.p,{children:"Then run the Evaluation CLI with the compiled configuration file:"}),"\n",(0,t.jsx)(e.pre,{children:(0,t.jsx)(e.code,{className:"language-bash",children:"mongodb-chatbot-evaluation generate --config build/eval.config.js --name my-conversations\n"})}),"\n",(0,t.jsx)(e.h2,{id:"example-configuration",children:"Example Configuration"}),"\n",(0,t.jsx)(e.p,{children:"Here's a simple example configuration file for the Evaluation CLI.\nYou can use this configuration file as a starting point for your own configuration."}),"\n",(0,t.jsx)(e.p,{children:"Example configuration file:"}),"\n",(0,t.jsx)(e.pre,{children:(0,t.jsx)(e.code,{className:"language-ts",children:'// eval.config.ts\n\nimport {\n EvalConfig,\n makeMongoDbCommandMetadataStore,\n makeMongoDbGeneratedDataStore,\n makeGenerateConversationData,\n getConversationsTestCasesFromYaml,\n makeEvaluateConversationQuality,\n makeMongoDbEvaluationStore,\n makeMongoDbReportStore,\n mongodbResponseQualityExamples,\n reportStatsForBinaryEvalRun,\n makeEvaluateConversationFaithfulness,\n} from "mongodb-chatbot-evaluation";\nimport { makeMongoDbConversationsService } from "mongodb-chatbot-server";\nimport "dotenv/config";\nimport fs from "fs";\nimport path from "path";\nimport { MongoClient, assertEnvVars } from "mongodb-rag-core";\nimport { envVars } from "./envVars";\n\nexport default async () => {\n const {\n MONGODB_DATABASE_NAME,\n MONGODB_CONNECTION_URI,\n CONVERSATIONS_SERVER_BASE_URL,\n OPENAI_CHAT_COMPLETION_DEPLOYMENT,\n OPENAI_ENDPOINT,\n OPENAI_API_KEY,\n OPENAI_GPT_4_CHAT_COMPLETION_DEPLOYMENT,\n } = assertEnvVars(envVars);\n\n const { OpenAIClient, AzureKeyCredential } = await import("@azure/openai");\n const { OpenAI: LlamaIndexOpenAiLlm } = await import("llamaindex");\n const miscTestCases = getConversationsTestCasesFromYaml(\n fs.readFileSync(\n path.resolve(__dirname, "..", "testCases", "conversations.yml"),\n "utf8"\n )\n );\n const faqTestCases = getConversationsTestCasesFromYaml(\n fs.readFileSync(\n path.resolve(__dirname, "..", "testCases", "faq_conversations.yml"),\n "utf8"\n )\n );\n\n const storeDbOptions = {\n connectionUri: MONGODB_CONNECTION_URI,\n databaseName: MONGODB_DATABASE_NAME,\n };\n\n const mongodb = new MongoClient(MONGODB_CONNECTION_URI);\n await mongodb.connect();\n\n const db = mongodb.db(MONGODB_DATABASE_NAME);\n const conversations = makeMongoDbConversationsService(db);\n\n const evalConfig = {\n metadataStore: makeMongoDbCommandMetadataStore(storeDbOptions),\n generatedDataStore: makeMongoDbGeneratedDataStore(storeDbOptions),\n evaluationStore: makeMongoDbEvaluationStore(storeDbOptions),\n reportStore: makeMongoDbReportStore(storeDbOptions),\n\n commands: {\n generate: {\n conversations: {\n type: "conversation",\n testCases: [...miscTestCases, ...faqTestCases],\n generator: makeGenerateConversationData({\n conversations,\n httpHeaders: {\n Origin: "Testing",\n },\n apiBaseUrl: CONVERSATIONS_SERVER_BASE_URL,\n }),\n },\n faqConversations: {\n type: "conversation",\n testCases: faqTestCases,\n generator: makeGenerateConversationData({\n conversations,\n httpHeaders: {\n Origin: "Testing",\n },\n apiBaseUrl: CONVERSATIONS_SERVER_BASE_URL,\n }),\n },\n },\n evaluate: {\n conversationQuality: {\n evaluator: makeEvaluateConversationQuality({\n deploymentName: OPENAI_CHAT_COMPLETION_DEPLOYMENT,\n openAiClient: new OpenAIClient(\n OPENAI_ENDPOINT,\n new AzureKeyCredential(OPENAI_API_KEY)\n ),\n fewShotExamples: mongodbResponseQualityExamples,\n }),\n },\n conversationFaithfulness: {\n evaluator: makeEvaluateConversationFaithfulness({\n llamaIndexLlm: new LlamaIndexOpenAiLlm({\n azure: {\n apiKey: OPENAI_API_KEY,\n endpoint: OPENAI_ENDPOINT,\n deploymentName: OPENAI_GPT_4_CHAT_COMPLETION_DEPLOYMENT,\n },\n }),\n }),\n },\n },\n report: {\n conversationQualityRun: {\n reporter: reportStatsForBinaryEvalRun,\n },\n conversationFaithfulnessRun: {\n reporter: reportStatsForBinaryEvalRun,\n },\n },\n },\n async afterAll() {\n await mongodb.close();\n },\n } satisfies EvalConfig;\n return evalConfig;\n};\n'})}),"\n",(0,t.jsx)(e.h2,{id:"additional-example-configurations",children:"Additional Example Configurations"}),"\n",(0,t.jsx)(e.p,{children:"For additional example configurations, check out the following projects:"}),"\n",(0,t.jsxs)(e.ul,{children:["\n",(0,t.jsxs)(e.li,{children:[(0,t.jsx)(e.a,{href:"https://github.com/mongodb/chatbot/blob/main/packages/chatbot-eval-mongodb-public/src/eval.config.ts",children:"MongoDB AI chatbot evaluation"}),": Evaluations for the MongoDB AI chatbot."]}),"\n"]})]})}function u(n={}){const{wrapper:e}={...(0,a.a)(),...n.components};return e?(0,t.jsx)(e,{...n,children:(0,t.jsx)(d,{...n})}):d(n)}},11151:(n,e,o)=>{o.d(e,{Z:()=>r,a:()=>s});var t=o(67294);const a={},i=t.createContext(a);function s(n){const e=t.useContext(i);return t.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function r(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(a):n.components||a:s(n.components),t.createElement(i.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/217a4326.84c74a93.js b/assets/js/217a4326.28878443.js similarity index 94% rename from assets/js/217a4326.84c74a93.js rename to assets/js/217a4326.28878443.js index 0ef2eb3e0..468b9f698 100644 --- a/assets/js/217a4326.84c74a93.js +++ b/assets/js/217a4326.28878443.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4195],{50024:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>o,metadata:()=>i,toc:()=>l});var t=r(85893),s=r(11151);const o={id:"ToolCallParams",title:"Interface: ToolCallParams",sidebar_label:"ToolCallParams",sidebar_position:0,custom_edit_url:null},a=void 0,i={id:"reference/server/interfaces/ToolCallParams",title:"Interface: ToolCallParams",description:"Parameters for invoking a tool call.",source:"@site/docs/reference/server/interfaces/ToolCallParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ToolCallParams",permalink:"/chatbot/reference/server/interfaces/ToolCallParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ToolCallParams",title:"Interface: ToolCallParams",sidebar_label:"ToolCallParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Tool",permalink:"/chatbot/reference/server/interfaces/Tool"},next:{title:"Readme",permalink:"/chatbot/reference/core/"}},c={},l=[{value:"Properties",id:"properties",level:2},{value:"conversation",id:"conversation",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"dataStreamer",id:"datastreamer",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"functionArgs",id:"functionargs",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"request",id:"request",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.p,{children:"Parameters for invoking a tool call."}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"conversation",children:"conversation"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"conversation"}),": ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,t.jsx)(n.code,{children:"Conversation"})}),"<",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,t.jsx)(n.code,{children:"ConversationCustomData"})}),">"]}),"\n",(0,t.jsx)(n.p,{children:"Conversation in the DB. Useful for getting metadata to use in tool calls."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L67",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:67"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"datastreamer",children:"dataStreamer"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"dataStreamer"}),": ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:(0,t.jsx)(n.code,{children:"DataStreamer"})})]}),"\n",(0,t.jsx)(n.p,{children:"Data streamer with connection open to send events to the client."}),"\n",(0,t.jsx)(n.p,{children:"For example, you could use this to send updates about\nwhat the tool is doing to the client."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L76",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:76"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"functionargs",children:"functionArgs"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"functionArgs"}),": ",(0,t.jsx)(n.code,{children:"unknown"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L62",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:62"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"request",children:"request"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"request"}),": ",(0,t.jsx)(n.code,{children:"Request"}),"<",(0,t.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,t.jsx)(n.code,{children:"any"}),", ",(0,t.jsx)(n.code,{children:"any"}),", ",(0,t.jsx)(n.code,{children:"ParsedQs"}),", ",(0,t.jsx)(n.code,{children:"Record"}),"<",(0,t.jsx)(n.code,{children:"string"}),", ",(0,t.jsx)(n.code,{children:"any"}),">>"]}),"\n",(0,t.jsx)(n.p,{children:"Current Express.js request from the client.\nUseful for getting metadata to use in tool calls."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L82",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:82"})})]})}function h(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>i,a:()=>a});var t=r(67294);const s={},o=t.createContext(s);function a(e){const n=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),t.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4195],{50024:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>o,metadata:()=>i,toc:()=>l});var t=r(85893),s=r(11151);const o={id:"ToolCallParams",title:"Interface: ToolCallParams",sidebar_label:"ToolCallParams",sidebar_position:0,custom_edit_url:null},a=void 0,i={id:"reference/server/interfaces/ToolCallParams",title:"Interface: ToolCallParams",description:"Parameters for invoking a tool call.",source:"@site/docs/reference/server/interfaces/ToolCallParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ToolCallParams",permalink:"/chatbot/reference/server/interfaces/ToolCallParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ToolCallParams",title:"Interface: ToolCallParams",sidebar_label:"ToolCallParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Tool",permalink:"/chatbot/reference/server/interfaces/Tool"},next:{title:"Readme",permalink:"/chatbot/reference/core/"}},c={},l=[{value:"Properties",id:"properties",level:2},{value:"conversation",id:"conversation",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"dataStreamer",id:"datastreamer",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"functionArgs",id:"functionargs",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"request",id:"request",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.p,{children:"Parameters for invoking a tool call."}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"conversation",children:"conversation"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"conversation"}),": ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,t.jsx)(n.code,{children:"Conversation"})}),"<",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,t.jsx)(n.code,{children:"ConversationCustomData"})}),">"]}),"\n",(0,t.jsx)(n.p,{children:"Conversation in the DB. Useful for getting metadata to use in tool calls."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L67",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:67"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"datastreamer",children:"dataStreamer"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"dataStreamer"}),": ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:(0,t.jsx)(n.code,{children:"DataStreamer"})})]}),"\n",(0,t.jsx)(n.p,{children:"Data streamer with connection open to send events to the client."}),"\n",(0,t.jsx)(n.p,{children:"For example, you could use this to send updates about\nwhat the tool is doing to the client."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L76",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:76"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"functionargs",children:"functionArgs"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"functionArgs"}),": ",(0,t.jsx)(n.code,{children:"unknown"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L62",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:62"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"request",children:"request"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"request"}),": ",(0,t.jsx)(n.code,{children:"Request"}),"<",(0,t.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,t.jsx)(n.code,{children:"any"}),", ",(0,t.jsx)(n.code,{children:"any"}),", ",(0,t.jsx)(n.code,{children:"ParsedQs"}),", ",(0,t.jsx)(n.code,{children:"Record"}),"<",(0,t.jsx)(n.code,{children:"string"}),", ",(0,t.jsx)(n.code,{children:"any"}),">>"]}),"\n",(0,t.jsx)(n.p,{children:"Current Express.js request from the client.\nUseful for getting metadata to use in tool calls."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L82",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:82"})})]})}function h(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>i,a:()=>a});var t=r(67294);const s={},o=t.createContext(s);function a(e){const n=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:a(e.components),t.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/21f447ab.ed1d8aee.js b/assets/js/21f447ab.db7447ed.js similarity index 94% rename from assets/js/21f447ab.ed1d8aee.js rename to assets/js/21f447ab.db7447ed.js index d17518466..1bcbc8702 100644 --- a/assets/js/21f447ab.ed1d8aee.js +++ b/assets/js/21f447ab.db7447ed.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1052],{31935:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>h,frontMatter:()=>s,metadata:()=>i,toc:()=>d});var o=r(85893),t=r(11151);const s={id:"sources.SnootyProject",title:"Interface: SnootyProject",sidebar_label:"sources.SnootyProject",custom_edit_url:null},c=void 0,i={id:"reference/ingest/interfaces/sources.SnootyProject",title:"Interface: SnootyProject",description:"sources.SnootyProject",source:"@site/docs/reference/ingest/interfaces/sources.SnootyProject.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.SnootyProject",permalink:"/chatbot/reference/ingest/interfaces/sources.SnootyProject",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.SnootyProject",title:"Interface: SnootyProject",sidebar_label:"sources.SnootyProject",custom_edit_url:null},sidebar:"main",previous:{title:"sources.ProjectBase",permalink:"/chatbot/reference/ingest/interfaces/sources.ProjectBase"},next:{title:"Readme",permalink:"/chatbot/reference/evaluation/"}},a={},d=[{value:"Properties",id:"properties",level:2},{value:"branches",id:"branches",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"project",id:"project",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"repoName",id:"reponame",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,t.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".SnootyProject"]}),"\n",(0,o.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,o.jsx)(n.h3,{id:"branches",children:"branches"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.strong,{children:"branches"}),": ",(0,o.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.Branch",children:(0,o.jsx)(n.code,{children:"Branch"})}),"[]"]}),"\n",(0,o.jsx)(n.p,{children:"Branches of repo that correspond to a site"}),"\n",(0,o.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L261",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:261"})}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsx)(n.h3,{id:"project",children:"project"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.strong,{children:"project"}),": ",(0,o.jsx)(n.code,{children:"string"})]}),"\n",(0,o.jsx)(n.p,{children:"Snooty project name"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.strong,{children:(0,o.jsx)(n.code,{children:"Example"})})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-ts",children:'"kotlin"\n'})}),"\n",(0,o.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L257",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:257"})}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsx)(n.h3,{id:"reponame",children:"repoName"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.strong,{children:"repoName"}),": ",(0,o.jsx)(n.code,{children:"string"})]}),"\n",(0,o.jsx)(n.p,{children:"Snooty repo name"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.strong,{children:(0,o.jsx)(n.code,{children:"Example"})})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-ts",children:'"docs-kotlin"\n'})}),"\n",(0,o.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L252",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:252"})})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>i,a:()=>c});var o=r(67294);const t={},s=o.createContext(t);function c(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1052],{31935:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>a,contentTitle:()=>c,default:()=>h,frontMatter:()=>s,metadata:()=>i,toc:()=>d});var o=r(85893),t=r(11151);const s={id:"sources.SnootyProject",title:"Interface: SnootyProject",sidebar_label:"sources.SnootyProject",custom_edit_url:null},c=void 0,i={id:"reference/ingest/interfaces/sources.SnootyProject",title:"Interface: SnootyProject",description:"sources.SnootyProject",source:"@site/docs/reference/ingest/interfaces/sources.SnootyProject.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.SnootyProject",permalink:"/chatbot/reference/ingest/interfaces/sources.SnootyProject",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.SnootyProject",title:"Interface: SnootyProject",sidebar_label:"sources.SnootyProject",custom_edit_url:null},sidebar:"main",previous:{title:"sources.ProjectBase",permalink:"/chatbot/reference/ingest/interfaces/sources.ProjectBase"},next:{title:"Readme",permalink:"/chatbot/reference/evaluation/"}},a={},d=[{value:"Properties",id:"properties",level:2},{value:"branches",id:"branches",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"project",id:"project",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"repoName",id:"reponame",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,t.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(n.p,{children:[(0,o.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".SnootyProject"]}),"\n",(0,o.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,o.jsx)(n.h3,{id:"branches",children:"branches"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.strong,{children:"branches"}),": ",(0,o.jsx)(n.a,{href:"/chatbot/reference/ingest/interfaces/sources.Branch",children:(0,o.jsx)(n.code,{children:"Branch"})}),"[]"]}),"\n",(0,o.jsx)(n.p,{children:"Branches of repo that correspond to a site"}),"\n",(0,o.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L261",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:261"})}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsx)(n.h3,{id:"project",children:"project"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.strong,{children:"project"}),": ",(0,o.jsx)(n.code,{children:"string"})]}),"\n",(0,o.jsx)(n.p,{children:"Snooty project name"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.strong,{children:(0,o.jsx)(n.code,{children:"Example"})})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-ts",children:'"kotlin"\n'})}),"\n",(0,o.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L257",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:257"})}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsx)(n.h3,{id:"reponame",children:"repoName"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.strong,{children:"repoName"}),": ",(0,o.jsx)(n.code,{children:"string"})]}),"\n",(0,o.jsx)(n.p,{children:"Snooty repo name"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.strong,{children:(0,o.jsx)(n.code,{children:"Example"})})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-ts",children:'"docs-kotlin"\n'})}),"\n",(0,o.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L252",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:252"})})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>i,a:()=>c});var o=r(67294);const t={},s=o.createContext(t);function c(e){const n=o.useContext(s);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2352c6d6.736affe3.js b/assets/js/2352c6d6.c117e9c5.js similarity index 96% rename from assets/js/2352c6d6.736affe3.js rename to assets/js/2352c6d6.c117e9c5.js index e9a617780..4b7fa9c26 100644 --- a/assets/js/2352c6d6.736affe3.js +++ b/assets/js/2352c6d6.c117e9c5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8321],{48665:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>u,frontMatter:()=>o,metadata:()=>a,toc:()=>d});var r=s(85893),t=s(11151);const o={id:"ConversationsRouterLocals",title:"Interface: ConversationsRouterLocals",sidebar_label:"ConversationsRouterLocals",sidebar_position:0,custom_edit_url:null},i=void 0,a={id:"reference/server/interfaces/ConversationsRouterLocals",title:"Interface: ConversationsRouterLocals",description:"Express.js Request that exposes the app's ConversationsService.",source:"@site/docs/reference/server/interfaces/ConversationsRouterLocals.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ConversationsRouterLocals",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationsRouterLocals",title:"Interface: ConversationsRouterLocals",sidebar_label:"ConversationsRouterLocals",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationsRateLimitConfig",permalink:"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig"},next:{title:"ConversationsRouterParams",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterParams"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"conversations",id:"conversations",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"customData",id:"customdata",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:["Express.js Request that exposes the app's ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:"ConversationsService"}),"."]}),"\n",(0,r.jsx)(n.p,{children:"This is useful if you want to do authentication or dynamic data validation."}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"conversations",children:"conversations"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"conversations"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:(0,r.jsx)(n.code,{children:"ConversationsService"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L80",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:80"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"customdata",children:"customData"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"customData"}),": ",(0,r.jsx)(n.code,{children:"Record"}),"<",(0,r.jsx)(n.code,{children:"string"}),", ",(0,r.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L81",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:81"})})]})}function u(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>i});var r=s(67294);const t={},o=r.createContext(t);function i(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8321],{48665:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>u,frontMatter:()=>o,metadata:()=>a,toc:()=>d});var r=s(85893),t=s(11151);const o={id:"ConversationsRouterLocals",title:"Interface: ConversationsRouterLocals",sidebar_label:"ConversationsRouterLocals",sidebar_position:0,custom_edit_url:null},i=void 0,a={id:"reference/server/interfaces/ConversationsRouterLocals",title:"Interface: ConversationsRouterLocals",description:"Express.js Request that exposes the app's ConversationsService.",source:"@site/docs/reference/server/interfaces/ConversationsRouterLocals.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ConversationsRouterLocals",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationsRouterLocals",title:"Interface: ConversationsRouterLocals",sidebar_label:"ConversationsRouterLocals",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationsRateLimitConfig",permalink:"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig"},next:{title:"ConversationsRouterParams",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterParams"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"conversations",id:"conversations",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"customData",id:"customdata",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:["Express.js Request that exposes the app's ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:"ConversationsService"}),"."]}),"\n",(0,r.jsx)(n.p,{children:"This is useful if you want to do authentication or dynamic data validation."}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"conversations",children:"conversations"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"conversations"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:(0,r.jsx)(n.code,{children:"ConversationsService"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L80",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:80"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"customdata",children:"customData"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"customData"}),": ",(0,r.jsx)(n.code,{children:"Record"}),"<",(0,r.jsx)(n.code,{children:"string"}),", ",(0,r.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L81",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:81"})})]})}function u(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>i});var r=s(67294);const t={},o=r.createContext(t);function i(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/2a14c161.63e72a38.js b/assets/js/2a14c161.68f5bace.js similarity index 89% rename from assets/js/2a14c161.63e72a38.js rename to assets/js/2a14c161.68f5bace.js index 3a1222108..55a7b0219 100644 --- a/assets/js/2a14c161.63e72a38.js +++ b/assets/js/2a14c161.68f5bace.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9344],{79787:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>p,frontMatter:()=>a,metadata:()=>s,toc:()=>d});var o=t(85893),r=t(11151);const a={id:"MakeMongoDbReportStoreParams",title:"Interface: MakeMongoDbReportStoreParams",sidebar_label:"MakeMongoDbReportStoreParams",sidebar_position:0,custom_edit_url:null},i=void 0,s={id:"reference/evaluation/interfaces/MakeMongoDbReportStoreParams",title:"Interface: MakeMongoDbReportStoreParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeMongoDbReportStoreParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeMongoDbReportStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeMongoDbReportStoreParams",title:"Interface: MakeMongoDbReportStoreParams",sidebar_label:"MakeMongoDbReportStoreParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeMongoDbGeneratedDataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams"},next:{title:"MongoDbEvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"collectionName",id:"collectionname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"connectionUri",id:"connectionuri",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"databaseName",id:"databasename",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,o.jsx)(n.h3,{id:"collectionname",children:"collectionName"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.code,{children:"Optional"})," ",(0,o.jsx)(n.strong,{children:"collectionName"}),": ",(0,o.jsx)(n.code,{children:"string"})]}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.strong,{children:(0,o.jsx)(n.code,{children:"Default"})})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-ts",children:'"reports"\n'})}),"\n",(0,o.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L32",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:32"})}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsx)(n.h3,{id:"connectionuri",children:"connectionUri"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.strong,{children:"connectionUri"}),": ",(0,o.jsx)(n.code,{children:"string"})]}),"\n",(0,o.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L27",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:27"})}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsx)(n.h3,{id:"databasename",children:"databaseName"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.strong,{children:"databaseName"}),": ",(0,o.jsx)(n.code,{children:"string"})]}),"\n",(0,o.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:28"})})]})}function p(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>s,a:()=>i});var o=t(67294);const r={},a=o.createContext(r);function i(e){const n=o.useContext(a);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),o.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9344],{79787:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>p,frontMatter:()=>a,metadata:()=>s,toc:()=>l});var o=t(85893),r=t(11151);const a={id:"MakeMongoDbReportStoreParams",title:"Interface: MakeMongoDbReportStoreParams",sidebar_label:"MakeMongoDbReportStoreParams",sidebar_position:0,custom_edit_url:null},i=void 0,s={id:"reference/evaluation/interfaces/MakeMongoDbReportStoreParams",title:"Interface: MakeMongoDbReportStoreParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeMongoDbReportStoreParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeMongoDbReportStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeMongoDbReportStoreParams",title:"Interface: MakeMongoDbReportStoreParams",sidebar_label:"MakeMongoDbReportStoreParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeMongoDbGeneratedDataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams"},next:{title:"MongoDbEvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore"}},c={},l=[{value:"Properties",id:"properties",level:2},{value:"collectionName",id:"collectionname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"connectionUri",id:"connectionuri",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"databaseName",id:"databasename",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,o.jsx)(n.h3,{id:"collectionname",children:"collectionName"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.code,{children:"Optional"})," ",(0,o.jsx)(n.strong,{children:"collectionName"}),": ",(0,o.jsx)(n.code,{children:"string"})]}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.strong,{children:(0,o.jsx)(n.code,{children:"Default"})})}),"\n",(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-ts",children:'"reports"\n'})}),"\n",(0,o.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L32",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:32"})}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsx)(n.h3,{id:"connectionuri",children:"connectionUri"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.strong,{children:"connectionUri"}),": ",(0,o.jsx)(n.code,{children:"string"})]}),"\n",(0,o.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L27",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:27"})}),"\n",(0,o.jsx)(n.hr,{}),"\n",(0,o.jsx)(n.h3,{id:"databasename",children:"databaseName"}),"\n",(0,o.jsxs)(n.p,{children:["\u2022 ",(0,o.jsx)(n.strong,{children:"databaseName"}),": ",(0,o.jsx)(n.code,{children:"string"})]}),"\n",(0,o.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,o.jsx)(n.p,{children:(0,o.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:28"})})]})}function p(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>s,a:()=>i});var o=t(67294);const r={},a=o.createContext(r);function i(e){const n=o.useContext(a);return o.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),o.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/34ee439d.ee0207a1.js b/assets/js/34ee439d.ad21c74b.js similarity index 87% rename from assets/js/34ee439d.ee0207a1.js rename to assets/js/34ee439d.ad21c74b.js index b14c22860..900ff5da1 100644 --- a/assets/js/34ee439d.ee0207a1.js +++ b/assets/js/34ee439d.ad21c74b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9868],{23367:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>s,toc:()=>d});var t=a(85893),r=a(11151);const o={id:"MakeMongoDbGeneratedDataStoreParams",title:"Interface: MakeMongoDbGeneratedDataStoreParams",sidebar_label:"MakeMongoDbGeneratedDataStoreParams",sidebar_position:0,custom_edit_url:null},i=void 0,s={id:"reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams",title:"Interface: MakeMongoDbGeneratedDataStoreParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeMongoDbGeneratedDataStoreParams",title:"Interface: MakeMongoDbGeneratedDataStoreParams",sidebar_label:"MakeMongoDbGeneratedDataStoreParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeMongoDbEvaluationStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams"},next:{title:"MakeMongoDbReportStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"collectionName",id:"collectionname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"connectionUri",id:"connectionuri",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"databaseName",id:"databasename",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"collectionname",children:"collectionName"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"collectionName"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"Default"})})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:'"generated_data"\n'})}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L55",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:55"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"connectionuri",children:"connectionUri"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"connectionUri"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L49",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:49"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"databasename",children:"databaseName"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"databaseName"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L50",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:50"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>s,a:()=>i});var t=a(67294);const r={},o=t.createContext(r);function i(e){const n=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9868],{23367:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>s,toc:()=>d});var t=a(85893),r=a(11151);const o={id:"MakeMongoDbGeneratedDataStoreParams",title:"Interface: MakeMongoDbGeneratedDataStoreParams",sidebar_label:"MakeMongoDbGeneratedDataStoreParams",sidebar_position:0,custom_edit_url:null},i=void 0,s={id:"reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams",title:"Interface: MakeMongoDbGeneratedDataStoreParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeMongoDbGeneratedDataStoreParams",title:"Interface: MakeMongoDbGeneratedDataStoreParams",sidebar_label:"MakeMongoDbGeneratedDataStoreParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeMongoDbEvaluationStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams"},next:{title:"MakeMongoDbReportStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"collectionName",id:"collectionname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"connectionUri",id:"connectionuri",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"databaseName",id:"databasename",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"collectionname",children:"collectionName"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"collectionName"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"Default"})})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:'"generated_data"\n'})}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L60",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:60"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"connectionuri",children:"connectionUri"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"connectionUri"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L54",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:54"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"databasename",children:"databaseName"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"databaseName"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L55",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:55"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>s,a:()=>i});var t=a(67294);const r={},o=t.createContext(r);function i(e){const n=t.useContext(o);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/37f76691.c5146136.js b/assets/js/37f76691.6d74a2a5.js similarity index 96% rename from assets/js/37f76691.c5146136.js rename to assets/js/37f76691.6d74a2a5.js index 48fce734b..1a5ec51f4 100644 --- a/assets/js/37f76691.c5146136.js +++ b/assets/js/37f76691.6d74a2a5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2357],{36128:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>s,default:()=>u,frontMatter:()=>o,metadata:()=>r,toc:()=>c});var a=t(85893),i=t(11151);const o={id:"EvaluateConversationQualityParams",title:"Interface: EvaluateConversationQualityParams",sidebar_label:"EvaluateConversationQualityParams",sidebar_position:0,custom_edit_url:null},s=void 0,r={id:"reference/evaluation/interfaces/EvaluateConversationQualityParams",title:"Interface: EvaluateConversationQualityParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/EvaluateConversationQualityParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/EvaluateConversationQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"EvaluateConversationQualityParams",title:"Interface: EvaluateConversationQualityParams",sidebar_label:"EvaluateConversationQualityParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"EvalResult",permalink:"/chatbot/reference/evaluation/interfaces/EvalResult"},next:{title:"EvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/EvaluationStore"}},l={},c=[{value:"Properties",id:"properties",level:2},{value:"deploymentName",id:"deploymentname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"fewShotExamples",id:"fewshotexamples",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"openAiClient",id:"openaiclient",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const n={a:"a",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,a.jsx)(n.h3,{id:"deploymentname",children:"deploymentName"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"deploymentName"}),": ",(0,a.jsx)(n.code,{children:"string"})]}),"\n",(0,a.jsx)(n.p,{children:"The name of the OpenAI ChatGPT API deployment to use."}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.strong,{children:(0,a.jsx)(n.code,{children:"Example"})})}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:'"gpt-3.5-turbo"\n'})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts#L19",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts:19"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"fewshotexamples",children:"fewShotExamples"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Optional"})," ",(0,a.jsx)(n.strong,{children:"fewShotExamples"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample",children:(0,a.jsx)(n.code,{children:"ResponseQualityExample"})}),"[]"]}),"\n",(0,a.jsxs)(n.p,{children:["Provide a few examples of conversation transcripts, expected outputs,\nand what the LLM output should be.\nThis is ",(0,a.jsx)(n.em,{children:"extremely"})," useful for helping the LLM understand\nits expected behavior for your use case.\nWhile not strictly necessary, it is highly recommended\nto include a few representative examples."]}),"\n",(0,a.jsxs)(n.p,{children:["Here, the LLM utilizes a prompting technique called ",(0,a.jsx)(n.a,{href:"https://www.promptingguide.ai/techniques/fewshot.en",children:'"few-shot prompting"'}),"."]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts#L31",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts:31"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"openaiclient",children:"openAiClient"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"openAiClient"}),": ",(0,a.jsx)(n.code,{children:"OpenAIClient"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts:13"})})]})}function u(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>r,a:()=>s});var a=t(67294);const i={},o=a.createContext(i);function s(e){const n=a.useContext(o);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),a.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2357],{36128:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>s,default:()=>u,frontMatter:()=>o,metadata:()=>r,toc:()=>c});var a=t(85893),i=t(11151);const o={id:"EvaluateConversationQualityParams",title:"Interface: EvaluateConversationQualityParams",sidebar_label:"EvaluateConversationQualityParams",sidebar_position:0,custom_edit_url:null},s=void 0,r={id:"reference/evaluation/interfaces/EvaluateConversationQualityParams",title:"Interface: EvaluateConversationQualityParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/EvaluateConversationQualityParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/EvaluateConversationQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"EvaluateConversationQualityParams",title:"Interface: EvaluateConversationQualityParams",sidebar_label:"EvaluateConversationQualityParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"EvalResult",permalink:"/chatbot/reference/evaluation/interfaces/EvalResult"},next:{title:"EvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/EvaluationStore"}},l={},c=[{value:"Properties",id:"properties",level:2},{value:"deploymentName",id:"deploymentname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"fewShotExamples",id:"fewshotexamples",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"openAiClient",id:"openaiclient",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const n={a:"a",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,a.jsx)(n.h3,{id:"deploymentname",children:"deploymentName"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"deploymentName"}),": ",(0,a.jsx)(n.code,{children:"string"})]}),"\n",(0,a.jsx)(n.p,{children:"The name of the OpenAI ChatGPT API deployment to use."}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.strong,{children:(0,a.jsx)(n.code,{children:"Example"})})}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:'"gpt-3.5-turbo"\n'})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts#L19",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts:19"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"fewshotexamples",children:"fewShotExamples"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Optional"})," ",(0,a.jsx)(n.strong,{children:"fewShotExamples"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample",children:(0,a.jsx)(n.code,{children:"ResponseQualityExample"})}),"[]"]}),"\n",(0,a.jsxs)(n.p,{children:["Provide a few examples of conversation transcripts, expected outputs,\nand what the LLM output should be.\nThis is ",(0,a.jsx)(n.em,{children:"extremely"})," useful for helping the LLM understand\nits expected behavior for your use case.\nWhile not strictly necessary, it is highly recommended\nto include a few representative examples."]}),"\n",(0,a.jsxs)(n.p,{children:["Here, the LLM utilizes a prompting technique called ",(0,a.jsx)(n.a,{href:"https://www.promptingguide.ai/techniques/fewshot.en",children:'"few-shot prompting"'}),"."]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts#L31",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts:31"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"openaiclient",children:"openAiClient"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"openAiClient"}),": ",(0,a.jsx)(n.code,{children:"OpenAIClient"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts:13"})})]})}function u(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>r,a:()=>s});var a=t(67294);const i={},o=a.createContext(i);function s(e){const n=a.useContext(o);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),a.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/3f30df8d.c22126d4.js b/assets/js/3f30df8d.c065247f.js similarity index 93% rename from assets/js/3f30df8d.c22126d4.js rename to assets/js/3f30df8d.c065247f.js index 219ab71d3..b73ff9500 100644 --- a/assets/js/3f30df8d.c22126d4.js +++ b/assets/js/3f30df8d.c065247f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9991],{79583:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>r,contentTitle:()=>l,default:()=>h,frontMatter:()=>d,metadata:()=>o,toc:()=>s});var a=t(85893),i=t(11151);const d={id:"EvalResult",title:"Interface: EvalResult",sidebar_label:"EvalResult",sidebar_position:0,custom_edit_url:null},l=void 0,o={id:"reference/evaluation/interfaces/EvalResult",title:"Interface: EvalResult",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/EvalResult.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/EvalResult",permalink:"/chatbot/reference/evaluation/interfaces/EvalResult",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"EvalResult",title:"Interface: EvalResult",sidebar_label:"EvalResult",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"EvalConfig",permalink:"/chatbot/reference/evaluation/interfaces/EvalConfig"},next:{title:"EvaluateConversationQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams"}},r={},s=[{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"commandRunMetadataId",id:"commandrunmetadataid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"createdAt",id:"createdat",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"generatedDataId",id:"generateddataid",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"metadata",id:"metadata",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"result",id:"result",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-6",level:4}];function c(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,a.jsx)(n.h3,{id:"_id",children:"_id"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"_id"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:10"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"commandrunmetadataid",children:"commandRunMetadataId"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"commandRunMetadataId"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:12"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"createdat",children:"createdAt"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"createdAt"}),": ",(0,a.jsx)(n.code,{children:"Date"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:23"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"generateddataid",children:"generatedDataId"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"generatedDataId"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L11",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:11"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"metadata",children:"metadata"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Optional"})," ",(0,a.jsx)(n.strong,{children:"metadata"}),": ",(0,a.jsx)(n.code,{children:"Record"}),"<",(0,a.jsx)(n.code,{children:"string"}),", ",(0,a.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L24",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:24"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"result",children:"result"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"result"}),": ",(0,a.jsx)(n.code,{children:"number"})]}),"\n",(0,a.jsx)(n.p,{children:"Number between 0 and 1, inclusive."}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L22",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:22"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"type",children:"type"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"type"}),": ",(0,a.jsx)(n.code,{children:"string"})]}),"\n",(0,a.jsx)(n.p,{children:"Name of the type of evaluation."}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L17",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:17"})})]})}function h(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(c,{...e})}):c(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>o,a:()=>l});var a=t(67294);const i={},d=a.createContext(i);function l(e){const n=a.useContext(d);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),a.createElement(d.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9991],{79583:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>r,contentTitle:()=>l,default:()=>h,frontMatter:()=>d,metadata:()=>o,toc:()=>s});var a=t(85893),i=t(11151);const d={id:"EvalResult",title:"Interface: EvalResult",sidebar_label:"EvalResult",sidebar_position:0,custom_edit_url:null},l=void 0,o={id:"reference/evaluation/interfaces/EvalResult",title:"Interface: EvalResult",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/EvalResult.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/EvalResult",permalink:"/chatbot/reference/evaluation/interfaces/EvalResult",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"EvalResult",title:"Interface: EvalResult",sidebar_label:"EvalResult",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"EvalConfig",permalink:"/chatbot/reference/evaluation/interfaces/EvalConfig"},next:{title:"EvaluateConversationQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams"}},r={},s=[{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"commandRunMetadataId",id:"commandrunmetadataid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"createdAt",id:"createdat",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"generatedDataId",id:"generateddataid",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"metadata",id:"metadata",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"result",id:"result",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-6",level:4}];function c(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,a.jsx)(n.h3,{id:"_id",children:"_id"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"_id"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:10"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"commandrunmetadataid",children:"commandRunMetadataId"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"commandRunMetadataId"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:12"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"createdat",children:"createdAt"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"createdAt"}),": ",(0,a.jsx)(n.code,{children:"Date"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:23"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"generateddataid",children:"generatedDataId"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"generatedDataId"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L11",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:11"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"metadata",children:"metadata"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Optional"})," ",(0,a.jsx)(n.strong,{children:"metadata"}),": ",(0,a.jsx)(n.code,{children:"Record"}),"<",(0,a.jsx)(n.code,{children:"string"}),", ",(0,a.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L24",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:24"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"result",children:"result"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"result"}),": ",(0,a.jsx)(n.code,{children:"number"})]}),"\n",(0,a.jsx)(n.p,{children:"Number between 0 and 1, inclusive."}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L22",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:22"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"type",children:"type"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"type"}),": ",(0,a.jsx)(n.code,{children:"string"})]}),"\n",(0,a.jsx)(n.p,{children:"Name of the type of evaluation."}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L17",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:17"})})]})}function h(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(c,{...e})}):c(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>o,a:()=>l});var a=t(67294);const i={},d=a.createContext(i);function l(e){const n=a.useContext(d);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),a.createElement(d.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/44c3951e.e3575809.js b/assets/js/44c3951e.9db17031.js similarity index 94% rename from assets/js/44c3951e.e3575809.js rename to assets/js/44c3951e.9db17031.js index da7e9e1ef..e0267ff79 100644 --- a/assets/js/44c3951e.e3575809.js +++ b/assets/js/44c3951e.9db17031.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4125],{25659:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>i,metadata:()=>r,toc:()=>l});var s=n(85893),a=n(11151);const i={id:"CheckResponseQuality",title:"Interface: CheckResponseQuality",sidebar_label:"CheckResponseQuality",sidebar_position:0,custom_edit_url:null},o=void 0,r={id:"reference/evaluation/interfaces/CheckResponseQuality",title:"Interface: CheckResponseQuality",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/CheckResponseQuality.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/CheckResponseQuality",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CheckResponseQuality",title:"Interface: CheckResponseQuality",sidebar_label:"CheckResponseQuality",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"BaseTestCase",permalink:"/chatbot/reference/evaluation/interfaces/BaseTestCase"},next:{title:"CheckResponseQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams"}},c={},l=[{value:"Properties",id:"properties",level:2},{value:"meetsChatQualityStandards",id:"meetschatqualitystandards",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"reason",id:"reason",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function d(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,a.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(t.h3,{id:"meetschatqualitystandards",children:"meetsChatQualityStandards"}),"\n",(0,s.jsxs)(t.p,{children:["\u2022 ",(0,s.jsx)(t.strong,{children:"meetsChatQualityStandards"}),": ",(0,s.jsx)(t.code,{children:"boolean"})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L24",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:24"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"reason",children:"reason"}),"\n",(0,s.jsxs)(t.p,{children:["\u2022 ",(0,s.jsx)(t.strong,{children:"reason"}),": ",(0,s.jsx)(t.code,{children:"string"})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:23"})})]})}function u(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},11151:(e,t,n)=>{n.d(t,{Z:()=>r,a:()=>o});var s=n(67294);const a={},i=s.createContext(a);function o(e){const t=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),s.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4125],{25659:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>i,metadata:()=>r,toc:()=>l});var s=n(85893),a=n(11151);const i={id:"CheckResponseQuality",title:"Interface: CheckResponseQuality",sidebar_label:"CheckResponseQuality",sidebar_position:0,custom_edit_url:null},o=void 0,r={id:"reference/evaluation/interfaces/CheckResponseQuality",title:"Interface: CheckResponseQuality",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/CheckResponseQuality.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/CheckResponseQuality",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CheckResponseQuality",title:"Interface: CheckResponseQuality",sidebar_label:"CheckResponseQuality",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"BaseTestCase",permalink:"/chatbot/reference/evaluation/interfaces/BaseTestCase"},next:{title:"CheckResponseQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams"}},c={},l=[{value:"Properties",id:"properties",level:2},{value:"meetsChatQualityStandards",id:"meetschatqualitystandards",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"reason",id:"reason",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function d(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,a.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(t.h3,{id:"meetschatqualitystandards",children:"meetsChatQualityStandards"}),"\n",(0,s.jsxs)(t.p,{children:["\u2022 ",(0,s.jsx)(t.strong,{children:"meetsChatQualityStandards"}),": ",(0,s.jsx)(t.code,{children:"boolean"})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L24",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:24"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"reason",children:"reason"}),"\n",(0,s.jsxs)(t.p,{children:["\u2022 ",(0,s.jsx)(t.strong,{children:"reason"}),": ",(0,s.jsx)(t.code,{children:"string"})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:23"})})]})}function u(e={}){const{wrapper:t}={...(0,a.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},11151:(e,t,n)=>{n.d(t,{Z:()=>r,a:()=>o});var s=n(67294);const a={},i=s.createContext(a);function o(e){const t=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),s.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/46ba77e2.93817308.js b/assets/js/46ba77e2.7de423c5.js similarity index 96% rename from assets/js/46ba77e2.93817308.js rename to assets/js/46ba77e2.7de423c5.js index 221303b3a..2dea2f0c5 100644 --- a/assets/js/46ba77e2.93817308.js +++ b/assets/js/46ba77e2.7de423c5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7954],{10398:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>l,metadata:()=>a,toc:()=>c});var t=r(85893),n=r(11151);const l={id:"ChatLlm",title:"Interface: ChatLlm",sidebar_label:"ChatLlm",sidebar_position:0,custom_edit_url:null},i=void 0,a={id:"reference/server/interfaces/ChatLlm",title:"Interface: ChatLlm",description:"LLM that responds to user queries. Provides both streaming and awaited options.",source:"@site/docs/reference/server/interfaces/ChatLlm.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ChatLlm",permalink:"/chatbot/reference/server/interfaces/ChatLlm",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ChatLlm",title:"Interface: ChatLlm",sidebar_label:"ChatLlm",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CallToolResponse",permalink:"/chatbot/reference/server/interfaces/CallToolResponse"},next:{title:"CommentMessageParams",permalink:"/chatbot/reference/server/interfaces/CommentMessageParams"}},d={},c=[{value:"Methods",id:"methods",level:2},{value:"answerQuestionAwaited",id:"answerquestionawaited",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"answerQuestionStream",id:"answerquestionstream",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"callTool",id:"calltool",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4}];function o(e){const s={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,n.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.p,{children:"LLM that responds to user queries. Provides both streaming and awaited options."}),"\n",(0,t.jsx)(s.h2,{id:"methods",children:"Methods"}),"\n",(0,t.jsx)(s.h3,{id:"answerquestionawaited",children:"answerQuestionAwaited"}),"\n",(0,t.jsxs)(s.p,{children:["\u25b8 ",(0,t.jsx)(s.strong,{children:"answerQuestionAwaited"}),"(",(0,t.jsx)(s.code,{children:"params"}),"): ",(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.code,{children:"ChatRequestAssistantMessage"}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"parameters",children:"Parameters"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Name"}),(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,t.jsx)(s.tbody,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.code,{children:"params"})}),(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams",children:(0,t.jsx)(s.code,{children:"LlmAnswerQuestionParams"})})})]})})]}),"\n",(0,t.jsx)(s.h4,{id:"returns",children:"Returns"}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.code,{children:"ChatRequestAssistantMessage"}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L150",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:150"})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.h3,{id:"answerquestionstream",children:"answerQuestionStream"}),"\n",(0,t.jsxs)(s.p,{children:["\u25b8 ",(0,t.jsx)(s.strong,{children:"answerQuestionStream"}),"(",(0,t.jsx)(s.code,{children:"params"}),"): ",(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.a,{href:"/chatbot/reference/server/modules#openaistreamingresponse",children:(0,t.jsx)(s.code,{children:"OpenAiStreamingResponse"})}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Name"}),(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,t.jsx)(s.tbody,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.code,{children:"params"})}),(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams",children:(0,t.jsx)(s.code,{children:"LlmAnswerQuestionParams"})})})]})})]}),"\n",(0,t.jsx)(s.h4,{id:"returns-1",children:"Returns"}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.a,{href:"/chatbot/reference/server/modules#openaistreamingresponse",children:(0,t.jsx)(s.code,{children:"OpenAiStreamingResponse"})}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L147",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:147"})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.h3,{id:"calltool",children:"callTool"}),"\n",(0,t.jsxs)(s.p,{children:["\u25b8 ",(0,t.jsx)(s.strong,{children:"callTool"}),"(",(0,t.jsx)(s.code,{children:"params"}),"): ",(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/CallToolResponse",children:(0,t.jsx)(s.code,{children:"CallToolResponse"})}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Name"}),(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,t.jsx)(s.tbody,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.code,{children:"params"})}),(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/LlmCallToolParams",children:(0,t.jsx)(s.code,{children:"LlmCallToolParams"})})})]})})]}),"\n",(0,t.jsx)(s.h4,{id:"returns-2",children:"Returns"}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/CallToolResponse",children:(0,t.jsx)(s.code,{children:"CallToolResponse"})}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L153",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:153"})})]})}function h(e={}){const{wrapper:s}={...(0,n.a)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(o,{...e})}):o(e)}},11151:(e,s,r)=>{r.d(s,{Z:()=>a,a:()=>i});var t=r(67294);const n={},l=t.createContext(n);function i(e){const s=t.useContext(l);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),t.createElement(l.Provider,{value:s},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7954],{10398:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>l,metadata:()=>a,toc:()=>c});var t=r(85893),n=r(11151);const l={id:"ChatLlm",title:"Interface: ChatLlm",sidebar_label:"ChatLlm",sidebar_position:0,custom_edit_url:null},i=void 0,a={id:"reference/server/interfaces/ChatLlm",title:"Interface: ChatLlm",description:"LLM that responds to user queries. Provides both streaming and awaited options.",source:"@site/docs/reference/server/interfaces/ChatLlm.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ChatLlm",permalink:"/chatbot/reference/server/interfaces/ChatLlm",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ChatLlm",title:"Interface: ChatLlm",sidebar_label:"ChatLlm",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CallToolResponse",permalink:"/chatbot/reference/server/interfaces/CallToolResponse"},next:{title:"CommentMessageParams",permalink:"/chatbot/reference/server/interfaces/CommentMessageParams"}},d={},c=[{value:"Methods",id:"methods",level:2},{value:"answerQuestionAwaited",id:"answerquestionawaited",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"answerQuestionStream",id:"answerquestionstream",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"callTool",id:"calltool",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4}];function o(e){const s={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,n.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.p,{children:"LLM that responds to user queries. Provides both streaming and awaited options."}),"\n",(0,t.jsx)(s.h2,{id:"methods",children:"Methods"}),"\n",(0,t.jsx)(s.h3,{id:"answerquestionawaited",children:"answerQuestionAwaited"}),"\n",(0,t.jsxs)(s.p,{children:["\u25b8 ",(0,t.jsx)(s.strong,{children:"answerQuestionAwaited"}),"(",(0,t.jsx)(s.code,{children:"params"}),"): ",(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.code,{children:"ChatRequestAssistantMessage"}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"parameters",children:"Parameters"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Name"}),(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,t.jsx)(s.tbody,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.code,{children:"params"})}),(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams",children:(0,t.jsx)(s.code,{children:"LlmAnswerQuestionParams"})})})]})})]}),"\n",(0,t.jsx)(s.h4,{id:"returns",children:"Returns"}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.code,{children:"ChatRequestAssistantMessage"}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L150",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:150"})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.h3,{id:"answerquestionstream",children:"answerQuestionStream"}),"\n",(0,t.jsxs)(s.p,{children:["\u25b8 ",(0,t.jsx)(s.strong,{children:"answerQuestionStream"}),"(",(0,t.jsx)(s.code,{children:"params"}),"): ",(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.a,{href:"/chatbot/reference/server/modules#openaistreamingresponse",children:(0,t.jsx)(s.code,{children:"OpenAiStreamingResponse"})}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Name"}),(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,t.jsx)(s.tbody,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.code,{children:"params"})}),(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams",children:(0,t.jsx)(s.code,{children:"LlmAnswerQuestionParams"})})})]})})]}),"\n",(0,t.jsx)(s.h4,{id:"returns-1",children:"Returns"}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.a,{href:"/chatbot/reference/server/modules#openaistreamingresponse",children:(0,t.jsx)(s.code,{children:"OpenAiStreamingResponse"})}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L147",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:147"})}),"\n",(0,t.jsx)(s.hr,{}),"\n",(0,t.jsx)(s.h3,{id:"calltool",children:"callTool"}),"\n",(0,t.jsxs)(s.p,{children:["\u25b8 ",(0,t.jsx)(s.strong,{children:"callTool"}),"(",(0,t.jsx)(s.code,{children:"params"}),"): ",(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/CallToolResponse",children:(0,t.jsx)(s.code,{children:"CallToolResponse"})}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,t.jsxs)(s.table,{children:[(0,t.jsx)(s.thead,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Name"}),(0,t.jsx)(s.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,t.jsx)(s.tbody,{children:(0,t.jsxs)(s.tr,{children:[(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.code,{children:"params"})}),(0,t.jsx)(s.td,{style:{textAlign:"left"},children:(0,t.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/LlmCallToolParams",children:(0,t.jsx)(s.code,{children:"LlmCallToolParams"})})})]})})]}),"\n",(0,t.jsx)(s.h4,{id:"returns-2",children:"Returns"}),"\n",(0,t.jsxs)(s.p,{children:[(0,t.jsx)(s.code,{children:"Promise"}),"<",(0,t.jsx)(s.a,{href:"/chatbot/reference/server/interfaces/CallToolResponse",children:(0,t.jsx)(s.code,{children:"CallToolResponse"})}),">"]}),"\n",(0,t.jsx)(s.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(s.p,{children:(0,t.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L153",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:153"})})]})}function h(e={}){const{wrapper:s}={...(0,n.a)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(o,{...e})}):o(e)}},11151:(e,s,r)=>{r.d(s,{Z:()=>a,a:()=>i});var t=r(67294);const n={},l=t.createContext(n);function i(e){const s=t.useContext(l);return t.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function a(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),t.createElement(l.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/47301a5f.57f6d2a5.js b/assets/js/47301a5f.24f2f64e.js similarity index 81% rename from assets/js/47301a5f.57f6d2a5.js rename to assets/js/47301a5f.24f2f64e.js index 4b760f917..243571376 100644 --- a/assets/js/47301a5f.57f6d2a5.js +++ b/assets/js/47301a5f.24f2f64e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9136],{32067:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>a,contentTitle:()=>i,default:()=>h,frontMatter:()=>t,metadata:()=>o,toc:()=>d});var s=r(85893),c=r(11151);const t={id:"sources.Branch",title:"Interface: Branch",sidebar_label:"sources.Branch",custom_edit_url:null},i=void 0,o={id:"reference/ingest/interfaces/sources.Branch",title:"Interface: Branch",description:"sources.Branch",source:"@site/docs/reference/ingest/interfaces/sources.Branch.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.Branch",permalink:"/chatbot/reference/ingest/interfaces/sources.Branch",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.Branch",title:"Interface: Branch",sidebar_label:"sources.Branch",custom_edit_url:null},sidebar:"main",previous:{title:"sources",permalink:"/chatbot/reference/ingest/modules/sources"},next:{title:"sources.DevCenterEntryTag",permalink:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag"}},a={},d=[{value:"Properties",id:"properties",level:2},{value:"active",id:"active",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"fullUrl",id:"fullurl",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"gitBranchName",id:"gitbranchname",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"isStableBranch",id:"isstablebranch",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,c.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".Branch"]}),"\n",(0,s.jsx)(n.p,{children:"Branch with site"}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"active",children:"active"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"active"}),": ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.p,{children:"Whether or not the branch is active."}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Example"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"true\n"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L232",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:232"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"fullurl",children:"fullUrl"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"fullUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Base URL of the site"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Example"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:'"https://mongodb.com/docs/kotlin/coroutine/upcoming"\n'})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L238",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:238"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"gitbranchname",children:"gitBranchName"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"gitBranchName"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Name of git branch"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Example"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:'"master"\n'})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L226",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:226"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"isstablebranch",children:"isStableBranch"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"isStableBranch"}),": ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.p,{children:"Whether this is the 'current, active branch' (rather than a previous or\nupcoming version)."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L244",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:244"})})]})}function h(e={}){const{wrapper:n}={...(0,c.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>o,a:()=>i});var s=r(67294);const c={},t=s.createContext(c);function i(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(c):e.components||c:i(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9136],{32067:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>a,contentTitle:()=>i,default:()=>h,frontMatter:()=>c,metadata:()=>o,toc:()=>l});var s=r(85893),t=r(11151);const c={id:"sources.Branch",title:"Interface: Branch",sidebar_label:"sources.Branch",custom_edit_url:null},i=void 0,o={id:"reference/ingest/interfaces/sources.Branch",title:"Interface: Branch",description:"sources.Branch",source:"@site/docs/reference/ingest/interfaces/sources.Branch.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.Branch",permalink:"/chatbot/reference/ingest/interfaces/sources.Branch",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.Branch",title:"Interface: Branch",sidebar_label:"sources.Branch",custom_edit_url:null},sidebar:"main",previous:{title:"sources",permalink:"/chatbot/reference/ingest/modules/sources"},next:{title:"sources.DevCenterEntryTag",permalink:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag"}},a={},l=[{value:"Properties",id:"properties",level:2},{value:"active",id:"active",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"fullUrl",id:"fullurl",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"gitBranchName",id:"gitbranchname",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"isStableBranch",id:"isstablebranch",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".Branch"]}),"\n",(0,s.jsx)(n.p,{children:"Branch with site"}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"active",children:"active"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"active"}),": ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.p,{children:"Whether or not the branch is active."}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Example"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:"true\n"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L232",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:232"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"fullurl",children:"fullUrl"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"fullUrl"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Base URL of the site"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Example"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:'"https://mongodb.com/docs/kotlin/coroutine/upcoming"\n'})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L238",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:238"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"gitbranchname",children:"gitBranchName"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"gitBranchName"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Name of git branch"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Example"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:'"master"\n'})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L226",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:226"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"isstablebranch",children:"isStableBranch"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"isStableBranch"}),": ",(0,s.jsx)(n.code,{children:"boolean"})]}),"\n",(0,s.jsx)(n.p,{children:"Whether this is the 'current, active branch' (rather than a previous or\nupcoming version)."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts#L244",children:"mongodb-rag-ingest/src/sources/snooty/SnootyDataSource.ts:244"})})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>o,a:()=>i});var s=r(67294);const t={},c=s.createContext(t);function i(e){const n=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),s.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/4c053673.9515590f.js b/assets/js/4c053673.c43df511.js similarity index 89% rename from assets/js/4c053673.9515590f.js rename to assets/js/4c053673.c43df511.js index 86ea0ce98..bfb82e9d1 100644 --- a/assets/js/4c053673.9515590f.js +++ b/assets/js/4c053673.c43df511.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8753],{68367:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>p,frontMatter:()=>t,metadata:()=>c,toc:()=>a});var r=i(85893),s=i(11151);const t={id:"AppConfig",title:"Interface: AppConfig",sidebar_label:"AppConfig",sidebar_position:0,custom_edit_url:null},o=void 0,c={id:"reference/server/interfaces/AppConfig",title:"Interface: AppConfig",description:"Configuration for the server Express.js app.",source:"@site/docs/reference/server/interfaces/AppConfig.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/AppConfig",permalink:"/chatbot/reference/server/interfaces/AppConfig",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"AppConfig",title:"Interface: AppConfig",sidebar_label:"AppConfig",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Exports",permalink:"/chatbot/reference/server/modules"},next:{title:"AzureOpenAiServiceConfig",permalink:"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig"}},d={},a=[{value:"Properties",id:"properties",level:2},{value:"apiPrefix",id:"apiprefix",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"conversationsRouterConfig",id:"conversationsrouterconfig",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"corsOptions",id:"corsoptions",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"maxRequestTimeoutMs",id:"maxrequesttimeoutms",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"serveStaticSite",id:"servestaticsite",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.p,{children:"Configuration for the server Express.js app."}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"apiprefix",children:"apiPrefix"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"apiPrefix"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsxs)(n.p,{children:["Prefix for all API routes. Defaults to ",(0,r.jsx)(n.code,{children:"/api/v1"}),"."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/app.ts#L45",children:"packages/mongodb-chatbot-server/src/app.ts:45"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"conversationsrouterconfig",children:"conversationsRouterConfig"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"conversationsRouterConfig"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterParams",children:(0,r.jsx)(n.code,{children:"ConversationsRouterParams"})})]}),"\n",(0,r.jsx)(n.p,{children:"Configuration for the conversations router."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/app.ts#L29",children:"packages/mongodb-chatbot-server/src/app.ts:29"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"corsoptions",children:"corsOptions"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"corsOptions"}),": ",(0,r.jsx)(n.code,{children:"CorsOptions"})]}),"\n",(0,r.jsx)(n.p,{children:"Configuration for CORS middleware. Defaults to allowing all origins."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/app.ts#L40",children:"packages/mongodb-chatbot-server/src/app.ts:40"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"maxrequesttimeoutms",children:"maxRequestTimeoutMs"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"maxRequestTimeoutMs"}),": ",(0,r.jsx)(n.code,{children:"number"})]}),"\n",(0,r.jsx)(n.p,{children:"Maximum time in milliseconds for a request to complete before timing out.\nDefaults to 60000 (1 minute)."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/app.ts#L35",children:"packages/mongodb-chatbot-server/src/app.ts:35"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"servestaticsite",children:"serveStaticSite"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"serveStaticSite"}),": ",(0,r.jsx)(n.code,{children:"boolean"})]}),"\n",(0,r.jsxs)(n.p,{children:["Whether to serve a static site from the root path (",(0,r.jsx)(n.code,{children:"GET https://my-site.com/"}),").\nDefaults to false.\nThis is useful for demo and testing purposes."]}),"\n",(0,r.jsx)(n.p,{children:"You should probably not include this in your production server.\nYou can control including this in dev/test/staging but not production\nwith an environment variable."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/app.ts#L56",children:"packages/mongodb-chatbot-server/src/app.ts:56"})})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,i)=>{i.d(n,{Z:()=>c,a:()=>o});var r=i(67294);const s={},t=r.createContext(s);function o(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8753],{68367:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>a,contentTitle:()=>o,default:()=>p,frontMatter:()=>t,metadata:()=>c,toc:()=>d});var r=i(85893),s=i(11151);const t={id:"AppConfig",title:"Interface: AppConfig",sidebar_label:"AppConfig",sidebar_position:0,custom_edit_url:null},o=void 0,c={id:"reference/server/interfaces/AppConfig",title:"Interface: AppConfig",description:"Configuration for the server Express.js app.",source:"@site/docs/reference/server/interfaces/AppConfig.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/AppConfig",permalink:"/chatbot/reference/server/interfaces/AppConfig",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"AppConfig",title:"Interface: AppConfig",sidebar_label:"AppConfig",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Exports",permalink:"/chatbot/reference/server/modules"},next:{title:"AzureOpenAiServiceConfig",permalink:"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig"}},a={},d=[{value:"Properties",id:"properties",level:2},{value:"apiPrefix",id:"apiprefix",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"conversationsRouterConfig",id:"conversationsrouterconfig",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"corsOptions",id:"corsoptions",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"maxRequestTimeoutMs",id:"maxrequesttimeoutms",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"serveStaticSite",id:"servestaticsite",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,s.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.p,{children:"Configuration for the server Express.js app."}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"apiprefix",children:"apiPrefix"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"apiPrefix"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsxs)(n.p,{children:["Prefix for all API routes. Defaults to ",(0,r.jsx)(n.code,{children:"/api/v1"}),"."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/app.ts#L45",children:"packages/mongodb-chatbot-server/src/app.ts:45"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"conversationsrouterconfig",children:"conversationsRouterConfig"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"conversationsRouterConfig"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterParams",children:(0,r.jsx)(n.code,{children:"ConversationsRouterParams"})})]}),"\n",(0,r.jsx)(n.p,{children:"Configuration for the conversations router."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/app.ts#L29",children:"packages/mongodb-chatbot-server/src/app.ts:29"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"corsoptions",children:"corsOptions"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"corsOptions"}),": ",(0,r.jsx)(n.code,{children:"CorsOptions"})]}),"\n",(0,r.jsx)(n.p,{children:"Configuration for CORS middleware. Defaults to allowing all origins."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/app.ts#L40",children:"packages/mongodb-chatbot-server/src/app.ts:40"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"maxrequesttimeoutms",children:"maxRequestTimeoutMs"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"maxRequestTimeoutMs"}),": ",(0,r.jsx)(n.code,{children:"number"})]}),"\n",(0,r.jsx)(n.p,{children:"Maximum time in milliseconds for a request to complete before timing out.\nDefaults to 60000 (1 minute)."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/app.ts#L35",children:"packages/mongodb-chatbot-server/src/app.ts:35"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"servestaticsite",children:"serveStaticSite"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"serveStaticSite"}),": ",(0,r.jsx)(n.code,{children:"boolean"})]}),"\n",(0,r.jsxs)(n.p,{children:["Whether to serve a static site from the root path (",(0,r.jsx)(n.code,{children:"GET https://my-site.com/"}),").\nDefaults to false.\nThis is useful for demo and testing purposes."]}),"\n",(0,r.jsx)(n.p,{children:"You should probably not include this in your production server.\nYou can control including this in dev/test/staging but not production\nwith an environment variable."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/app.ts#L56",children:"packages/mongodb-chatbot-server/src/app.ts:56"})})]})}function p(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,i)=>{i.d(n,{Z:()=>c,a:()=>o});var r=i(67294);const s={},t=r.createContext(s);function o(e){const n=r.useContext(t);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),r.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/4d856518.2d1f81c2.js b/assets/js/4d856518.1cb099ab.js similarity index 58% rename from assets/js/4d856518.2d1f81c2.js rename to assets/js/4d856518.1cb099ab.js index 9b1ffc891..32d86a784 100644 --- a/assets/js/4d856518.2d1f81c2.js +++ b/assets/js/4d856518.1cb099ab.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8202],{94704:e=>{e.exports=JSON.parse('{"title":"API Reference","description":"This section contains full generated API reference documentation.","slug":"/reference/","permalink":"/chatbot/reference/","navigation":{"previous":{"title":"Evaluation CLI","permalink":"/chatbot/evaluation/"},"next":{"title":"Readme","permalink":"/chatbot/reference/server/"}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8202],{94704:e=>{e.exports=JSON.parse('{"title":"API Reference","description":"This section contains full generated API reference documentation.","slug":"/reference/","permalink":"/chatbot/reference/","navigation":{"previous":{"title":"Pipelines","permalink":"/chatbot/evaluation/pipeline"},"next":{"title":"Readme","permalink":"/chatbot/reference/server/"}}}')}}]); \ No newline at end of file diff --git a/assets/js/4e9b4fcd.aba723b1.js b/assets/js/4e9b4fcd.74917561.js similarity index 94% rename from assets/js/4e9b4fcd.aba723b1.js rename to assets/js/4e9b4fcd.74917561.js index 9d168f0bc..aa4e330e2 100644 --- a/assets/js/4e9b4fcd.aba723b1.js +++ b/assets/js/4e9b4fcd.74917561.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5302],{17594:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>a,contentTitle:()=>o,default:()=>h,frontMatter:()=>c,metadata:()=>i,toc:()=>d});var s=n(85893),t=n(11151);const c={id:"GenerateUserPromptFuncReturnValue",title:"Interface: GenerateUserPromptFuncReturnValue",sidebar_label:"GenerateUserPromptFuncReturnValue",sidebar_position:0,custom_edit_url:null},o=void 0,i={id:"reference/server/interfaces/GenerateUserPromptFuncReturnValue",title:"Interface: GenerateUserPromptFuncReturnValue",description:"Properties",source:"@site/docs/reference/server/interfaces/GenerateUserPromptFuncReturnValue.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/GenerateUserPromptFuncReturnValue",permalink:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"GenerateUserPromptFuncReturnValue",title:"Interface: GenerateUserPromptFuncReturnValue",sidebar_label:"GenerateUserPromptFuncReturnValue",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"FindByIdParams",permalink:"/chatbot/reference/server/interfaces/FindByIdParams"},next:{title:"LlmAnswerQuestionParams",permalink:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams"}},a={},d=[{value:"Properties",id:"properties",level:2},{value:"references",id:"references",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"rejectQuery",id:"rejectquery",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"staticResponse",id:"staticresponse",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"userMessage",id:"usermessage",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function l(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(r.h3,{id:"references",children:"references"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"references"}),": { ",(0,s.jsx)(r.code,{children:"title"}),": ",(0,s.jsx)(r.code,{children:"string"})," ; ",(0,s.jsx)(r.code,{children:"url"}),": ",(0,s.jsx)(r.code,{children:"string"})," }[]"]}),"\n",(0,s.jsx)(r.p,{children:"References returned with the LLM response"}),"\n",(0,s.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L53",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:53"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"rejectquery",children:"rejectQuery"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"rejectQuery"}),": ",(0,s.jsx)(r.code,{children:"boolean"})]}),"\n",(0,s.jsxs)(r.p,{children:["If true, no response should be generated with an LLM. Instead, return the\n",(0,s.jsx)(r.code,{children:"staticResponse"})," if set or otherwise respond with a standard static\nrejection response."]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L43",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:43"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"staticresponse",children:"staticResponse"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"staticResponse"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#assistantmessage",children:(0,s.jsx)(r.code,{children:"AssistantMessage"})})]}),"\n",(0,s.jsx)(r.p,{children:"If defined, this message should be sent as a response instead of generating\na response to the user query with the LLM."}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L36",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:36"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"usermessage",children:"userMessage"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"userMessage"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(r.code,{children:"UserMessage"})})]}),"\n",(0,s.jsx)(r.p,{children:"The (preprocessed) user message to insert into the conversation."}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L48",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:48"})})]})}function h(e={}){const{wrapper:r}={...(0,t.a)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},11151:(e,r,n)=>{n.d(r,{Z:()=>i,a:()=>o});var s=n(67294);const t={},c=s.createContext(t);function o(e){const r=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function i(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),s.createElement(c.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5302],{17594:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>a,contentTitle:()=>o,default:()=>h,frontMatter:()=>c,metadata:()=>i,toc:()=>d});var s=n(85893),t=n(11151);const c={id:"GenerateUserPromptFuncReturnValue",title:"Interface: GenerateUserPromptFuncReturnValue",sidebar_label:"GenerateUserPromptFuncReturnValue",sidebar_position:0,custom_edit_url:null},o=void 0,i={id:"reference/server/interfaces/GenerateUserPromptFuncReturnValue",title:"Interface: GenerateUserPromptFuncReturnValue",description:"Properties",source:"@site/docs/reference/server/interfaces/GenerateUserPromptFuncReturnValue.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/GenerateUserPromptFuncReturnValue",permalink:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"GenerateUserPromptFuncReturnValue",title:"Interface: GenerateUserPromptFuncReturnValue",sidebar_label:"GenerateUserPromptFuncReturnValue",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"FindByIdParams",permalink:"/chatbot/reference/server/interfaces/FindByIdParams"},next:{title:"LlmAnswerQuestionParams",permalink:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams"}},a={},d=[{value:"Properties",id:"properties",level:2},{value:"references",id:"references",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"rejectQuery",id:"rejectquery",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"staticResponse",id:"staticresponse",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"userMessage",id:"usermessage",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function l(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(r.h3,{id:"references",children:"references"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"references"}),": { ",(0,s.jsx)(r.code,{children:"title"}),": ",(0,s.jsx)(r.code,{children:"string"})," ; ",(0,s.jsx)(r.code,{children:"url"}),": ",(0,s.jsx)(r.code,{children:"string"})," }[]"]}),"\n",(0,s.jsx)(r.p,{children:"References returned with the LLM response"}),"\n",(0,s.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L53",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:53"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"rejectquery",children:"rejectQuery"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"rejectQuery"}),": ",(0,s.jsx)(r.code,{children:"boolean"})]}),"\n",(0,s.jsxs)(r.p,{children:["If true, no response should be generated with an LLM. Instead, return the\n",(0,s.jsx)(r.code,{children:"staticResponse"})," if set or otherwise respond with a standard static\nrejection response."]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L43",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:43"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"staticresponse",children:"staticResponse"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"staticResponse"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#assistantmessage",children:(0,s.jsx)(r.code,{children:"AssistantMessage"})})]}),"\n",(0,s.jsx)(r.p,{children:"If defined, this message should be sent as a response instead of generating\na response to the user query with the LLM."}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L36",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:36"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"usermessage",children:"userMessage"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"userMessage"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(r.code,{children:"UserMessage"})})]}),"\n",(0,s.jsx)(r.p,{children:"The (preprocessed) user message to insert into the conversation."}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L48",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:48"})})]})}function h(e={}){const{wrapper:r}={...(0,t.a)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},11151:(e,r,n)=>{n.d(r,{Z:()=>i,a:()=>o});var s=n(67294);const t={},c=s.createContext(t);function o(e){const r=s.useContext(c);return s.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function i(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),s.createElement(c.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/4fddc917.a24c6ed5.js b/assets/js/4fddc917.e6c2d222.js similarity index 91% rename from assets/js/4fddc917.a24c6ed5.js rename to assets/js/4fddc917.e6c2d222.js index 069b2c358..1838c1490 100644 --- a/assets/js/4fddc917.a24c6ed5.js +++ b/assets/js/4fddc917.e6c2d222.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2477],{12766:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>h,frontMatter:()=>r,metadata:()=>s,toc:()=>c});var a=n(85893),d=n(11151);const r={id:"CommandMetadataStore",title:"Interface: CommandMetadataStore",sidebar_label:"CommandMetadataStore",sidebar_position:0,custom_edit_url:null},i=void 0,s={id:"reference/evaluation/interfaces/CommandMetadataStore",title:"Interface: CommandMetadataStore",description:"Methods",source:"@site/docs/reference/evaluation/interfaces/CommandMetadataStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/CommandMetadataStore",permalink:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CommandMetadataStore",title:"Interface: CommandMetadataStore",sidebar_label:"CommandMetadataStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CheckResponseQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams"},next:{title:"CommandRunMetadata",permalink:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata"}},o={},c=[{value:"Methods",id:"methods",level:2},{value:"close",id:"close",level:3},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"findById",id:"findbyid",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,d.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h2,{id:"methods",children:"Methods"}),"\n",(0,a.jsx)(t.h3,{id:"close",children:"close"}),"\n",(0,a.jsxs)(t.p,{children:["\u25b8 ",(0,a.jsx)(t.strong,{children:"close"}),"(): ",(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"returns",children:"Returns"}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:13"})}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(t.h3,{id:"findbyid",children:"findById"}),"\n",(0,a.jsxs)(t.p,{children:["\u25b8 ",(0,a.jsx)(t.strong,{children:"findById"}),"(",(0,a.jsx)(t.code,{children:"commandId"}),"): ",(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"undefined"})," | ",(0,a.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",children:(0,a.jsx)(t.code,{children:"CommandRunMetadata"})}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"parameters",children:"Parameters"}),"\n",(0,a.jsxs)(t.table,{children:[(0,a.jsx)(t.thead,{children:(0,a.jsxs)(t.tr,{children:[(0,a.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(t.tbody,{children:(0,a.jsxs)(t.tr,{children:[(0,a.jsx)(t.td,{style:{textAlign:"left"},children:(0,a.jsx)(t.code,{children:"commandId"})}),(0,a.jsx)(t.td,{style:{textAlign:"left"},children:(0,a.jsx)(t.code,{children:"ObjectId"})})]})})]}),"\n",(0,a.jsx)(t.h4,{id:"returns-1",children:"Returns"}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"undefined"})," | ",(0,a.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",children:(0,a.jsx)(t.code,{children:"CommandRunMetadata"})}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:12"})}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(t.h3,{id:"insertone",children:"insertOne"}),"\n",(0,a.jsxs)(t.p,{children:["\u25b8 ",(0,a.jsx)(t.strong,{children:"insertOne"}),"(",(0,a.jsx)(t.code,{children:"command"}),"): ",(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"boolean"}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,a.jsxs)(t.table,{children:[(0,a.jsx)(t.thead,{children:(0,a.jsxs)(t.tr,{children:[(0,a.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(t.tbody,{children:(0,a.jsxs)(t.tr,{children:[(0,a.jsx)(t.td,{style:{textAlign:"left"},children:(0,a.jsx)(t.code,{children:"command"})}),(0,a.jsx)(t.td,{style:{textAlign:"left"},children:(0,a.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",children:(0,a.jsx)(t.code,{children:"CommandRunMetadata"})})})]})})]}),"\n",(0,a.jsx)(t.h4,{id:"returns-2",children:"Returns"}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"boolean"}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L11",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:11"})})]})}function h(e={}){const{wrapper:t}={...(0,d.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},11151:(e,t,n)=>{n.d(t,{Z:()=>s,a:()=>i});var a=n(67294);const d={},r=a.createContext(d);function i(e){const t=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),a.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2477],{12766:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>h,frontMatter:()=>r,metadata:()=>s,toc:()=>l});var a=n(85893),d=n(11151);const r={id:"CommandMetadataStore",title:"Interface: CommandMetadataStore",sidebar_label:"CommandMetadataStore",sidebar_position:0,custom_edit_url:null},i=void 0,s={id:"reference/evaluation/interfaces/CommandMetadataStore",title:"Interface: CommandMetadataStore",description:"Methods",source:"@site/docs/reference/evaluation/interfaces/CommandMetadataStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/CommandMetadataStore",permalink:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CommandMetadataStore",title:"Interface: CommandMetadataStore",sidebar_label:"CommandMetadataStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CheckResponseQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams"},next:{title:"CommandRunMetadata",permalink:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata"}},o={},l=[{value:"Methods",id:"methods",level:2},{value:"close",id:"close",level:3},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"findById",id:"findbyid",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4}];function c(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,d.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h2,{id:"methods",children:"Methods"}),"\n",(0,a.jsx)(t.h3,{id:"close",children:"close"}),"\n",(0,a.jsxs)(t.p,{children:["\u25b8 ",(0,a.jsx)(t.strong,{children:"close"}),"(): ",(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"returns",children:"Returns"}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:13"})}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(t.h3,{id:"findbyid",children:"findById"}),"\n",(0,a.jsxs)(t.p,{children:["\u25b8 ",(0,a.jsx)(t.strong,{children:"findById"}),"(",(0,a.jsx)(t.code,{children:"commandId"}),"): ",(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"undefined"})," | ",(0,a.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",children:(0,a.jsx)(t.code,{children:"CommandRunMetadata"})}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"parameters",children:"Parameters"}),"\n",(0,a.jsxs)(t.table,{children:[(0,a.jsx)(t.thead,{children:(0,a.jsxs)(t.tr,{children:[(0,a.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(t.tbody,{children:(0,a.jsxs)(t.tr,{children:[(0,a.jsx)(t.td,{style:{textAlign:"left"},children:(0,a.jsx)(t.code,{children:"commandId"})}),(0,a.jsx)(t.td,{style:{textAlign:"left"},children:(0,a.jsx)(t.code,{children:"ObjectId"})})]})})]}),"\n",(0,a.jsx)(t.h4,{id:"returns-1",children:"Returns"}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"undefined"})," | ",(0,a.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",children:(0,a.jsx)(t.code,{children:"CommandRunMetadata"})}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:12"})}),"\n",(0,a.jsx)(t.hr,{}),"\n",(0,a.jsx)(t.h3,{id:"insertone",children:"insertOne"}),"\n",(0,a.jsxs)(t.p,{children:["\u25b8 ",(0,a.jsx)(t.strong,{children:"insertOne"}),"(",(0,a.jsx)(t.code,{children:"command"}),"): ",(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"boolean"}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,a.jsxs)(t.table,{children:[(0,a.jsx)(t.thead,{children:(0,a.jsxs)(t.tr,{children:[(0,a.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(t.tbody,{children:(0,a.jsxs)(t.tr,{children:[(0,a.jsx)(t.td,{style:{textAlign:"left"},children:(0,a.jsx)(t.code,{children:"command"})}),(0,a.jsx)(t.td,{style:{textAlign:"left"},children:(0,a.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",children:(0,a.jsx)(t.code,{children:"CommandRunMetadata"})})})]})})]}),"\n",(0,a.jsx)(t.h4,{id:"returns-2",children:"Returns"}),"\n",(0,a.jsxs)(t.p,{children:[(0,a.jsx)(t.code,{children:"Promise"}),"<",(0,a.jsx)(t.code,{children:"boolean"}),">"]}),"\n",(0,a.jsx)(t.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(t.p,{children:(0,a.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L11",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:11"})})]})}function h(e={}){const{wrapper:t}={...(0,d.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(c,{...e})}):c(e)}},11151:(e,t,n)=>{n.d(t,{Z:()=>s,a:()=>i});var a=n(67294);const d={},r=a.createContext(d);function i(e){const t=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),a.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/522e53fb.69b73fc2.js b/assets/js/522e53fb.fec17fcd.js similarity index 97% rename from assets/js/522e53fb.69b73fc2.js rename to assets/js/522e53fb.fec17fcd.js index 235d7c834..621f24924 100644 --- a/assets/js/522e53fb.69b73fc2.js +++ b/assets/js/522e53fb.fec17fcd.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6887],{51:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>l,toc:()=>d});var n=t(85893),s=t(11151);const o={id:"Tool",title:"Interface: Tool",sidebar_label:"Tool",sidebar_position:0,custom_edit_url:null},i=void 0,l={id:"reference/server/interfaces/Tool",title:"Interface: Tool",description:"Tool for the chatbot to use.",source:"@site/docs/reference/server/interfaces/Tool.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/Tool",permalink:"/chatbot/reference/server/interfaces/Tool",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"Tool",title:"Interface: Tool",sidebar_label:"Tool",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"SearchBooster",permalink:"/chatbot/reference/server/interfaces/SearchBooster"},next:{title:"ToolCallParams",permalink:"/chatbot/reference/server/interfaces/ToolCallParams"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"definition",id:"definition",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"Methods",id:"methods",level:2},{value:"call",id:"call",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-1",level:4}];function a(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.p,{children:"Tool for the chatbot to use."}),"\n",(0,n.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(r.h3,{id:"definition",children:"definition"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"definition"}),": ",(0,n.jsx)(r.code,{children:"FunctionDefinition"})]}),"\n",(0,n.jsx)(r.p,{children:"Function definition for the LLM to invoke."}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L50",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:50"})}),"\n",(0,n.jsx)(r.h2,{id:"methods",children:"Methods"}),"\n",(0,n.jsx)(r.h3,{id:"call",children:"call"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"call"}),"(",(0,n.jsx)(r.code,{children:"args"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/CallToolResponse",children:(0,n.jsx)(r.code,{children:"CallToolResponse"})}),">"]}),"\n",(0,n.jsxs)(r.p,{children:["Call the function based on the arguments in the ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Tool#definition",children:"Tool.definition"}),"."]}),"\n",(0,n.jsx)(r.h4,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"args"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/ToolCallParams",children:(0,n.jsx)(r.code,{children:"ToolCallParams"})})})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/CallToolResponse",children:(0,n.jsx)(r.code,{children:"CallToolResponse"})}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L55",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:55"})})]})}function h(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(a,{...e})}):a(e)}},11151:(e,r,t)=>{t.d(r,{Z:()=>l,a:()=>i});var n=t(67294);const s={},o=n.createContext(s);function i(e){const r=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function l(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),n.createElement(o.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6887],{51:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>l,toc:()=>d});var n=t(85893),s=t(11151);const o={id:"Tool",title:"Interface: Tool",sidebar_label:"Tool",sidebar_position:0,custom_edit_url:null},i=void 0,l={id:"reference/server/interfaces/Tool",title:"Interface: Tool",description:"Tool for the chatbot to use.",source:"@site/docs/reference/server/interfaces/Tool.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/Tool",permalink:"/chatbot/reference/server/interfaces/Tool",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"Tool",title:"Interface: Tool",sidebar_label:"Tool",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"SearchBooster",permalink:"/chatbot/reference/server/interfaces/SearchBooster"},next:{title:"ToolCallParams",permalink:"/chatbot/reference/server/interfaces/ToolCallParams"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"definition",id:"definition",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"Methods",id:"methods",level:2},{value:"call",id:"call",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-1",level:4}];function a(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.p,{children:"Tool for the chatbot to use."}),"\n",(0,n.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(r.h3,{id:"definition",children:"definition"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"definition"}),": ",(0,n.jsx)(r.code,{children:"FunctionDefinition"})]}),"\n",(0,n.jsx)(r.p,{children:"Function definition for the LLM to invoke."}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L50",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:50"})}),"\n",(0,n.jsx)(r.h2,{id:"methods",children:"Methods"}),"\n",(0,n.jsx)(r.h3,{id:"call",children:"call"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"call"}),"(",(0,n.jsx)(r.code,{children:"args"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/CallToolResponse",children:(0,n.jsx)(r.code,{children:"CallToolResponse"})}),">"]}),"\n",(0,n.jsxs)(r.p,{children:["Call the function based on the arguments in the ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Tool#definition",children:"Tool.definition"}),"."]}),"\n",(0,n.jsx)(r.h4,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"args"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/ToolCallParams",children:(0,n.jsx)(r.code,{children:"ToolCallParams"})})})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/CallToolResponse",children:(0,n.jsx)(r.code,{children:"CallToolResponse"})}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L55",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:55"})})]})}function h(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(a,{...e})}):a(e)}},11151:(e,r,t)=>{t.d(r,{Z:()=>l,a:()=>i});var n=t(67294);const s={},o=n.createContext(s);function i(e){const r=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function l(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),n.createElement(o.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/52cccada.28146a12.js b/assets/js/52cccada.85983978.js similarity index 95% rename from assets/js/52cccada.28146a12.js rename to assets/js/52cccada.85983978.js index e1d7a0078..c8885d94c 100644 --- a/assets/js/52cccada.28146a12.js +++ b/assets/js/52cccada.85983978.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4625],{89751:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>d});var i=o(85893),t=o(11151);const s={id:"ConversationsRateLimitConfig",title:"Interface: ConversationsRateLimitConfig",sidebar_label:"ConversationsRateLimitConfig",sidebar_position:0,custom_edit_url:null},r=void 0,a={id:"reference/server/interfaces/ConversationsRateLimitConfig",title:"Interface: ConversationsRateLimitConfig",description:"Configuration for rate limiting on the /conversations/* routes.",source:"@site/docs/reference/server/interfaces/ConversationsRateLimitConfig.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ConversationsRateLimitConfig",permalink:"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationsRateLimitConfig",title:"Interface: ConversationsRateLimitConfig",sidebar_label:"ConversationsRateLimitConfig",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationConstants",permalink:"/chatbot/reference/server/interfaces/ConversationConstants"},next:{title:"ConversationsRouterLocals",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterLocals"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"addMessageRateLimitConfig",id:"addmessageratelimitconfig",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"addMessageSlowDownConfig",id:"addmessageslowdownconfig",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"routerRateLimitConfig",id:"routerratelimitconfig",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"routerSlowDownConfig",id:"routerslowdownconfig",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.p,{children:"Configuration for rate limiting on the /conversations/* routes."}),"\n",(0,i.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,i.jsx)(n.h3,{id:"addmessageratelimitconfig",children:"addMessageRateLimitConfig"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.code,{children:"Optional"})," ",(0,i.jsx)(n.strong,{children:"addMessageRateLimitConfig"}),": ",(0,i.jsx)(n.code,{children:"Partial"}),"<",(0,i.jsx)(n.code,{children:"Options"}),">"]}),"\n",(0,i.jsxs)(n.p,{children:["Configuration for rate limiting on the POST /conversations/",":conversationId",'/messages route.\nSince this is the most "expensive" route as it calls the LLM,\nit could be more restrictive than the global rate limit.']}),"\n",(0,i.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L49",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:49"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"addmessageslowdownconfig",children:"addMessageSlowDownConfig"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.code,{children:"Optional"})," ",(0,i.jsx)(n.strong,{children:"addMessageSlowDownConfig"}),": ",(0,i.jsx)(n.code,{children:"Partial"}),"<",(0,i.jsx)(n.code,{children:"Options"}),">"]}),"\n",(0,i.jsxs)(n.p,{children:["Configuration for slow down on the POST /conversations/",":conversationId",'/messages route.\nSince this is the most "expensive" route as it calls the LLM,\nit could be more restrictive than the global slow down.']}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L61",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:61"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"routerratelimitconfig",children:"routerRateLimitConfig"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.code,{children:"Optional"})," ",(0,i.jsx)(n.strong,{children:"routerRateLimitConfig"}),": ",(0,i.jsx)(n.code,{children:"Partial"}),"<",(0,i.jsx)(n.code,{children:"Options"}),">"]}),"\n",(0,i.jsx)(n.p,{children:"Configuration for rate limiting on ALL /conversations/* routes."}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L42",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:42"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"routerslowdownconfig",children:"routerSlowDownConfig"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.code,{children:"Optional"})," ",(0,i.jsx)(n.strong,{children:"routerSlowDownConfig"}),": ",(0,i.jsx)(n.code,{children:"Partial"}),"<",(0,i.jsx)(n.code,{children:"Options"}),">"]}),"\n",(0,i.jsx)(n.p,{children:"Configuration for slow down on ALL /conversations/* routes."}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L54",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:54"})})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},11151:(e,n,o)=>{o.d(n,{Z:()=>a,a:()=>r});var i=o(67294);const t={},s=i.createContext(t);function r(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4625],{89751:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>d});var i=o(85893),t=o(11151);const s={id:"ConversationsRateLimitConfig",title:"Interface: ConversationsRateLimitConfig",sidebar_label:"ConversationsRateLimitConfig",sidebar_position:0,custom_edit_url:null},r=void 0,a={id:"reference/server/interfaces/ConversationsRateLimitConfig",title:"Interface: ConversationsRateLimitConfig",description:"Configuration for rate limiting on the /conversations/* routes.",source:"@site/docs/reference/server/interfaces/ConversationsRateLimitConfig.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ConversationsRateLimitConfig",permalink:"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationsRateLimitConfig",title:"Interface: ConversationsRateLimitConfig",sidebar_label:"ConversationsRateLimitConfig",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationConstants",permalink:"/chatbot/reference/server/interfaces/ConversationConstants"},next:{title:"ConversationsRouterLocals",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterLocals"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"addMessageRateLimitConfig",id:"addmessageratelimitconfig",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"addMessageSlowDownConfig",id:"addmessageslowdownconfig",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"routerRateLimitConfig",id:"routerratelimitconfig",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"routerSlowDownConfig",id:"routerslowdownconfig",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.p,{children:"Configuration for rate limiting on the /conversations/* routes."}),"\n",(0,i.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,i.jsx)(n.h3,{id:"addmessageratelimitconfig",children:"addMessageRateLimitConfig"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.code,{children:"Optional"})," ",(0,i.jsx)(n.strong,{children:"addMessageRateLimitConfig"}),": ",(0,i.jsx)(n.code,{children:"Partial"}),"<",(0,i.jsx)(n.code,{children:"Options"}),">"]}),"\n",(0,i.jsxs)(n.p,{children:["Configuration for rate limiting on the POST /conversations/",":conversationId",'/messages route.\nSince this is the most "expensive" route as it calls the LLM,\nit could be more restrictive than the global rate limit.']}),"\n",(0,i.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L49",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:49"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"addmessageslowdownconfig",children:"addMessageSlowDownConfig"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.code,{children:"Optional"})," ",(0,i.jsx)(n.strong,{children:"addMessageSlowDownConfig"}),": ",(0,i.jsx)(n.code,{children:"Partial"}),"<",(0,i.jsx)(n.code,{children:"Options"}),">"]}),"\n",(0,i.jsxs)(n.p,{children:["Configuration for slow down on the POST /conversations/",":conversationId",'/messages route.\nSince this is the most "expensive" route as it calls the LLM,\nit could be more restrictive than the global slow down.']}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L61",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:61"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"routerratelimitconfig",children:"routerRateLimitConfig"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.code,{children:"Optional"})," ",(0,i.jsx)(n.strong,{children:"routerRateLimitConfig"}),": ",(0,i.jsx)(n.code,{children:"Partial"}),"<",(0,i.jsx)(n.code,{children:"Options"}),">"]}),"\n",(0,i.jsx)(n.p,{children:"Configuration for rate limiting on ALL /conversations/* routes."}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L42",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:42"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"routerslowdownconfig",children:"routerSlowDownConfig"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.code,{children:"Optional"})," ",(0,i.jsx)(n.strong,{children:"routerSlowDownConfig"}),": ",(0,i.jsx)(n.code,{children:"Partial"}),"<",(0,i.jsx)(n.code,{children:"Options"}),">"]}),"\n",(0,i.jsx)(n.p,{children:"Configuration for slow down on ALL /conversations/* routes."}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L54",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:54"})})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},11151:(e,n,o)=>{o.d(n,{Z:()=>a,a:()=>r});var i=o(67294);const t={},s=i.createContext(t);function r(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:r(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/59c4025c.c3660405.js b/assets/js/59c4025c.edaec7c8.js similarity index 89% rename from assets/js/59c4025c.c3660405.js rename to assets/js/59c4025c.edaec7c8.js index 9c3300ad1..10f593109 100644 --- a/assets/js/59c4025c.c3660405.js +++ b/assets/js/59c4025c.edaec7c8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5299],{45109:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>i,metadata:()=>r,toc:()=>s});var a=t(85893),d=t(11151);const i={id:"CommandRunMetadata",title:"Interface: CommandRunMetadata",sidebar_label:"CommandRunMetadata",sidebar_position:0,custom_edit_url:null},o=void 0,r={id:"reference/evaluation/interfaces/CommandRunMetadata",title:"Interface: CommandRunMetadata",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/CommandRunMetadata.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/CommandRunMetadata",permalink:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CommandRunMetadata",title:"Interface: CommandRunMetadata",sidebar_label:"CommandRunMetadata",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CommandMetadataStore",permalink:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore"},next:{title:"ConversationEvalData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationEvalData"}},c={},s=[{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"command",id:"command",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"endTime",id:"endtime",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"startTime",id:"starttime",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,d.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,a.jsx)(n.h3,{id:"_id",children:"_id"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"_id"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L4",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:4"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"command",children:"command"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"command"}),": ",(0,a.jsx)(n.code,{children:'"generate"'})," | ",(0,a.jsx)(n.code,{children:'"evaluate"'})," | ",(0,a.jsx)(n.code,{children:'"report"'})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L5",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:5"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"endtime",children:"endTime"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"endTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L8",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:8"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"name"}),": ",(0,a.jsx)(n.code,{children:"string"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L6",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:6"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"starttime",children:"startTime"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"startTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L7",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:7"})})]})}function m(e={}){const{wrapper:n}={...(0,d.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>r,a:()=>o});var a=t(67294);const d={},i=a.createContext(d);function o(e){const n=a.useContext(i);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:o(e.components),a.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5299],{45109:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>s,contentTitle:()=>o,default:()=>m,frontMatter:()=>i,metadata:()=>r,toc:()=>c});var a=t(85893),d=t(11151);const i={id:"CommandRunMetadata",title:"Interface: CommandRunMetadata",sidebar_label:"CommandRunMetadata",sidebar_position:0,custom_edit_url:null},o=void 0,r={id:"reference/evaluation/interfaces/CommandRunMetadata",title:"Interface: CommandRunMetadata",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/CommandRunMetadata.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/CommandRunMetadata",permalink:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CommandRunMetadata",title:"Interface: CommandRunMetadata",sidebar_label:"CommandRunMetadata",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CommandMetadataStore",permalink:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore"},next:{title:"ConversationEvalData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationEvalData"}},s={},c=[{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"command",id:"command",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"endTime",id:"endtime",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"startTime",id:"starttime",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,d.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,a.jsx)(n.h3,{id:"_id",children:"_id"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"_id"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L4",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:4"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"command",children:"command"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"command"}),": ",(0,a.jsx)(n.code,{children:'"generate"'})," | ",(0,a.jsx)(n.code,{children:'"evaluate"'})," | ",(0,a.jsx)(n.code,{children:'"report"'})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L5",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:5"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"endtime",children:"endTime"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"endTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L8",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:8"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"name"}),": ",(0,a.jsx)(n.code,{children:"string"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L6",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:6"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"starttime",children:"startTime"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"startTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L7",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:7"})})]})}function m(e={}){const{wrapper:n}={...(0,d.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>r,a:()=>o});var a=t(67294);const d={},i=a.createContext(d);function o(e){const n=a.useContext(i);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function r(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:o(e.components),a.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6b7a1cdb.7f07114b.js b/assets/js/6b7a1cdb.75bbef22.js similarity index 96% rename from assets/js/6b7a1cdb.7f07114b.js rename to assets/js/6b7a1cdb.75bbef22.js index 91d138cb5..e2b5e34de 100644 --- a/assets/js/6b7a1cdb.7f07114b.js +++ b/assets/js/6b7a1cdb.75bbef22.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3820],{4578:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>d,contentTitle:()=>a,default:()=>l,frontMatter:()=>t,metadata:()=>o,toc:()=>c});var s=n(85893),i=n(11151);const t={id:"MakeVerifiedAnswerGenerateUserPromptParams",title:"Interface: MakeVerifiedAnswerGenerateUserPromptParams",sidebar_label:"MakeVerifiedAnswerGenerateUserPromptParams",sidebar_position:0,custom_edit_url:null},a=void 0,o={id:"reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams",title:"Interface: MakeVerifiedAnswerGenerateUserPromptParams",description:"Properties",source:"@site/docs/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams",permalink:"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeVerifiedAnswerGenerateUserPromptParams",title:"Interface: MakeVerifiedAnswerGenerateUserPromptParams",sidebar_label:"MakeVerifiedAnswerGenerateUserPromptParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeUserMessageFuncParams",permalink:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams"},next:{title:"OpenAiChatMessage",permalink:"/chatbot/reference/server/interfaces/OpenAiChatMessage"}},d={},c=[{value:"Properties",id:"properties",level:2},{value:"findVerifiedAnswer",id:"findverifiedanswer",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"onNoVerifiedAnswerFound",id:"onnoverifiedanswerfound",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function f(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,i.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(r.h3,{id:"findverifiedanswer",children:"findVerifiedAnswer"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"findVerifiedAnswer"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#findverifiedanswerfunc",children:(0,s.jsx)(r.code,{children:"FindVerifiedAnswerFunc"})})]}),"\n",(0,s.jsx)(r.p,{children:"Find content based on the user's message and preprocessing."}),"\n",(0,s.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts#L11",children:"packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts:11"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"onnoverifiedanswerfound",children:"onNoVerifiedAnswerFound"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"onNoVerifiedAnswerFound"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,s.jsx)(r.code,{children:"GenerateUserPromptFunc"})})]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts#L13",children:"packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts:13"})})]})}function l(e={}){const{wrapper:r}={...(0,i.a)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(f,{...e})}):f(e)}},11151:(e,r,n)=>{n.d(r,{Z:()=>o,a:()=>a});var s=n(67294);const i={},t=s.createContext(i);function a(e){const r=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function o(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),s.createElement(t.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3820],{4578:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>d,contentTitle:()=>a,default:()=>l,frontMatter:()=>t,metadata:()=>o,toc:()=>c});var s=n(85893),i=n(11151);const t={id:"MakeVerifiedAnswerGenerateUserPromptParams",title:"Interface: MakeVerifiedAnswerGenerateUserPromptParams",sidebar_label:"MakeVerifiedAnswerGenerateUserPromptParams",sidebar_position:0,custom_edit_url:null},a=void 0,o={id:"reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams",title:"Interface: MakeVerifiedAnswerGenerateUserPromptParams",description:"Properties",source:"@site/docs/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams",permalink:"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeVerifiedAnswerGenerateUserPromptParams",title:"Interface: MakeVerifiedAnswerGenerateUserPromptParams",sidebar_label:"MakeVerifiedAnswerGenerateUserPromptParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeUserMessageFuncParams",permalink:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams"},next:{title:"OpenAiChatMessage",permalink:"/chatbot/reference/server/interfaces/OpenAiChatMessage"}},d={},c=[{value:"Properties",id:"properties",level:2},{value:"findVerifiedAnswer",id:"findverifiedanswer",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"onNoVerifiedAnswerFound",id:"onnoverifiedanswerfound",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function f(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,i.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(r.h3,{id:"findverifiedanswer",children:"findVerifiedAnswer"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"findVerifiedAnswer"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#findverifiedanswerfunc",children:(0,s.jsx)(r.code,{children:"FindVerifiedAnswerFunc"})})]}),"\n",(0,s.jsx)(r.p,{children:"Find content based on the user's message and preprocessing."}),"\n",(0,s.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts#L11",children:"packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts:11"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"onnoverifiedanswerfound",children:"onNoVerifiedAnswerFound"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"onNoVerifiedAnswerFound"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,s.jsx)(r.code,{children:"GenerateUserPromptFunc"})})]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts#L13",children:"packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts:13"})})]})}function l(e={}){const{wrapper:r}={...(0,i.a)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(f,{...e})}):f(e)}},11151:(e,r,n)=>{n.d(r,{Z:()=>o,a:()=>a});var s=n(67294);const i={},t=s.createContext(i);function a(e){const r=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function o(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:a(e.components),s.createElement(t.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6c0ba004.1a8d453c.js b/assets/js/6c0ba004.1a8d453c.js deleted file mode 100644 index 278f1276b..000000000 --- a/assets/js/6c0ba004.1a8d453c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3519],{80461:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>s,default:()=>h,frontMatter:()=>i,metadata:()=>a,toc:()=>c});var l=t(85893),r=t(11151);const i={id:"EvaluationStore",title:"Interface: EvaluationStore",sidebar_label:"EvaluationStore",sidebar_position:0,custom_edit_url:null},s=void 0,a={id:"reference/evaluation/interfaces/EvaluationStore",title:"Interface: EvaluationStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/EvaluationStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/EvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/EvaluationStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"EvaluationStore",title:"Interface: EvaluationStore",sidebar_label:"EvaluationStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"EvaluateConversationQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams"},next:{title:"GenerateDataAndMetadataParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams"}},d={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"aggregate",id:"aggregate",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"close",id:"close",level:3},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"insertMany",id:"insertmany",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-4",level:4}];function o(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.a)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:["\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.strong,{children:(0,l.jsx)(n.code,{children:"EvaluationStore"})})}),"\n",(0,l.jsxs)(n.p,{children:["\u21b3 ",(0,l.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore",children:(0,l.jsx)(n.code,{children:"MongoDbEvaluationStore"})})]}),"\n"]}),"\n"]}),"\n",(0,l.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,l.jsx)(n.h3,{id:"aggregate",children:"aggregate"}),"\n",(0,l.jsxs)(n.p,{children:["\u25b8 ",(0,l.jsx)(n.strong,{children:"aggregate"}),"(",(0,l.jsx)(n.code,{children:"pipeline"}),", ",(0,l.jsx)(n.code,{children:"options?"}),"): ",(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"Document"}),"[]>"]}),"\n",(0,l.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,l.jsxs)(n.tbody,{children:[(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"pipeline"})}),(0,l.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,l.jsx)(n.code,{children:"unknown"}),"[]"]})]}),(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"options?"})}),(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"unknown"})})]})]})]}),"\n",(0,l.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"Document"}),"[]>"]}),"\n",(0,l.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L31",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:31"})}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"close",children:"close"}),"\n",(0,l.jsxs)(n.p,{children:["\u25b8 ",(0,l.jsx)(n.strong,{children:"close"}),"(): ",(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L32",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:32"})}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"find",children:"find"}),"\n",(0,l.jsxs)(n.p,{children:["\u25b8 ",(0,l.jsx)(n.strong,{children:"find"}),"(",(0,l.jsx)(n.code,{children:"filter"}),"): ",(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"undefined"})," | ",(0,l.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,l.jsx)(n.code,{children:"EvalResult"})}),"[]>"]}),"\n",(0,l.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,l.jsx)(n.tbody,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"filter"})}),(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"unknown"})})]})})]}),"\n",(0,l.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"undefined"})," | ",(0,l.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,l.jsx)(n.code,{children:"EvalResult"})}),"[]>"]}),"\n",(0,l.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L30",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:30"})}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"insertmany",children:"insertMany"}),"\n",(0,l.jsxs)(n.p,{children:["\u25b8 ",(0,l.jsx)(n.strong,{children:"insertMany"}),"(",(0,l.jsx)(n.code,{children:"evalResults"}),"): ",(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,l.jsx)(n.tbody,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"evalResults"})}),(0,l.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,l.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,l.jsx)(n.code,{children:"EvalResult"})}),"[]"]})]})})]}),"\n",(0,l.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L29",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:29"})}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"insertone",children:"insertOne"}),"\n",(0,l.jsxs)(n.p,{children:["\u25b8 ",(0,l.jsx)(n.strong,{children:"insertOne"}),"(",(0,l.jsx)(n.code,{children:"evalResult"}),"): ",(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,l.jsx)(n.tbody,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"evalResult"})}),(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,l.jsx)(n.code,{children:"EvalResult"})})})]})})]}),"\n",(0,l.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:28"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,l.jsx)(n,{...e,children:(0,l.jsx)(o,{...e})}):o(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>s});var l=t(67294);const r={},i=l.createContext(r);function s(e){const n=l.useContext(i);return l.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),l.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/6c0ba004.8a265d84.js b/assets/js/6c0ba004.8a265d84.js new file mode 100644 index 000000000..33c842b80 --- /dev/null +++ b/assets/js/6c0ba004.8a265d84.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3519],{80461:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>s,default:()=>h,frontMatter:()=>r,metadata:()=>a,toc:()=>c});var l=t(85893),i=t(11151);const r={id:"EvaluationStore",title:"Interface: EvaluationStore",sidebar_label:"EvaluationStore",sidebar_position:0,custom_edit_url:null},s=void 0,a={id:"reference/evaluation/interfaces/EvaluationStore",title:"Interface: EvaluationStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/EvaluationStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/EvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/EvaluationStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"EvaluationStore",title:"Interface: EvaluationStore",sidebar_label:"EvaluationStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"EvaluateConversationQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams"},next:{title:"ExpectedLinks",permalink:"/chatbot/reference/evaluation/interfaces/ExpectedLinks"}},d={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"aggregate",id:"aggregate",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"close",id:"close",level:3},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"insertMany",id:"insertmany",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-4",level:4}];function o(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.a)(),...e.components};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,l.jsxs)(n.ul,{children:["\n",(0,l.jsxs)(n.li,{children:["\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.strong,{children:(0,l.jsx)(n.code,{children:"EvaluationStore"})})}),"\n",(0,l.jsxs)(n.p,{children:["\u21b3 ",(0,l.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore",children:(0,l.jsx)(n.code,{children:"MongoDbEvaluationStore"})})]}),"\n"]}),"\n"]}),"\n",(0,l.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,l.jsx)(n.h3,{id:"aggregate",children:"aggregate"}),"\n",(0,l.jsxs)(n.p,{children:["\u25b8 ",(0,l.jsx)(n.strong,{children:"aggregate"}),"(",(0,l.jsx)(n.code,{children:"pipeline"}),", ",(0,l.jsx)(n.code,{children:"options?"}),"): ",(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"Document"}),"[]>"]}),"\n",(0,l.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,l.jsxs)(n.tbody,{children:[(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"pipeline"})}),(0,l.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,l.jsx)(n.code,{children:"unknown"}),"[]"]})]}),(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"options?"})}),(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"unknown"})})]})]})]}),"\n",(0,l.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"Document"}),"[]>"]}),"\n",(0,l.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L31",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:31"})}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"close",children:"close"}),"\n",(0,l.jsxs)(n.p,{children:["\u25b8 ",(0,l.jsx)(n.strong,{children:"close"}),"(): ",(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L32",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:32"})}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"find",children:"find"}),"\n",(0,l.jsxs)(n.p,{children:["\u25b8 ",(0,l.jsx)(n.strong,{children:"find"}),"(",(0,l.jsx)(n.code,{children:"filter"}),"): ",(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"undefined"})," | ",(0,l.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,l.jsx)(n.code,{children:"EvalResult"})}),"[]>"]}),"\n",(0,l.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,l.jsx)(n.tbody,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"filter"})}),(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"unknown"})})]})})]}),"\n",(0,l.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"undefined"})," | ",(0,l.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,l.jsx)(n.code,{children:"EvalResult"})}),"[]>"]}),"\n",(0,l.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L30",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:30"})}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"insertmany",children:"insertMany"}),"\n",(0,l.jsxs)(n.p,{children:["\u25b8 ",(0,l.jsx)(n.strong,{children:"insertMany"}),"(",(0,l.jsx)(n.code,{children:"evalResults"}),"): ",(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,l.jsx)(n.tbody,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"evalResults"})}),(0,l.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,l.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,l.jsx)(n.code,{children:"EvalResult"})}),"[]"]})]})})]}),"\n",(0,l.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L29",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:29"})}),"\n",(0,l.jsx)(n.hr,{}),"\n",(0,l.jsx)(n.h3,{id:"insertone",children:"insertOne"}),"\n",(0,l.jsxs)(n.p,{children:["\u25b8 ",(0,l.jsx)(n.strong,{children:"insertOne"}),"(",(0,l.jsx)(n.code,{children:"evalResult"}),"): ",(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,l.jsxs)(n.table,{children:[(0,l.jsx)(n.thead,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,l.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,l.jsx)(n.tbody,{children:(0,l.jsxs)(n.tr,{children:[(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.code,{children:"evalResult"})}),(0,l.jsx)(n.td,{style:{textAlign:"left"},children:(0,l.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,l.jsx)(n.code,{children:"EvalResult"})})})]})})]}),"\n",(0,l.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,l.jsxs)(n.p,{children:[(0,l.jsx)(n.code,{children:"Promise"}),"<",(0,l.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,l.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,l.jsx)(n.p,{children:(0,l.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:28"})})]})}function h(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,l.jsx)(n,{...e,children:(0,l.jsx)(o,{...e})}):o(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>s});var l=t(67294);const i={},r=l.createContext(i);function s(e){const n=l.useContext(r);return l.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),l.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/770044b3.7df59b3e.js b/assets/js/770044b3.a6ea1da4.js similarity index 95% rename from assets/js/770044b3.7df59b3e.js rename to assets/js/770044b3.a6ea1da4.js index 79086f09e..dd61776ec 100644 --- a/assets/js/770044b3.7df59b3e.js +++ b/assets/js/770044b3.a6ea1da4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5658],{55939:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>s,metadata:()=>o,toc:()=>d});var t=a(85893),r=a(11151);const s={id:"MakeGenerateConversationDataParams",title:"Interface: MakeGenerateConversationDataParams",sidebar_label:"MakeGenerateConversationDataParams",sidebar_position:0,custom_edit_url:null},i=void 0,o={id:"reference/evaluation/interfaces/MakeGenerateConversationDataParams",title:"Interface: MakeGenerateConversationDataParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeGenerateConversationDataParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeGenerateConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeGenerateConversationDataParams",title:"Interface: MakeGenerateConversationDataParams",sidebar_label:"MakeGenerateConversationDataParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"GeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore"},next:{title:"MakeGenerateLlmConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"apiBaseUrl",id:"apibaseurl",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"conversations",id:"conversations",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"httpHeaders",id:"httpheaders",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"sleepMs",id:"sleepms",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"apibaseurl",children:"apiBaseUrl"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"apiBaseUrl"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"URL for the server you're evaluating."}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"Default"})})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:'"http://localhost:3000/api/v1/"\n'})}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts#L25",children:"packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:25"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"conversations",children:"conversations"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"conversations"}),": ",(0,t.jsx)(n.code,{children:"ConversationsService"})]}),"\n",(0,t.jsxs)(n.p,{children:["Same ",(0,t.jsx)(n.code,{children:"ConversationsService"})," instance used in the chatbot.\nThe function uses the service to create conversations and add initial messages."]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts#L19",children:"packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:19"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"httpheaders",children:"httpHeaders"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"httpHeaders"}),": ",(0,t.jsx)(n.code,{children:"Record"}),"<",(0,t.jsx)(n.code,{children:"string"}),", ",(0,t.jsx)(n.code,{children:"string"}),">"]}),"\n",(0,t.jsx)(n.p,{children:"HTTP headers to include in the request to add a message to a conversation."}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"Example"})})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-json",children:'{\n "Authorization": "Bearer ",\n}\n'})}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts#L36",children:"packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:36"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"sleepms",children:"sleepMs"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"sleepMs"}),": ",(0,t.jsx)(n.code,{children:"number"})]}),"\n",(0,t.jsx)(n.p,{children:"Number of milliseconds to sleep between each conversation.\nThis can be useful if there's a rate limit on some components of the chatbot.\nOften LLM APIs have a rate limit, for example."}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"Default"})})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"0\n"})}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts#L44",children:"packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:44"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>o,a:()=>i});var t=a(67294);const r={},s=t.createContext(r);function i(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5658],{55939:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>s,metadata:()=>o,toc:()=>d});var t=a(85893),r=a(11151);const s={id:"MakeGenerateConversationDataParams",title:"Interface: MakeGenerateConversationDataParams",sidebar_label:"MakeGenerateConversationDataParams",sidebar_position:0,custom_edit_url:null},i=void 0,o={id:"reference/evaluation/interfaces/MakeGenerateConversationDataParams",title:"Interface: MakeGenerateConversationDataParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeGenerateConversationDataParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeGenerateConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeGenerateConversationDataParams",title:"Interface: MakeGenerateConversationDataParams",sidebar_label:"MakeGenerateConversationDataParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"GeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore"},next:{title:"MakeGenerateLlmConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"apiBaseUrl",id:"apibaseurl",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"conversations",id:"conversations",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"httpHeaders",id:"httpheaders",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"sleepMs",id:"sleepms",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"apibaseurl",children:"apiBaseUrl"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"apiBaseUrl"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"URL for the server you're evaluating."}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"Default"})})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:'"http://localhost:3000/api/v1/"\n'})}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts#L25",children:"packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:25"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"conversations",children:"conversations"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"conversations"}),": ",(0,t.jsx)(n.code,{children:"ConversationsService"})]}),"\n",(0,t.jsxs)(n.p,{children:["Same ",(0,t.jsx)(n.code,{children:"ConversationsService"})," instance used in the chatbot.\nThe function uses the service to create conversations and add initial messages."]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts#L19",children:"packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:19"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"httpheaders",children:"httpHeaders"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"httpHeaders"}),": ",(0,t.jsx)(n.code,{children:"Record"}),"<",(0,t.jsx)(n.code,{children:"string"}),", ",(0,t.jsx)(n.code,{children:"string"}),">"]}),"\n",(0,t.jsx)(n.p,{children:"HTTP headers to include in the request to add a message to a conversation."}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"Example"})})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-json",children:'{\n "Authorization": "Bearer ",\n}\n'})}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts#L36",children:"packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:36"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"sleepms",children:"sleepMs"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"sleepMs"}),": ",(0,t.jsx)(n.code,{children:"number"})]}),"\n",(0,t.jsx)(n.p,{children:"Number of milliseconds to sleep between each conversation.\nThis can be useful if there's a rate limit on some components of the chatbot.\nOften LLM APIs have a rate limit, for example."}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"Default"})})}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-ts",children:"0\n"})}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts#L44",children:"packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:44"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>o,a:()=>i});var t=a(67294);const r={},s=t.createContext(r);function i(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/7c21ef34.36b2d1ee.js b/assets/js/7c21ef34.f2bfaa52.js similarity index 89% rename from assets/js/7c21ef34.36b2d1ee.js rename to assets/js/7c21ef34.f2bfaa52.js index 8a14542d5..bf8979596 100644 --- a/assets/js/7c21ef34.36b2d1ee.js +++ b/assets/js/7c21ef34.f2bfaa52.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6173],{2705:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>i,default:()=>h,frontMatter:()=>a,metadata:()=>s,toc:()=>c});var r=t(85893),d=t(11151);const a={id:"MongoDbGeneratedDataStore",title:"Interface: MongoDbGeneratedDataStore",sidebar_label:"MongoDbGeneratedDataStore",sidebar_position:0,custom_edit_url:null},i=void 0,s={id:"reference/evaluation/interfaces/MongoDbGeneratedDataStore",title:"Interface: MongoDbGeneratedDataStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/MongoDbGeneratedDataStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MongoDbGeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MongoDbGeneratedDataStore",title:"Interface: MongoDbGeneratedDataStore",sidebar_label:"MongoDbGeneratedDataStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MongoDbEvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore"},next:{title:"MongoDbReportStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore"}},l={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"close",id:"close",level:3},{value:"Returns",id:"returns",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"findByCommandRunId",id:"findbycommandrunid",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"findById",id:"findbyid",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"insertMany",id:"insertmany",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-5",level:4}];function o(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,d.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:(0,r.jsx)(n.code,{children:"GeneratedDataStore"})})}),"\n",(0,r.jsxs)(n.p,{children:["\u21b3 ",(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"MongoDbGeneratedDataStore"})})]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,r.jsx)(n.h3,{id:"close",children:"close"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"close"}),"(): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#close",children:"close"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L45",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:45"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"find",children:"find"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"find"}),"(",(0,r.jsx)(n.code,{children:"filter"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"filter"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"Filter"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),">"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"overrides",children:"Overrides"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#find",children:"find"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L59",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:59"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"findbycommandrunid",children:"findByCommandRunId"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"findByCommandRunId"}),"(",(0,r.jsx)(n.code,{children:"commandRunId"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"commandRunId"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"ObjectId"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-1",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#findbycommandrunid",children:"findByCommandRunId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L41",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:41"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"findbyid",children:"findById"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"findById"}),"(",(0,r.jsx)(n.code,{children:"generatedDataId"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedDataId"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"ObjectId"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-2",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#findbyid",children:"findById"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L40",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:40"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertmany",children:"insertMany"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertMany"}),"(",(0,r.jsx)(n.code,{children:"generatedData"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedData"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-3",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#insertmany",children:"insertMany"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L39",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:39"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertone",children:"insertOne"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertOne"}),"(",(0,r.jsx)(n.code,{children:"generatedData"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedData"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-4",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#insertone",children:"insertOne"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L38",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:38"})})]})}function h(e={}){const{wrapper:n}={...(0,d.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(o,{...e})}):o(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>s,a:()=>i});var r=t(67294);const d={},a=r.createContext(d);function i(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6173],{2705:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>i,default:()=>h,frontMatter:()=>a,metadata:()=>s,toc:()=>o});var r=t(85893),d=t(11151);const a={id:"MongoDbGeneratedDataStore",title:"Interface: MongoDbGeneratedDataStore",sidebar_label:"MongoDbGeneratedDataStore",sidebar_position:0,custom_edit_url:null},i=void 0,s={id:"reference/evaluation/interfaces/MongoDbGeneratedDataStore",title:"Interface: MongoDbGeneratedDataStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/MongoDbGeneratedDataStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MongoDbGeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MongoDbGeneratedDataStore",title:"Interface: MongoDbGeneratedDataStore",sidebar_label:"MongoDbGeneratedDataStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MongoDbEvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore"},next:{title:"MongoDbReportStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore"}},l={},o=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"close",id:"close",level:3},{value:"Returns",id:"returns",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"findByCommandRunId",id:"findbycommandrunid",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"findById",id:"findbyid",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"insertMany",id:"insertmany",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-5",level:4}];function c(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,d.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:(0,r.jsx)(n.code,{children:"GeneratedDataStore"})})}),"\n",(0,r.jsxs)(n.p,{children:["\u21b3 ",(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"MongoDbGeneratedDataStore"})})]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,r.jsx)(n.h3,{id:"close",children:"close"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"close"}),"(): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#close",children:"close"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L50",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:50"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"find",children:"find"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"find"}),"(",(0,r.jsx)(n.code,{children:"filter"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"filter"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"Filter"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),">"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"overrides",children:"Overrides"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#find",children:"find"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L64",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:64"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"findbycommandrunid",children:"findByCommandRunId"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"findByCommandRunId"}),"(",(0,r.jsx)(n.code,{children:"commandRunId"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"commandRunId"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"ObjectId"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-1",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#findbycommandrunid",children:"findByCommandRunId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L46",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:46"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"findbyid",children:"findById"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"findById"}),"(",(0,r.jsx)(n.code,{children:"generatedDataId"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedDataId"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"ObjectId"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-2",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#findbyid",children:"findById"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L45",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:45"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertmany",children:"insertMany"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertMany"}),"(",(0,r.jsx)(n.code,{children:"generatedData"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedData"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-3",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#insertmany",children:"insertMany"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L44",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:44"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertone",children:"insertOne"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertOne"}),"(",(0,r.jsx)(n.code,{children:"generatedData"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedData"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"inherited-from-4",children:"Inherited from"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"}),".",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore#insertone",children:"insertOne"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L43",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:43"})})]})}function h(e={}){const{wrapper:n}={...(0,d.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(c,{...e})}):c(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>s,a:()=>i});var r=t(67294);const d={},a=r.createContext(d);function i(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/81770523.83a0d1fa.js b/assets/js/81770523.408303a2.js similarity index 93% rename from assets/js/81770523.83a0d1fa.js rename to assets/js/81770523.408303a2.js index 4ea2085ce..cc3101aa9 100644 --- a/assets/js/81770523.83a0d1fa.js +++ b/assets/js/81770523.408303a2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4352],{27534:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>o,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var s=r(85893),t=r(11151);const i={id:"sources.MakeGitDataSourceParams",title:"Interface: MakeGitDataSourceParams",sidebar_label:"sources.MakeGitDataSourceParams",custom_edit_url:null},a=void 0,c={id:"reference/ingest/interfaces/sources.MakeGitDataSourceParams",title:"Interface: MakeGitDataSourceParams",description:"sources.MakeGitDataSourceParams",source:"@site/docs/reference/ingest/interfaces/sources.MakeGitDataSourceParams.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.MakeGitDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.MakeGitDataSourceParams",title:"Interface: MakeGitDataSourceParams",sidebar_label:"sources.MakeGitDataSourceParams",custom_edit_url:null},sidebar:"main",previous:{title:"sources.DevCenterEntryTag",permalink:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag"},next:{title:"sources.MakeLangChainDocumentLoaderDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams"}},o={},d=[{value:"Properties",id:"properties",level:2},{value:"filter",id:"filter",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"handlePage",id:"handlepage",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"metadata",id:"metadata",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"repoOptions",id:"repooptions",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"repoUri",id:"repouri",level:3},{value:"Defined in",id:"defined-in-5",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".MakeGitDataSourceParams"]}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"filter",children:"filter"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"filter"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#filterfunc",children:(0,s.jsx)(n.code,{children:"FilterFunc"})})]}),"\n",(0,s.jsx)(n.p,{children:"Filter function for selecting files in the repo to parse to pages."}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Example"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:'(path: string) => path.endsWith(".html")\n'})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L48",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:48"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"handlepage",children:"handlePage"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"handlePage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#handlepagefunc",children:(0,s.jsx)(n.code,{children:"HandlePageFunc"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L55",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:55"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"metadata",children:"metadata"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Optional"})," ",(0,s.jsx)(n.strong,{children:"metadata"}),": ",(0,s.jsx)(n.code,{children:"PageMetadata"})]}),"\n",(0,s.jsx)(n.p,{children:"Metadata to be included in all pages."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L53",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:53"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"name"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Name of project"}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L27",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:27"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"repooptions",children:"repoOptions"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Optional"})," ",(0,s.jsx)(n.strong,{children:"repoOptions"}),": ",(0,s.jsx)(n.code,{children:"TaskOptions"})]}),"\n",(0,s.jsxs)(n.p,{children:["Options for ",(0,s.jsx)(n.code,{children:"simple-git"})," clone command."]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Default"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:'{ "--depth": 1 }\n'})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L41",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:41"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"repouri",children:"repoUri"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"repoUri"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"URI for git repo"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Example"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:'"https://github.com/mongodb/mongo-java-driver.git"\n'})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L34",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:34"})})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>c,a:()=>a});var s=r(67294);const t={},i=s.createContext(t);function a(e){const n=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4352],{27534:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>o,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var s=r(85893),t=r(11151);const i={id:"sources.MakeGitDataSourceParams",title:"Interface: MakeGitDataSourceParams",sidebar_label:"sources.MakeGitDataSourceParams",custom_edit_url:null},a=void 0,c={id:"reference/ingest/interfaces/sources.MakeGitDataSourceParams",title:"Interface: MakeGitDataSourceParams",description:"sources.MakeGitDataSourceParams",source:"@site/docs/reference/ingest/interfaces/sources.MakeGitDataSourceParams.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.MakeGitDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.MakeGitDataSourceParams",title:"Interface: MakeGitDataSourceParams",sidebar_label:"sources.MakeGitDataSourceParams",custom_edit_url:null},sidebar:"main",previous:{title:"sources.DevCenterEntryTag",permalink:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag"},next:{title:"sources.MakeLangChainDocumentLoaderDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams"}},o={},d=[{value:"Properties",id:"properties",level:2},{value:"filter",id:"filter",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"handlePage",id:"handlepage",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"metadata",id:"metadata",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"repoOptions",id:"repooptions",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"repoUri",id:"repouri",level:3},{value:"Defined in",id:"defined-in-5",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".MakeGitDataSourceParams"]}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"filter",children:"filter"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"filter"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#filterfunc",children:(0,s.jsx)(n.code,{children:"FilterFunc"})})]}),"\n",(0,s.jsx)(n.p,{children:"Filter function for selecting files in the repo to parse to pages."}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Example"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:'(path: string) => path.endsWith(".html")\n'})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L48",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:48"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"handlepage",children:"handlePage"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"handlePage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#handlepagefunc",children:(0,s.jsx)(n.code,{children:"HandlePageFunc"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L55",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:55"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"metadata",children:"metadata"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Optional"})," ",(0,s.jsx)(n.strong,{children:"metadata"}),": ",(0,s.jsx)(n.code,{children:"PageMetadata"})]}),"\n",(0,s.jsx)(n.p,{children:"Metadata to be included in all pages."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L53",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:53"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"name"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"Name of project"}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L27",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:27"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"repooptions",children:"repoOptions"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Optional"})," ",(0,s.jsx)(n.strong,{children:"repoOptions"}),": ",(0,s.jsx)(n.code,{children:"TaskOptions"})]}),"\n",(0,s.jsxs)(n.p,{children:["Options for ",(0,s.jsx)(n.code,{children:"simple-git"})," clone command."]}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Default"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:'{ "--depth": 1 }\n'})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L41",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:41"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"repouri",children:"repoUri"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"repoUri"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.p,{children:"URI for git repo"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"Example"})})}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-ts",children:'"https://github.com/mongodb/mongo-java-driver.git"\n'})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/GitDataSource.ts#L34",children:"mongodb-rag-ingest/src/sources/GitDataSource.ts:34"})})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>c,a:()=>a});var s=r(67294);const t={},i=s.createContext(t);function a(e){const n=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),s.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/85320797.06fc403b.js b/assets/js/85320797.cc398017.js similarity index 90% rename from assets/js/85320797.06fc403b.js rename to assets/js/85320797.cc398017.js index 381950326..b7c8bb238 100644 --- a/assets/js/85320797.06fc403b.js +++ b/assets/js/85320797.cc398017.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4835],{7323:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>s,toc:()=>o});var t=a(85893),r=a(11151);const i={id:"BaseGeneratedData",title:"Interface: BaseGeneratedData",sidebar_label:"BaseGeneratedData",sidebar_position:0,custom_edit_url:null},d=void 0,s={id:"reference/evaluation/interfaces/BaseGeneratedData",title:"Interface: BaseGeneratedData",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/BaseGeneratedData.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/BaseGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"BaseGeneratedData",title:"Interface: BaseGeneratedData",sidebar_label:"BaseGeneratedData",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Exports",permalink:"/chatbot/reference/evaluation/modules"},next:{title:"BaseTestCase",permalink:"/chatbot/reference/evaluation/interfaces/BaseTestCase"}},c={},o=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"commandRunId",id:"commandrunid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"data",id:"data",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"evalData",id:"evaldata",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"BaseGeneratedData"})})}),"\n",(0,t.jsxs)(n.p,{children:["\u21b3 ",(0,t.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData",children:(0,t.jsx)(n.code,{children:"ConversationGeneratedData"})})]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"_id",children:"_id"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"_id"}),": ",(0,t.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L5",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:5"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"commandrunid",children:"commandRunId"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"commandRunId"}),": ",(0,t.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L6",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:6"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"data",children:"data"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"data"}),": ",(0,t.jsx)(n.code,{children:"unknown"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L8",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:8"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"evaldata",children:"evalData"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"evalData"}),": ",(0,t.jsx)(n.code,{children:"Record"}),"<",(0,t.jsx)(n.code,{children:"string"}),", ",(0,t.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L9",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:9"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"type",children:"type"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"type"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L7",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:7"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>s,a:()=>d});var t=a(67294);const r={},i=t.createContext(r);function d(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4835],{7323:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>o,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>s,toc:()=>c});var t=a(85893),r=a(11151);const i={id:"BaseGeneratedData",title:"Interface: BaseGeneratedData",sidebar_label:"BaseGeneratedData",sidebar_position:0,custom_edit_url:null},d=void 0,s={id:"reference/evaluation/interfaces/BaseGeneratedData",title:"Interface: BaseGeneratedData",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/BaseGeneratedData.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/BaseGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"BaseGeneratedData",title:"Interface: BaseGeneratedData",sidebar_label:"BaseGeneratedData",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Exports",permalink:"/chatbot/reference/evaluation/modules"},next:{title:"BaseTestCase",permalink:"/chatbot/reference/evaluation/interfaces/BaseTestCase"}},o={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"commandRunId",id:"commandrunid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"data",id:"data",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"evalData",id:"evaldata",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:(0,t.jsx)(n.code,{children:"BaseGeneratedData"})})}),"\n",(0,t.jsxs)(n.p,{children:["\u21b3 ",(0,t.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData",children:(0,t.jsx)(n.code,{children:"ConversationGeneratedData"})})]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"_id",children:"_id"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"_id"}),": ",(0,t.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L5",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:5"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"commandrunid",children:"commandRunId"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"commandRunId"}),": ",(0,t.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L6",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:6"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"data",children:"data"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"data"}),": ",(0,t.jsx)(n.code,{children:"unknown"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L8",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:8"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"evaldata",children:"evalData"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"evalData"}),": ",(0,t.jsx)(n.code,{children:"Record"}),"<",(0,t.jsx)(n.code,{children:"string"}),", ",(0,t.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L9",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:9"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"type",children:"type"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"type"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L7",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:7"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>s,a:()=>d});var t=a(67294);const r={},i=t.createContext(r);function d(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/86e9bf51.13ebefb0.js b/assets/js/86e9bf51.621d32c9.js similarity index 95% rename from assets/js/86e9bf51.13ebefb0.js rename to assets/js/86e9bf51.621d32c9.js index 2a739d237..f2471522a 100644 --- a/assets/js/86e9bf51.13ebefb0.js +++ b/assets/js/86e9bf51.621d32c9.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9201],{79143:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>a,contentTitle:()=>i,default:()=>h,frontMatter:()=>d,metadata:()=>c,toc:()=>l});var n=t(85893),s=t(11151);const d={id:"DataStreamer",title:"Interface: DataStreamer",sidebar_label:"DataStreamer",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/server/interfaces/DataStreamer",title:"Interface: DataStreamer",description:"Service that streams data to the client.",source:"@site/docs/reference/server/interfaces/DataStreamer.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/DataStreamer",permalink:"/chatbot/reference/server/interfaces/DataStreamer",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"DataStreamer",title:"Interface: DataStreamer",sidebar_label:"DataStreamer",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationsService",permalink:"/chatbot/reference/server/interfaces/ConversationsService"},next:{title:"EmbeddedContent",permalink:"/chatbot/reference/server/interfaces/EmbeddedContent"}},a={},l=[{value:"Properties",id:"properties",level:2},{value:"connected",id:"connected",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"Methods",id:"methods",level:2},{value:"connect",id:"connect",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"disconnect",id:"disconnect",level:3},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"stream",id:"stream",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"streamData",id:"streamdata",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-4",level:4}];function o(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.p,{children:"Service that streams data to the client."}),"\n",(0,n.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(r.h3,{id:"connected",children:"connected"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"connected"}),": ",(0,n.jsx)(r.code,{children:"boolean"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L106",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:106"})}),"\n",(0,n.jsx)(r.h2,{id:"methods",children:"Methods"}),"\n",(0,n.jsx)(r.h3,{id:"connect",children:"connect"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"connect"}),"(",(0,n.jsx)(r.code,{children:"res"}),"): ",(0,n.jsx)(r.code,{children:"void"})]}),"\n",(0,n.jsx)(r.h4,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"res"})}),(0,n.jsxs)(r.td,{style:{textAlign:"left"},children:[(0,n.jsx)(r.code,{children:"Response"}),"<",(0,n.jsx)(r.code,{children:"any"}),", ",(0,n.jsx)(r.code,{children:"Record"}),"<",(0,n.jsx)(r.code,{children:"string"}),", ",(0,n.jsx)(r.code,{children:"any"}),">>"]})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns",children:"Returns"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.code,{children:"void"})}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L107",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:107"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"disconnect",children:"disconnect"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"disconnect"}),"(): ",(0,n.jsx)(r.code,{children:"void"})]}),"\n",(0,n.jsx)(r.h4,{id:"returns-1",children:"Returns"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.code,{children:"void"})}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L108",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:108"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"stream",children:"stream"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"stream"}),"(",(0,n.jsx)(r.code,{children:"params"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"string"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"params"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"StreamParams"})})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns-2",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"string"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L110",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:110"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"streamdata",children:"streamData"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"streamData"}),"(",(0,n.jsx)(r.code,{children:"data"}),"): ",(0,n.jsx)(r.code,{children:"void"})]}),"\n",(0,n.jsx)(r.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"data"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#somestreamevent",children:(0,n.jsx)(r.code,{children:"SomeStreamEvent"})})})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns-3",children:"Returns"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.code,{children:"void"})}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L109",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:109"})})]})}function h(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(o,{...e})}):o(e)}},11151:(e,r,t)=>{t.d(r,{Z:()=>c,a:()=>i});var n=t(67294);const s={},d=n.createContext(s);function i(e){const r=n.useContext(d);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function c(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),n.createElement(d.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9201],{79143:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>a,contentTitle:()=>i,default:()=>h,frontMatter:()=>d,metadata:()=>c,toc:()=>l});var n=t(85893),s=t(11151);const d={id:"DataStreamer",title:"Interface: DataStreamer",sidebar_label:"DataStreamer",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/server/interfaces/DataStreamer",title:"Interface: DataStreamer",description:"Service that streams data to the client.",source:"@site/docs/reference/server/interfaces/DataStreamer.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/DataStreamer",permalink:"/chatbot/reference/server/interfaces/DataStreamer",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"DataStreamer",title:"Interface: DataStreamer",sidebar_label:"DataStreamer",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationsService",permalink:"/chatbot/reference/server/interfaces/ConversationsService"},next:{title:"EmbeddedContent",permalink:"/chatbot/reference/server/interfaces/EmbeddedContent"}},a={},l=[{value:"Properties",id:"properties",level:2},{value:"connected",id:"connected",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"Methods",id:"methods",level:2},{value:"connect",id:"connect",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"disconnect",id:"disconnect",level:3},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"stream",id:"stream",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"streamData",id:"streamdata",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-4",level:4}];function o(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.p,{children:"Service that streams data to the client."}),"\n",(0,n.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(r.h3,{id:"connected",children:"connected"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"connected"}),": ",(0,n.jsx)(r.code,{children:"boolean"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L106",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:106"})}),"\n",(0,n.jsx)(r.h2,{id:"methods",children:"Methods"}),"\n",(0,n.jsx)(r.h3,{id:"connect",children:"connect"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"connect"}),"(",(0,n.jsx)(r.code,{children:"res"}),"): ",(0,n.jsx)(r.code,{children:"void"})]}),"\n",(0,n.jsx)(r.h4,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"res"})}),(0,n.jsxs)(r.td,{style:{textAlign:"left"},children:[(0,n.jsx)(r.code,{children:"Response"}),"<",(0,n.jsx)(r.code,{children:"any"}),", ",(0,n.jsx)(r.code,{children:"Record"}),"<",(0,n.jsx)(r.code,{children:"string"}),", ",(0,n.jsx)(r.code,{children:"any"}),">>"]})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns",children:"Returns"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.code,{children:"void"})}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L107",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:107"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"disconnect",children:"disconnect"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"disconnect"}),"(): ",(0,n.jsx)(r.code,{children:"void"})]}),"\n",(0,n.jsx)(r.h4,{id:"returns-1",children:"Returns"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.code,{children:"void"})}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L108",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:108"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"stream",children:"stream"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"stream"}),"(",(0,n.jsx)(r.code,{children:"params"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"string"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"params"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"StreamParams"})})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns-2",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"string"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L110",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:110"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"streamdata",children:"streamData"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"streamData"}),"(",(0,n.jsx)(r.code,{children:"data"}),"): ",(0,n.jsx)(r.code,{children:"void"})]}),"\n",(0,n.jsx)(r.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"data"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#somestreamevent",children:(0,n.jsx)(r.code,{children:"SomeStreamEvent"})})})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns-3",children:"Returns"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.code,{children:"void"})}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L109",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:109"})})]})}function h(e={}){const{wrapper:r}={...(0,s.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(o,{...e})}):o(e)}},11151:(e,r,t)=>{t.d(r,{Z:()=>c,a:()=>i});var n=t(67294);const s={},d=n.createContext(s);function i(e){const r=n.useContext(d);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function c(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),n.createElement(d.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8a071b55.3bdf3f22.js b/assets/js/8a071b55.7bc57d44.js similarity index 89% rename from assets/js/8a071b55.3bdf3f22.js rename to assets/js/8a071b55.7bc57d44.js index 76ed622a0..99d02a6e8 100644 --- a/assets/js/8a071b55.3bdf3f22.js +++ b/assets/js/8a071b55.7bc57d44.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4470],{98107:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>l,frontMatter:()=>s,metadata:()=>o,toc:()=>i});var r=a(85893),t=a(11151);const s={id:"sources.MakeLangChainDocumentLoaderDataSourceParams",title:"Interface: MakeLangChainDocumentLoaderDataSourceParams",sidebar_label:"sources.MakeLangChainDocumentLoaderDataSourceParams",custom_edit_url:null},c=void 0,o={id:"reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams",title:"Interface: MakeLangChainDocumentLoaderDataSourceParams",description:"sources.MakeLangChainDocumentLoaderDataSourceParams",source:"@site/docs/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.MakeLangChainDocumentLoaderDataSourceParams",title:"Interface: MakeLangChainDocumentLoaderDataSourceParams",sidebar_label:"sources.MakeLangChainDocumentLoaderDataSourceParams",custom_edit_url:null},sidebar:"main",previous:{title:"sources.MakeGitDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams"},next:{title:"sources.MakeMongoDbUniversityDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams"}},d={},i=[{value:"Properties",id:"properties",level:2},{value:"documentLoader",id:"documentloader",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"metadata",id:"metadata",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"Methods",id:"methods",level:2},{value:"transformLangchainDocumentToPage",id:"transformlangchaindocumenttopage",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-3",level:4}];function h(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".MakeLangChainDocumentLoaderDataSourceParams"]}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"documentloader",children:"documentLoader"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"documentLoader"}),": ",(0,r.jsx)(n.code,{children:"DocumentLoader"})]}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"https://js.langchain.com/docs/modules/data_connection/document_loaders/",children:"Langchain document loader"})," to use to load documents."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts#L10",children:"mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts:10"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"metadata",children:"metadata"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"metadata"}),": ",(0,r.jsx)(n.code,{children:"PageMetadata"})]}),"\n",(0,r.jsx)(n.p,{children:"Metadata to use in the page metadata of all documents."}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Page.metadata"})," generated with ",(0,r.jsx)(n.code,{children:"transformLangchainDocumentToPage()"}),"\noverrides this metadata if the properties have the same key."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts#L23",children:"mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts:23"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"Name of the data source used by MongoDB RAG Ingest."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts#L15",children:"mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts:15"})}),"\n",(0,r.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,r.jsx)(n.h3,{id:"transformlangchaindocumenttopage",children:"transformLangchainDocumentToPage"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"transformLangchainDocumentToPage"}),"(",(0,r.jsx)(n.code,{children:"doc"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"Omit"}),"<",(0,r.jsx)(n.code,{children:"Page"}),", ",(0,r.jsx)(n.code,{children:'"sourceName"'}),">>"]}),"\n",(0,r.jsxs)(n.p,{children:["Take the LangchainDocument returned by the ",(0,r.jsx)(n.code,{children:"documentLoader"}),"\nand transform it into the Page persisted in the PageStore."]}),"\n",(0,r.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"doc"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"Document"}),"<",(0,r.jsx)(n.code,{children:"Record"}),"<",(0,r.jsx)(n.code,{children:"string"}),", ",(0,r.jsx)(n.code,{children:"any"}),">>"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"Omit"}),"<",(0,r.jsx)(n.code,{children:"Page"}),", ",(0,r.jsx)(n.code,{children:'"sourceName"'}),">>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts#L29",children:"mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts:29"})})]})}function l(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>o,a:()=>c});var r=a(67294);const t={},s=r.createContext(t);function c(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:c(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4470],{98107:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>l,frontMatter:()=>s,metadata:()=>c,toc:()=>i});var r=a(85893),t=a(11151);const s={id:"sources.MakeLangChainDocumentLoaderDataSourceParams",title:"Interface: MakeLangChainDocumentLoaderDataSourceParams",sidebar_label:"sources.MakeLangChainDocumentLoaderDataSourceParams",custom_edit_url:null},o=void 0,c={id:"reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams",title:"Interface: MakeLangChainDocumentLoaderDataSourceParams",description:"sources.MakeLangChainDocumentLoaderDataSourceParams",source:"@site/docs/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.MakeLangChainDocumentLoaderDataSourceParams",title:"Interface: MakeLangChainDocumentLoaderDataSourceParams",sidebar_label:"sources.MakeLangChainDocumentLoaderDataSourceParams",custom_edit_url:null},sidebar:"main",previous:{title:"sources.MakeGitDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams"},next:{title:"sources.MakeMongoDbUniversityDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams"}},d={},i=[{value:"Properties",id:"properties",level:2},{value:"documentLoader",id:"documentloader",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"metadata",id:"metadata",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"Methods",id:"methods",level:2},{value:"transformLangchainDocumentToPage",id:"transformlangchaindocumenttopage",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-3",level:4}];function h(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".MakeLangChainDocumentLoaderDataSourceParams"]}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"documentloader",children:"documentLoader"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"documentLoader"}),": ",(0,r.jsx)(n.code,{children:"DocumentLoader"})]}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"https://js.langchain.com/docs/modules/data_connection/document_loaders/",children:"Langchain document loader"})," to use to load documents."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts#L10",children:"mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts:10"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"metadata",children:"metadata"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"metadata"}),": ",(0,r.jsx)(n.code,{children:"PageMetadata"})]}),"\n",(0,r.jsx)(n.p,{children:"Metadata to use in the page metadata of all documents."}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Page.metadata"})," generated with ",(0,r.jsx)(n.code,{children:"transformLangchainDocumentToPage()"}),"\noverrides this metadata if the properties have the same key."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts#L23",children:"mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts:23"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"Name of the data source used by MongoDB RAG Ingest."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts#L15",children:"mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts:15"})}),"\n",(0,r.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,r.jsx)(n.h3,{id:"transformlangchaindocumenttopage",children:"transformLangchainDocumentToPage"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"transformLangchainDocumentToPage"}),"(",(0,r.jsx)(n.code,{children:"doc"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"Omit"}),"<",(0,r.jsx)(n.code,{children:"Page"}),", ",(0,r.jsx)(n.code,{children:'"sourceName"'}),">>"]}),"\n",(0,r.jsxs)(n.p,{children:["Take the LangchainDocument returned by the ",(0,r.jsx)(n.code,{children:"documentLoader"}),"\nand transform it into the Page persisted in the PageStore."]}),"\n",(0,r.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"doc"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"Document"}),"<",(0,r.jsx)(n.code,{children:"Record"}),"<",(0,r.jsx)(n.code,{children:"string"}),", ",(0,r.jsx)(n.code,{children:"any"}),">>"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"Omit"}),"<",(0,r.jsx)(n.code,{children:"Page"}),", ",(0,r.jsx)(n.code,{children:'"sourceName"'}),">>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts#L29",children:"mongodb-rag-ingest/src/sources/LangchainDocumentLoaderDataSource.ts:29"})})]})}function l(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>c,a:()=>o});var r=a(67294);const t={},s=r.createContext(t);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/8a5452c6.09734a18.js b/assets/js/8a5452c6.93e16818.js similarity index 96% rename from assets/js/8a5452c6.09734a18.js rename to assets/js/8a5452c6.93e16818.js index 457fb23b8..b58b1494d 100644 --- a/assets/js/8a5452c6.09734a18.js +++ b/assets/js/8a5452c6.93e16818.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7677],{83297:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>u,frontMatter:()=>s,metadata:()=>c,toc:()=>d});var n=a(85893),r=a(11151);const s={id:"GenerateDataFuncParams",title:"Interface: GenerateDataFuncParams",sidebar_label:"GenerateDataFuncParams",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/evaluation/interfaces/GenerateDataFuncParams",title:"Interface: GenerateDataFuncParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/GenerateDataFuncParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/GenerateDataFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"GenerateDataFuncParams",title:"Interface: GenerateDataFuncParams",sidebar_label:"GenerateDataFuncParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"GenerateDataAndMetadataParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams"},next:{title:"GeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore"}},o={},d=[{value:"Properties",id:"properties",level:2},{value:"runId",id:"runid",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"testCases",id:"testcases",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function l(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(t.h3,{id:"runid",children:"runId"}),"\n",(0,n.jsxs)(t.p,{children:["\u2022 ",(0,n.jsx)(t.strong,{children:"runId"}),": ",(0,n.jsx)(t.code,{children:"ObjectId"})]}),"\n",(0,n.jsx)(t.p,{children:"Unique ID for all generated data for this run."}),"\n",(0,n.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts:13"})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"testcases",children:"testCases"}),"\n",(0,n.jsxs)(t.p,{children:["\u2022 ",(0,n.jsx)(t.strong,{children:"testCases"}),": ",(0,n.jsx)(t.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,n.jsx)(t.code,{children:"SomeTestCase"})}),"[]"]}),"\n",(0,n.jsx)(t.p,{children:"Test cases to generate data for."}),"\n",(0,n.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts#L9",children:"packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts:9"})})]})}function u(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},11151:(e,t,a)=>{a.d(t,{Z:()=>c,a:()=>i});var n=a(67294);const r={},s=n.createContext(r);function i(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7677],{83297:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>u,frontMatter:()=>s,metadata:()=>c,toc:()=>d});var n=a(85893),r=a(11151);const s={id:"GenerateDataFuncParams",title:"Interface: GenerateDataFuncParams",sidebar_label:"GenerateDataFuncParams",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/evaluation/interfaces/GenerateDataFuncParams",title:"Interface: GenerateDataFuncParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/GenerateDataFuncParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/GenerateDataFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"GenerateDataFuncParams",title:"Interface: GenerateDataFuncParams",sidebar_label:"GenerateDataFuncParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"GenerateDataAndMetadataParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams"},next:{title:"GeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore"}},o={},d=[{value:"Properties",id:"properties",level:2},{value:"runId",id:"runid",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"testCases",id:"testcases",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function l(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(t.h3,{id:"runid",children:"runId"}),"\n",(0,n.jsxs)(t.p,{children:["\u2022 ",(0,n.jsx)(t.strong,{children:"runId"}),": ",(0,n.jsx)(t.code,{children:"ObjectId"})]}),"\n",(0,n.jsx)(t.p,{children:"Unique ID for all generated data for this run."}),"\n",(0,n.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts:13"})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"testcases",children:"testCases"}),"\n",(0,n.jsxs)(t.p,{children:["\u2022 ",(0,n.jsx)(t.strong,{children:"testCases"}),": ",(0,n.jsx)(t.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,n.jsx)(t.code,{children:"SomeTestCase"})}),"[]"]}),"\n",(0,n.jsx)(t.p,{children:"Test cases to generate data for."}),"\n",(0,n.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts#L9",children:"packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts:9"})})]})}function u(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},11151:(e,t,a)=>{a.d(t,{Z:()=>c,a:()=>i});var n=a(67294);const r={},s=n.createContext(r);function i(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function c(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9019bb38.a259a21a.js b/assets/js/9019bb38.a259a21a.js new file mode 100644 index 000000000..77282107d --- /dev/null +++ b/assets/js/9019bb38.a259a21a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9249],{48829:(n,e,t)=>{t.r(e),t.d(e,{assets:()=>l,contentTitle:()=>r,default:()=>p,frontMatter:()=>i,metadata:()=>s,toc:()=>c});var a=t(85893),o=t(11151);const i={},r="Pipelines",s={id:"evaluation/pipeline",title:"Pipelines",description:"You can use pipelines to run a series of commands together.",source:"@site/docs/evaluation/pipeline.md",sourceDirName:"evaluation",slug:"/evaluation/pipeline",permalink:"/chatbot/evaluation/pipeline",draft:!1,unlisted:!1,editUrl:"https://github.com/mongodb/chatbot/tree/main/docs/docs/evaluation/pipeline.md",tags:[],version:"current",frontMatter:{},sidebar:"main",previous:{title:"Configuration Reference",permalink:"/chatbot/evaluation/configuration-reference"},next:{title:"API Reference",permalink:"/chatbot/reference/"}},l={},c=[{value:"Run Pipelines",id:"run-pipelines",level:2},{value:"Examples",id:"examples",level:2}];function u(n){const e={a:"a",code:"code",h1:"h1",h2:"h2",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.a)(),...n.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(e.h1,{id:"pipelines",children:"Pipelines"}),"\n",(0,a.jsx)(e.p,{children:"You can use pipelines to run a series of commands together.\nThis is useful for automating evaluation tasks."}),"\n",(0,a.jsx)(e.p,{children:"You can also use pipelines to run multiple commands in sequence in a CI environment.\nFor example, you might want to run a pipeline of commands every day."}),"\n",(0,a.jsx)(e.h2,{id:"run-pipelines",children:"Run Pipelines"}),"\n",(0,a.jsxs)(e.p,{children:["You can run pipelines with the ",(0,a.jsx)(e.a,{href:"/chatbot/reference/evaluation/modules#runpipeline",children:(0,a.jsx)(e.code,{children:"runPipeline()"})})," function."]}),"\n",(0,a.jsxs)(e.p,{children:[(0,a.jsx)(e.code,{children:"runPipeline()"})," takes the following arguments:"]}),"\n",(0,a.jsxs)(e.ul,{children:["\n",(0,a.jsxs)(e.li,{children:[(0,a.jsx)(e.code,{children:"configConstructor"}),": A ",(0,a.jsx)(e.a,{href:"/chatbot/reference/evaluation/modules#configconstructor",children:(0,a.jsx)(e.code,{children:"ConfigConstructor"})})," function that returns a configuration object."]}),"\n",(0,a.jsxs)(e.li,{children:[(0,a.jsx)(e.code,{children:"pipeline"}),": A ",(0,a.jsx)(e.a,{href:"/chatbot/reference/evaluation/modules#pipeline",children:(0,a.jsx)(e.code,{children:"Pipeline"})})," function that defines the pipeline based on actions in the configuration."]}),"\n"]}),"\n",(0,a.jsxs)(e.p,{children:["Example ",(0,a.jsx)(e.code,{children:"runPipeline()"})," function call with its ",(0,a.jsx)(e.code,{children:"ConfigConstructor"})," and ",(0,a.jsx)(e.code,{children:"Pipeline"}),":"]}),"\n",(0,a.jsx)(e.pre,{children:(0,a.jsx)(e.code,{className:"language-ts",children:'// somePipeLine.ts\nimport {\n runPipeline,\n ConfigConstructor,\n EvalConfig,\n makeMongoDbCommandMetadataStore,\n makeMongoDbGeneratedDataStore,\n makeGenerateConversationData,\n makeEvaluateConversationQuality,\n makeMongoDbEvaluationStore,\n makeMongoDbReportStore,\n mongodbResponseQualityExamples,\n reportStatsForBinaryEvalRun,\n makeEvaluateConversationFaithfulness,\n} from "mongodb-chatbot-evaluation";\n\nconst configConstructor: ConfigConstructor = async () => {\n // ... set up the configuration\n\n return {\n metadataStore: makeMongoDbCommandMetadataStore(storeDbOptions),\n generatedDataStore: makeMongoDbGeneratedDataStore(storeDbOptions),\n evaluationStore: makeMongoDbEvaluationStore(storeDbOptions),\n reportStore: makeMongoDbReportStore(storeDbOptions),\n\n commands: {\n generate: {\n conversations: {\n type: "conversation",\n testCases: allTestCases,\n generator: makeGenerateConversationData({\n conversations,\n httpHeaders: {\n Origin: "Testing",\n },\n apiBaseUrl: CONVERSATIONS_SERVER_BASE_URL,\n }),\n },\n },\n evaluate: {\n conversationQuality: {\n evaluator: makeEvaluateConversationQuality({\n deploymentName: OPENAI_CHAT_COMPLETION_DEPLOYMENT,\n openAiClient: new OpenAIClient(\n OPENAI_ENDPOINT,\n new AzureKeyCredential(OPENAI_API_KEY)\n ),\n fewShotExamples: mongodbResponseQualityExamples,\n }),\n },\n conversationFaithfulness: {\n evaluator: makeEvaluateConversationFaithfulness({\n llamaIndexLlm: llamaIndexEvaluationLlm,\n }),\n },\n },\n report: {\n conversationQualityRun: {\n reporter: reportStatsForBinaryEvalRun,\n },\n conversationFaithfulnessRun: {\n reporter: reportStatsForBinaryEvalRun,\n },\n },\n },\n } satisfies EvalConfig;\n};\n\nrunPipeline({\n configConstructor,\n pipeline: async (generate, evaluate, report) => {\n // Generate data for evaluation\n const { _id: genRunId } = await generate("conversations");\n\n // Evaluate and report on the generated data\n const { _id: qualityEvalRunId } = await evaluate(\n "conversationQuality",\n genRunId\n );\n await report("conversationQualityRun", qualityEvalRunId);\n\n // Another evaluation and report on the generated data\n const { _id: faithfulnessEvalRunId } = await evaluate(\n "conversationFaithfulness",\n genRunId\n );\n await report("conversationFaithfulnessRun", faithfulnessEvalRunId);\n },\n});\n'})}),"\n",(0,a.jsx)(e.h2,{id:"examples",children:"Examples"}),"\n",(0,a.jsxs)(e.ul,{children:["\n",(0,a.jsx)(e.li,{children:(0,a.jsx)(e.a,{href:"https://github.com/mongodb/chatbot/tree/main/packages/chatbot-eval-mongodb-public/src/pipelines",children:"MongoDB AI chatbot evaluation pipelines"})}),"\n"]})]})}function p(n={}){const{wrapper:e}={...(0,o.a)(),...n.components};return e?(0,a.jsx)(e,{...n,children:(0,a.jsx)(u,{...n})}):u(n)}},11151:(n,e,t)=>{t.d(e,{Z:()=>s,a:()=>r});var a=t(67294);const o={},i=a.createContext(o);function r(n){const e=a.useContext(i);return a.useMemo((function(){return"function"==typeof n?n(e):{...e,...n}}),[e,n])}function s(n){let e;return e=n.disableParentContext?"function"==typeof n.components?n.components(o):n.components||o:r(n.components),a.createElement(i.Provider,{value:e},n.children)}}}]); \ No newline at end of file diff --git a/assets/js/90a663a7.d4a03802.js b/assets/js/90a663a7.b243b4d3.js similarity index 92% rename from assets/js/90a663a7.d4a03802.js rename to assets/js/90a663a7.b243b4d3.js index 337997e01..2aac85e1f 100644 --- a/assets/js/90a663a7.d4a03802.js +++ b/assets/js/90a663a7.b243b4d3.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1269],{37162:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>l,contentTitle:()=>s,default:()=>h,frontMatter:()=>o,metadata:()=>d,toc:()=>c});var n=t(85893),i=t(11151);const o={id:"MongoDbReportStore",title:"Interface: MongoDbReportStore",sidebar_label:"MongoDbReportStore",sidebar_position:0,custom_edit_url:null},s=void 0,d={id:"reference/evaluation/interfaces/MongoDbReportStore",title:"Interface: MongoDbReportStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/MongoDbReportStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MongoDbReportStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MongoDbReportStore",title:"Interface: MongoDbReportStore",sidebar_label:"MongoDbReportStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MongoDbGeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore"},next:{title:"Report",permalink:"/chatbot/reference/evaluation/interfaces/Report"}},l={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"close",id:"close",level:3},{value:"Returns",id:"returns",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-2",level:4}];function a(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,n.jsxs)(r.ul,{children:["\n",(0,n.jsxs)(r.li,{children:["\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:(0,n.jsx)(r.code,{children:"ReportStore"})})}),"\n",(0,n.jsxs)(r.p,{children:["\u21b3 ",(0,n.jsx)(r.strong,{children:(0,n.jsx)(r.code,{children:"MongoDbReportStore"})})]}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(r.h2,{id:"methods",children:"Methods"}),"\n",(0,n.jsx)(r.h3,{id:"close",children:"close"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"close"}),"(): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"void"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"returns",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"void"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:"ReportStore"}),".",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore#close",children:"close"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:23"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"find",children:"find"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"find"}),"(",(0,n.jsx)(r.code,{children:"filter"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"undefined"})," | ",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(r.code,{children:"Report"})}),"[]>"]}),"\n",(0,n.jsx)(r.h4,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"filter"})}),(0,n.jsxs)(r.td,{style:{textAlign:"left"},children:[(0,n.jsx)(r.code,{children:"Filter"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(r.code,{children:"Report"})}),">"]})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns-1",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"undefined"})," | ",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(r.code,{children:"Report"})}),"[]>"]}),"\n",(0,n.jsx)(r.h4,{id:"overrides",children:"Overrides"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:"ReportStore"}),".",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore#find",children:"find"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L36",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:36"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"insertone",children:"insertOne"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"insertOne"}),"(",(0,n.jsx)(r.code,{children:"evalResult"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"evalResult"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(r.code,{children:"Report"})})})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns-2",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"inherited-from-1",children:"Inherited from"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:"ReportStore"}),".",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore#insertone",children:"insertOne"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L21",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:21"})})]})}function h(e={}){const{wrapper:r}={...(0,i.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(a,{...e})}):a(e)}},11151:(e,r,t)=>{t.d(r,{Z:()=>d,a:()=>s});var n=t(67294);const i={},o=n.createContext(i);function s(e){const r=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function d(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),n.createElement(o.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1269],{37162:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>d,contentTitle:()=>s,default:()=>h,frontMatter:()=>o,metadata:()=>l,toc:()=>c});var n=t(85893),i=t(11151);const o={id:"MongoDbReportStore",title:"Interface: MongoDbReportStore",sidebar_label:"MongoDbReportStore",sidebar_position:0,custom_edit_url:null},s=void 0,l={id:"reference/evaluation/interfaces/MongoDbReportStore",title:"Interface: MongoDbReportStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/MongoDbReportStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MongoDbReportStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MongoDbReportStore",title:"Interface: MongoDbReportStore",sidebar_label:"MongoDbReportStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MongoDbGeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore"},next:{title:"Report",permalink:"/chatbot/reference/evaluation/interfaces/Report"}},d={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"close",id:"close",level:3},{value:"Returns",id:"returns",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-2",level:4}];function a(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,n.jsxs)(r.ul,{children:["\n",(0,n.jsxs)(r.li,{children:["\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:(0,n.jsx)(r.code,{children:"ReportStore"})})}),"\n",(0,n.jsxs)(r.p,{children:["\u21b3 ",(0,n.jsx)(r.strong,{children:(0,n.jsx)(r.code,{children:"MongoDbReportStore"})})]}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(r.h2,{id:"methods",children:"Methods"}),"\n",(0,n.jsx)(r.h3,{id:"close",children:"close"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"close"}),"(): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"void"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"returns",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"void"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:"ReportStore"}),".",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore#close",children:"close"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:23"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"find",children:"find"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"find"}),"(",(0,n.jsx)(r.code,{children:"filter"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"undefined"})," | ",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(r.code,{children:"Report"})}),"[]>"]}),"\n",(0,n.jsx)(r.h4,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"filter"})}),(0,n.jsxs)(r.td,{style:{textAlign:"left"},children:[(0,n.jsx)(r.code,{children:"Filter"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(r.code,{children:"Report"})}),">"]})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns-1",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"undefined"})," | ",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(r.code,{children:"Report"})}),"[]>"]}),"\n",(0,n.jsx)(r.h4,{id:"overrides",children:"Overrides"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:"ReportStore"}),".",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore#find",children:"find"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L36",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:36"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"insertone",children:"insertOne"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 ",(0,n.jsx)(r.strong,{children:"insertOne"}),"(",(0,n.jsx)(r.code,{children:"evalResult"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"evalResult"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(r.code,{children:"Report"})})})]})})]}),"\n",(0,n.jsx)(r.h4,{id:"returns-2",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"inherited-from-1",children:"Inherited from"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:"ReportStore"}),".",(0,n.jsx)(r.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore#insertone",children:"insertOne"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L21",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:21"})})]})}function h(e={}){const{wrapper:r}={...(0,i.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(a,{...e})}):a(e)}},11151:(e,r,t)=>{t.d(r,{Z:()=>l,a:()=>s});var n=t(67294);const i={},o=n.createContext(i);function s(e){const r=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function l(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:s(e.components),n.createElement(o.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/911a1996.9962daac.js b/assets/js/911a1996.f74cfefc.js similarity index 88% rename from assets/js/911a1996.9962daac.js rename to assets/js/911a1996.f74cfefc.js index cc405e9ad..c69e87e53 100644 --- a/assets/js/911a1996.9962daac.js +++ b/assets/js/911a1996.f74cfefc.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2e3],{3901:(e,n,d)=>{d.r(n),d.d(n,{assets:()=>s,contentTitle:()=>c,default:()=>l,frontMatter:()=>r,metadata:()=>o,toc:()=>a});var t=d(85893),i=d(11151);const r={id:"EmbeddedContent",title:"Interface: EmbeddedContent",sidebar_label:"EmbeddedContent",sidebar_position:0,custom_edit_url:null},c=void 0,o={id:"reference/core/interfaces/EmbeddedContent",title:"Interface: EmbeddedContent",description:"The embedded content of a chunk of text stored in the database.",source:"@site/docs/reference/core/interfaces/EmbeddedContent.md",sourceDirName:"reference/core/interfaces",slug:"/reference/core/interfaces/EmbeddedContent",permalink:"/chatbot/reference/core/interfaces/EmbeddedContent",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"EmbeddedContent",title:"Interface: EmbeddedContent",sidebar_label:"EmbeddedContent",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"AzureOpenAiServiceConfig",permalink:"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig"},next:{title:"Readme",permalink:"/chatbot/reference/ingest/"}},s={},a=[{value:"Properties",id:"properties",level:2},{value:"chunkAlgoHash",id:"chunkalgohash",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"chunkIndex",id:"chunkindex",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"embedding",id:"embedding",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"metadata",id:"metadata",level:3},{value:"Index signature",id:"index-signature",level:4},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"sourceName",id:"sourcename",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"text",id:"text",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"tokenCount",id:"tokencount",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"updated",id:"updated",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"url",id:"url",level:3},{value:"Defined in",id:"defined-in-8",level:4}];function h(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.p,{children:"The embedded content of a chunk of text stored in the database."}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"chunkalgohash",children:"chunkAlgoHash"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"chunkAlgoHash"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"Non-cryptographic hash of the actual chunking function (and its options)\nused to produce this chunk. Used to detect whether the chunk should be\nupdated because the function or options have changed."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/EmbeddedContent.ts#L54",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:54"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"chunkindex",children:"chunkIndex"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"chunkIndex"}),": ",(0,t.jsx)(n.code,{children:"number"})]}),"\n",(0,t.jsx)(n.p,{children:"The order of the chunk if this content was chunked from a larger page."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/EmbeddedContent.ts#L47",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:47"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"embedding",children:"embedding"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"embedding"}),": ",(0,t.jsx)(n.code,{children:"number"}),"[]"]}),"\n",(0,t.jsx)(n.p,{children:"The vector embedding of the text."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/EmbeddedContent.ts#L31",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:31"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"metadata",children:"metadata"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"metadata"}),": ",(0,t.jsx)(n.code,{children:"Object"})]}),"\n",(0,t.jsx)(n.p,{children:"Arbitrary metadata associated with the content. If the content text has\nmetadata in Front Matter format, this metadata should match that metadata."}),"\n",(0,t.jsx)(n.h4,{id:"index-signature",children:"Index signature"}),"\n",(0,t.jsxs)(n.p,{children:["\u25aa [k: ",(0,t.jsx)(n.code,{children:"string"}),"]: ",(0,t.jsx)(n.code,{children:"unknown"})]}),"\n",(0,t.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,t.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,t.jsx)(n.tbody,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{style:{textAlign:"left"},children:(0,t.jsx)(n.code,{children:"tags?"})}),(0,t.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,t.jsx)(n.code,{children:"string"}),"[]"]})]})})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/EmbeddedContent.ts#L42",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:42"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"sourcename",children:"sourceName"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"sourceName"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"The name of the data source the page was loaded from."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/EmbeddedContent.ts#L16",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:16"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"text",children:"text"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"text"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"The text represented by the vector embedding."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/EmbeddedContent.ts#L21",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:21"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"tokencount",children:"tokenCount"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"tokenCount"}),": ",(0,t.jsx)(n.code,{children:"number"})]}),"\n",(0,t.jsx)(n.p,{children:"The number of embedding tokens in the content."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/EmbeddedContent.ts#L26",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:26"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"updated",children:"updated"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"updated"}),": ",(0,t.jsx)(n.code,{children:"Date"})]}),"\n",(0,t.jsx)(n.p,{children:"The date the content was last updated."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/EmbeddedContent.ts#L36",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:36"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"url",children:"url"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"url"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"The URL of the page with the content."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/EmbeddedContent.ts#L11",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:11"})})]})}function l(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},11151:(e,n,d)=>{d.d(n,{Z:()=>o,a:()=>c});var t=d(67294);const i={},r=t.createContext(i);function c(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:c(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2e3],{3901:(e,n,d)=>{d.r(n),d.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>l,frontMatter:()=>r,metadata:()=>s,toc:()=>a});var t=d(85893),i=d(11151);const r={id:"EmbeddedContent",title:"Interface: EmbeddedContent",sidebar_label:"EmbeddedContent",sidebar_position:0,custom_edit_url:null},o=void 0,s={id:"reference/core/interfaces/EmbeddedContent",title:"Interface: EmbeddedContent",description:"The embedded content of a chunk of text stored in the database.",source:"@site/docs/reference/core/interfaces/EmbeddedContent.md",sourceDirName:"reference/core/interfaces",slug:"/reference/core/interfaces/EmbeddedContent",permalink:"/chatbot/reference/core/interfaces/EmbeddedContent",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"EmbeddedContent",title:"Interface: EmbeddedContent",sidebar_label:"EmbeddedContent",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"AzureOpenAiServiceConfig",permalink:"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig"},next:{title:"Readme",permalink:"/chatbot/reference/ingest/"}},c={},a=[{value:"Properties",id:"properties",level:2},{value:"chunkAlgoHash",id:"chunkalgohash",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"chunkIndex",id:"chunkindex",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"embedding",id:"embedding",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"metadata",id:"metadata",level:3},{value:"Index signature",id:"index-signature",level:4},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"sourceName",id:"sourcename",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"text",id:"text",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"tokenCount",id:"tokencount",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"updated",id:"updated",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"url",id:"url",level:3},{value:"Defined in",id:"defined-in-8",level:4}];function h(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.p,{children:"The embedded content of a chunk of text stored in the database."}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"chunkalgohash",children:"chunkAlgoHash"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"chunkAlgoHash"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"Non-cryptographic hash of the actual chunking function (and its options)\nused to produce this chunk. Used to detect whether the chunk should be\nupdated because the function or options have changed."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/EmbeddedContent.ts#L54",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:54"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"chunkindex",children:"chunkIndex"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"chunkIndex"}),": ",(0,t.jsx)(n.code,{children:"number"})]}),"\n",(0,t.jsx)(n.p,{children:"The order of the chunk if this content was chunked from a larger page."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/EmbeddedContent.ts#L47",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:47"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"embedding",children:"embedding"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"embedding"}),": ",(0,t.jsx)(n.code,{children:"number"}),"[]"]}),"\n",(0,t.jsx)(n.p,{children:"The vector embedding of the text."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/EmbeddedContent.ts#L31",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:31"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"metadata",children:"metadata"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"metadata"}),": ",(0,t.jsx)(n.code,{children:"Object"})]}),"\n",(0,t.jsx)(n.p,{children:"Arbitrary metadata associated with the content. If the content text has\nmetadata in Front Matter format, this metadata should match that metadata."}),"\n",(0,t.jsx)(n.h4,{id:"index-signature",children:"Index signature"}),"\n",(0,t.jsxs)(n.p,{children:["\u25aa [k: ",(0,t.jsx)(n.code,{children:"string"}),"]: ",(0,t.jsx)(n.code,{children:"unknown"})]}),"\n",(0,t.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,t.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,t.jsx)(n.tbody,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{style:{textAlign:"left"},children:(0,t.jsx)(n.code,{children:"tags?"})}),(0,t.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,t.jsx)(n.code,{children:"string"}),"[]"]})]})})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/EmbeddedContent.ts#L42",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:42"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"sourcename",children:"sourceName"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"sourceName"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"The name of the data source the page was loaded from."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/EmbeddedContent.ts#L16",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:16"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"text",children:"text"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"text"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"The text represented by the vector embedding."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/EmbeddedContent.ts#L21",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:21"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"tokencount",children:"tokenCount"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"tokenCount"}),": ",(0,t.jsx)(n.code,{children:"number"})]}),"\n",(0,t.jsx)(n.p,{children:"The number of embedding tokens in the content."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/EmbeddedContent.ts#L26",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:26"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"updated",children:"updated"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"updated"}),": ",(0,t.jsx)(n.code,{children:"Date"})]}),"\n",(0,t.jsx)(n.p,{children:"The date the content was last updated."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/EmbeddedContent.ts#L36",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:36"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"url",children:"url"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"url"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"The URL of the page with the content."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/EmbeddedContent.ts#L11",children:"packages/mongodb-rag-core/src/EmbeddedContent.ts:11"})})]})}function l(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},11151:(e,n,d)=>{d.d(n,{Z:()=>s,a:()=>o});var t=d(67294);const i={},r=t.createContext(i);function o(e){const n=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),t.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9295fd90.91a3f3b7.js b/assets/js/9295fd90.02324449.js similarity index 94% rename from assets/js/9295fd90.91a3f3b7.js rename to assets/js/9295fd90.02324449.js index 8ddb18460..f1177ee5e 100644 --- a/assets/js/9295fd90.91a3f3b7.js +++ b/assets/js/9295fd90.02324449.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7323],{67479:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>i,contentTitle:()=>o,default:()=>l,frontMatter:()=>a,metadata:()=>c,toc:()=>d});var s=n(85893),t=n(11151);const a={id:"MakeRagGenerateUserPromptParams",title:"Interface: MakeRagGenerateUserPromptParams",sidebar_label:"MakeRagGenerateUserPromptParams",sidebar_position:0,custom_edit_url:null},o=void 0,c={id:"reference/server/interfaces/MakeRagGenerateUserPromptParams",title:"Interface: MakeRagGenerateUserPromptParams",description:"Properties",source:"@site/docs/reference/server/interfaces/MakeRagGenerateUserPromptParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/MakeRagGenerateUserPromptParams",permalink:"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeRagGenerateUserPromptParams",title:"Interface: MakeRagGenerateUserPromptParams",sidebar_label:"MakeRagGenerateUserPromptParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeOpenAiChatLlmParams",permalink:"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams"},next:{title:"MakeUserMessageFuncParams",permalink:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams"}},i={},d=[{value:"Properties",id:"properties",level:2},{value:"findContent",id:"findcontent",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"makeReferenceLinks",id:"makereferencelinks",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"makeUserMessage",id:"makeusermessage",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"maxChunkContextTokens",id:"maxchunkcontexttokens",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"queryPreprocessor",id:"querypreprocessor",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function h(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(r.h3,{id:"findcontent",children:"findContent"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"findContent"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#findcontentfunc",children:(0,s.jsx)(r.code,{children:"FindContentFunc"})})]}),"\n",(0,s.jsx)(r.p,{children:"Find content based on the user's message and preprocessing."}),"\n",(0,s.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L20",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:20"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"makereferencelinks",children:"makeReferenceLinks"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"makeReferenceLinks"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#makereferencelinksfunc",children:(0,s.jsx)(r.code,{children:"MakeReferenceLinksFunc"})})]}),"\n",(0,s.jsxs)(r.p,{children:["If not specified, uses ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#makedefaultreferencelinks",children:"makeDefaultReferenceLinks"}),"."]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L25",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:25"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"makeusermessage",children:"makeUserMessage"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"makeUserMessage"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#makeusermessagefunc",children:(0,s.jsx)(r.code,{children:"MakeUserMessageFunc"})})]}),"\n",(0,s.jsx)(r.p,{children:"Construct user message which is sent to the LLM and stored in the database."}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L37",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:37"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"maxchunkcontexttokens",children:"maxChunkContextTokens"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"maxChunkContextTokens"}),": ",(0,s.jsx)(r.code,{children:"number"})]}),"\n",(0,s.jsxs)(r.p,{children:["Number of tokens from the found context to send to the ",(0,s.jsx)(r.code,{children:"makeUserMessage"})," function.\nAll chunks that exceed this threshold are discarded.\nIf not specified, uses DEFAULT_MAX_CONTEXT_TOKENS."]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L32",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:32"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"querypreprocessor",children:"queryPreprocessor"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"queryPreprocessor"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#querypreprocessorfunc",children:(0,s.jsx)(r.code,{children:"QueryPreprocessorFunc"})})]}),"\n",(0,s.jsxs)(r.p,{children:["Transform the user's message before sending it to the ",(0,s.jsx)(r.code,{children:"findContent"})," function."]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L15",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:15"})})]})}function l(e={}){const{wrapper:r}={...(0,t.a)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},11151:(e,r,n)=>{n.d(r,{Z:()=>c,a:()=>o});var s=n(67294);const t={},a=s.createContext(t);function o(e){const r=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function c(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),s.createElement(a.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7323],{67479:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>i,contentTitle:()=>o,default:()=>l,frontMatter:()=>a,metadata:()=>c,toc:()=>d});var s=n(85893),t=n(11151);const a={id:"MakeRagGenerateUserPromptParams",title:"Interface: MakeRagGenerateUserPromptParams",sidebar_label:"MakeRagGenerateUserPromptParams",sidebar_position:0,custom_edit_url:null},o=void 0,c={id:"reference/server/interfaces/MakeRagGenerateUserPromptParams",title:"Interface: MakeRagGenerateUserPromptParams",description:"Properties",source:"@site/docs/reference/server/interfaces/MakeRagGenerateUserPromptParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/MakeRagGenerateUserPromptParams",permalink:"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeRagGenerateUserPromptParams",title:"Interface: MakeRagGenerateUserPromptParams",sidebar_label:"MakeRagGenerateUserPromptParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeOpenAiChatLlmParams",permalink:"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams"},next:{title:"MakeUserMessageFuncParams",permalink:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams"}},i={},d=[{value:"Properties",id:"properties",level:2},{value:"findContent",id:"findcontent",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"makeReferenceLinks",id:"makereferencelinks",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"makeUserMessage",id:"makeusermessage",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"maxChunkContextTokens",id:"maxchunkcontexttokens",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"queryPreprocessor",id:"querypreprocessor",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function h(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(r.h3,{id:"findcontent",children:"findContent"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"findContent"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#findcontentfunc",children:(0,s.jsx)(r.code,{children:"FindContentFunc"})})]}),"\n",(0,s.jsx)(r.p,{children:"Find content based on the user's message and preprocessing."}),"\n",(0,s.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L20",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:20"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"makereferencelinks",children:"makeReferenceLinks"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"makeReferenceLinks"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#makereferencelinksfunc",children:(0,s.jsx)(r.code,{children:"MakeReferenceLinksFunc"})})]}),"\n",(0,s.jsxs)(r.p,{children:["If not specified, uses ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#makedefaultreferencelinks",children:"makeDefaultReferenceLinks"}),"."]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L25",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:25"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"makeusermessage",children:"makeUserMessage"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"makeUserMessage"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#makeusermessagefunc",children:(0,s.jsx)(r.code,{children:"MakeUserMessageFunc"})})]}),"\n",(0,s.jsx)(r.p,{children:"Construct user message which is sent to the LLM and stored in the database."}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L37",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:37"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"maxchunkcontexttokens",children:"maxChunkContextTokens"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"maxChunkContextTokens"}),": ",(0,s.jsx)(r.code,{children:"number"})]}),"\n",(0,s.jsxs)(r.p,{children:["Number of tokens from the found context to send to the ",(0,s.jsx)(r.code,{children:"makeUserMessage"})," function.\nAll chunks that exceed this threshold are discarded.\nIf not specified, uses DEFAULT_MAX_CONTEXT_TOKENS."]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L32",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:32"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"querypreprocessor",children:"queryPreprocessor"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.code,{children:"Optional"})," ",(0,s.jsx)(r.strong,{children:"queryPreprocessor"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#querypreprocessorfunc",children:(0,s.jsx)(r.code,{children:"QueryPreprocessorFunc"})})]}),"\n",(0,s.jsxs)(r.p,{children:["Transform the user's message before sending it to the ",(0,s.jsx)(r.code,{children:"findContent"})," function."]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L15",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:15"})})]})}function l(e={}){const{wrapper:r}={...(0,t.a)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},11151:(e,r,n)=>{n.d(r,{Z:()=>c,a:()=>o});var s=n(67294);const t={},a=s.createContext(t);function o(e){const r=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function c(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),s.createElement(a.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.04aeaf9f.js b/assets/js/935f2afb.04aeaf9f.js new file mode 100644 index 000000000..1fbc5ac11 --- /dev/null +++ b/assets/js/935f2afb.04aeaf9f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"main":[{"type":"link","label":"Home","href":"/chatbot/","docId":"index","unlisted":false},{"type":"link","label":"Quick Start","href":"/chatbot/quick-start","docId":"quick-start","unlisted":false},{"type":"link","label":"MongoDB & Atlas Vector Search","href":"/chatbot/mongodb","docId":"mongodb","unlisted":false},{"type":"category","label":"Data Ingest CLI","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Configure the Ingest CLI","href":"/chatbot/ingest/configure","docId":"ingest/configure","unlisted":false},{"type":"link","label":"Configuration Reference","href":"/chatbot/ingest/configuration-reference","docId":"ingest/configuration-reference","unlisted":false},{"type":"link","label":"CLI Commands Reference","href":"/chatbot/ingest/command-reference","docId":"ingest/command-reference","unlisted":false},{"type":"link","label":"Data Sources","href":"/chatbot/ingest/data-sources","docId":"ingest/data-sources","unlisted":false},{"type":"link","label":"Optimize Ingestion","href":"/chatbot/ingest/optimize","docId":"ingest/optimize","unlisted":false}]},{"type":"category","label":"Chatbot Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Configure the Chatbot Server","href":"/chatbot/server/configure","docId":"server/configure","unlisted":false},{"type":"link","label":"Manage Conversations","href":"/chatbot/server/conversations","docId":"server/conversations","unlisted":false},{"type":"link","label":"Generate User Message","href":"/chatbot/server/user-message","docId":"server/user-message","unlisted":false},{"type":"link","label":"Chat with an LLM","href":"/chatbot/server/llm","docId":"server/llm","unlisted":false},{"type":"category","label":"Retrieval Augmented Generation (RAG)","collapsed":true,"collapsible":true,"items":[{"type":"link","label":"Set up RAG","href":"/chatbot/server/rag/","docId":"server/rag/index","unlisted":false},{"type":"link","label":"Pre-Process User Queries","href":"/chatbot/server/rag/preprocess","docId":"server/rag/preprocess","unlisted":false},{"type":"link","label":"Retrieve Context Information","href":"/chatbot/server/rag/retrieve","docId":"server/rag/retrieve","unlisted":false},{"type":"link","label":"Include References","href":"/chatbot/server/rag/references","docId":"server/rag/references","unlisted":false}]},{"type":"link","label":"Customize Server Logic","href":"/chatbot/server/custom-logic","docId":"server/custom-logic","unlisted":false},{"type":"link","label":"Tool Calling","href":"/chatbot/server/tools","docId":"server/tools","unlisted":false},{"type":"link","label":"Persist Conversation Data","href":"/chatbot/server/persist","docId":"server/persist","unlisted":false},{"type":"link","label":"Evaluate Chatbot Responses","href":"/chatbot/server/evaluate","docId":"server/evaluate","unlisted":false},{"type":"link","label":"OpenAPI Spec","href":"/server/openapi"}]},{"type":"link","label":"Chatbot UI","href":"/chatbot/ui","docId":"ui","unlisted":false},{"type":"category","label":"Evaluation CLI","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Configure the Evaluation CLI","href":"/chatbot/evaluation/","docId":"evaluation/index","unlisted":false},{"type":"link","label":"CLI Command Reference","href":"/chatbot/evaluation/command-reference","docId":"evaluation/command-reference","unlisted":false},{"type":"link","label":"Configuration Reference","href":"/chatbot/evaluation/configuration-reference","docId":"evaluation/configuration-reference","unlisted":false},{"type":"link","label":"Pipelines","href":"/chatbot/evaluation/pipeline","docId":"evaluation/pipeline","unlisted":false}]},{"type":"category","label":"API Reference","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"mongodb-chatbot-server","items":[{"type":"link","label":"Readme","href":"/chatbot/reference/server/","docId":"reference/server/index","unlisted":false},{"type":"link","label":"Exports","href":"/chatbot/reference/server/modules","docId":"reference/server/modules","unlisted":false},{"type":"category","label":"Interfaces","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"AppConfig","href":"/chatbot/reference/server/interfaces/AppConfig","docId":"reference/server/interfaces/AppConfig","unlisted":false},{"type":"link","label":"AzureOpenAiServiceConfig","href":"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig","docId":"reference/server/interfaces/AzureOpenAiServiceConfig","unlisted":false},{"type":"link","label":"CallToolResponse","href":"/chatbot/reference/server/interfaces/CallToolResponse","docId":"reference/server/interfaces/CallToolResponse","unlisted":false},{"type":"link","label":"ChatLlm","href":"/chatbot/reference/server/interfaces/ChatLlm","docId":"reference/server/interfaces/ChatLlm","unlisted":false},{"type":"link","label":"CommentMessageParams","href":"/chatbot/reference/server/interfaces/CommentMessageParams","docId":"reference/server/interfaces/CommentMessageParams","unlisted":false},{"type":"link","label":"Conversation","href":"/chatbot/reference/server/interfaces/Conversation","docId":"reference/server/interfaces/Conversation","unlisted":false},{"type":"link","label":"ConversationConstants","href":"/chatbot/reference/server/interfaces/ConversationConstants","docId":"reference/server/interfaces/ConversationConstants","unlisted":false},{"type":"link","label":"ConversationsRateLimitConfig","href":"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig","docId":"reference/server/interfaces/ConversationsRateLimitConfig","unlisted":false},{"type":"link","label":"ConversationsRouterLocals","href":"/chatbot/reference/server/interfaces/ConversationsRouterLocals","docId":"reference/server/interfaces/ConversationsRouterLocals","unlisted":false},{"type":"link","label":"ConversationsRouterParams","href":"/chatbot/reference/server/interfaces/ConversationsRouterParams","docId":"reference/server/interfaces/ConversationsRouterParams","unlisted":false},{"type":"link","label":"ConversationsService","href":"/chatbot/reference/server/interfaces/ConversationsService","docId":"reference/server/interfaces/ConversationsService","unlisted":false},{"type":"link","label":"DataStreamer","href":"/chatbot/reference/server/interfaces/DataStreamer","docId":"reference/server/interfaces/DataStreamer","unlisted":false},{"type":"link","label":"EmbeddedContent","href":"/chatbot/reference/server/interfaces/EmbeddedContent","docId":"reference/server/interfaces/EmbeddedContent","unlisted":false},{"type":"link","label":"FindByIdParams","href":"/chatbot/reference/server/interfaces/FindByIdParams","docId":"reference/server/interfaces/FindByIdParams","unlisted":false},{"type":"link","label":"GenerateUserPromptFuncReturnValue","href":"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue","docId":"reference/server/interfaces/GenerateUserPromptFuncReturnValue","unlisted":false},{"type":"link","label":"LlmAnswerQuestionParams","href":"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams","docId":"reference/server/interfaces/LlmAnswerQuestionParams","unlisted":false},{"type":"link","label":"LlmCallToolParams","href":"/chatbot/reference/server/interfaces/LlmCallToolParams","docId":"reference/server/interfaces/LlmCallToolParams","unlisted":false},{"type":"link","label":"MakeLangchainChatLlmProps","href":"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps","docId":"reference/server/interfaces/MakeLangchainChatLlmProps","unlisted":false},{"type":"link","label":"MakeOpenAiChatLlmParams","href":"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams","docId":"reference/server/interfaces/MakeOpenAiChatLlmParams","unlisted":false},{"type":"link","label":"MakeRagGenerateUserPromptParams","href":"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams","docId":"reference/server/interfaces/MakeRagGenerateUserPromptParams","unlisted":false},{"type":"link","label":"MakeUserMessageFuncParams","href":"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams","docId":"reference/server/interfaces/MakeUserMessageFuncParams","unlisted":false},{"type":"link","label":"MakeVerifiedAnswerGenerateUserPromptParams","href":"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams","docId":"reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams","unlisted":false},{"type":"link","label":"OpenAiChatMessage","href":"/chatbot/reference/server/interfaces/OpenAiChatMessage","docId":"reference/server/interfaces/OpenAiChatMessage","unlisted":false},{"type":"link","label":"RateMessageParams","href":"/chatbot/reference/server/interfaces/RateMessageParams","docId":"reference/server/interfaces/RateMessageParams","unlisted":false},{"type":"link","label":"SearchBooster","href":"/chatbot/reference/server/interfaces/SearchBooster","docId":"reference/server/interfaces/SearchBooster","unlisted":false},{"type":"link","label":"Tool","href":"/chatbot/reference/server/interfaces/Tool","docId":"reference/server/interfaces/Tool","unlisted":false},{"type":"link","label":"ToolCallParams","href":"/chatbot/reference/server/interfaces/ToolCallParams","docId":"reference/server/interfaces/ToolCallParams","unlisted":false}]}],"collapsed":true,"collapsible":true},{"type":"category","label":"mongodb-rag-core","items":[{"type":"link","label":"Readme","href":"/chatbot/reference/core/","docId":"reference/core/index","unlisted":false},{"type":"link","label":"Exports","href":"/chatbot/reference/core/modules","docId":"reference/core/modules","unlisted":false},{"type":"category","label":"Interfaces","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"AzureOpenAiServiceConfig","href":"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig","docId":"reference/core/interfaces/AzureOpenAiServiceConfig","unlisted":false},{"type":"link","label":"EmbeddedContent","href":"/chatbot/reference/core/interfaces/EmbeddedContent","docId":"reference/core/interfaces/EmbeddedContent","unlisted":false}]}],"collapsed":true,"collapsible":true},{"type":"category","label":"mongodb-rag-ingest","items":[{"type":"link","label":"Readme","href":"/chatbot/reference/ingest/","docId":"reference/ingest/index","unlisted":false},{"type":"link","label":"Table of Contents","href":"/chatbot/reference/ingest/modules","docId":"reference/ingest/modules","unlisted":false},{"type":"category","label":"Modules","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"embed","href":"/chatbot/reference/ingest/modules/embed","docId":"reference/ingest/modules/embed","unlisted":false},{"type":"link","label":"sources","href":"/chatbot/reference/ingest/modules/sources","docId":"reference/ingest/modules/sources","unlisted":false}],"href":"/chatbot/reference/ingest/modules/"},{"type":"category","label":"Interfaces","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"sources.Branch","href":"/chatbot/reference/ingest/interfaces/sources.Branch","docId":"reference/ingest/interfaces/sources.Branch","unlisted":false},{"type":"link","label":"sources.DevCenterEntryTag","href":"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag","docId":"reference/ingest/interfaces/sources.DevCenterEntryTag","unlisted":false},{"type":"link","label":"sources.MakeGitDataSourceParams","href":"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams","docId":"reference/ingest/interfaces/sources.MakeGitDataSourceParams","unlisted":false},{"type":"link","label":"sources.MakeLangChainDocumentLoaderDataSourceParams","href":"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams","docId":"reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams","unlisted":false},{"type":"link","label":"sources.MakeMongoDbUniversityDataSourceParams","href":"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams","docId":"reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams","unlisted":false},{"type":"link","label":"sources.ProjectBase","href":"/chatbot/reference/ingest/interfaces/sources.ProjectBase","docId":"reference/ingest/interfaces/sources.ProjectBase","unlisted":false},{"type":"link","label":"sources.SnootyProject","href":"/chatbot/reference/ingest/interfaces/sources.SnootyProject","docId":"reference/ingest/interfaces/sources.SnootyProject","unlisted":false}]}],"collapsed":true,"collapsible":true},{"type":"category","label":"mongodb-chatbot-evaluation","items":[{"type":"link","label":"Readme","href":"/chatbot/reference/evaluation/","docId":"reference/evaluation/index","unlisted":false},{"type":"link","label":"Exports","href":"/chatbot/reference/evaluation/modules","docId":"reference/evaluation/modules","unlisted":false},{"type":"category","label":"Interfaces","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"BaseGeneratedData","href":"/chatbot/reference/evaluation/interfaces/BaseGeneratedData","docId":"reference/evaluation/interfaces/BaseGeneratedData","unlisted":false},{"type":"link","label":"BaseTestCase","href":"/chatbot/reference/evaluation/interfaces/BaseTestCase","docId":"reference/evaluation/interfaces/BaseTestCase","unlisted":false},{"type":"link","label":"CheckResponseQuality","href":"/chatbot/reference/evaluation/interfaces/CheckResponseQuality","docId":"reference/evaluation/interfaces/CheckResponseQuality","unlisted":false},{"type":"link","label":"CheckResponseQualityParams","href":"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams","docId":"reference/evaluation/interfaces/CheckResponseQualityParams","unlisted":false},{"type":"link","label":"CommandMetadataStore","href":"/chatbot/reference/evaluation/interfaces/CommandMetadataStore","docId":"reference/evaluation/interfaces/CommandMetadataStore","unlisted":false},{"type":"link","label":"CommandRunMetadata","href":"/chatbot/reference/evaluation/interfaces/CommandRunMetadata","docId":"reference/evaluation/interfaces/CommandRunMetadata","unlisted":false},{"type":"link","label":"ConversationEvalData","href":"/chatbot/reference/evaluation/interfaces/ConversationEvalData","docId":"reference/evaluation/interfaces/ConversationEvalData","unlisted":false},{"type":"link","label":"ConversationGeneratedData","href":"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData","docId":"reference/evaluation/interfaces/ConversationGeneratedData","unlisted":false},{"type":"link","label":"ConversationTestCase","href":"/chatbot/reference/evaluation/interfaces/ConversationTestCase","docId":"reference/evaluation/interfaces/ConversationTestCase","unlisted":false},{"type":"link","label":"EvalConfig","href":"/chatbot/reference/evaluation/interfaces/EvalConfig","docId":"reference/evaluation/interfaces/EvalConfig","unlisted":false},{"type":"link","label":"EvalResult","href":"/chatbot/reference/evaluation/interfaces/EvalResult","docId":"reference/evaluation/interfaces/EvalResult","unlisted":false},{"type":"link","label":"EvaluateConversationQualityParams","href":"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams","docId":"reference/evaluation/interfaces/EvaluateConversationQualityParams","unlisted":false},{"type":"link","label":"EvaluationStore","href":"/chatbot/reference/evaluation/interfaces/EvaluationStore","docId":"reference/evaluation/interfaces/EvaluationStore","unlisted":false},{"type":"link","label":"ExpectedLinks","href":"/chatbot/reference/evaluation/interfaces/ExpectedLinks","docId":"reference/evaluation/interfaces/ExpectedLinks","unlisted":false},{"type":"link","label":"GenerateDataAndMetadataParams","href":"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams","docId":"reference/evaluation/interfaces/GenerateDataAndMetadataParams","unlisted":false},{"type":"link","label":"GenerateDataFuncParams","href":"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams","docId":"reference/evaluation/interfaces/GenerateDataFuncParams","unlisted":false},{"type":"link","label":"GeneratedDataStore","href":"/chatbot/reference/evaluation/interfaces/GeneratedDataStore","docId":"reference/evaluation/interfaces/GeneratedDataStore","unlisted":false},{"type":"link","label":"MakeGenerateConversationDataParams","href":"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams","docId":"reference/evaluation/interfaces/MakeGenerateConversationDataParams","unlisted":false},{"type":"link","label":"MakeGenerateLlmConversationDataParams","href":"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams","docId":"reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams","unlisted":false},{"type":"link","label":"MakeMongoDbCommandMetadataStoreParams","href":"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams","docId":"reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams","unlisted":false},{"type":"link","label":"MakeMongoDbEvaluationStoreParams","href":"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams","docId":"reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams","unlisted":false},{"type":"link","label":"MakeMongoDbGeneratedDataStoreParams","href":"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams","docId":"reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams","unlisted":false},{"type":"link","label":"MakeMongoDbReportStoreParams","href":"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams","docId":"reference/evaluation/interfaces/MakeMongoDbReportStoreParams","unlisted":false},{"type":"link","label":"MongoDbEvaluationStore","href":"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore","docId":"reference/evaluation/interfaces/MongoDbEvaluationStore","unlisted":false},{"type":"link","label":"MongoDbGeneratedDataStore","href":"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore","docId":"reference/evaluation/interfaces/MongoDbGeneratedDataStore","unlisted":false},{"type":"link","label":"MongoDbReportStore","href":"/chatbot/reference/evaluation/interfaces/MongoDbReportStore","docId":"reference/evaluation/interfaces/MongoDbReportStore","unlisted":false},{"type":"link","label":"Report","href":"/chatbot/reference/evaluation/interfaces/Report","docId":"reference/evaluation/interfaces/Report","unlisted":false},{"type":"link","label":"ReportEvalFuncParams","href":"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams","docId":"reference/evaluation/interfaces/ReportEvalFuncParams","unlisted":false},{"type":"link","label":"ReportStore","href":"/chatbot/reference/evaluation/interfaces/ReportStore","docId":"reference/evaluation/interfaces/ReportStore","unlisted":false},{"type":"link","label":"ResponseQualityExample","href":"/chatbot/reference/evaluation/interfaces/ResponseQualityExample","docId":"reference/evaluation/interfaces/ResponseQualityExample","unlisted":false}]}],"collapsed":true,"collapsible":true}],"href":"/chatbot/reference/"}]},"docs":{"evaluation/command-reference":{"id":"evaluation/command-reference","title":"CLI Command Reference","description":"The MongoDB Chatbot Evaluation CLI has the following commands.","sidebar":"main"},"evaluation/configuration-reference":{"id":"evaluation/configuration-reference","title":"Configuration Reference","description":"This page contains reference documentation for the configuration options for the MongoDB Chatbot Evaluation CLI.","sidebar":"main"},"evaluation/index":{"id":"evaluation/index","title":"Configure the Evaluation CLI","description":"The MongoDB Chatbot Framework comes with an Evaluation CLI that allows you","sidebar":"main"},"evaluation/pipeline":{"id":"evaluation/pipeline","title":"Pipelines","description":"You can use pipelines to run a series of commands together.","sidebar":"main"},"index":{"id":"index","title":"Home","description":"Build full-stack intelligent chatbot applications using MongoDB and Atlas Vector Search.","sidebar":"main"},"ingest/command-reference":{"id":"ingest/command-reference","title":"CLI Commands Reference","description":"The MongoDB RAG Ingest CLI has the following commands.","sidebar":"main"},"ingest/configuration-reference":{"id":"ingest/configuration-reference","title":"Configuration Reference","description":"This page contains reference documentation for the configuration options for the MongoDB RAG Ingest CLI.","sidebar":"main"},"ingest/configure":{"id":"ingest/configure","title":"Configure the Ingest CLI","description":"This guide explains how you can configure the MongoDB Ingest CLI to ingest","sidebar":"main"},"ingest/data-sources":{"id":"ingest/data-sources","title":"Data Sources","description":"You must configure which data sources you want to ingest data from.","sidebar":"main"},"ingest/optimize":{"id":"ingest/optimize","title":"Optimize Ingestion","description":"You can optimize your data ingestion process for your application.","sidebar":"main"},"mongodb":{"id":"mongodb","title":"MongoDB & Atlas Vector Search","description":"The MongoDB Chatbot Framework uses MongoDB Atlas as its data layer.","sidebar":"main"},"quick-start":{"id":"quick-start","title":"Quick Start","description":"This quick start guide walks you through the steps to get started building","sidebar":"main"},"reference/core/index":{"id":"reference/core/index","title":"mongodb-rag-core","description":"Core library with shared components used by other MongoDB RAG packages.","sidebar":"main"},"reference/core/interfaces/AzureOpenAiServiceConfig":{"id":"reference/core/interfaces/AzureOpenAiServiceConfig","title":"Interface: AzureOpenAiServiceConfig","description":"Properties","sidebar":"main"},"reference/core/interfaces/EmbeddedContent":{"id":"reference/core/interfaces/EmbeddedContent","title":"Interface: EmbeddedContent","description":"The embedded content of a chunk of text stored in the database.","sidebar":"main"},"reference/core/modules":{"id":"reference/core/modules","title":"mongodb-rag-core","description":"Interfaces","sidebar":"main"},"reference/eval/index":{"id":"reference/eval/index","title":"mongodb-chatbot-eval","description":"CLI application for evaluating MongoDB Chatbot Framework quality."},"reference/eval/interfaces/BaseGeneratedData":{"id":"reference/eval/interfaces/BaseGeneratedData","title":"Interface: BaseGeneratedData","description":"Hierarchy"},"reference/eval/interfaces/BaseTestCase":{"id":"reference/eval/interfaces/BaseTestCase","title":"Interface: BaseTestCase","description":"Hierarchy"},"reference/eval/interfaces/CheckResponseQuality":{"id":"reference/eval/interfaces/CheckResponseQuality","title":"Interface: CheckResponseQuality","description":"Properties"},"reference/eval/interfaces/CheckResponseQualityParams":{"id":"reference/eval/interfaces/CheckResponseQualityParams","title":"Interface: CheckResponseQualityParams","description":"Properties"},"reference/eval/interfaces/CommandMetadataStore":{"id":"reference/eval/interfaces/CommandMetadataStore","title":"Interface: CommandMetadataStore","description":"Methods"},"reference/eval/interfaces/CommandRunMetadata":{"id":"reference/eval/interfaces/CommandRunMetadata","title":"Interface: CommandRunMetadata","description":"Properties"},"reference/eval/interfaces/ConversationEvalData":{"id":"reference/eval/interfaces/ConversationEvalData","title":"Interface: ConversationEvalData","description":"Hierarchy"},"reference/eval/interfaces/ConversationGeneratedData":{"id":"reference/eval/interfaces/ConversationGeneratedData","title":"Interface: ConversationGeneratedData","description":"Hierarchy"},"reference/eval/interfaces/ConversationTestCase":{"id":"reference/eval/interfaces/ConversationTestCase","title":"Interface: ConversationTestCase","description":"Hierarchy"},"reference/eval/interfaces/EvalConfig":{"id":"reference/eval/interfaces/EvalConfig","title":"Interface: EvalConfig","description":"Properties"},"reference/eval/interfaces/EvalResult":{"id":"reference/eval/interfaces/EvalResult","title":"Interface: EvalResult","description":"Properties"},"reference/eval/interfaces/EvaluateConversationQualityParams":{"id":"reference/eval/interfaces/EvaluateConversationQualityParams","title":"Interface: EvaluateConversationQualityParams","description":"Properties"},"reference/eval/interfaces/EvaluationStore":{"id":"reference/eval/interfaces/EvaluationStore","title":"Interface: EvaluationStore","description":"Hierarchy"},"reference/eval/interfaces/GenerateDataAndMetadataParams":{"id":"reference/eval/interfaces/GenerateDataAndMetadataParams","title":"Interface: GenerateDataAndMetadataParams","description":"Properties"},"reference/eval/interfaces/GenerateDataFuncParams":{"id":"reference/eval/interfaces/GenerateDataFuncParams","title":"Interface: GenerateDataFuncParams","description":"Properties"},"reference/eval/interfaces/GeneratedDataStore":{"id":"reference/eval/interfaces/GeneratedDataStore","title":"Interface: GeneratedDataStore","description":"Hierarchy"},"reference/eval/interfaces/MakeGenerateConversationDataParams":{"id":"reference/eval/interfaces/MakeGenerateConversationDataParams","title":"Interface: MakeGenerateConversationDataParams","description":"Properties"},"reference/eval/interfaces/MakeMongoDbCommandMetadataStoreParams":{"id":"reference/eval/interfaces/MakeMongoDbCommandMetadataStoreParams","title":"Interface: MakeMongoDbCommandMetadataStoreParams","description":"Properties"},"reference/eval/interfaces/MakeMongoDbEvaluationStoreParams":{"id":"reference/eval/interfaces/MakeMongoDbEvaluationStoreParams","title":"Interface: MakeMongoDbEvaluationStoreParams","description":"Properties"},"reference/eval/interfaces/MakeMongoDbGeneratedDataStoreParams":{"id":"reference/eval/interfaces/MakeMongoDbGeneratedDataStoreParams","title":"Interface: MakeMongoDbGeneratedDataStoreParams","description":"Properties"},"reference/eval/interfaces/MakeMongoDbReportStoreParams":{"id":"reference/eval/interfaces/MakeMongoDbReportStoreParams","title":"Interface: MakeMongoDbReportStoreParams","description":"Properties"},"reference/eval/interfaces/MongoDbEvaluationStore":{"id":"reference/eval/interfaces/MongoDbEvaluationStore","title":"Interface: MongoDbEvaluationStore","description":"Hierarchy"},"reference/eval/interfaces/MongoDbGeneratedDataStore":{"id":"reference/eval/interfaces/MongoDbGeneratedDataStore","title":"Interface: MongoDbGeneratedDataStore","description":"Hierarchy"},"reference/eval/interfaces/MongoDbReportStore":{"id":"reference/eval/interfaces/MongoDbReportStore","title":"Interface: MongoDbReportStore","description":"Hierarchy"},"reference/eval/interfaces/Report":{"id":"reference/eval/interfaces/Report","title":"Interface: Report","description":"Properties"},"reference/eval/interfaces/ReportStore":{"id":"reference/eval/interfaces/ReportStore","title":"Interface: ReportStore","description":"Hierarchy"},"reference/eval/interfaces/ResponseQualityExample":{"id":"reference/eval/interfaces/ResponseQualityExample","title":"Interface: ResponseQualityExample","description":"Properties"},"reference/eval/modules":{"id":"reference/eval/modules","title":"mongodb-chatbot-eval","description":"Interfaces"},"reference/evaluation/index":{"id":"reference/evaluation/index","title":"mongodb-chatbot-evaluation","description":"CLI application for evaluating MongoDB Chatbot Framework quality.","sidebar":"main"},"reference/evaluation/interfaces/BaseGeneratedData":{"id":"reference/evaluation/interfaces/BaseGeneratedData","title":"Interface: BaseGeneratedData","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/BaseTestCase":{"id":"reference/evaluation/interfaces/BaseTestCase","title":"Interface: BaseTestCase","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/CheckResponseQuality":{"id":"reference/evaluation/interfaces/CheckResponseQuality","title":"Interface: CheckResponseQuality","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/CheckResponseQualityParams":{"id":"reference/evaluation/interfaces/CheckResponseQualityParams","title":"Interface: CheckResponseQualityParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/CommandMetadataStore":{"id":"reference/evaluation/interfaces/CommandMetadataStore","title":"Interface: CommandMetadataStore","description":"Methods","sidebar":"main"},"reference/evaluation/interfaces/CommandRunMetadata":{"id":"reference/evaluation/interfaces/CommandRunMetadata","title":"Interface: CommandRunMetadata","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/ConversationEvalData":{"id":"reference/evaluation/interfaces/ConversationEvalData","title":"Interface: ConversationEvalData","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/ConversationGeneratedData":{"id":"reference/evaluation/interfaces/ConversationGeneratedData","title":"Interface: ConversationGeneratedData","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/ConversationTestCase":{"id":"reference/evaluation/interfaces/ConversationTestCase","title":"Interface: ConversationTestCase","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/EvalConfig":{"id":"reference/evaluation/interfaces/EvalConfig","title":"Interface: EvalConfig","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/EvalResult":{"id":"reference/evaluation/interfaces/EvalResult","title":"Interface: EvalResult","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/EvaluateConversationQualityParams":{"id":"reference/evaluation/interfaces/EvaluateConversationQualityParams","title":"Interface: EvaluateConversationQualityParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/EvaluationStore":{"id":"reference/evaluation/interfaces/EvaluationStore","title":"Interface: EvaluationStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/ExpectedLinks":{"id":"reference/evaluation/interfaces/ExpectedLinks","title":"Interface: ExpectedLinks","description":"Indexable","sidebar":"main"},"reference/evaluation/interfaces/GenerateDataAndMetadataParams":{"id":"reference/evaluation/interfaces/GenerateDataAndMetadataParams","title":"Interface: GenerateDataAndMetadataParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/GenerateDataFuncParams":{"id":"reference/evaluation/interfaces/GenerateDataFuncParams","title":"Interface: GenerateDataFuncParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/GeneratedDataStore":{"id":"reference/evaluation/interfaces/GeneratedDataStore","title":"Interface: GeneratedDataStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/MakeGenerateConversationDataParams":{"id":"reference/evaluation/interfaces/MakeGenerateConversationDataParams","title":"Interface: MakeGenerateConversationDataParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams":{"id":"reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams","title":"Interface: MakeGenerateLlmConversationDataParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams":{"id":"reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams","title":"Interface: MakeMongoDbCommandMetadataStoreParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams":{"id":"reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams","title":"Interface: MakeMongoDbEvaluationStoreParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams":{"id":"reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams","title":"Interface: MakeMongoDbGeneratedDataStoreParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MakeMongoDbReportStoreParams":{"id":"reference/evaluation/interfaces/MakeMongoDbReportStoreParams","title":"Interface: MakeMongoDbReportStoreParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MongoDbEvaluationStore":{"id":"reference/evaluation/interfaces/MongoDbEvaluationStore","title":"Interface: MongoDbEvaluationStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/MongoDbGeneratedDataStore":{"id":"reference/evaluation/interfaces/MongoDbGeneratedDataStore","title":"Interface: MongoDbGeneratedDataStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/MongoDbReportStore":{"id":"reference/evaluation/interfaces/MongoDbReportStore","title":"Interface: MongoDbReportStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/Report":{"id":"reference/evaluation/interfaces/Report","title":"Interface: Report","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/ReportEvalFuncParams":{"id":"reference/evaluation/interfaces/ReportEvalFuncParams","title":"Interface: ReportEvalFuncParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/ReportStore":{"id":"reference/evaluation/interfaces/ReportStore","title":"Interface: ReportStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/ResponseQualityExample":{"id":"reference/evaluation/interfaces/ResponseQualityExample","title":"Interface: ResponseQualityExample","description":"Properties","sidebar":"main"},"reference/evaluation/modules":{"id":"reference/evaluation/modules","title":"mongodb-chatbot-evaluation","description":"Interfaces","sidebar":"main"},"reference/ingest/index":{"id":"reference/ingest/index","title":"mongodb-rag-ingest","description":"The MongoDB Ingest CLI ingest content into a MongoDB collection that you can use for retrieval augmented generation (RAG) applications.","sidebar":"main"},"reference/ingest/interfaces/sources.Branch":{"id":"reference/ingest/interfaces/sources.Branch","title":"Interface: Branch","description":"sources.Branch","sidebar":"main"},"reference/ingest/interfaces/sources.DevCenterEntryTag":{"id":"reference/ingest/interfaces/sources.DevCenterEntryTag","title":"Interface: DevCenterEntryTag","description":"sources.DevCenterEntryTag","sidebar":"main"},"reference/ingest/interfaces/sources.MakeGitDataSourceParams":{"id":"reference/ingest/interfaces/sources.MakeGitDataSourceParams","title":"Interface: MakeGitDataSourceParams","description":"sources.MakeGitDataSourceParams","sidebar":"main"},"reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams":{"id":"reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams","title":"Interface: MakeLangChainDocumentLoaderDataSourceParams","description":"sources.MakeLangChainDocumentLoaderDataSourceParams","sidebar":"main"},"reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams":{"id":"reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams","title":"Interface: MakeMongoDbUniversityDataSourceParams","description":"sources.MakeMongoDbUniversityDataSourceParams","sidebar":"main"},"reference/ingest/interfaces/sources.ProjectBase":{"id":"reference/ingest/interfaces/sources.ProjectBase","title":"Interface: ProjectBase","description":"sources.ProjectBase","sidebar":"main"},"reference/ingest/interfaces/sources.SnootyProject":{"id":"reference/ingest/interfaces/sources.SnootyProject","title":"Interface: SnootyProject","description":"sources.SnootyProject","sidebar":"main"},"reference/ingest/modules":{"id":"reference/ingest/modules","title":"mongodb-rag-ingest","description":"Modules","sidebar":"main"},"reference/ingest/modules/embed":{"id":"reference/ingest/modules/embed","title":"Module: embed","description":"Type Aliases","sidebar":"main"},"reference/ingest/modules/index":{"id":"reference/ingest/modules/index","title":"Module: index","description":"Type Aliases","sidebar":"main"},"reference/ingest/modules/sources":{"id":"reference/ingest/modules/sources","title":"Module: sources","description":"Interfaces","sidebar":"main"},"reference/server/index":{"id":"reference/server/index","title":"mongodb-chatbot-server","description":"Chatbot server for the MongoDB Chatbot Framework.","sidebar":"main"},"reference/server/interfaces/AppConfig":{"id":"reference/server/interfaces/AppConfig","title":"Interface: AppConfig","description":"Configuration for the server Express.js app.","sidebar":"main"},"reference/server/interfaces/AzureOpenAiServiceConfig":{"id":"reference/server/interfaces/AzureOpenAiServiceConfig","title":"Interface: AzureOpenAiServiceConfig","description":"Properties","sidebar":"main"},"reference/server/interfaces/CallToolResponse":{"id":"reference/server/interfaces/CallToolResponse","title":"Interface: CallToolResponse","description":"Properties","sidebar":"main"},"reference/server/interfaces/ChatLlm":{"id":"reference/server/interfaces/ChatLlm","title":"Interface: ChatLlm","description":"LLM that responds to user queries. Provides both streaming and awaited options.","sidebar":"main"},"reference/server/interfaces/CommentMessageParams":{"id":"reference/server/interfaces/CommentMessageParams","title":"Interface: CommentMessageParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/Conversation":{"id":"reference/server/interfaces/Conversation","title":"Interface: Conversation","description":"Conversation between the user and the chatbot as stored in the database.","sidebar":"main"},"reference/server/interfaces/ConversationConstants":{"id":"reference/server/interfaces/ConversationConstants","title":"Interface: ConversationConstants","description":"Static responses to send in pre-defined edge case scenarios.","sidebar":"main"},"reference/server/interfaces/ConversationsRateLimitConfig":{"id":"reference/server/interfaces/ConversationsRateLimitConfig","title":"Interface: ConversationsRateLimitConfig","description":"Configuration for rate limiting on the /conversations/* routes.","sidebar":"main"},"reference/server/interfaces/ConversationsRouterLocals":{"id":"reference/server/interfaces/ConversationsRouterLocals","title":"Interface: ConversationsRouterLocals","description":"Express.js Request that exposes the app\'s ConversationsService.","sidebar":"main"},"reference/server/interfaces/ConversationsRouterParams":{"id":"reference/server/interfaces/ConversationsRouterParams","title":"Interface: ConversationsRouterParams","description":"Configuration for the /conversations/* routes.","sidebar":"main"},"reference/server/interfaces/ConversationsService":{"id":"reference/server/interfaces/ConversationsService","title":"Interface: ConversationsService","description":"Service for managing Conversations.","sidebar":"main"},"reference/server/interfaces/DataStreamer":{"id":"reference/server/interfaces/DataStreamer","title":"Interface: DataStreamer","description":"Service that streams data to the client.","sidebar":"main"},"reference/server/interfaces/EmbeddedContent":{"id":"reference/server/interfaces/EmbeddedContent","title":"Interface: EmbeddedContent","description":"The embedded content of a chunk of text stored in the database.","sidebar":"main"},"reference/server/interfaces/FindByIdParams":{"id":"reference/server/interfaces/FindByIdParams","title":"Interface: FindByIdParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/GenerateUserPromptFuncReturnValue":{"id":"reference/server/interfaces/GenerateUserPromptFuncReturnValue","title":"Interface: GenerateUserPromptFuncReturnValue","description":"Properties","sidebar":"main"},"reference/server/interfaces/LlmAnswerQuestionParams":{"id":"reference/server/interfaces/LlmAnswerQuestionParams","title":"Interface: LlmAnswerQuestionParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/LlmCallToolParams":{"id":"reference/server/interfaces/LlmCallToolParams","title":"Interface: LlmCallToolParams","description":"Parameters for invoking a tool call from the LLM.","sidebar":"main"},"reference/server/interfaces/MakeLangchainChatLlmProps":{"id":"reference/server/interfaces/MakeLangchainChatLlmProps","title":"Interface: MakeLangchainChatLlmProps","description":"Properties","sidebar":"main"},"reference/server/interfaces/MakeOpenAiChatLlmParams":{"id":"reference/server/interfaces/MakeOpenAiChatLlmParams","title":"Interface: MakeOpenAiChatLlmParams","description":"Configuration for the makeOpenAiChatLlm function.","sidebar":"main"},"reference/server/interfaces/MakeRagGenerateUserPromptParams":{"id":"reference/server/interfaces/MakeRagGenerateUserPromptParams","title":"Interface: MakeRagGenerateUserPromptParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/MakeUserMessageFuncParams":{"id":"reference/server/interfaces/MakeUserMessageFuncParams","title":"Interface: MakeUserMessageFuncParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams":{"id":"reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams","title":"Interface: MakeVerifiedAnswerGenerateUserPromptParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/OpenAiChatMessage":{"id":"reference/server/interfaces/OpenAiChatMessage","title":"Interface: OpenAiChatMessage","description":"Properties","sidebar":"main"},"reference/server/interfaces/RateMessageParams":{"id":"reference/server/interfaces/RateMessageParams","title":"Interface: RateMessageParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/SearchBooster":{"id":"reference/server/interfaces/SearchBooster","title":"Interface: SearchBooster","description":"Modify the vector search results to add, elevate, or mutate search results","sidebar":"main"},"reference/server/interfaces/Tool":{"id":"reference/server/interfaces/Tool","title":"Interface: Tool","description":"Tool for the chatbot to use.","sidebar":"main"},"reference/server/interfaces/ToolCallParams":{"id":"reference/server/interfaces/ToolCallParams","title":"Interface: ToolCallParams","description":"Parameters for invoking a tool call.","sidebar":"main"},"reference/server/modules":{"id":"reference/server/modules","title":"mongodb-chatbot-server","description":"Interfaces","sidebar":"main"},"server/configure":{"id":"server/configure","title":"Configure the Chatbot Server","description":"With the MongoDB Chatbot Server, you can quickly build a chatbot","sidebar":"main"},"server/conversations":{"id":"server/conversations","title":"Manage Conversations","description":"This guide explains how the MongoDB Chatbot Server manages conversations, and the different","sidebar":"main"},"server/custom-logic":{"id":"server/custom-logic","title":"Customize Server Logic","description":"The MongoDB Chatbot Server provides a few ways to customize the server to meet","sidebar":"main"},"server/evaluate":{"id":"server/evaluate","title":"Evaluate Chatbot Responses","description":"Evaluate the quality of your chatbot\'s responses","sidebar":"main"},"server/llm":{"id":"server/llm","title":"Chat with an LLM","description":"This guide contains information on how you can use the MongoDB Chatbot Server","sidebar":"main"},"server/persist":{"id":"server/persist","title":"Persist Conversation Data","description":"The MongoDB Chatbot Server persists and retrieves conversation data data using the","sidebar":"main"},"server/rag/index":{"id":"server/rag/index","title":"Retrieval Augmented Generation (RAG)","description":"You can use the MongoDB Chatbot Server to perform retrieval augmented generation (RAG).","sidebar":"main"},"server/rag/preprocess":{"id":"server/rag/preprocess","title":"Pre-Process User Queries","description":"One of the most powerful and flexible features that you can add to your chatbot","sidebar":"main"},"server/rag/references":{"id":"server/rag/references","title":"Include References","description":"You can include references to the data sources that you use in your chatbot","sidebar":"main"},"server/rag/retrieve":{"id":"server/rag/retrieve","title":"Retrieve Context Information","description":"If you\'re using the MongoDB Chatbot Server to perform RAG, you must retrieve","sidebar":"main"},"server/tools":{"id":"server/tools","title":"Tool Calling","description":"You can give your chatbot access to external tools. For example,","sidebar":"main"},"server/user-message":{"id":"server/user-message","title":"Generate User Message","description":"You can process a user\'s message before it is sent to the LLM to generate a response.","sidebar":"main"},"ui":{"id":"ui","title":"Chatbot UI","description":"The MongoDB Chatbot UI is a React.js component library that you can use to build a chatbot UI.","sidebar":"main"}}}')}}]); \ No newline at end of file diff --git a/assets/js/935f2afb.e9003735.js b/assets/js/935f2afb.e9003735.js deleted file mode 100644 index 75481d969..000000000 --- a/assets/js/935f2afb.e9003735.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[53],{1109:e=>{e.exports=JSON.parse('{"pluginId":"default","version":"current","label":"Next","banner":null,"badge":false,"noIndex":false,"className":"docs-version-current","isLast":true,"docsSidebars":{"main":[{"type":"link","label":"Home","href":"/chatbot/","docId":"index","unlisted":false},{"type":"link","label":"Quick Start","href":"/chatbot/quick-start","docId":"quick-start","unlisted":false},{"type":"link","label":"MongoDB & Atlas Vector Search","href":"/chatbot/mongodb","docId":"mongodb","unlisted":false},{"type":"category","label":"Data Ingest CLI","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Configure the Ingest CLI","href":"/chatbot/ingest/configure","docId":"ingest/configure","unlisted":false},{"type":"link","label":"Configuration Reference","href":"/chatbot/ingest/configuration-reference","docId":"ingest/configuration-reference","unlisted":false},{"type":"link","label":"CLI Commands Reference","href":"/chatbot/ingest/command-reference","docId":"ingest/command-reference","unlisted":false},{"type":"link","label":"Data Sources","href":"/chatbot/ingest/data-sources","docId":"ingest/data-sources","unlisted":false},{"type":"link","label":"Optimize Ingestion","href":"/chatbot/ingest/optimize","docId":"ingest/optimize","unlisted":false}]},{"type":"category","label":"Chatbot Server","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"Configure the Chatbot Server","href":"/chatbot/server/configure","docId":"server/configure","unlisted":false},{"type":"link","label":"Manage Conversations","href":"/chatbot/server/conversations","docId":"server/conversations","unlisted":false},{"type":"link","label":"Generate User Message","href":"/chatbot/server/user-message","docId":"server/user-message","unlisted":false},{"type":"link","label":"Chat with an LLM","href":"/chatbot/server/llm","docId":"server/llm","unlisted":false},{"type":"category","label":"Retrieval Augmented Generation (RAG)","collapsed":true,"collapsible":true,"items":[{"type":"link","label":"Set up RAG","href":"/chatbot/server/rag/","docId":"server/rag/index","unlisted":false},{"type":"link","label":"Pre-Process User Queries","href":"/chatbot/server/rag/preprocess","docId":"server/rag/preprocess","unlisted":false},{"type":"link","label":"Retrieve Context Information","href":"/chatbot/server/rag/retrieve","docId":"server/rag/retrieve","unlisted":false},{"type":"link","label":"Include References","href":"/chatbot/server/rag/references","docId":"server/rag/references","unlisted":false}]},{"type":"link","label":"Customize Server Logic","href":"/chatbot/server/custom-logic","docId":"server/custom-logic","unlisted":false},{"type":"link","label":"Tool Calling","href":"/chatbot/server/tools","docId":"server/tools","unlisted":false},{"type":"link","label":"Persist Conversation Data","href":"/chatbot/server/persist","docId":"server/persist","unlisted":false},{"type":"link","label":"Evaluate Chatbot Responses","href":"/chatbot/server/evaluate","docId":"server/evaluate","unlisted":false},{"type":"link","label":"OpenAPI Spec","href":"/server/openapi"}]},{"type":"link","label":"Chatbot UI","href":"/chatbot/ui","docId":"ui","unlisted":false},{"type":"link","label":"Evaluation CLI","href":"/chatbot/evaluation/","docId":"evaluation/index","unlisted":false},{"type":"category","label":"API Reference","collapsible":true,"collapsed":true,"items":[{"type":"category","label":"mongodb-chatbot-server","items":[{"type":"link","label":"Readme","href":"/chatbot/reference/server/","docId":"reference/server/index","unlisted":false},{"type":"link","label":"Exports","href":"/chatbot/reference/server/modules","docId":"reference/server/modules","unlisted":false},{"type":"category","label":"Interfaces","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"AppConfig","href":"/chatbot/reference/server/interfaces/AppConfig","docId":"reference/server/interfaces/AppConfig","unlisted":false},{"type":"link","label":"AzureOpenAiServiceConfig","href":"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig","docId":"reference/server/interfaces/AzureOpenAiServiceConfig","unlisted":false},{"type":"link","label":"CallToolResponse","href":"/chatbot/reference/server/interfaces/CallToolResponse","docId":"reference/server/interfaces/CallToolResponse","unlisted":false},{"type":"link","label":"ChatLlm","href":"/chatbot/reference/server/interfaces/ChatLlm","docId":"reference/server/interfaces/ChatLlm","unlisted":false},{"type":"link","label":"CommentMessageParams","href":"/chatbot/reference/server/interfaces/CommentMessageParams","docId":"reference/server/interfaces/CommentMessageParams","unlisted":false},{"type":"link","label":"Conversation","href":"/chatbot/reference/server/interfaces/Conversation","docId":"reference/server/interfaces/Conversation","unlisted":false},{"type":"link","label":"ConversationConstants","href":"/chatbot/reference/server/interfaces/ConversationConstants","docId":"reference/server/interfaces/ConversationConstants","unlisted":false},{"type":"link","label":"ConversationsRateLimitConfig","href":"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig","docId":"reference/server/interfaces/ConversationsRateLimitConfig","unlisted":false},{"type":"link","label":"ConversationsRouterLocals","href":"/chatbot/reference/server/interfaces/ConversationsRouterLocals","docId":"reference/server/interfaces/ConversationsRouterLocals","unlisted":false},{"type":"link","label":"ConversationsRouterParams","href":"/chatbot/reference/server/interfaces/ConversationsRouterParams","docId":"reference/server/interfaces/ConversationsRouterParams","unlisted":false},{"type":"link","label":"ConversationsService","href":"/chatbot/reference/server/interfaces/ConversationsService","docId":"reference/server/interfaces/ConversationsService","unlisted":false},{"type":"link","label":"DataStreamer","href":"/chatbot/reference/server/interfaces/DataStreamer","docId":"reference/server/interfaces/DataStreamer","unlisted":false},{"type":"link","label":"EmbeddedContent","href":"/chatbot/reference/server/interfaces/EmbeddedContent","docId":"reference/server/interfaces/EmbeddedContent","unlisted":false},{"type":"link","label":"FindByIdParams","href":"/chatbot/reference/server/interfaces/FindByIdParams","docId":"reference/server/interfaces/FindByIdParams","unlisted":false},{"type":"link","label":"GenerateUserPromptFuncReturnValue","href":"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue","docId":"reference/server/interfaces/GenerateUserPromptFuncReturnValue","unlisted":false},{"type":"link","label":"LlmAnswerQuestionParams","href":"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams","docId":"reference/server/interfaces/LlmAnswerQuestionParams","unlisted":false},{"type":"link","label":"LlmCallToolParams","href":"/chatbot/reference/server/interfaces/LlmCallToolParams","docId":"reference/server/interfaces/LlmCallToolParams","unlisted":false},{"type":"link","label":"MakeLangchainChatLlmProps","href":"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps","docId":"reference/server/interfaces/MakeLangchainChatLlmProps","unlisted":false},{"type":"link","label":"MakeOpenAiChatLlmParams","href":"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams","docId":"reference/server/interfaces/MakeOpenAiChatLlmParams","unlisted":false},{"type":"link","label":"MakeRagGenerateUserPromptParams","href":"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams","docId":"reference/server/interfaces/MakeRagGenerateUserPromptParams","unlisted":false},{"type":"link","label":"MakeUserMessageFuncParams","href":"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams","docId":"reference/server/interfaces/MakeUserMessageFuncParams","unlisted":false},{"type":"link","label":"MakeVerifiedAnswerGenerateUserPromptParams","href":"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams","docId":"reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams","unlisted":false},{"type":"link","label":"OpenAiChatMessage","href":"/chatbot/reference/server/interfaces/OpenAiChatMessage","docId":"reference/server/interfaces/OpenAiChatMessage","unlisted":false},{"type":"link","label":"RateMessageParams","href":"/chatbot/reference/server/interfaces/RateMessageParams","docId":"reference/server/interfaces/RateMessageParams","unlisted":false},{"type":"link","label":"SearchBooster","href":"/chatbot/reference/server/interfaces/SearchBooster","docId":"reference/server/interfaces/SearchBooster","unlisted":false},{"type":"link","label":"Tool","href":"/chatbot/reference/server/interfaces/Tool","docId":"reference/server/interfaces/Tool","unlisted":false},{"type":"link","label":"ToolCallParams","href":"/chatbot/reference/server/interfaces/ToolCallParams","docId":"reference/server/interfaces/ToolCallParams","unlisted":false}]}],"collapsed":true,"collapsible":true},{"type":"category","label":"mongodb-rag-core","items":[{"type":"link","label":"Readme","href":"/chatbot/reference/core/","docId":"reference/core/index","unlisted":false},{"type":"link","label":"Exports","href":"/chatbot/reference/core/modules","docId":"reference/core/modules","unlisted":false},{"type":"category","label":"Interfaces","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"AzureOpenAiServiceConfig","href":"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig","docId":"reference/core/interfaces/AzureOpenAiServiceConfig","unlisted":false},{"type":"link","label":"EmbeddedContent","href":"/chatbot/reference/core/interfaces/EmbeddedContent","docId":"reference/core/interfaces/EmbeddedContent","unlisted":false}]}],"collapsed":true,"collapsible":true},{"type":"category","label":"mongodb-rag-ingest","items":[{"type":"link","label":"Readme","href":"/chatbot/reference/ingest/","docId":"reference/ingest/index","unlisted":false},{"type":"link","label":"Table of Contents","href":"/chatbot/reference/ingest/modules","docId":"reference/ingest/modules","unlisted":false},{"type":"category","label":"Modules","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"embed","href":"/chatbot/reference/ingest/modules/embed","docId":"reference/ingest/modules/embed","unlisted":false},{"type":"link","label":"sources","href":"/chatbot/reference/ingest/modules/sources","docId":"reference/ingest/modules/sources","unlisted":false}],"href":"/chatbot/reference/ingest/modules/"},{"type":"category","label":"Interfaces","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"sources.Branch","href":"/chatbot/reference/ingest/interfaces/sources.Branch","docId":"reference/ingest/interfaces/sources.Branch","unlisted":false},{"type":"link","label":"sources.DevCenterEntryTag","href":"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag","docId":"reference/ingest/interfaces/sources.DevCenterEntryTag","unlisted":false},{"type":"link","label":"sources.MakeGitDataSourceParams","href":"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams","docId":"reference/ingest/interfaces/sources.MakeGitDataSourceParams","unlisted":false},{"type":"link","label":"sources.MakeLangChainDocumentLoaderDataSourceParams","href":"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams","docId":"reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams","unlisted":false},{"type":"link","label":"sources.MakeMongoDbUniversityDataSourceParams","href":"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams","docId":"reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams","unlisted":false},{"type":"link","label":"sources.ProjectBase","href":"/chatbot/reference/ingest/interfaces/sources.ProjectBase","docId":"reference/ingest/interfaces/sources.ProjectBase","unlisted":false},{"type":"link","label":"sources.SnootyProject","href":"/chatbot/reference/ingest/interfaces/sources.SnootyProject","docId":"reference/ingest/interfaces/sources.SnootyProject","unlisted":false}]}],"collapsed":true,"collapsible":true},{"type":"category","label":"mongodb-chatbot-evaluation","items":[{"type":"link","label":"Readme","href":"/chatbot/reference/evaluation/","docId":"reference/evaluation/index","unlisted":false},{"type":"link","label":"Exports","href":"/chatbot/reference/evaluation/modules","docId":"reference/evaluation/modules","unlisted":false},{"type":"category","label":"Interfaces","collapsible":true,"collapsed":true,"items":[{"type":"link","label":"BaseGeneratedData","href":"/chatbot/reference/evaluation/interfaces/BaseGeneratedData","docId":"reference/evaluation/interfaces/BaseGeneratedData","unlisted":false},{"type":"link","label":"BaseTestCase","href":"/chatbot/reference/evaluation/interfaces/BaseTestCase","docId":"reference/evaluation/interfaces/BaseTestCase","unlisted":false},{"type":"link","label":"CheckResponseQuality","href":"/chatbot/reference/evaluation/interfaces/CheckResponseQuality","docId":"reference/evaluation/interfaces/CheckResponseQuality","unlisted":false},{"type":"link","label":"CheckResponseQualityParams","href":"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams","docId":"reference/evaluation/interfaces/CheckResponseQualityParams","unlisted":false},{"type":"link","label":"CommandMetadataStore","href":"/chatbot/reference/evaluation/interfaces/CommandMetadataStore","docId":"reference/evaluation/interfaces/CommandMetadataStore","unlisted":false},{"type":"link","label":"CommandRunMetadata","href":"/chatbot/reference/evaluation/interfaces/CommandRunMetadata","docId":"reference/evaluation/interfaces/CommandRunMetadata","unlisted":false},{"type":"link","label":"ConversationEvalData","href":"/chatbot/reference/evaluation/interfaces/ConversationEvalData","docId":"reference/evaluation/interfaces/ConversationEvalData","unlisted":false},{"type":"link","label":"ConversationGeneratedData","href":"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData","docId":"reference/evaluation/interfaces/ConversationGeneratedData","unlisted":false},{"type":"link","label":"ConversationTestCase","href":"/chatbot/reference/evaluation/interfaces/ConversationTestCase","docId":"reference/evaluation/interfaces/ConversationTestCase","unlisted":false},{"type":"link","label":"EvalConfig","href":"/chatbot/reference/evaluation/interfaces/EvalConfig","docId":"reference/evaluation/interfaces/EvalConfig","unlisted":false},{"type":"link","label":"EvalResult","href":"/chatbot/reference/evaluation/interfaces/EvalResult","docId":"reference/evaluation/interfaces/EvalResult","unlisted":false},{"type":"link","label":"EvaluateConversationQualityParams","href":"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams","docId":"reference/evaluation/interfaces/EvaluateConversationQualityParams","unlisted":false},{"type":"link","label":"EvaluationStore","href":"/chatbot/reference/evaluation/interfaces/EvaluationStore","docId":"reference/evaluation/interfaces/EvaluationStore","unlisted":false},{"type":"link","label":"GenerateDataAndMetadataParams","href":"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams","docId":"reference/evaluation/interfaces/GenerateDataAndMetadataParams","unlisted":false},{"type":"link","label":"GenerateDataFuncParams","href":"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams","docId":"reference/evaluation/interfaces/GenerateDataFuncParams","unlisted":false},{"type":"link","label":"GeneratedDataStore","href":"/chatbot/reference/evaluation/interfaces/GeneratedDataStore","docId":"reference/evaluation/interfaces/GeneratedDataStore","unlisted":false},{"type":"link","label":"MakeGenerateConversationDataParams","href":"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams","docId":"reference/evaluation/interfaces/MakeGenerateConversationDataParams","unlisted":false},{"type":"link","label":"MakeGenerateLlmConversationDataParams","href":"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams","docId":"reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams","unlisted":false},{"type":"link","label":"MakeMongoDbCommandMetadataStoreParams","href":"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams","docId":"reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams","unlisted":false},{"type":"link","label":"MakeMongoDbEvaluationStoreParams","href":"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams","docId":"reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams","unlisted":false},{"type":"link","label":"MakeMongoDbGeneratedDataStoreParams","href":"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams","docId":"reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams","unlisted":false},{"type":"link","label":"MakeMongoDbReportStoreParams","href":"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams","docId":"reference/evaluation/interfaces/MakeMongoDbReportStoreParams","unlisted":false},{"type":"link","label":"MongoDbEvaluationStore","href":"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore","docId":"reference/evaluation/interfaces/MongoDbEvaluationStore","unlisted":false},{"type":"link","label":"MongoDbGeneratedDataStore","href":"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore","docId":"reference/evaluation/interfaces/MongoDbGeneratedDataStore","unlisted":false},{"type":"link","label":"MongoDbReportStore","href":"/chatbot/reference/evaluation/interfaces/MongoDbReportStore","docId":"reference/evaluation/interfaces/MongoDbReportStore","unlisted":false},{"type":"link","label":"Report","href":"/chatbot/reference/evaluation/interfaces/Report","docId":"reference/evaluation/interfaces/Report","unlisted":false},{"type":"link","label":"ReportEvalFuncParams","href":"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams","docId":"reference/evaluation/interfaces/ReportEvalFuncParams","unlisted":false},{"type":"link","label":"ReportStore","href":"/chatbot/reference/evaluation/interfaces/ReportStore","docId":"reference/evaluation/interfaces/ReportStore","unlisted":false},{"type":"link","label":"ResponseQualityExample","href":"/chatbot/reference/evaluation/interfaces/ResponseQualityExample","docId":"reference/evaluation/interfaces/ResponseQualityExample","unlisted":false}]}],"collapsed":true,"collapsible":true}],"href":"/chatbot/reference/"}]},"docs":{"evaluation/index":{"id":"evaluation/index","title":"Evaluation CLI","description":"The Evaluation CLI documentation is under active development","sidebar":"main"},"index":{"id":"index","title":"Home","description":"Build full-stack intelligent chatbot applications using MongoDB and Atlas Vector Search.","sidebar":"main"},"ingest/command-reference":{"id":"ingest/command-reference","title":"CLI Commands Reference","description":"The MongoDB RAG Ingest CLI has the following commands.","sidebar":"main"},"ingest/configuration-reference":{"id":"ingest/configuration-reference","title":"Configuration Reference","description":"This page contains reference documentation for the configuration options for the MongoDB RAG Ingest CLI.","sidebar":"main"},"ingest/configure":{"id":"ingest/configure","title":"Configure the Ingest CLI","description":"This guide explains how you can configure the MongoDB Ingest CLI to ingest","sidebar":"main"},"ingest/data-sources":{"id":"ingest/data-sources","title":"Data Sources","description":"You must configure which data sources you want to ingest data from.","sidebar":"main"},"ingest/optimize":{"id":"ingest/optimize","title":"Optimize Ingestion","description":"You can optimize your data ingestion process for your application.","sidebar":"main"},"mongodb":{"id":"mongodb","title":"MongoDB & Atlas Vector Search","description":"The MongoDB Chatbot Framework uses MongoDB Atlas as its data layer.","sidebar":"main"},"quick-start":{"id":"quick-start","title":"Quick Start","description":"This quick start guide walks you through the steps to get started building","sidebar":"main"},"reference/core/index":{"id":"reference/core/index","title":"mongodb-rag-core","description":"Core library with shared components used by other MongoDB RAG packages.","sidebar":"main"},"reference/core/interfaces/AzureOpenAiServiceConfig":{"id":"reference/core/interfaces/AzureOpenAiServiceConfig","title":"Interface: AzureOpenAiServiceConfig","description":"Properties","sidebar":"main"},"reference/core/interfaces/EmbeddedContent":{"id":"reference/core/interfaces/EmbeddedContent","title":"Interface: EmbeddedContent","description":"The embedded content of a chunk of text stored in the database.","sidebar":"main"},"reference/core/modules":{"id":"reference/core/modules","title":"mongodb-rag-core","description":"Interfaces","sidebar":"main"},"reference/eval/index":{"id":"reference/eval/index","title":"mongodb-chatbot-eval","description":"CLI application for evaluating MongoDB Chatbot Framework quality."},"reference/eval/interfaces/BaseGeneratedData":{"id":"reference/eval/interfaces/BaseGeneratedData","title":"Interface: BaseGeneratedData","description":"Hierarchy"},"reference/eval/interfaces/BaseTestCase":{"id":"reference/eval/interfaces/BaseTestCase","title":"Interface: BaseTestCase","description":"Hierarchy"},"reference/eval/interfaces/CheckResponseQuality":{"id":"reference/eval/interfaces/CheckResponseQuality","title":"Interface: CheckResponseQuality","description":"Properties"},"reference/eval/interfaces/CheckResponseQualityParams":{"id":"reference/eval/interfaces/CheckResponseQualityParams","title":"Interface: CheckResponseQualityParams","description":"Properties"},"reference/eval/interfaces/CommandMetadataStore":{"id":"reference/eval/interfaces/CommandMetadataStore","title":"Interface: CommandMetadataStore","description":"Methods"},"reference/eval/interfaces/CommandRunMetadata":{"id":"reference/eval/interfaces/CommandRunMetadata","title":"Interface: CommandRunMetadata","description":"Properties"},"reference/eval/interfaces/ConversationEvalData":{"id":"reference/eval/interfaces/ConversationEvalData","title":"Interface: ConversationEvalData","description":"Hierarchy"},"reference/eval/interfaces/ConversationGeneratedData":{"id":"reference/eval/interfaces/ConversationGeneratedData","title":"Interface: ConversationGeneratedData","description":"Hierarchy"},"reference/eval/interfaces/ConversationTestCase":{"id":"reference/eval/interfaces/ConversationTestCase","title":"Interface: ConversationTestCase","description":"Hierarchy"},"reference/eval/interfaces/EvalConfig":{"id":"reference/eval/interfaces/EvalConfig","title":"Interface: EvalConfig","description":"Properties"},"reference/eval/interfaces/EvalResult":{"id":"reference/eval/interfaces/EvalResult","title":"Interface: EvalResult","description":"Properties"},"reference/eval/interfaces/EvaluateConversationQualityParams":{"id":"reference/eval/interfaces/EvaluateConversationQualityParams","title":"Interface: EvaluateConversationQualityParams","description":"Properties"},"reference/eval/interfaces/EvaluationStore":{"id":"reference/eval/interfaces/EvaluationStore","title":"Interface: EvaluationStore","description":"Hierarchy"},"reference/eval/interfaces/GenerateDataAndMetadataParams":{"id":"reference/eval/interfaces/GenerateDataAndMetadataParams","title":"Interface: GenerateDataAndMetadataParams","description":"Properties"},"reference/eval/interfaces/GenerateDataFuncParams":{"id":"reference/eval/interfaces/GenerateDataFuncParams","title":"Interface: GenerateDataFuncParams","description":"Properties"},"reference/eval/interfaces/GeneratedDataStore":{"id":"reference/eval/interfaces/GeneratedDataStore","title":"Interface: GeneratedDataStore","description":"Hierarchy"},"reference/eval/interfaces/MakeGenerateConversationDataParams":{"id":"reference/eval/interfaces/MakeGenerateConversationDataParams","title":"Interface: MakeGenerateConversationDataParams","description":"Properties"},"reference/eval/interfaces/MakeMongoDbCommandMetadataStoreParams":{"id":"reference/eval/interfaces/MakeMongoDbCommandMetadataStoreParams","title":"Interface: MakeMongoDbCommandMetadataStoreParams","description":"Properties"},"reference/eval/interfaces/MakeMongoDbEvaluationStoreParams":{"id":"reference/eval/interfaces/MakeMongoDbEvaluationStoreParams","title":"Interface: MakeMongoDbEvaluationStoreParams","description":"Properties"},"reference/eval/interfaces/MakeMongoDbGeneratedDataStoreParams":{"id":"reference/eval/interfaces/MakeMongoDbGeneratedDataStoreParams","title":"Interface: MakeMongoDbGeneratedDataStoreParams","description":"Properties"},"reference/eval/interfaces/MakeMongoDbReportStoreParams":{"id":"reference/eval/interfaces/MakeMongoDbReportStoreParams","title":"Interface: MakeMongoDbReportStoreParams","description":"Properties"},"reference/eval/interfaces/MongoDbEvaluationStore":{"id":"reference/eval/interfaces/MongoDbEvaluationStore","title":"Interface: MongoDbEvaluationStore","description":"Hierarchy"},"reference/eval/interfaces/MongoDbGeneratedDataStore":{"id":"reference/eval/interfaces/MongoDbGeneratedDataStore","title":"Interface: MongoDbGeneratedDataStore","description":"Hierarchy"},"reference/eval/interfaces/MongoDbReportStore":{"id":"reference/eval/interfaces/MongoDbReportStore","title":"Interface: MongoDbReportStore","description":"Hierarchy"},"reference/eval/interfaces/Report":{"id":"reference/eval/interfaces/Report","title":"Interface: Report","description":"Properties"},"reference/eval/interfaces/ReportStore":{"id":"reference/eval/interfaces/ReportStore","title":"Interface: ReportStore","description":"Hierarchy"},"reference/eval/interfaces/ResponseQualityExample":{"id":"reference/eval/interfaces/ResponseQualityExample","title":"Interface: ResponseQualityExample","description":"Properties"},"reference/eval/modules":{"id":"reference/eval/modules","title":"mongodb-chatbot-eval","description":"Interfaces"},"reference/evaluation/index":{"id":"reference/evaluation/index","title":"mongodb-chatbot-evaluation","description":"CLI application for evaluating MongoDB Chatbot Framework quality.","sidebar":"main"},"reference/evaluation/interfaces/BaseGeneratedData":{"id":"reference/evaluation/interfaces/BaseGeneratedData","title":"Interface: BaseGeneratedData","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/BaseTestCase":{"id":"reference/evaluation/interfaces/BaseTestCase","title":"Interface: BaseTestCase","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/CheckResponseQuality":{"id":"reference/evaluation/interfaces/CheckResponseQuality","title":"Interface: CheckResponseQuality","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/CheckResponseQualityParams":{"id":"reference/evaluation/interfaces/CheckResponseQualityParams","title":"Interface: CheckResponseQualityParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/CommandMetadataStore":{"id":"reference/evaluation/interfaces/CommandMetadataStore","title":"Interface: CommandMetadataStore","description":"Methods","sidebar":"main"},"reference/evaluation/interfaces/CommandRunMetadata":{"id":"reference/evaluation/interfaces/CommandRunMetadata","title":"Interface: CommandRunMetadata","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/ConversationEvalData":{"id":"reference/evaluation/interfaces/ConversationEvalData","title":"Interface: ConversationEvalData","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/ConversationGeneratedData":{"id":"reference/evaluation/interfaces/ConversationGeneratedData","title":"Interface: ConversationGeneratedData","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/ConversationTestCase":{"id":"reference/evaluation/interfaces/ConversationTestCase","title":"Interface: ConversationTestCase","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/EvalConfig":{"id":"reference/evaluation/interfaces/EvalConfig","title":"Interface: EvalConfig","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/EvalResult":{"id":"reference/evaluation/interfaces/EvalResult","title":"Interface: EvalResult","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/EvaluateConversationQualityParams":{"id":"reference/evaluation/interfaces/EvaluateConversationQualityParams","title":"Interface: EvaluateConversationQualityParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/EvaluationStore":{"id":"reference/evaluation/interfaces/EvaluationStore","title":"Interface: EvaluationStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/GenerateDataAndMetadataParams":{"id":"reference/evaluation/interfaces/GenerateDataAndMetadataParams","title":"Interface: GenerateDataAndMetadataParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/GenerateDataFuncParams":{"id":"reference/evaluation/interfaces/GenerateDataFuncParams","title":"Interface: GenerateDataFuncParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/GeneratedDataStore":{"id":"reference/evaluation/interfaces/GeneratedDataStore","title":"Interface: GeneratedDataStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/MakeGenerateConversationDataParams":{"id":"reference/evaluation/interfaces/MakeGenerateConversationDataParams","title":"Interface: MakeGenerateConversationDataParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams":{"id":"reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams","title":"Interface: MakeGenerateLlmConversationDataParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams":{"id":"reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams","title":"Interface: MakeMongoDbCommandMetadataStoreParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams":{"id":"reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams","title":"Interface: MakeMongoDbEvaluationStoreParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams":{"id":"reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams","title":"Interface: MakeMongoDbGeneratedDataStoreParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MakeMongoDbReportStoreParams":{"id":"reference/evaluation/interfaces/MakeMongoDbReportStoreParams","title":"Interface: MakeMongoDbReportStoreParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/MongoDbEvaluationStore":{"id":"reference/evaluation/interfaces/MongoDbEvaluationStore","title":"Interface: MongoDbEvaluationStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/MongoDbGeneratedDataStore":{"id":"reference/evaluation/interfaces/MongoDbGeneratedDataStore","title":"Interface: MongoDbGeneratedDataStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/MongoDbReportStore":{"id":"reference/evaluation/interfaces/MongoDbReportStore","title":"Interface: MongoDbReportStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/Report":{"id":"reference/evaluation/interfaces/Report","title":"Interface: Report","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/ReportEvalFuncParams":{"id":"reference/evaluation/interfaces/ReportEvalFuncParams","title":"Interface: ReportEvalFuncParams","description":"Properties","sidebar":"main"},"reference/evaluation/interfaces/ReportStore":{"id":"reference/evaluation/interfaces/ReportStore","title":"Interface: ReportStore","description":"Hierarchy","sidebar":"main"},"reference/evaluation/interfaces/ResponseQualityExample":{"id":"reference/evaluation/interfaces/ResponseQualityExample","title":"Interface: ResponseQualityExample","description":"Properties","sidebar":"main"},"reference/evaluation/modules":{"id":"reference/evaluation/modules","title":"mongodb-chatbot-evaluation","description":"Interfaces","sidebar":"main"},"reference/ingest/index":{"id":"reference/ingest/index","title":"mongodb-rag-ingest","description":"The MongoDB Ingest CLI ingest content into a MongoDB collection that you can use for retrieval augmented generation (RAG) applications.","sidebar":"main"},"reference/ingest/interfaces/sources.Branch":{"id":"reference/ingest/interfaces/sources.Branch","title":"Interface: Branch","description":"sources.Branch","sidebar":"main"},"reference/ingest/interfaces/sources.DevCenterEntryTag":{"id":"reference/ingest/interfaces/sources.DevCenterEntryTag","title":"Interface: DevCenterEntryTag","description":"sources.DevCenterEntryTag","sidebar":"main"},"reference/ingest/interfaces/sources.MakeGitDataSourceParams":{"id":"reference/ingest/interfaces/sources.MakeGitDataSourceParams","title":"Interface: MakeGitDataSourceParams","description":"sources.MakeGitDataSourceParams","sidebar":"main"},"reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams":{"id":"reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams","title":"Interface: MakeLangChainDocumentLoaderDataSourceParams","description":"sources.MakeLangChainDocumentLoaderDataSourceParams","sidebar":"main"},"reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams":{"id":"reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams","title":"Interface: MakeMongoDbUniversityDataSourceParams","description":"sources.MakeMongoDbUniversityDataSourceParams","sidebar":"main"},"reference/ingest/interfaces/sources.ProjectBase":{"id":"reference/ingest/interfaces/sources.ProjectBase","title":"Interface: ProjectBase","description":"sources.ProjectBase","sidebar":"main"},"reference/ingest/interfaces/sources.SnootyProject":{"id":"reference/ingest/interfaces/sources.SnootyProject","title":"Interface: SnootyProject","description":"sources.SnootyProject","sidebar":"main"},"reference/ingest/modules":{"id":"reference/ingest/modules","title":"mongodb-rag-ingest","description":"Modules","sidebar":"main"},"reference/ingest/modules/embed":{"id":"reference/ingest/modules/embed","title":"Module: embed","description":"Type Aliases","sidebar":"main"},"reference/ingest/modules/index":{"id":"reference/ingest/modules/index","title":"Module: index","description":"Type Aliases","sidebar":"main"},"reference/ingest/modules/sources":{"id":"reference/ingest/modules/sources","title":"Module: sources","description":"Interfaces","sidebar":"main"},"reference/server/index":{"id":"reference/server/index","title":"mongodb-chatbot-server","description":"Chatbot server for the MongoDB Chatbot Framework.","sidebar":"main"},"reference/server/interfaces/AppConfig":{"id":"reference/server/interfaces/AppConfig","title":"Interface: AppConfig","description":"Configuration for the server Express.js app.","sidebar":"main"},"reference/server/interfaces/AzureOpenAiServiceConfig":{"id":"reference/server/interfaces/AzureOpenAiServiceConfig","title":"Interface: AzureOpenAiServiceConfig","description":"Properties","sidebar":"main"},"reference/server/interfaces/CallToolResponse":{"id":"reference/server/interfaces/CallToolResponse","title":"Interface: CallToolResponse","description":"Properties","sidebar":"main"},"reference/server/interfaces/ChatLlm":{"id":"reference/server/interfaces/ChatLlm","title":"Interface: ChatLlm","description":"LLM that responds to user queries. Provides both streaming and awaited options.","sidebar":"main"},"reference/server/interfaces/CommentMessageParams":{"id":"reference/server/interfaces/CommentMessageParams","title":"Interface: CommentMessageParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/Conversation":{"id":"reference/server/interfaces/Conversation","title":"Interface: Conversation","description":"Conversation between the user and the chatbot as stored in the database.","sidebar":"main"},"reference/server/interfaces/ConversationConstants":{"id":"reference/server/interfaces/ConversationConstants","title":"Interface: ConversationConstants","description":"Static responses to send in pre-defined edge case scenarios.","sidebar":"main"},"reference/server/interfaces/ConversationsRateLimitConfig":{"id":"reference/server/interfaces/ConversationsRateLimitConfig","title":"Interface: ConversationsRateLimitConfig","description":"Configuration for rate limiting on the /conversations/* routes.","sidebar":"main"},"reference/server/interfaces/ConversationsRouterLocals":{"id":"reference/server/interfaces/ConversationsRouterLocals","title":"Interface: ConversationsRouterLocals","description":"Express.js Request that exposes the app\'s ConversationsService.","sidebar":"main"},"reference/server/interfaces/ConversationsRouterParams":{"id":"reference/server/interfaces/ConversationsRouterParams","title":"Interface: ConversationsRouterParams","description":"Configuration for the /conversations/* routes.","sidebar":"main"},"reference/server/interfaces/ConversationsService":{"id":"reference/server/interfaces/ConversationsService","title":"Interface: ConversationsService","description":"Service for managing Conversations.","sidebar":"main"},"reference/server/interfaces/DataStreamer":{"id":"reference/server/interfaces/DataStreamer","title":"Interface: DataStreamer","description":"Service that streams data to the client.","sidebar":"main"},"reference/server/interfaces/EmbeddedContent":{"id":"reference/server/interfaces/EmbeddedContent","title":"Interface: EmbeddedContent","description":"The embedded content of a chunk of text stored in the database.","sidebar":"main"},"reference/server/interfaces/FindByIdParams":{"id":"reference/server/interfaces/FindByIdParams","title":"Interface: FindByIdParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/GenerateUserPromptFuncReturnValue":{"id":"reference/server/interfaces/GenerateUserPromptFuncReturnValue","title":"Interface: GenerateUserPromptFuncReturnValue","description":"Properties","sidebar":"main"},"reference/server/interfaces/LlmAnswerQuestionParams":{"id":"reference/server/interfaces/LlmAnswerQuestionParams","title":"Interface: LlmAnswerQuestionParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/LlmCallToolParams":{"id":"reference/server/interfaces/LlmCallToolParams","title":"Interface: LlmCallToolParams","description":"Parameters for invoking a tool call from the LLM.","sidebar":"main"},"reference/server/interfaces/MakeLangchainChatLlmProps":{"id":"reference/server/interfaces/MakeLangchainChatLlmProps","title":"Interface: MakeLangchainChatLlmProps","description":"Properties","sidebar":"main"},"reference/server/interfaces/MakeOpenAiChatLlmParams":{"id":"reference/server/interfaces/MakeOpenAiChatLlmParams","title":"Interface: MakeOpenAiChatLlmParams","description":"Configuration for the makeOpenAiChatLlm function.","sidebar":"main"},"reference/server/interfaces/MakeRagGenerateUserPromptParams":{"id":"reference/server/interfaces/MakeRagGenerateUserPromptParams","title":"Interface: MakeRagGenerateUserPromptParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/MakeUserMessageFuncParams":{"id":"reference/server/interfaces/MakeUserMessageFuncParams","title":"Interface: MakeUserMessageFuncParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams":{"id":"reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams","title":"Interface: MakeVerifiedAnswerGenerateUserPromptParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/OpenAiChatMessage":{"id":"reference/server/interfaces/OpenAiChatMessage","title":"Interface: OpenAiChatMessage","description":"Properties","sidebar":"main"},"reference/server/interfaces/RateMessageParams":{"id":"reference/server/interfaces/RateMessageParams","title":"Interface: RateMessageParams","description":"Properties","sidebar":"main"},"reference/server/interfaces/SearchBooster":{"id":"reference/server/interfaces/SearchBooster","title":"Interface: SearchBooster","description":"Modify the vector search results to add, elevate, or mutate search results","sidebar":"main"},"reference/server/interfaces/Tool":{"id":"reference/server/interfaces/Tool","title":"Interface: Tool","description":"Tool for the chatbot to use.","sidebar":"main"},"reference/server/interfaces/ToolCallParams":{"id":"reference/server/interfaces/ToolCallParams","title":"Interface: ToolCallParams","description":"Parameters for invoking a tool call.","sidebar":"main"},"reference/server/modules":{"id":"reference/server/modules","title":"mongodb-chatbot-server","description":"Interfaces","sidebar":"main"},"server/configure":{"id":"server/configure","title":"Configure the Chatbot Server","description":"With the MongoDB Chatbot Server, you can quickly build a chatbot","sidebar":"main"},"server/conversations":{"id":"server/conversations","title":"Manage Conversations","description":"This guide explains how the MongoDB Chatbot Server manages conversations, and the different","sidebar":"main"},"server/custom-logic":{"id":"server/custom-logic","title":"Customize Server Logic","description":"The MongoDB Chatbot Server provides a few ways to customize the server to meet","sidebar":"main"},"server/evaluate":{"id":"server/evaluate","title":"Evaluate Chatbot Responses","description":"Evaluate the quality of your chatbot\'s responses","sidebar":"main"},"server/llm":{"id":"server/llm","title":"Chat with an LLM","description":"This guide contains information on how you can use the MongoDB Chatbot Server","sidebar":"main"},"server/persist":{"id":"server/persist","title":"Persist Conversation Data","description":"The MongoDB Chatbot Server persists and retrieves conversation data data using the","sidebar":"main"},"server/rag/index":{"id":"server/rag/index","title":"Retrieval Augmented Generation (RAG)","description":"You can use the MongoDB Chatbot Server to perform retrieval augmented generation (RAG).","sidebar":"main"},"server/rag/preprocess":{"id":"server/rag/preprocess","title":"Pre-Process User Queries","description":"One of the most powerful and flexible features that you can add to your chatbot","sidebar":"main"},"server/rag/references":{"id":"server/rag/references","title":"Include References","description":"You can include references to the data sources that you use in your chatbot","sidebar":"main"},"server/rag/retrieve":{"id":"server/rag/retrieve","title":"Retrieve Context Information","description":"If you\'re using the MongoDB Chatbot Server to perform RAG, you must retrieve","sidebar":"main"},"server/tools":{"id":"server/tools","title":"Tool Calling","description":"You can give your chatbot access to external tools. For example,","sidebar":"main"},"server/user-message":{"id":"server/user-message","title":"Generate User Message","description":"You can process a user\'s message before it is sent to the LLM to generate a response.","sidebar":"main"},"ui":{"id":"ui","title":"Chatbot UI","description":"The MongoDB Chatbot UI is a React.js component library that you can use to build a chatbot UI.","sidebar":"main"}}}')}}]); \ No newline at end of file diff --git a/assets/js/9d74c2e1.82e50aa6.js b/assets/js/9d74c2e1.5f6cff35.js similarity index 95% rename from assets/js/9d74c2e1.82e50aa6.js rename to assets/js/9d74c2e1.5f6cff35.js index d841ba7f1..a7dda3b1b 100644 --- a/assets/js/9d74c2e1.82e50aa6.js +++ b/assets/js/9d74c2e1.5f6cff35.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2214],{50837:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>l,default:()=>x,frontMatter:()=>d,metadata:()=>r,toc:()=>h});var s=n(85893),i=n(11151);const d={id:"index",title:"Module: index",sidebar_label:"index",sidebar_position:0,custom_edit_url:null},l=void 0,r={id:"reference/ingest/modules/index",title:"Module: index",description:"Type Aliases",source:"@site/docs/reference/ingest/modules/index.md",sourceDirName:"reference/ingest/modules",slug:"/reference/ingest/modules/",permalink:"/chatbot/reference/ingest/modules/",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"index",title:"Module: index",sidebar_label:"index",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Table of Contents",permalink:"/chatbot/reference/ingest/modules"},next:{title:"embed",permalink:"/chatbot/reference/ingest/modules/embed"}},c={},h=[{value:"Type Aliases",id:"type-aliases",level:2},{value:"Config",id:"config",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"Constructor",id:"constructor",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"IngestMetaEntry",id:"ingestmetaentry",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"IngestMetaStore",id:"ingestmetastore",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"LoadConfigArgs",id:"loadconfigargs",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"ResolvedConfig",id:"resolvedconfig",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"Variables",id:"variables",level:2},{value:"INGEST_ENV_VARS",id:"ingest_env_vars",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"Functions",id:"functions",level:2},{value:"loadConfig",id:"loadconfig",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"makeIngestMetaStore",id:"makeingestmetastore",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"withConfig",id:"withconfig",level:3},{value:"Type parameters",id:"type-parameters-1",level:4},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"withConfigOptions",id:"withconfigoptions",level:3},{value:"Type parameters",id:"type-parameters-2",level:4},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-10",level:4}];function o(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,s.jsx)(t.h3,{id:"config",children:"Config"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"Config"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.p,{children:"The configuration for ingest."}),"\n",(0,s.jsx)(t.p,{children:"You can provide your own configuration to the ingest tool."}),"\n",(0,s.jsx)(t.p,{children:"Every property is a function that constructs an instance (synchronously or\nasynchronously). This allows you to run logic for construction or build async.\nIt also avoids unnecessary construction and cleanup if that field of the\nconfig is overridden by a subsequent config."}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"chunkOptions?"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.code,{children:"Partial"}),"<",(0,s.jsx)(t.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,s.jsx)(t.code,{children:"ChunkOptions"})}),">>"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"Options for the chunker."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"dataSources"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(t.code,{children:"DataSource"})}),"[]>"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The data sources that you want ingest to pull content from."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"embeddedContentStore"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.code,{children:"EmbeddedContentStore"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The store that holds the embedded content and vector embeddings for later vector search."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"embedder"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.code,{children:"Embedder"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The embedding function."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"ingestMetaStore"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.a,{href:"#ingestmetastore",children:(0,s.jsx)(t.code,{children:"IngestMetaStore"})}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The store that contains the ingest meta document. The ingest meta document stores the date of the last successful run."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"pageStore"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.code,{children:"PageStore"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The store that holds pages downloaded from data sources."})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/Config.ts#L16",children:"mongodb-rag-ingest/src/Config.ts:16"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"constructor",children:"Constructor"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"Constructor"}),"<",(0,s.jsx)(t.code,{children:"T"}),">: () => ",(0,s.jsx)(t.code,{children:"T"})," | () => ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"T"}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(t.tbody,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/Config.ts#L50",children:"mongodb-rag-ingest/src/Config.ts:50"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"ingestmetaentry",children:"IngestMetaEntry"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"IngestMetaEntry"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"_id"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"lastIngestDate"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"Date"})})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/IngestMetaStore.ts#L40",children:"mongodb-rag-ingest/src/IngestMetaStore.ts:40"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"ingestmetastore",children:"IngestMetaStore"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"IngestMetaStore"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.p,{children:"The ingest meta has information about ingest runs so that the script can\nresume from a known successful run date."}),"\n",(0,s.jsx)(t.p,{children:"If the 'since' date given to the embed command is too late, pages that were\nupdated during a failed run will not be picked up."}),"\n",(0,s.jsx)(t.p,{children:"If too early, more pages and embeddings will be checked than necessary. The\nembed command will not unnecessarily create new embeddings for page updates\nthat it has already created embeddings for, but it would still be wasteful to\nhave to check potentially all pages and embeddings when the date is early\nenough."}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"entryId"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The ID of the specific metadata document this store is associated with. Generally there should be only one document per ingest_meta collection per database."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"close"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"void"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"Closes the connection. Must be called when done."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"loadLastSuccessfulRunDate"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"null"})," | ",(0,s.jsx)(t.code,{children:"Date"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"Returns the last successful run date for the store's entry."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"updateLastSuccessfulRunDate"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"void"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"Sets the store's entry to the current date."})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/IngestMetaStore.ts#L16",children:"mongodb-rag-ingest/src/IngestMetaStore.ts:16"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"loadconfigargs",children:"LoadConfigArgs"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"LoadConfigArgs"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(t.tbody,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"config?"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/withConfig.ts#L6",children:"mongodb-rag-ingest/src/withConfig.ts:6"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"resolvedconfig",children:"ResolvedConfig"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"ResolvedConfig"}),": { [K in keyof Config]: Constructed }"]}),"\n",(0,s.jsx)(t.p,{children:"Config with promises resolved."}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/withConfig.ts#L96",children:"mongodb-rag-ingest/src/withConfig.ts:96"})}),"\n",(0,s.jsx)(t.h2,{id:"variables",children:"Variables"}),"\n",(0,s.jsx)(t.h3,{id:"ingest_env_vars",children:"INGEST_ENV_VARS"}),"\n",(0,s.jsxs)(t.p,{children:["\u2022 ",(0,s.jsx)(t.code,{children:"Const"})," ",(0,s.jsx)(t.strong,{children:"INGEST_ENV_VARS"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"DEVCENTER_CONNECTION_URI"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"MONGODB_CONNECTION_URI"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"MONGODB_DATABASE_NAME"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"NODE_ENV"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_API_KEY"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_CHAT_COMPLETION_DEPLOYMENT"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_CHAT_COMPLETION_MODEL_VERSION"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_EMBEDDING_DEPLOYMENT"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_EMBEDDING_MODEL"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_EMBEDDING_MODEL_VERSION"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_ENDPOINT"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"VECTOR_SEARCH_INDEX_NAME"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/IngestEnvVars.ts#L3",children:"mongodb-rag-ingest/src/IngestEnvVars.ts:3"})}),"\n",(0,s.jsx)(t.h2,{id:"functions",children:"Functions"}),"\n",(0,s.jsx)(t.h3,{id:"loadconfig",children:"loadConfig"}),"\n",(0,s.jsxs)(t.p,{children:["\u25b8 ",(0,s.jsx)(t.strong,{children:"loadConfig"}),"(",(0,s.jsx)(t.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.a,{href:"#config",children:(0,s.jsx)(t.code,{children:"Config"})}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(t.tbody,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.a,{href:"#loadconfigargs",children:(0,s.jsx)(t.code,{children:"LoadConfigArgs"})})})]})})]}),"\n",(0,s.jsx)(t.h4,{id:"returns",children:"Returns"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.a,{href:"#config",children:(0,s.jsx)(t.code,{children:"Config"})}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/withConfig.ts#L10",children:"mongodb-rag-ingest/src/withConfig.ts:10"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"makeingestmetastore",children:"makeIngestMetaStore"}),"\n",(0,s.jsxs)(t.p,{children:["\u25b8 ",(0,s.jsx)(t.strong,{children:"makeIngestMetaStore"}),"(",(0,s.jsx)(t.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(t.a,{href:"#ingestmetastore",children:(0,s.jsx)(t.code,{children:"IngestMetaStore"})})]}),"\n",(0,s.jsx)(t.p,{children:"Creates a connection to ingest meta collection."}),"\n",(0,s.jsx)(t.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"Object"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(t.code,{children:"connectionUri"})]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(t.code,{children:"databaseName"})]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(t.code,{children:"entryId"})]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"returns-1",children:"Returns"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"#ingestmetastore",children:(0,s.jsx)(t.code,{children:"IngestMetaStore"})})}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/IngestMetaStore.ts#L48",children:"mongodb-rag-ingest/src/IngestMetaStore.ts:48"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"withconfig",children:"withConfig"}),"\n",(0,s.jsxs)(t.p,{children:["\u25b8 ",(0,s.jsx)(t.strong,{children:"withConfig"}),"<",(0,s.jsx)(t.code,{children:"T"}),">(",(0,s.jsx)(t.code,{children:"action"}),", ",(0,s.jsx)(t.code,{children:"args"}),"): ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"type-parameters-1",children:"Type parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(t.tbody,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(t.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"action"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(t.code,{children:"config"}),": ",(0,s.jsx)(t.a,{href:"#resolvedconfig",children:(0,s.jsx)(t.code,{children:"ResolvedConfig"})}),", ",(0,s.jsx)(t.code,{children:"args"}),": ",(0,s.jsx)(t.code,{children:"T"}),") => ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"void"}),">"]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"args"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#loadconfigargs",children:(0,s.jsx)(t.code,{children:"LoadConfigArgs"})})," & ",(0,s.jsx)(t.code,{children:"T"})]})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"returns-2",children:"Returns"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/withConfig.ts#L60",children:"mongodb-rag-ingest/src/withConfig.ts:60"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"withconfigoptions",children:"withConfigOptions"}),"\n",(0,s.jsxs)(t.p,{children:["\u25b8 ",(0,s.jsx)(t.strong,{children:"withConfigOptions"}),"<",(0,s.jsx)(t.code,{children:"T"}),">(",(0,s.jsx)(t.code,{children:"args"}),"): ",(0,s.jsx)(t.code,{children:"Argv"}),"<",(0,s.jsx)(t.code,{children:"T"})," & ",(0,s.jsx)(t.a,{href:"#loadconfigargs",children:(0,s.jsx)(t.code,{children:"LoadConfigArgs"})}),">"]}),"\n",(0,s.jsx)(t.p,{children:"Apply config options to CLI command."}),"\n",(0,s.jsx)(t.h4,{id:"type-parameters-2",children:"Type parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(t.tbody,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(t.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(t.tbody,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"args"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.code,{children:"Argv"}),"<",(0,s.jsx)(t.code,{children:"T"}),">"]})]})})]}),"\n",(0,s.jsx)(t.h4,{id:"returns-3",children:"Returns"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Argv"}),"<",(0,s.jsx)(t.code,{children:"T"})," & ",(0,s.jsx)(t.a,{href:"#loadconfigargs",children:(0,s.jsx)(t.code,{children:"LoadConfigArgs"})}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/withConfig.ts#L84",children:"mongodb-rag-ingest/src/withConfig.ts:84"})})]})}function x(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(o,{...e})}):o(e)}},11151:(e,t,n)=>{n.d(t,{Z:()=>r,a:()=>l});var s=n(67294);const i={},d=s.createContext(i);function l(e){const t=s.useContext(d);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:l(e.components),s.createElement(d.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2214],{50837:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>c,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>r,toc:()=>h});var s=n(85893),i=n(11151);const l={id:"index",title:"Module: index",sidebar_label:"index",sidebar_position:0,custom_edit_url:null},d=void 0,r={id:"reference/ingest/modules/index",title:"Module: index",description:"Type Aliases",source:"@site/docs/reference/ingest/modules/index.md",sourceDirName:"reference/ingest/modules",slug:"/reference/ingest/modules/",permalink:"/chatbot/reference/ingest/modules/",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"index",title:"Module: index",sidebar_label:"index",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Table of Contents",permalink:"/chatbot/reference/ingest/modules"},next:{title:"embed",permalink:"/chatbot/reference/ingest/modules/embed"}},c={},h=[{value:"Type Aliases",id:"type-aliases",level:2},{value:"Config",id:"config",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"Constructor",id:"constructor",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"IngestMetaEntry",id:"ingestmetaentry",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"IngestMetaStore",id:"ingestmetastore",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"LoadConfigArgs",id:"loadconfigargs",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"ResolvedConfig",id:"resolvedconfig",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"Variables",id:"variables",level:2},{value:"INGEST_ENV_VARS",id:"ingest_env_vars",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"Functions",id:"functions",level:2},{value:"loadConfig",id:"loadconfig",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"makeIngestMetaStore",id:"makeingestmetastore",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"withConfig",id:"withconfig",level:3},{value:"Type parameters",id:"type-parameters-1",level:4},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"withConfigOptions",id:"withconfigoptions",level:3},{value:"Type parameters",id:"type-parameters-2",level:4},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-10",level:4}];function o(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,s.jsx)(t.h3,{id:"config",children:"Config"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"Config"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.p,{children:"The configuration for ingest."}),"\n",(0,s.jsx)(t.p,{children:"You can provide your own configuration to the ingest tool."}),"\n",(0,s.jsx)(t.p,{children:"Every property is a function that constructs an instance (synchronously or\nasynchronously). This allows you to run logic for construction or build async.\nIt also avoids unnecessary construction and cleanup if that field of the\nconfig is overridden by a subsequent config."}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"chunkOptions?"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.code,{children:"Partial"}),"<",(0,s.jsx)(t.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,s.jsx)(t.code,{children:"ChunkOptions"})}),">>"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"Options for the chunker."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"dataSources"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.a,{href:"/chatbot/reference/ingest/modules/sources#datasource",children:(0,s.jsx)(t.code,{children:"DataSource"})}),"[]>"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The data sources that you want ingest to pull content from."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"embeddedContentStore"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.code,{children:"EmbeddedContentStore"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The store that holds the embedded content and vector embeddings for later vector search."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"embedder"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.code,{children:"Embedder"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The embedding function."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"ingestMetaStore"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.a,{href:"#ingestmetastore",children:(0,s.jsx)(t.code,{children:"IngestMetaStore"})}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The store that contains the ingest meta document. The ingest meta document stores the date of the last successful run."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"pageStore"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#constructor",children:(0,s.jsx)(t.code,{children:"Constructor"})}),"<",(0,s.jsx)(t.code,{children:"PageStore"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The store that holds pages downloaded from data sources."})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/Config.ts#L16",children:"mongodb-rag-ingest/src/Config.ts:16"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"constructor",children:"Constructor"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"Constructor"}),"<",(0,s.jsx)(t.code,{children:"T"}),">: () => ",(0,s.jsx)(t.code,{children:"T"})," | () => ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"T"}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(t.tbody,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/Config.ts#L50",children:"mongodb-rag-ingest/src/Config.ts:50"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"ingestmetaentry",children:"IngestMetaEntry"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"IngestMetaEntry"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"_id"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"lastIngestDate"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"Date"})})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/IngestMetaStore.ts#L40",children:"mongodb-rag-ingest/src/IngestMetaStore.ts:40"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"ingestmetastore",children:"IngestMetaStore"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"IngestMetaStore"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.p,{children:"The ingest meta has information about ingest runs so that the script can\nresume from a known successful run date."}),"\n",(0,s.jsx)(t.p,{children:"If the 'since' date given to the embed command is too late, pages that were\nupdated during a failed run will not be picked up."}),"\n",(0,s.jsx)(t.p,{children:"If too early, more pages and embeddings will be checked than necessary. The\nembed command will not unnecessarily create new embeddings for page updates\nthat it has already created embeddings for, but it would still be wasteful to\nhave to check potentially all pages and embeddings when the date is early\nenough."}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"entryId"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"The ID of the specific metadata document this store is associated with. Generally there should be only one document per ingest_meta collection per database."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"close"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"void"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"Closes the connection. Must be called when done."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"loadLastSuccessfulRunDate"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"null"})," | ",(0,s.jsx)(t.code,{children:"Date"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"Returns the last successful run date for the store's entry."})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"updateLastSuccessfulRunDate"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"void"}),">"]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:"Sets the store's entry to the current date."})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/IngestMetaStore.ts#L16",children:"mongodb-rag-ingest/src/IngestMetaStore.ts:16"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"loadconfigargs",children:"LoadConfigArgs"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"LoadConfigArgs"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(t.tbody,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"config?"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/withConfig.ts#L6",children:"mongodb-rag-ingest/src/withConfig.ts:6"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"resolvedconfig",children:"ResolvedConfig"}),"\n",(0,s.jsxs)(t.p,{children:["\u01ac ",(0,s.jsx)(t.strong,{children:"ResolvedConfig"}),": { [K in keyof Config]: Constructed }"]}),"\n",(0,s.jsx)(t.p,{children:"Config with promises resolved."}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/withConfig.ts#L96",children:"mongodb-rag-ingest/src/withConfig.ts:96"})}),"\n",(0,s.jsx)(t.h2,{id:"variables",children:"Variables"}),"\n",(0,s.jsx)(t.h3,{id:"ingest_env_vars",children:"INGEST_ENV_VARS"}),"\n",(0,s.jsxs)(t.p,{children:["\u2022 ",(0,s.jsx)(t.code,{children:"Const"})," ",(0,s.jsx)(t.strong,{children:"INGEST_ENV_VARS"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"DEVCENTER_CONNECTION_URI"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"MONGODB_CONNECTION_URI"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"MONGODB_DATABASE_NAME"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"NODE_ENV"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_API_KEY"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_CHAT_COMPLETION_DEPLOYMENT"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_CHAT_COMPLETION_MODEL_VERSION"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_EMBEDDING_DEPLOYMENT"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_EMBEDDING_MODEL"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_EMBEDDING_MODEL_VERSION"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"OPENAI_ENDPOINT"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"VECTOR_SEARCH_INDEX_NAME"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/IngestEnvVars.ts#L3",children:"mongodb-rag-ingest/src/IngestEnvVars.ts:3"})}),"\n",(0,s.jsx)(t.h2,{id:"functions",children:"Functions"}),"\n",(0,s.jsx)(t.h3,{id:"loadconfig",children:"loadConfig"}),"\n",(0,s.jsxs)(t.p,{children:["\u25b8 ",(0,s.jsx)(t.strong,{children:"loadConfig"}),"(",(0,s.jsx)(t.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.a,{href:"#config",children:(0,s.jsx)(t.code,{children:"Config"})}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(t.tbody,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.a,{href:"#loadconfigargs",children:(0,s.jsx)(t.code,{children:"LoadConfigArgs"})})})]})})]}),"\n",(0,s.jsx)(t.h4,{id:"returns",children:"Returns"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.a,{href:"#config",children:(0,s.jsx)(t.code,{children:"Config"})}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/withConfig.ts#L10",children:"mongodb-rag-ingest/src/withConfig.ts:10"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"makeingestmetastore",children:"makeIngestMetaStore"}),"\n",(0,s.jsxs)(t.p,{children:["\u25b8 ",(0,s.jsx)(t.strong,{children:"makeIngestMetaStore"}),"(",(0,s.jsx)(t.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(t.a,{href:"#ingestmetastore",children:(0,s.jsx)(t.code,{children:"IngestMetaStore"})})]}),"\n",(0,s.jsx)(t.p,{children:"Creates a connection to ingest meta collection."}),"\n",(0,s.jsx)(t.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"Object"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(t.code,{children:"connectionUri"})]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(t.code,{children:"databaseName"})]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(t.code,{children:"entryId"})]}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"returns-1",children:"Returns"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"#ingestmetastore",children:(0,s.jsx)(t.code,{children:"IngestMetaStore"})})}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/IngestMetaStore.ts#L48",children:"mongodb-rag-ingest/src/IngestMetaStore.ts:48"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"withconfig",children:"withConfig"}),"\n",(0,s.jsxs)(t.p,{children:["\u25b8 ",(0,s.jsx)(t.strong,{children:"withConfig"}),"<",(0,s.jsx)(t.code,{children:"T"}),">(",(0,s.jsx)(t.code,{children:"action"}),", ",(0,s.jsx)(t.code,{children:"args"}),"): ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"type-parameters-1",children:"Type parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(t.tbody,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(t.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"action"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(t.code,{children:"config"}),": ",(0,s.jsx)(t.a,{href:"#resolvedconfig",children:(0,s.jsx)(t.code,{children:"ResolvedConfig"})}),", ",(0,s.jsx)(t.code,{children:"args"}),": ",(0,s.jsx)(t.code,{children:"T"}),") => ",(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"void"}),">"]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"args"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.a,{href:"#loadconfigargs",children:(0,s.jsx)(t.code,{children:"LoadConfigArgs"})})," & ",(0,s.jsx)(t.code,{children:"T"})]})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"returns-2",children:"Returns"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Promise"}),"<",(0,s.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/withConfig.ts#L60",children:"mongodb-rag-ingest/src/withConfig.ts:60"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"withconfigoptions",children:"withConfigOptions"}),"\n",(0,s.jsxs)(t.p,{children:["\u25b8 ",(0,s.jsx)(t.strong,{children:"withConfigOptions"}),"<",(0,s.jsx)(t.code,{children:"T"}),">(",(0,s.jsx)(t.code,{children:"args"}),"): ",(0,s.jsx)(t.code,{children:"Argv"}),"<",(0,s.jsx)(t.code,{children:"T"})," & ",(0,s.jsx)(t.a,{href:"#loadconfigargs",children:(0,s.jsx)(t.code,{children:"LoadConfigArgs"})}),">"]}),"\n",(0,s.jsx)(t.p,{children:"Apply config options to CLI command."}),"\n",(0,s.jsx)(t.h4,{id:"type-parameters-2",children:"Type parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(t.tbody,{children:(0,s.jsx)(t.tr,{children:(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(t.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(t.tbody,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"args"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.code,{children:"Argv"}),"<",(0,s.jsx)(t.code,{children:"T"}),">"]})]})})]}),"\n",(0,s.jsx)(t.h4,{id:"returns-3",children:"Returns"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.code,{children:"Argv"}),"<",(0,s.jsx)(t.code,{children:"T"})," & ",(0,s.jsx)(t.a,{href:"#loadconfigargs",children:(0,s.jsx)(t.code,{children:"LoadConfigArgs"})}),">"]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/withConfig.ts#L84",children:"mongodb-rag-ingest/src/withConfig.ts:84"})})]})}function x(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(o,{...e})}):o(e)}},11151:(e,t,n)=>{n.d(t,{Z:()=>r,a:()=>d});var s=n(67294);const i={},l=s.createContext(i);function d(e){const t=s.useContext(l);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function r(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:d(e.components),s.createElement(l.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9f213c28.5e1942be.js b/assets/js/9f213c28.5e1942be.js deleted file mode 100644 index 9cd8f8b49..000000000 --- a/assets/js/9f213c28.5e1942be.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8686],{82997:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>i,default:()=>o,frontMatter:()=>t,metadata:()=>c,toc:()=>h});var s=r(85893),d=r(11151);const t={id:"modules",title:"mongodb-chatbot-server",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},i=void 0,c={id:"reference/server/modules",title:"mongodb-chatbot-server",description:"Interfaces",source:"@site/docs/reference/server/modules.md",sourceDirName:"reference/server",slug:"/reference/server/modules",permalink:"/chatbot/reference/server/modules",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:.5,frontMatter:{id:"modules",title:"mongodb-chatbot-server",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},sidebar:"main",previous:{title:"Readme",permalink:"/chatbot/reference/server/"},next:{title:"AppConfig",permalink:"/chatbot/reference/server/interfaces/AppConfig"}},l={},h=[{value:"Interfaces",id:"interfaces",level:2},{value:"Type Aliases",id:"type-aliases",level:2},{value:"AddAssistantMessageParams",id:"addassistantmessageparams",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"AddConversationMessageParams",id:"addconversationmessageparams",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"AddCustomDataFunc",id:"addcustomdatafunc",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-2",level:4},{value:"AddFunctionMessageParams",id:"addfunctionmessageparams",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"AddManyConversationMessagesParams",id:"addmanyconversationmessagesparams",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"AddSomeMessageParams",id:"addsomemessageparams",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"AddSystemMessageParams",id:"addsystemmessageparams",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"AddUserMessageParams",id:"addusermessageparams",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"AssistantMessage",id:"assistantmessage",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"ConversationCustomData",id:"conversationcustomdata",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"ConversationsMiddleware",id:"conversationsmiddleware",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"ConversationsRouterResponse",id:"conversationsrouterresponse",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"CreateConversationParams",id:"createconversationparams",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"DatabaseConnection",id:"databaseconnection",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"DeltaStreamEvent",id:"deltastreamevent",level:3},{value:"Defined in",id:"defined-in-14",level:4},{value:"EmbedArgs",id:"embedargs",level:3},{value:"Type declaration",id:"type-declaration-5",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"EmbedResult",id:"embedresult",level:3},{value:"Type declaration",id:"type-declaration-6",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"EmbeddedContentStore",id:"embeddedcontentstore",level:3},{value:"Defined in",id:"defined-in-17",level:4},{value:"Embedder",id:"embedder",level:3},{value:"Type declaration",id:"type-declaration-7",level:4},{value:"Defined in",id:"defined-in-18",level:4},{value:"FilterPreviousMessages",id:"filterpreviousmessages",level:3},{value:"Type declaration",id:"type-declaration-8",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-19",level:4},{value:"FindContentFunc",id:"findcontentfunc",level:3},{value:"Type declaration",id:"type-declaration-9",level:4},{value:"Parameters",id:"parameters-2",level:5},{value:"Returns",id:"returns-2",level:5},{value:"Defined in",id:"defined-in-20",level:4},{value:"FindContentFuncArgs",id:"findcontentfuncargs",level:3},{value:"Type declaration",id:"type-declaration-10",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"FindContentResult",id:"findcontentresult",level:3},{value:"Type declaration",id:"type-declaration-11",level:4},{value:"Defined in",id:"defined-in-22",level:4},{value:"FindNearestNeighborsOptions",id:"findnearestneighborsoptions",level:3},{value:"Type declaration",id:"type-declaration-12",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"FindVerifiedAnswerFunc",id:"findverifiedanswerfunc",level:3},{value:"Type declaration",id:"type-declaration-13",level:4},{value:"Parameters",id:"parameters-3",level:5},{value:"Returns",id:"returns-3",level:5},{value:"Defined in",id:"defined-in-24",level:4},{value:"FindVerifiedAnswerFuncArgs",id:"findverifiedanswerfuncargs",level:3},{value:"Type declaration",id:"type-declaration-14",level:4},{value:"Defined in",id:"defined-in-25",level:4},{value:"FindVerifiedAnswerResult",id:"findverifiedanswerresult",level:3},{value:"Type declaration",id:"type-declaration-15",level:4},{value:"Defined in",id:"defined-in-26",level:4},{value:"FinishedStreamEvent",id:"finishedstreamevent",level:3},{value:"Defined in",id:"defined-in-27",level:4},{value:"FunctionMessage",id:"functionmessage",level:3},{value:"Defined in",id:"defined-in-28",level:4},{value:"GenerateUserPromptFunc",id:"generateuserpromptfunc",level:3},{value:"Type declaration",id:"type-declaration-16",level:4},{value:"Parameters",id:"parameters-4",level:5},{value:"Returns",id:"returns-4",level:5},{value:"Defined in",id:"defined-in-29",level:4},{value:"GenerateUserPromptFuncParams",id:"generateuserpromptfuncparams",level:3},{value:"Type declaration",id:"type-declaration-17",level:4},{value:"Defined in",id:"defined-in-30",level:4},{value:"LoadPagesArgs",id:"loadpagesargs",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Type declaration",id:"type-declaration-18",level:4},{value:"Defined in",id:"defined-in-31",level:4},{value:"MakeDefaultFindContentFuncArgs",id:"makedefaultfindcontentfuncargs",level:3},{value:"Type declaration",id:"type-declaration-19",level:4},{value:"Defined in",id:"defined-in-32",level:4},{value:"MakeDefaultFindVerifiedAnswerFuncArgs",id:"makedefaultfindverifiedanswerfuncargs",level:3},{value:"Type declaration",id:"type-declaration-20",level:4},{value:"Defined in",id:"defined-in-33",level:4},{value:"MakeLangChainEmbedderParams",id:"makelangchainembedderparams",level:3},{value:"Type declaration",id:"type-declaration-21",level:4},{value:"Defined in",id:"defined-in-34",level:4},{value:"MakeOpenAiEmbedderArgs",id:"makeopenaiembedderargs",level:3},{value:"Type declaration",id:"type-declaration-22",level:4},{value:"Defined in",id:"defined-in-35",level:4},{value:"MakeReferenceLinksFunc",id:"makereferencelinksfunc",level:3},{value:"Type declaration",id:"type-declaration-23",level:4},{value:"Parameters",id:"parameters-5",level:5},{value:"Returns",id:"returns-5",level:5},{value:"Defined in",id:"defined-in-36",level:4},{value:"MakeTypeChatJsonTranslateFuncArgs",id:"maketypechatjsontranslatefuncargs",level:3},{value:"Type declaration",id:"type-declaration-24",level:4},{value:"Defined in",id:"defined-in-37",level:4},{value:"MakeUserMessageFunc",id:"makeusermessagefunc",level:3},{value:"Type declaration",id:"type-declaration-25",level:4},{value:"Parameters",id:"parameters-6",level:5},{value:"Returns",id:"returns-6",level:5},{value:"Defined in",id:"defined-in-38",level:4},{value:"Message",id:"message",level:3},{value:"Defined in",id:"defined-in-39",level:4},{value:"MessageBase",id:"messagebase",level:3},{value:"Type declaration",id:"type-declaration-26",level:4},{value:"Defined in",id:"defined-in-40",level:4},{value:"MetadataStreamEvent",id:"metadatastreamevent",level:3},{value:"Defined in",id:"defined-in-41",level:4},{value:"MongoDbPageStore",id:"mongodbpagestore",level:3},{value:"Defined in",id:"defined-in-42",level:4},{value:"OpenAIChatCompletionWithoutUsage",id:"openaichatcompletionwithoutusage",level:3},{value:"Defined in",id:"defined-in-43",level:4},{value:"OpenAiAwaitedResponse",id:"openaiawaitedresponse",level:3},{value:"Defined in",id:"defined-in-44",level:4},{value:"OpenAiChatMessage",id:"openaichatmessage",level:3},{value:"Defined in",id:"defined-in-45",level:4},{value:"OpenAiMessageRole",id:"openaimessagerole",level:3},{value:"Defined in",id:"defined-in-46",level:4},{value:"OpenAiStreamingResponse",id:"openaistreamingresponse",level:3},{value:"Defined in",id:"defined-in-47",level:4},{value:"Page",id:"page",level:3},{value:"Type declaration",id:"type-declaration-27",level:4},{value:"Defined in",id:"defined-in-48",level:4},{value:"PageAction",id:"pageaction",level:3},{value:"Defined in",id:"defined-in-49",level:4},{value:"PageFormat",id:"pageformat",level:3},{value:"Defined in",id:"defined-in-50",level:4},{value:"PageMetadata",id:"pagemetadata",level:3},{value:"Index signature",id:"index-signature",level:4},{value:"Type declaration",id:"type-declaration-28",level:4},{value:"Defined in",id:"defined-in-51",level:4},{value:"PageStore",id:"pagestore",level:3},{value:"Type declaration",id:"type-declaration-29",level:4},{value:"Defined in",id:"defined-in-52",level:4},{value:"PersistedPage",id:"persistedpage",level:3},{value:"Defined in",id:"defined-in-53",level:4},{value:"ProcessingStreamEvent",id:"processingstreamevent",level:3},{value:"Defined in",id:"defined-in-54",level:4},{value:"QueryPreprocessorFunc",id:"querypreprocessorfunc",level:3},{value:"Type parameters",id:"type-parameters-1",level:4},{value:"Type declaration",id:"type-declaration-30",level:4},{value:"Parameters",id:"parameters-7",level:5},{value:"Returns",id:"returns-7",level:5},{value:"Defined in",id:"defined-in-55",level:4},{value:"QueryPreprocessorResult",id:"querypreprocessorresult",level:3},{value:"Type declaration",id:"type-declaration-31",level:4},{value:"Defined in",id:"defined-in-56",level:4},{value:"QueryProcessorFuncParams",id:"queryprocessorfuncparams",level:3},{value:"Type declaration",id:"type-declaration-32",level:4},{value:"Defined in",id:"defined-in-57",level:4},{value:"Question",id:"question",level:3},{value:"Defined in",id:"defined-in-58",level:4},{value:"Reference",id:"reference",level:3},{value:"Defined in",id:"defined-in-59",level:4},{value:"References",id:"references",level:3},{value:"Defined in",id:"defined-in-60",level:4},{value:"ReferencesStreamEvent",id:"referencesstreamevent",level:3},{value:"Defined in",id:"defined-in-61",level:4},{value:"SomeMessage",id:"somemessage",level:3},{value:"Defined in",id:"defined-in-62",level:4},{value:"SomeStreamEvent",id:"somestreamevent",level:3},{value:"Defined in",id:"defined-in-63",level:4},{value:"SystemMessage",id:"systemmessage",level:3},{value:"Defined in",id:"defined-in-64",level:4},{value:"SystemPrompt",id:"systemprompt",level:3},{value:"Defined in",id:"defined-in-65",level:4},{value:"ToolCallDirective",id:"toolcalldirective",level:3},{value:"Defined in",id:"defined-in-66",level:4},{value:"UserMessage",id:"usermessage",level:3},{value:"Defined in",id:"defined-in-67",level:4},{value:"VectorStore",id:"vectorstore",level:3},{value:"Type parameters",id:"type-parameters-2",level:4},{value:"Type declaration",id:"type-declaration-33",level:4},{value:"Defined in",id:"defined-in-68",level:4},{value:"VerifiedAnswer",id:"verifiedanswer",level:3},{value:"Defined in",id:"defined-in-69",level:4},{value:"VerifiedAnswerStore",id:"verifiedanswerstore",level:3},{value:"Defined in",id:"defined-in-70",level:4},{value:"WithFilterAndK",id:"withfilterandk",level:3},{value:"Type parameters",id:"type-parameters-3",level:4},{value:"Defined in",id:"defined-in-71",level:4},{value:"WithScore",id:"withscore",level:3},{value:"Type parameters",id:"type-parameters-4",level:4},{value:"Defined in",id:"defined-in-72",level:4},{value:"Variables",id:"variables",level:2},{value:"CORE_ENV_VARS",id:"core_env_vars",level:3},{value:"Type declaration",id:"type-declaration-34",level:4},{value:"Defined in",id:"defined-in-73",level:4},{value:"CUSTOM_REQUEST_ORIGIN_HEADER",id:"custom_request_origin_header",level:3},{value:"Defined in",id:"defined-in-74",level:4},{value:"DEFAULT_API_PREFIX",id:"default_api_prefix",level:3},{value:"Defined in",id:"defined-in-75",level:4},{value:"DEFAULT_MAX_REQUEST_TIMEOUT_MS",id:"default_max_request_timeout_ms",level:3},{value:"Defined in",id:"defined-in-76",level:4},{value:"Question",id:"question-1",level:3},{value:"Defined in",id:"defined-in-77",level:4},{value:"Reference",id:"reference-1",level:3},{value:"Defined in",id:"defined-in-78",level:4},{value:"References",id:"references-1",level:3},{value:"Defined in",id:"defined-in-79",level:4},{value:"SomeExpressRequest",id:"someexpressrequest",level:3},{value:"Defined in",id:"defined-in-80",level:4},{value:"VerifiedAnswer",id:"verifiedanswer-1",level:3},{value:"Defined in",id:"defined-in-81",level:4},{value:"defaultConversationConstants",id:"defaultconversationconstants",level:3},{value:"Defined in",id:"defined-in-82",level:4},{value:"logger",id:"logger",level:3},{value:"Defined in",id:"defined-in-83",level:4},{value:"pageFormats",id:"pageformats",level:3},{value:"Defined in",id:"defined-in-84",level:4},{value:"rateLimitResponse",id:"ratelimitresponse",level:3},{value:"Type declaration",id:"type-declaration-35",level:4},{value:"Defined in",id:"defined-in-85",level:4},{value:"Functions",id:"functions",level:2},{value:"asPageFormat",id:"aspageformat",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-86",level:4},{value:"assertEnvVars",id:"assertenvvars",level:3},{value:"Type parameters",id:"type-parameters-5",level:4},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-87",level:4},{value:"createLoggerMessage",id:"createloggermessage",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-88",level:4},{value:"createMessage",id:"createmessage",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-89",level:4},{value:"createMessageFromOpenAIChatMessage",id:"createmessagefromopenaichatmessage",level:3},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-12",level:4},{value:"Defined in",id:"defined-in-90",level:4},{value:"errorHandler",id:"errorhandler",level:3},{value:"Parameters",id:"parameters-13",level:4},{value:"Returns",id:"returns-13",level:4},{value:"Defined in",id:"defined-in-91",level:4},{value:"escapeNewlines",id:"escapenewlines",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Defined in",id:"defined-in-92",level:4},{value:"extractFrontMatter",id:"extractfrontmatter",level:3},{value:"Type parameters",id:"type-parameters-6",level:4},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Defined in",id:"defined-in-93",level:4},{value:"filterDefined",id:"filterdefined",level:3},{value:"Type parameters",id:"type-parameters-7",level:4},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-16",level:4},{value:"Defined in",id:"defined-in-94",level:4},{value:"filterFulfilled",id:"filterfulfilled",level:3},{value:"Type parameters",id:"type-parameters-8",level:4},{value:"Parameters",id:"parameters-17",level:4},{value:"Returns",id:"returns-17",level:4},{value:"Defined in",id:"defined-in-95",level:4},{value:"filterOnlySystemPrompt",id:"filteronlysystemprompt",level:3},{value:"Parameters",id:"parameters-18",level:4},{value:"Returns",id:"returns-18",level:4},{value:"Defined in",id:"defined-in-96",level:4},{value:"includeChunksForMaxTokensPossible",id:"includechunksformaxtokenspossible",level:3},{value:"Parameters",id:"parameters-19",level:4},{value:"Returns",id:"returns-19",level:4},{value:"Defined in",id:"defined-in-97",level:4},{value:"isPageFormat",id:"ispageformat",level:3},{value:"Parameters",id:"parameters-20",level:4},{value:"Returns",id:"returns-20",level:4},{value:"Defined in",id:"defined-in-98",level:4},{value:"makeApp",id:"makeapp",level:3},{value:"Parameters",id:"parameters-21",level:4},{value:"Returns",id:"returns-21",level:4},{value:"Defined in",id:"defined-in-99",level:4},{value:"makeBoostOnAtlasSearchFilter",id:"makeboostonatlassearchfilter",level:3},{value:"Parameters",id:"parameters-22",level:4},{value:"Returns",id:"returns-22",level:4},{value:"Defined in",id:"defined-in-100",level:4},{value:"makeConversationsRouter",id:"makeconversationsrouter",level:3},{value:"Parameters",id:"parameters-23",level:4},{value:"Returns",id:"returns-23",level:4},{value:"Defined in",id:"defined-in-101",level:4},{value:"makeDataStreamer",id:"makedatastreamer",level:3},{value:"Returns",id:"returns-24",level:4},{value:"Defined in",id:"defined-in-102",level:4},{value:"makeDefaultFindContent",id:"makedefaultfindcontent",level:3},{value:"Parameters",id:"parameters-24",level:4},{value:"Returns",id:"returns-25",level:4},{value:"Defined in",id:"defined-in-103",level:4},{value:"makeDefaultFindVerifiedAnswer",id:"makedefaultfindverifiedanswer",level:3},{value:"Parameters",id:"parameters-25",level:4},{value:"Returns",id:"returns-26",level:4},{value:"Defined in",id:"defined-in-104",level:4},{value:"makeDefaultReferenceLinks",id:"makedefaultreferencelinks",level:3},{value:"Parameters",id:"parameters-26",level:4},{value:"Returns",id:"returns-27",level:4},{value:"Defined in",id:"defined-in-105",level:4},{value:"makeFilterNPreviousMessages",id:"makefilternpreviousmessages",level:3},{value:"Parameters",id:"parameters-27",level:4},{value:"Returns",id:"returns-28",level:4},{value:"Defined in",id:"defined-in-106",level:4},{value:"makeHandleTimeoutMiddleware",id:"makehandletimeoutmiddleware",level:3},{value:"Parameters",id:"parameters-28",level:4},{value:"Returns",id:"returns-29",level:4},{value:"Parameters",id:"parameters-29",level:5},{value:"Returns",id:"returns-30",level:5},{value:"Defined in",id:"defined-in-107",level:4},{value:"makeLangChainEmbedder",id:"makelangchainembedder",level:3},{value:"Parameters",id:"parameters-30",level:4},{value:"Returns",id:"returns-31",level:4},{value:"Defined in",id:"defined-in-108",level:4},{value:"makeLangchainChatLlm",id:"makelangchainchatllm",level:3},{value:"Parameters",id:"parameters-31",level:4},{value:"Returns",id:"returns-32",level:4},{value:"Defined in",id:"defined-in-109",level:4},{value:"makeMongoDbConversationsService",id:"makemongodbconversationsservice",level:3},{value:"Parameters",id:"parameters-32",level:4},{value:"Returns",id:"returns-33",level:4},{value:"Defined in",id:"defined-in-110",level:4},{value:"makeMongoDbEmbeddedContentStore",id:"makemongodbembeddedcontentstore",level:3},{value:"Parameters",id:"parameters-33",level:4},{value:"Returns",id:"returns-34",level:4},{value:"Defined in",id:"defined-in-111",level:4},{value:"makeMongoDbPageStore",id:"makemongodbpagestore",level:3},{value:"Parameters",id:"parameters-34",level:4},{value:"Returns",id:"returns-35",level:4},{value:"Defined in",id:"defined-in-112",level:4},{value:"makeMongoDbVerifiedAnswerStore",id:"makemongodbverifiedanswerstore",level:3},{value:"Parameters",id:"parameters-35",level:4},{value:"Returns",id:"returns-36",level:4},{value:"Defined in",id:"defined-in-113",level:4},{value:"makeOpenAiChatLlm",id:"makeopenaichatllm",level:3},{value:"Parameters",id:"parameters-36",level:4},{value:"Returns",id:"returns-37",level:4},{value:"Defined in",id:"defined-in-114",level:4},{value:"makeOpenAiEmbedder",id:"makeopenaiembedder",level:3},{value:"Parameters",id:"parameters-37",level:4},{value:"Returns",id:"returns-38",level:4},{value:"Defined in",id:"defined-in-115",level:4},{value:"makeRagGenerateUserPrompt",id:"makeraggenerateuserprompt",level:3},{value:"Parameters",id:"parameters-38",level:4},{value:"Returns",id:"returns-39",level:4},{value:"Defined in",id:"defined-in-116",level:4},{value:"makeStaticSite",id:"makestaticsite",level:3},{value:"Parameters",id:"parameters-39",level:4},{value:"Returns",id:"returns-40",level:4},{value:"Defined in",id:"defined-in-117",level:4},{value:"makeTypeChatJsonTranslateFunc",id:"maketypechatjsontranslatefunc",level:3},{value:"Type parameters",id:"type-parameters-9",level:4},{value:"Parameters",id:"parameters-40",level:4},{value:"Returns",id:"returns-41",level:4},{value:"Parameters",id:"parameters-41",level:5},{value:"Returns",id:"returns-42",level:5},{value:"Defined in",id:"defined-in-118",level:4},{value:"makeVerifiedAnswerGenerateUserPrompt",id:"makeverifiedanswergenerateuserprompt",level:3},{value:"Parameters",id:"parameters-42",level:4},{value:"Returns",id:"returns-43",level:4},{value:"Defined in",id:"defined-in-119",level:4},{value:"pageFormat",id:"pageformat-1",level:3},{value:"Parameters",id:"parameters-43",level:4},{value:"Returns",id:"returns-44",level:4},{value:"Defined in",id:"defined-in-120",level:4},{value:"removeFrontMatter",id:"removefrontmatter",level:3},{value:"Parameters",id:"parameters-44",level:4},{value:"Returns",id:"returns-45",level:4},{value:"Defined in",id:"defined-in-121",level:4},{value:"reqHandler",id:"reqhandler",level:3},{value:"Parameters",id:"parameters-45",level:4},{value:"Returns",id:"returns-46",level:4},{value:"Defined in",id:"defined-in-122",level:4},{value:"requireRequestOrigin",id:"requirerequestorigin",level:3},{value:"Returns",id:"returns-47",level:4},{value:"Defined in",id:"defined-in-123",level:4},{value:"requireValidIpAddress",id:"requirevalidipaddress",level:3},{value:"Returns",id:"returns-48",level:4},{value:"Defined in",id:"defined-in-124",level:4},{value:"updateFrontMatter",id:"updatefrontmatter",level:3},{value:"Parameters",id:"parameters-46",level:4},{value:"Returns",id:"returns-49",level:4},{value:"Defined in",id:"defined-in-125",level:4}];function a(e){const n={a:"a",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,d.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/AppConfig",children:"AppConfig"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig",children:"AzureOpenAiServiceConfig"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/CallToolResponse",children:"CallToolResponse"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:"ChatLlm"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/CommentMessageParams",children:"CommentMessageParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationConstants",children:"ConversationConstants"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig",children:"ConversationsRateLimitConfig"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",children:"ConversationsRouterLocals"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterParams",children:"ConversationsRouterParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:"ConversationsService"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:"DataStreamer"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:"EmbeddedContent"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/FindByIdParams",children:"FindByIdParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue",children:"GenerateUserPromptFuncReturnValue"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams",children:"LlmAnswerQuestionParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/LlmCallToolParams",children:"LlmCallToolParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps",children:"MakeLangchainChatLlmProps"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams",children:"MakeOpenAiChatLlmParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams",children:"MakeRagGenerateUserPromptParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams",children:"MakeUserMessageFuncParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams",children:"MakeVerifiedAnswerGenerateUserPromptParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/RateMessageParams",children:"RateMessageParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/SearchBooster",children:"SearchBooster"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Tool",children:"Tool"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ToolCallParams",children:"ToolCallParams"})}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,s.jsx)(n.h3,{id:"addassistantmessageparams",children:"AddAssistantMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddAssistantMessageParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#assistantmessage",children:(0,s.jsx)(n.code,{children:"AssistantMessage"})}),", ",(0,s.jsx)(n.code,{children:'"id"'})," | ",(0,s.jsx)(n.code,{children:'"createdAt"'}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L177",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:177"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addconversationmessageparams",children:"AddConversationMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddConversationMessageParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversationId"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ObjectId"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"message"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addsomemessageparams",children:(0,s.jsx)(n.code,{children:"AddSomeMessageParams"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L188",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:188"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addcustomdatafunc",children:"AddCustomDataFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddCustomDataFunc"}),": (",(0,s.jsx)(n.code,{children:"request"}),": ",(0,s.jsx)(n.code,{children:"Request"}),", ",(0,s.jsx)(n.code,{children:"response"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsrouterresponse",children:(0,s.jsx)(n.code,{children:"ConversationsRouterResponse"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"request"}),", ",(0,s.jsx)(n.code,{children:"response"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Function to add custom data to the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"})," persisted to the database.\nHas access to the Express.js request and response plus the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",children:"ConversationsRouterLocals"}),"\nfrom the Response.locals object."]}),"\n",(0,s.jsx)(n.h5,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"request"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Request"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"response"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsrouterresponse",children:(0,s.jsx)(n.code,{children:"ConversationsRouterResponse"})})})]})]})]}),"\n",(0,s.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L69",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:69"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addfunctionmessageparams",children:"AddFunctionMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddFunctionMessageParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#functionmessage",children:(0,s.jsx)(n.code,{children:"FunctionMessage"})}),", ",(0,s.jsx)(n.code,{children:'"id"'})," | ",(0,s.jsx)(n.code,{children:'"createdAt"'}),"> & { ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L170",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:170"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addmanyconversationmessagesparams",children:"AddManyConversationMessagesParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddManyConversationMessagesParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversationId"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ObjectId"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"messages"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addsomemessageparams",children:(0,s.jsx)(n.code,{children:"AddSomeMessageParams"})}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L193",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:193"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addsomemessageparams",children:"AddSomeMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddSomeMessageParams"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addsystemmessageparams",children:(0,s.jsx)(n.code,{children:"AddSystemMessageParams"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addusermessageparams",children:(0,s.jsx)(n.code,{children:"AddUserMessageParams"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addassistantmessageparams",children:(0,s.jsx)(n.code,{children:"AddAssistantMessageParams"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addfunctionmessageparams",children:(0,s.jsx)(n.code,{children:"AddFunctionMessageParams"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L182",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:182"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addsystemmessageparams",children:"AddSystemMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddSystemMessageParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#systemmessage",children:(0,s.jsx)(n.code,{children:"SystemMessage"})}),", ",(0,s.jsx)(n.code,{children:'"id"'})," | ",(0,s.jsx)(n.code,{children:'"createdAt"'}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L164",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:164"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addusermessageparams",children:"AddUserMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddUserMessageParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(n.code,{children:"UserMessage"})}),", ",(0,s.jsx)(n.code,{children:'"id"'})," | ",(0,s.jsx)(n.code,{children:'"createdAt"'}),"> & { ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L166",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:166"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"assistantmessage",children:"AssistantMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AssistantMessage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#messagebase",children:(0,s.jsx)(n.code,{children:"MessageBase"})})," & { ",(0,s.jsx)(n.code,{children:"functionCall?"}),": ",(0,s.jsx)(n.code,{children:"FunctionCall"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": { ",(0,s.jsx)(n.code,{children:"[k: string]"}),": ",(0,s.jsx)(n.code,{children:"unknown"}),"; ",(0,s.jsx)(n.code,{children:"verifiedAnswer?"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#verifiedanswer-1",children:(0,s.jsx)(n.code,{children:"VerifiedAnswer"})})," } ; ",(0,s.jsx)(n.code,{children:"rating?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"references?"}),": ",(0,s.jsx)(n.code,{children:"any"}),"[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"assistant"'})," ; ",(0,s.jsx)(n.code,{children:"userComment?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L37",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:37"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"conversationcustomdata",children:"ConversationCustomData"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ConversationCustomData"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> | ",(0,s.jsx)(n.code,{children:"undefined"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L137",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:137"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"conversationsmiddleware",children:"ConversationsMiddleware"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ConversationsMiddleware"}),": ",(0,s.jsx)(n.code,{children:"RequestHandler"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",children:(0,s.jsx)(n.code,{children:"ConversationsRouterLocals"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Middleware to put in front of all the routes in the conversationsRouter.\nThis middleware is useful for things like authentication, data validation, etc.\nIt exposes the app's ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:"ConversationsService"}),".\nIt also lets you access ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",children:"ConversationsRouterLocals"})," via Response.locals\n(",(0,s.jsx)(n.a,{href:"https://expressjs.com/en/api.html#res.locals",children:"docs"}),").\nYou can use the locals in other middleware or persist when you create the conversation\nwith the ",(0,s.jsx)(n.code,{children:"POST /conversations"})," endpoint with the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addcustomdatafunc",children:"AddCustomDataFunc"}),"."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L102",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:102"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"conversationsrouterresponse",children:"ConversationsRouterResponse"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ConversationsRouterResponse"}),": ",(0,s.jsx)(n.code,{children:"Response"}),"<",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",children:(0,s.jsx)(n.code,{children:"ConversationsRouterLocals"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Express.js Response from the app's ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:"ConversationsService"}),"."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L87",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:87"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"createconversationparams",children:"CreateConversationParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"CreateConversationParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"customData?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"initialMessages?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#somemessage",children:(0,s.jsx)(n.code,{children:"SomeMessage"})}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L159",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:159"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"databaseconnection",children:"DatabaseConnection"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"DatabaseConnection"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"close"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"force?"}),": ",(0,s.jsx)(n.code,{children:"boolean"}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"drop"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/DatabaseConnection.d.ts:1"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"deltastreamevent",children:"DeltaStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"DeltaStreamEvent"}),": ",(0,s.jsx)(n.code,{children:"StreamEvent"})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"delta"'})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Event when server streams additional message response to the client."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L54",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:54"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"embedargs",children:"EmbedArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"EmbedArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-5",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"text"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The text to embed."})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-15",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Embedder.d.ts:1"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"embedresult",children:"EmbedResult"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"EmbedResult"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-6",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"embedding"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"number"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Vector embedding of the text."})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-16",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Embedder.d.ts:7"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"embeddedcontentstore",children:"EmbeddedContentStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"EmbeddedContentStore"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#vectorstore",children:(0,s.jsx)(n.code,{children:"VectorStore"})}),"<",(0,s.jsx)(n.a,{href:"interfaces/EmbeddedContent.md",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"> & { ",(0,s.jsx)(n.code,{children:"close?"}),": () => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),"> ; ",(0,s.jsx)(n.code,{children:"deleteEmbeddedContent"}),": (",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"page"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:(0,s.jsx)(n.code,{children:"Page"})})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),"> ; ",(0,s.jsx)(n.code,{children:"loadEmbeddedContent"}),": (",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"page"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:(0,s.jsx)(n.code,{children:"Page"})})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]> ; ",(0,s.jsx)(n.code,{children:"updateEmbeddedContent"}),": (",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"embeddedContent"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[] ; ",(0,s.jsx)(n.code,{children:"page"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:(0,s.jsx)(n.code,{children:"Page"})})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),"> }"]}),"\n",(0,s.jsx)(n.p,{children:"Data store of the embedded content."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-17",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/EmbeddedContent.d.ts:53"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"embedder",children:"Embedder"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Embedder"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"Takes a string of text and returns an array of numbers representing the\nvector embedding of the text."}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-7",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"embed"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"args"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedargs",children:(0,s.jsx)(n.code,{children:"EmbedArgs"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedresult",children:(0,s.jsx)(n.code,{children:"EmbedResult"})}),">"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-18",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Embedder.d.ts:17"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filterpreviousmessages",children:"FilterPreviousMessages"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FilterPreviousMessages"}),": (",(0,s.jsx)(n.code,{children:"conversation"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,s.jsx)(n.code,{children:"Conversation"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-8",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"conversation"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]>"]}),"\n",(0,s.jsx)(n.p,{children:"Filters which previous conversation messages are sent to the LLM\nalong with the user prompt.\nFor example, you may only want to send the system prompt to the LLM\nwith the user message or the system prompt and X prior messages."}),"\n",(0,s.jsx)(n.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversation"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,s.jsx)(n.code,{children:"Conversation"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-1",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-19",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/FilterPreviousMessages.ts#L9",children:"packages/mongodb-chatbot-server/src/processors/FilterPreviousMessages.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findcontentfunc",children:"FindContentFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindContentFunc"}),": (",(0,s.jsx)(n.code,{children:"args"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentfuncargs",children:(0,s.jsx)(n.code,{children:"FindContentFuncArgs"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentresult",children:(0,s.jsx)(n.code,{children:"FindContentResult"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-9",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"args"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentresult",children:(0,s.jsx)(n.code,{children:"FindContentResult"})}),">"]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-2",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentfuncargs",children:(0,s.jsx)(n.code,{children:"FindContentFuncArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-2",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentresult",children:(0,s.jsx)(n.code,{children:"FindContentResult"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-20",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts#L7",children:"packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts:7"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findcontentfuncargs",children:"FindContentFuncArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindContentFuncArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-10",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"query"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-21",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts#L3",children:"packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts:3"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findcontentresult",children:"FindContentResult"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindContentResult"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-11",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.a,{href:"interfaces/EmbeddedContent.md",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),">[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"queryEmbedding"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"number"}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-22",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts#L11",children:"packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts:11"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findnearestneighborsoptions",children:"FindNearestNeighborsOptions"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindNearestNeighborsOptions"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"Options for performing a nearest-neighbor search."}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-12",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"filter"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Search filter expression."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"indexName"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The name of the index to use."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"k"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The number of nearest neighbors to return."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"minScore"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The minimum nearest-neighbor score threshold between 0-1."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"numCandidates"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Number of nearest neighbors to use during the search. Value must be less than or equal to 10000. You can't specify a number less than the number of documents to return (k)."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"path"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The keypath to the field with the vector data to use."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-23",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VectorStore.d.ts:17"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findverifiedanswerfunc",children:"FindVerifiedAnswerFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindVerifiedAnswerFunc"}),": (",(0,s.jsx)(n.code,{children:"args"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerfuncargs",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerFuncArgs"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerresult",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerResult"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-13",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"args"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerresult",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerResult"})}),">"]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-3",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerfuncargs",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerFuncArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-3",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerresult",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerResult"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-24",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts#L7",children:"packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts:7"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findverifiedanswerfuncargs",children:"FindVerifiedAnswerFuncArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindVerifiedAnswerFuncArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-14",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"query"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-25",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts#L3",children:"packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts:3"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findverifiedanswerresult",children:"FindVerifiedAnswerResult"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindVerifiedAnswerResult"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-15",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"answer?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.a,{href:"modules.md#verifiedanswer-1",children:(0,s.jsx)(n.code,{children:"VerifiedAnswer"})}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"queryEmbedding"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"number"}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-26",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts#L11",children:"packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts:11"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"finishedstreamevent",children:"FinishedStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FinishedStreamEvent"}),": ",(0,s.jsx)(n.code,{children:"StreamEvent"})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"finished"'})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Event denoting the end of streaming."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-27",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L87",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:87"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"functionmessage",children:"FunctionMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FunctionMessage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#messagebase",children:(0,s.jsx)(n.code,{children:"MessageBase"})})," & { ",(0,s.jsx)(n.code,{children:"name"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"function"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-28",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L72",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:72"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"generateuserpromptfunc",children:"GenerateUserPromptFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"GenerateUserPromptFunc"}),": (",(0,s.jsx)(n.code,{children:"params"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfuncparams",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFuncParams"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFuncReturnValue"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-16",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"params"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFuncReturnValue"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Generate the user prompt sent to the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:"ChatLlm"}),".\nThis function is a flexible construct that you can use to customize\nthe chatbot behavior. For example, you can use this function to\nperform retrieval augmented generation (RAG) or chain of thought prompting.\nInclude whatever logic in here to construct the user message\nthat the LLM responds to."]}),"\n",(0,s.jsx)(n.p,{children:"If you are doing RAG, this can include the content from vector search."}),"\n",(0,s.jsx)(n.h5,{id:"parameters-4",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"params"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfuncparams",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFuncParams"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-4",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFuncReturnValue"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-29",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L66",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:66"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"generateuserpromptfuncparams",children:"GenerateUserPromptFuncParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"GenerateUserPromptFuncParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-17",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversation?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,s.jsx)(n.code,{children:"Conversation"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Conversation with preceding messages"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"customData?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Custom data for the message request."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"reqId"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"String Id for request"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"userMessageText"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Original user message"})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-30",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L9",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"loadpagesargs",children:"LoadPagesArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"LoadPagesArgs"}),"<",(0,s.jsx)(n.code,{children:"QueryShape"}),">: ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"QueryShape"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"unknown"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-18",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"query?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"QueryShape"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"A custom query to refine the pages to load."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"sources?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The names of the sources to load pages from. If undefined, loads available pages from all sources."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"updated?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Date"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"If specified, refines the query to load pages with an updated date later or equal to the given date."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"urls?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"If specified, refines the query to only load pages where the url is included in the list."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-31",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:50"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedefaultfindcontentfuncargs",children:"MakeDefaultFindContentFuncArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeDefaultFindContentFuncArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-19",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"embedder"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"findNearestNeighborsOptions?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findnearestneighborsoptions",children:(0,s.jsx)(n.code,{children:"FindNearestNeighborsOptions"})}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"searchBoosters?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/SearchBooster",children:(0,s.jsx)(n.code,{children:"SearchBooster"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"store"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embeddedcontentstore",children:(0,s.jsx)(n.code,{children:"EmbeddedContentStore"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-32",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeDefaultFindContent.ts#L9",children:"packages/mongodb-chatbot-server/src/processors/makeDefaultFindContent.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedefaultfindverifiedanswerfuncargs",children:"MakeDefaultFindVerifiedAnswerFuncArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeDefaultFindVerifiedAnswerFuncArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-20",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"embedder"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"findNearestNeighborsOptions?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findnearestneighborsoptions",children:(0,s.jsx)(n.code,{children:"FindNearestNeighborsOptions"})}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"store"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#verifiedanswerstore",children:(0,s.jsx)(n.code,{children:"VerifiedAnswerStore"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-33",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeDefaultFindVerifiedAnswer.ts#L8",children:"packages/mongodb-chatbot-server/src/processors/makeDefaultFindVerifiedAnswer.ts:8"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makelangchainembedderparams",children:"MakeLangChainEmbedderParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeLangChainEmbedderParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-21",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"langChainEmbeddings"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Embeddings"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["LangChain.js ",(0,s.jsx)(n.code,{children:"Embeddings"})," instance. You can configure things like caching and retry behavior in the ",(0,s.jsx)(n.code,{children:"Embeddings"})," instance."]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-34",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/LangChainEmbedder.d.ts:3"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeopenaiembedderargs",children:"MakeOpenAiEmbedderArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeOpenAiEmbedderArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-22",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"backoffOptions?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"BackoffOptions"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Options used for automatic retry (usually due to rate limiting)."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"deployment"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The deployment key."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"openAiClient"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OpenAIClient"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The OpenAI client."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-35",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/OpenAiEmbedder.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makereferencelinksfunc",children:"MakeReferenceLinksFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeReferenceLinksFunc"}),": (",(0,s.jsx)(n.code,{children:"chunks"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]) => ",(0,s.jsx)(n.code,{children:"any"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-23",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"chunks"}),"): ",(0,s.jsx)(n.code,{children:"any"}),"[]"]}),"\n",(0,s.jsx)(n.p,{children:"Function that generates the references in the response to user."}),"\n",(0,s.jsx)(n.h5,{id:"parameters-5",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"chunks"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-5",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"any"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-36",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/MakeReferenceLinksFunc.ts#L6",children:"packages/mongodb-chatbot-server/src/processors/MakeReferenceLinksFunc.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"maketypechatjsontranslatefuncargs",children:"MakeTypeChatJsonTranslateFuncArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeTypeChatJsonTranslateFuncArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-24",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"azureOpenAiServiceConfig"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig",children:(0,s.jsx)(n.code,{children:"AzureOpenAiServiceConfig"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Settings for using the Azure service."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"numRetries?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Number of times to retry the query preprocessor if it fails."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"retryDelayMs?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Delay between retries in milliseconds."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"schema"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The text of a .d.ts that would inform the schema."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"schemaName"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The name of the TypeChat schema or interface."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-37",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/TypeChatJsonTranslateFunc.d.ts:7"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeusermessagefunc",children:"MakeUserMessageFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeUserMessageFunc"}),": (",(0,s.jsx)(n.code,{children:"params"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams",children:(0,s.jsx)(n.code,{children:"MakeUserMessageFuncParams"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(n.code,{children:"UserMessage"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-25",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"params"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(n.code,{children:"UserMessage"})}),">"]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-6",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"params"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams",children:(0,s.jsx)(n.code,{children:"MakeUserMessageFuncParams"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-6",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(n.code,{children:"UserMessage"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-38",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L48",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:48"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"message",children:"Message"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Message"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#somemessage",children:(0,s.jsx)(n.code,{children:"SomeMessage"})})," & { ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Message stored in the database."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-39",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L125",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:125"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"messagebase",children:"MessageBase"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MessageBase"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-26",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Message that occurs in the conversation."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"customData?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Custom data received from the client to include in the Message persisted to the database."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"metadata?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Arbitrary data about the message that should be sent to the client."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"role"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The role of the message in the conversation."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-40",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L10",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:10"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"metadatastreamevent",children:"MetadataStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MetadataStreamEvent"}),": ",(0,s.jsx)(n.code,{children:"StreamEvent"})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"metadata"'})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Event when server streams a metadata object to the client."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-41",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L79",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:79"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"mongodbpagestore",children:"MongoDbPageStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MongoDbPageStore"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#databaseconnection",children:(0,s.jsx)(n.code,{children:"DatabaseConnection"})})," & ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pagestore",children:(0,s.jsx)(n.code,{children:"PageStore"})}),", ",(0,s.jsx)(n.code,{children:'"loadPages"'}),"> & { ",(0,s.jsx)(n.code,{children:"queryType"}),": ",(0,s.jsx)(n.code,{children:'"mongodb"'})," ; ",(0,s.jsx)(n.code,{children:"loadPages"}),": (",(0,s.jsx)(n.code,{children:"args?"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#loadpagesargs",children:(0,s.jsx)(n.code,{children:"LoadPagesArgs"})}),"<",(0,s.jsx)(n.code,{children:"Filter"}),"<",(0,s.jsx)(n.a,{href:"modules.md#persistedpage",children:(0,s.jsx)(n.code,{children:"PersistedPage"})}),">>) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#persistedpage",children:(0,s.jsx)(n.code,{children:"PersistedPage"})}),"[]> }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-42",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/MongoDbPageStore.d.ts:5"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"openaichatcompletionwithoutusage",children:"OpenAIChatCompletionWithoutUsage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"OpenAIChatCompletionWithoutUsage"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"ChatCompletions"}),", ",(0,s.jsx)(n.code,{children:'"usage"'}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-43",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L85",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:85"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"openaiawaitedresponse",children:"OpenAiAwaitedResponse"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"OpenAiAwaitedResponse"}),": ",(0,s.jsx)(n.code,{children:"ChatRequestAssistantMessage"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-44",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L89",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:89"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"openaichatmessage",children:"OpenAiChatMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"OpenAiChatMessage"}),": ",(0,s.jsx)(n.code,{children:"ChatRequestMessage"})," & { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"null"})," ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#openaimessagerole",children:(0,s.jsx)(n.code,{children:"OpenAiMessageRole"})})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-45",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L21",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"openaimessagerole",children:"OpenAiMessageRole"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"OpenAiMessageRole"}),": ",(0,s.jsx)(n.code,{children:'"system"'})," | ",(0,s.jsx)(n.code,{children:'"assistant"'})," | ",(0,s.jsx)(n.code,{children:'"user"'})," | ",(0,s.jsx)(n.code,{children:'"function"'})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-46",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L19",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:19"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"openaistreamingresponse",children:"OpenAiStreamingResponse"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"OpenAiStreamingResponse"}),": ",(0,s.jsx)(n.code,{children:"AsyncIterable"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#openaichatcompletionwithoutusage",children:(0,s.jsx)(n.code,{children:"OpenAIChatCompletionWithoutUsage"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-47",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L87",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:87"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"page",children:"Page"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Page"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"Represents a page from a data source."}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-27",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"body"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The text of the page."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"format"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pageformat",children:(0,s.jsx)(n.code,{children:"PageFormat"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The file format of the page. This format determines how the page should be chunked and vector-embedded."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"metadata?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pagemetadata",children:(0,s.jsx)(n.code,{children:"PageMetadata"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Arbitrary metadata for page."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"sourceName"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Data source name."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"title?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"A human-readable title."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"url"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-48",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:5"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pageaction",children:"PageAction"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"PageAction"}),": ",(0,s.jsx)(n.code,{children:'"created"'})," | ",(0,s.jsx)(n.code,{children:'"updated"'})," | ",(0,s.jsx)(n.code,{children:'"deleted"'})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-49",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:36"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pageformat",children:"PageFormat"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"PageFormat"}),": typeof ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pageformats",children:(0,s.jsx)(n.code,{children:"pageFormats"})}),"[",(0,s.jsx)(n.code,{children:"number"}),"]"]}),"\n",(0,s.jsx)(n.p,{children:"A canonical page format."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-50",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/PageFormat.d.ts:15"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pagemetadata",children:"PageMetadata"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"PageMetadata"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"index-signature",children:"Index signature"}),"\n",(0,s.jsxs)(n.p,{children:["\u25aa [k: ",(0,s.jsx)(n.code,{children:"string"}),"]: ",(0,s.jsx)(n.code,{children:"unknown"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-28",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"tags?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Arbitrary tags."})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-51",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:29"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pagestore",children:"PageStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"PageStore"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsxs)(n.p,{children:["Data store for ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:"Page"})," objects."]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-29",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"close?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Close connection to data store."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"queryType?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:'"mongodb"'})," | ",(0,s.jsx)(n.code,{children:"string"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The format that the store uses for custom queries. If not specified, the store does not allow custom queries."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"loadPages"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"args?"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#loadpagesargs",children:(0,s.jsx)(n.code,{children:"LoadPagesArgs"})}),"<",(0,s.jsx)(n.code,{children:"unknown"}),">) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#persistedpage",children:(0,s.jsx)(n.code,{children:"PersistedPage"})}),"[]>"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Loads pages from the Page store."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"updatePages"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"pages"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#persistedpage",children:(0,s.jsx)(n.code,{children:"PersistedPage"})}),"[]) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Updates or adds the given pages in the store."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-52",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:74"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"persistedpage",children:"PersistedPage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"PersistedPage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:(0,s.jsx)(n.code,{children:"Page"})})," & { ",(0,s.jsx)(n.code,{children:"action"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pageaction",children:(0,s.jsx)(n.code,{children:"PageAction"})})," ; ",(0,s.jsx)(n.code,{children:"updated"}),": ",(0,s.jsx)(n.code,{children:"Date"})," }"]}),"\n",(0,s.jsxs)(n.p,{children:["Represents a ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:"Page"})," stored in the database."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-53",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:40"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"processingstreamevent",children:"ProcessingStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ProcessingStreamEvent"}),": ",(0,s.jsx)(n.code,{children:"StreamEvent"})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"processing"'})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Event for when the server is processing a request."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-54",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L59",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:59"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"querypreprocessorfunc",children:"QueryPreprocessorFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"QueryPreprocessorFunc"}),"<",(0,s.jsx)(n.code,{children:"ReturnType"}),">: (",(0,s.jsx)(n.code,{children:"params"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#queryprocessorfuncparams",children:(0,s.jsx)(n.code,{children:"QueryProcessorFuncParams"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"ReturnType"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-1",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ReturnType"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#querypreprocessorresult",children:(0,s.jsx)(n.code,{children:"QueryPreprocessorResult"})})," = ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#querypreprocessorresult",children:(0,s.jsx)(n.code,{children:"QueryPreprocessorResult"})})]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-30",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"params"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"ReturnType"}),">"]}),"\n",(0,s.jsx)(n.p,{children:"Query preprocessors transform an input query to a new query based on your\nbusiness logic."}),"\n",(0,s.jsx)(n.p,{children:"If the preprocessor can't transform the query, it may return undefined. The\npreprocessor may also suggest not answering with the rejectQuery field in the\nreturn value (for example, if the query disparages your company, you might\nwant to send a canned response)."}),"\n",(0,s.jsx)(n.h5,{id:"parameters-7",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"params"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#queryprocessorfuncparams",children:(0,s.jsx)(n.code,{children:"QueryProcessorFuncParams"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-7",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"ReturnType"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-55",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts#L17",children:"packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts:17"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"querypreprocessorresult",children:"QueryPreprocessorResult"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"QueryPreprocessorResult"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-31",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"query?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"rejectQuery?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"boolean"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-56",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts#L21",children:"packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"queryprocessorfuncparams",children:"QueryProcessorFuncParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"QueryProcessorFuncParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-32",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"messages?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"query"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-57",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts#L3",children:"packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts:3"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"question",children:"Question"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Question"}),": ",(0,s.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-58",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:3"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:19"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"reference",children:"Reference"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Reference"}),": ",(0,s.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,s.jsx)(n.p,{children:"A formatted reference for an assistant message."}),"\n",(0,s.jsx)(n.p,{children:"For example, a Reference might be a docs page, dev center article, or\na MongoDB University module."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-59",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:8"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:9"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"references",children:"References"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"References"}),": ",(0,s.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-60",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:19"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:20"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"referencesstreamevent",children:"ReferencesStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ReferencesStreamEvent"}),": ",(0,s.jsx)(n.code,{children:"StreamEvent"})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"any"}),"[] ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"references"'})," }"]}),"\n",(0,s.jsxs)(n.p,{children:["Event when server streams single ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#references-1",children:"References"})," object to the client."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-61",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L71",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:71"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"somemessage",children:"SomeMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SomeMessage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(n.code,{children:"UserMessage"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#assistantmessage",children:(0,s.jsx)(n.code,{children:"AssistantMessage"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#systemmessage",children:(0,s.jsx)(n.code,{children:"SystemMessage"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#functionmessage",children:(0,s.jsx)(n.code,{children:"FunctionMessage"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Message in the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-62",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L116",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:116"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"somestreamevent",children:"SomeStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SomeStreamEvent"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#deltastreamevent",children:(0,s.jsx)(n.code,{children:"DeltaStreamEvent"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#metadatastreamevent",children:(0,s.jsx)(n.code,{children:"MetadataStreamEvent"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#processingstreamevent",children:(0,s.jsx)(n.code,{children:"ProcessingStreamEvent"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#referencesstreamevent",children:(0,s.jsx)(n.code,{children:"ReferencesStreamEvent"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#finishedstreamevent",children:(0,s.jsx)(n.code,{children:"FinishedStreamEvent"})})]}),"\n",(0,s.jsx)(n.p,{children:"The event types streamed from the chat server to the client."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-63",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L95",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:95"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"systemmessage",children:"SystemMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SystemMessage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#messagebase",children:(0,s.jsx)(n.code,{children:"MessageBase"})})," & { ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"system"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-64",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L33",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:33"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"systemprompt",children:"SystemPrompt"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SystemPrompt"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#openaichatmessage",children:(0,s.jsx)(n.code,{children:"OpenAiChatMessage"})})," & { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"system"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-65",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L34",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:34"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"toolcalldirective",children:"ToolCallDirective"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ToolCallDirective"}),": ",(0,s.jsx)(n.code,{children:"FunctionCallPreset"})," | ",(0,s.jsx)(n.code,{children:"FunctionName"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-66",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L110",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:110"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"usermessage",children:"UserMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"UserMessage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#messagebase",children:(0,s.jsx)(n.code,{children:"MessageBase"})})," & { ",(0,s.jsx)(n.code,{children:"contentForLlm?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"contextContent?"}),": ",(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.a,{href:"interfaces/EmbeddedContent.md",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),">>[] ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"preprocessedContent?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"rejectQuery?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"user"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-67",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L77",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:77"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"vectorstore",children:"VectorStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"VectorStore"}),"<",(0,s.jsx)(n.code,{children:"T"}),">: ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"Generic vector store for vector-searchable data."}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-2",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(n.tbody,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-33",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"close?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"findNearestNeighbors"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"vector"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[], ",(0,s.jsx)(n.code,{children:"options?"}),": ",(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findnearestneighborsoptions",children:(0,s.jsx)(n.code,{children:"FindNearestNeighborsOptions"})}),">) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.code,{children:"T"}),">[]>"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-68",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VectorStore.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"verifiedanswer",children:"VerifiedAnswer"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"VerifiedAnswer"}),": ",(0,s.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-69",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:20"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:88"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"verifiedanswerstore",children:"VerifiedAnswerStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"VerifiedAnswerStore"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#vectorstore",children:(0,s.jsx)(n.code,{children:"VectorStore"})}),"<",(0,s.jsx)(n.a,{href:"modules.md#verifiedanswer-1",children:(0,s.jsx)(n.code,{children:"VerifiedAnswer"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-70",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:89"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"withfilterandk",children:"WithFilterAndK"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"WithFilterAndK"}),"<",(0,s.jsx)(n.code,{children:"T"}),">: ",(0,s.jsx)(n.code,{children:"T"})," & { ",(0,s.jsx)(n.code,{children:"filter"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"k"}),": ",(0,s.jsx)(n.code,{children:"number"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-3",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(n.tbody,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-71",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeBoostOnAtlasSearchFilter.ts#L9",children:"packages/mongodb-chatbot-server/src/processors/makeBoostOnAtlasSearchFilter.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"withscore",children:"WithScore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"WithScore"}),"<",(0,s.jsx)(n.code,{children:"T"}),">: ",(0,s.jsx)(n.code,{children:"T"})," & { ",(0,s.jsx)(n.code,{children:"score"}),": ",(0,s.jsx)(n.code,{children:"number"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-4",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(n.tbody,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-72",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VectorStore.d.ts:11"}),"\n",(0,s.jsx)(n.h2,{id:"variables",children:"Variables"}),"\n",(0,s.jsx)(n.h3,{id:"core_env_vars",children:"CORE_ENV_VARS"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"CORE_ENV_VARS"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-34",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MONGODB_CONNECTION_URI"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MONGODB_DATABASE_NAME"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"NODE_ENV"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_API_KEY"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_CHAT_COMPLETION_DEPLOYMENT"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_CHAT_COMPLETION_MODEL_VERSION"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_EMBEDDING_DEPLOYMENT"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_EMBEDDING_MODEL"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_EMBEDDING_MODEL_VERSION"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_ENDPOINT"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"VECTOR_SEARCH_INDEX_NAME"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-73",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/CoreEnvVars.d.ts:1"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"custom_request_origin_header",children:"CUSTOM_REQUEST_ORIGIN_HEADER"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"CUSTOM_REQUEST_ORIGIN_HEADER"}),": ",(0,s.jsx)(n.code,{children:'"X-Request-Origin"'})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-74",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/middleware/requireRequestOrigin.ts#L4",children:"packages/mongodb-chatbot-server/src/middleware/requireRequestOrigin.ts:4"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"default_api_prefix",children:"DEFAULT_API_PREFIX"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"DEFAULT_API_PREFIX"}),": ",(0,s.jsx)(n.code,{children:'"/api/v1"'})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-75",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/app.ts#L108",children:"packages/mongodb-chatbot-server/src/app.ts:108"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"default_max_request_timeout_ms",children:"DEFAULT_MAX_REQUEST_TIMEOUT_MS"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"DEFAULT_MAX_REQUEST_TIMEOUT_MS"}),": ",(0,s.jsx)(n.code,{children:"60000"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-76",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/app.ts#L110",children:"packages/mongodb-chatbot-server/src/app.ts:110"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"question-1",children:"Question"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"Question"}),": ",(0,s.jsx)(n.code,{children:"z.ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"z.ZodArray"}),"<",(0,s.jsx)(n.code,{children:"z.ZodNumber"}),", ",(0,s.jsx)(n.code,{children:'"many"'}),"> ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"z.ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," }, { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," }>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-77",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:3"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:19"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"reference-1",children:"Reference"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"Reference"}),": ",(0,s.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"ZodString"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"ZodString"})," }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }, { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-78",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:8"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:9"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"references-1",children:"References"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"References"}),": ",(0,s.jsx)(n.code,{children:"ZodArray"}),"<",(0,s.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"ZodString"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"ZodString"})," }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }, { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }>, ",(0,s.jsx)(n.code,{children:'"many"'}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-79",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:19"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:20"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"someexpressrequest",children:"SomeExpressRequest"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"SomeExpressRequest"}),": ",(0,s.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"body"}),": ",(0,s.jsx)(n.code,{children:"ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"ZodObject"}),"<",", ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", ",", ",">> ; ",(0,s.jsx)(n.code,{children:"headers"}),": ",(0,s.jsx)(n.code,{children:"ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"ZodObject"}),"<",", ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", ",", ",">> ; ",(0,s.jsx)(n.code,{children:"params"}),": ",(0,s.jsx)(n.code,{children:"ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"ZodObject"}),"<",", ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", ",", ",">> ; ",(0,s.jsx)(n.code,{children:"query"}),": ",(0,s.jsx)(n.code,{children:"ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"ZodObject"}),"<",", ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", ",", ",">> }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"body?"}),": {} ; ",(0,s.jsx)(n.code,{children:"headers?"}),": {} ; ",(0,s.jsx)(n.code,{children:"params?"}),": {} ; ",(0,s.jsx)(n.code,{children:"query?"}),": {} }, { ",(0,s.jsx)(n.code,{children:"body?"}),": {} ; ",(0,s.jsx)(n.code,{children:"headers?"}),": {} ; ",(0,s.jsx)(n.code,{children:"params?"}),": {} ; ",(0,s.jsx)(n.code,{children:"query?"}),": {} }>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-80",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/middleware/validateRequestSchema.ts#L6",children:"packages/mongodb-chatbot-server/src/middleware/validateRequestSchema.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"verifiedanswer-1",children:"VerifiedAnswer"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"VerifiedAnswer"}),": ",(0,s.jsx)(n.code,{children:"z.ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"_id"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"answer"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"author_email"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"created"}),": ",(0,s.jsx)(n.code,{children:"z.ZodDate"})," ; ",(0,s.jsx)(n.code,{children:"hidden"}),": ",(0,s.jsx)(n.code,{children:"z.ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"z.ZodBoolean"}),"> ; ",(0,s.jsx)(n.code,{children:"question"}),": ",(0,s.jsx)(n.code,{children:"z.ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"z.ZodArray"}),"<",(0,s.jsx)(n.code,{children:"z.ZodNumber"}),", ",(0,s.jsx)(n.code,{children:'"many"'}),"> ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"z.ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," }, { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," }> ; ",(0,s.jsx)(n.code,{children:"references"}),": ",(0,s.jsx)(n.code,{children:"z.ZodArray"}),"<",(0,s.jsx)(n.code,{children:"z.ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"z.ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }, { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }>, ",(0,s.jsx)(n.code,{children:'"many"'}),"> ; ",(0,s.jsx)(n.code,{children:"updated"}),": ",(0,s.jsx)(n.code,{children:"z.ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"z.ZodDate"}),"> }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"z.ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"_id"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"answer"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"author_email"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"created"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"hidden?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"question"}),": { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," } ; ",(0,s.jsx)(n.code,{children:"references"}),": { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[] ; ",(0,s.jsx)(n.code,{children:"updated?"}),": ",(0,s.jsx)(n.code,{children:"Date"})," }, { ",(0,s.jsx)(n.code,{children:"_id"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"answer"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"author_email"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"created"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"hidden?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"question"}),": { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," } ; ",(0,s.jsx)(n.code,{children:"references"}),": { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[] ; ",(0,s.jsx)(n.code,{children:"updated?"}),": ",(0,s.jsx)(n.code,{children:"Date"})," }>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-81",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:20"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:88"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"defaultconversationconstants",children:"defaultConversationConstants"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"defaultConversationConstants"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationConstants",children:(0,s.jsx)(n.code,{children:"ConversationConstants"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-82",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L270",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:270"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"logger",children:"logger"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"logger"}),": ",(0,s.jsx)(n.code,{children:"Logger"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-83",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/logger.d.ts:13"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pageformats",children:"pageFormats"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"pageFormats"}),": (",(0,s.jsx)(n.code,{children:'"txt"'})," | ",(0,s.jsx)(n.code,{children:'"md"'})," | ",(0,s.jsx)(n.code,{children:'"mdx"'})," | ",(0,s.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,s.jsx)(n.code,{children:'"csv"'})," | ",(0,s.jsx)(n.code,{children:'"json"'})," | ",(0,s.jsx)(n.code,{children:'"yaml"'})," | ",(0,s.jsx)(n.code,{children:'"toml"'})," | ",(0,s.jsx)(n.code,{children:'"xml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,s.jsx)(n.code,{children:'"graphql"'})," | ",(0,s.jsx)(n.code,{children:'"c"'})," | ",(0,s.jsx)(n.code,{children:'"cpp"'})," | ",(0,s.jsx)(n.code,{children:'"csharp"'})," | ",(0,s.jsx)(n.code,{children:'"go"'})," | ",(0,s.jsx)(n.code,{children:'"html"'})," | ",(0,s.jsx)(n.code,{children:'"java"'})," | ",(0,s.jsx)(n.code,{children:'"javascript"'})," | ",(0,s.jsx)(n.code,{children:'"kotlin"'})," | ",(0,s.jsx)(n.code,{children:'"latex"'})," | ",(0,s.jsx)(n.code,{children:'"objective-c"'})," | ",(0,s.jsx)(n.code,{children:'"php"'})," | ",(0,s.jsx)(n.code,{children:'"python"'})," | ",(0,s.jsx)(n.code,{children:'"ruby"'})," | ",(0,s.jsx)(n.code,{children:'"rust"'})," | ",(0,s.jsx)(n.code,{children:'"scala"'})," | ",(0,s.jsx)(n.code,{children:'"shell"'})," | ",(0,s.jsx)(n.code,{children:'"swift"'})," | ",(0,s.jsx)(n.code,{children:'"typescript"'}),")[]"]}),"\n",(0,s.jsx)(n.p,{children:"The list of canonical file formats that we support for pages."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-84",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/PageFormat.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"ratelimitresponse",children:"rateLimitResponse"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"rateLimitResponse"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-35",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"error"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-85",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L194",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:194"})}),"\n",(0,s.jsx)(n.h2,{id:"functions",children:"Functions"}),"\n",(0,s.jsx)(n.h3,{id:"aspageformat",children:"asPageFormat"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"asPageFormat"}),"(",(0,s.jsx)(n.code,{children:"str"}),"): ",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:'"txt"'})," | ",(0,s.jsx)(n.code,{children:'"md"'})," | ",(0,s.jsx)(n.code,{children:'"mdx"'})," | ",(0,s.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,s.jsx)(n.code,{children:'"csv"'})," | ",(0,s.jsx)(n.code,{children:'"json"'})," | ",(0,s.jsx)(n.code,{children:'"yaml"'})," | ",(0,s.jsx)(n.code,{children:'"toml"'})," | ",(0,s.jsx)(n.code,{children:'"xml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,s.jsx)(n.code,{children:'"graphql"'})," | ",(0,s.jsx)(n.code,{children:'"c"'})," | ",(0,s.jsx)(n.code,{children:'"cpp"'})," | ",(0,s.jsx)(n.code,{children:'"csharp"'})," | ",(0,s.jsx)(n.code,{children:'"go"'})," | ",(0,s.jsx)(n.code,{children:'"html"'})," | ",(0,s.jsx)(n.code,{children:'"java"'})," | ",(0,s.jsx)(n.code,{children:'"javascript"'})," | ",(0,s.jsx)(n.code,{children:'"kotlin"'})," | ",(0,s.jsx)(n.code,{children:'"latex"'})," | ",(0,s.jsx)(n.code,{children:'"objective-c"'})," | ",(0,s.jsx)(n.code,{children:'"php"'})," | ",(0,s.jsx)(n.code,{children:'"python"'})," | ",(0,s.jsx)(n.code,{children:'"ruby"'})," | ",(0,s.jsx)(n.code,{children:'"rust"'})," | ",(0,s.jsx)(n.code,{children:'"scala"'})," | ",(0,s.jsx)(n.code,{children:'"shell"'})," | ",(0,s.jsx)(n.code,{children:'"swift"'})," | ",(0,s.jsx)(n.code,{children:'"typescript"'})]}),"\n",(0,s.jsx)(n.p,{children:"Maps a string to the canonical page format it represents."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"str"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:'"txt"'})," | ",(0,s.jsx)(n.code,{children:'"md"'})," | ",(0,s.jsx)(n.code,{children:'"mdx"'})," | ",(0,s.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,s.jsx)(n.code,{children:'"csv"'})," | ",(0,s.jsx)(n.code,{children:'"json"'})," | ",(0,s.jsx)(n.code,{children:'"yaml"'})," | ",(0,s.jsx)(n.code,{children:'"toml"'})," | ",(0,s.jsx)(n.code,{children:'"xml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,s.jsx)(n.code,{children:'"graphql"'})," | ",(0,s.jsx)(n.code,{children:'"c"'})," | ",(0,s.jsx)(n.code,{children:'"cpp"'})," | ",(0,s.jsx)(n.code,{children:'"csharp"'})," | ",(0,s.jsx)(n.code,{children:'"go"'})," | ",(0,s.jsx)(n.code,{children:'"html"'})," | ",(0,s.jsx)(n.code,{children:'"java"'})," | ",(0,s.jsx)(n.code,{children:'"javascript"'})," | ",(0,s.jsx)(n.code,{children:'"kotlin"'})," | ",(0,s.jsx)(n.code,{children:'"latex"'})," | ",(0,s.jsx)(n.code,{children:'"objective-c"'})," | ",(0,s.jsx)(n.code,{children:'"php"'})," | ",(0,s.jsx)(n.code,{children:'"python"'})," | ",(0,s.jsx)(n.code,{children:'"ruby"'})," | ",(0,s.jsx)(n.code,{children:'"rust"'})," | ",(0,s.jsx)(n.code,{children:'"scala"'})," | ",(0,s.jsx)(n.code,{children:'"shell"'})," | ",(0,s.jsx)(n.code,{children:'"swift"'})," | ",(0,s.jsx)(n.code,{children:'"typescript"'})]}),"\n",(0,s.jsx)(n.p,{children:"The canonical page format, or undefined if the string is not\na recognized page format."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-86",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/PageFormat.d.ts:11"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"assertenvvars",children:"assertEnvVars"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"assertEnvVars"}),"<",(0,s.jsx)(n.code,{children:"T"}),">(",(0,s.jsx)(n.code,{children:"ENV_VARS"}),"): ",(0,s.jsx)(n.code,{children:"T"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-5",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"string"}),">"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ENV_VARS"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-9",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"T"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-87",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/assertEnvVars.d.ts:1"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"createloggermessage",children:"createLoggerMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"createLoggerMessage"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"CreateMessageParams"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-10",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Object"})}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ipAddress"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"message"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"requestBody"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"unknown"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"requestId"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-88",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/logger.d.ts:7"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"createmessage",children:"createMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"createMessage"}),"(",(0,s.jsx)(n.code,{children:"messageParams"}),"): { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"system"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"contentForLlm?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"contextContent?"}),": ",(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.a,{href:"interfaces/EmbeddedContent.md",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),">>[] ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"preprocessedContent?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"rejectQuery?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"user"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"name"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"function"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"functionCall?"}),": ",(0,s.jsx)(n.code,{children:"FunctionCall"})," ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> & { ",(0,s.jsx)(n.code,{children:"[k: string]"}),": ",(0,s.jsx)(n.code,{children:"unknown"}),"; ",(0,s.jsx)(n.code,{children:"verifiedAnswer?"}),": { ",(0,s.jsx)(n.code,{children:"_id"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"answer"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"author_email"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"created"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"hidden?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"question"}),": { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," } ; ",(0,s.jsx)(n.code,{children:"references"}),": { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[] ; ",(0,s.jsx)(n.code,{children:"updated?"}),": ",(0,s.jsx)(n.code,{children:"Date"})," } } ; ",(0,s.jsx)(n.code,{children:"rating?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"references?"}),": { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"assistant"'})," ; ",(0,s.jsx)(n.code,{children:"userComment?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-11",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"messageParams"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addsomemessageparams",children:(0,s.jsx)(n.code,{children:"AddSomeMessageParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-11",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:["{ ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"system"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"contentForLlm?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"contextContent?"}),": ",(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.a,{href:"interfaces/EmbeddedContent.md",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),">>[] ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"preprocessedContent?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"rejectQuery?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"user"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"name"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"function"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"functionCall?"}),": ",(0,s.jsx)(n.code,{children:"FunctionCall"})," ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> & { ",(0,s.jsx)(n.code,{children:"[k: string]"}),": ",(0,s.jsx)(n.code,{children:"unknown"}),"; ",(0,s.jsx)(n.code,{children:"verifiedAnswer?"}),": { ",(0,s.jsx)(n.code,{children:"_id"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"answer"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"author_email"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"created"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"hidden?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"question"}),": { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," } ; ",(0,s.jsx)(n.code,{children:"references"}),": { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[] ; ",(0,s.jsx)(n.code,{children:"updated?"}),": ",(0,s.jsx)(n.code,{children:"Date"})," } } ; ",(0,s.jsx)(n.code,{children:"rating?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"references?"}),": { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"assistant"'})," ; ",(0,s.jsx)(n.code,{children:"userComment?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-89",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/mongodbConversations.ts#L166",children:"packages/mongodb-chatbot-server/src/services/mongodbConversations.ts:166"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"createmessagefromopenaichatmessage",children:"createMessageFromOpenAIChatMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"createMessageFromOpenAIChatMessage"}),"(",(0,s.jsx)(n.code,{children:"chatMessage"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Create a ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:"Message"})," object from the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#openaichatmessage",children:"OpenAiChatMessage"})," object."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-12",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"chatMessage"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addsomemessageparams",children:(0,s.jsx)(n.code,{children:"AddSomeMessageParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-12",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-90",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/mongodbConversations.ts#L184",children:"packages/mongodb-chatbot-server/src/services/mongodbConversations.ts:184"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"errorhandler",children:"errorHandler"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"errorHandler"}),"(",(0,s.jsx)(n.code,{children:"err"}),", ",(0,s.jsx)(n.code,{children:"req"}),", ",(0,s.jsx)(n.code,{children:"res"}),", ",(0,s.jsx)(n.code,{children:"next"}),"): ",(0,s.jsx)(n.code,{children:"void"})]}),"\n",(0,s.jsxs)(n.p,{children:["General error handler. Called at usage of ",(0,s.jsx)(n.code,{children:"next()"})," in routes."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-13",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"err"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"any"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"req"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Request"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"ParsedQs"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"res"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Response"}),"<",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">, ",(0,s.jsx)(n.code,{children:"number"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"next"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"NextFunction"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-13",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-91",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"node_modules/@types/express-serve-static-core/index.d.ts:73"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"escapenewlines",children:"escapeNewlines"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"escapeNewlines"}),"(",(0,s.jsx)(n.code,{children:"str"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-14",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"str"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-14",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-92",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L5",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:5"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"extractfrontmatter",children:"extractFrontMatter"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"extractFrontMatter"}),"<",(0,s.jsx)(n.code,{children:"T"}),">(",(0,s.jsx)(n.code,{children:"text"}),", ",(0,s.jsx)(n.code,{children:"language?"}),", ",(0,s.jsx)(n.code,{children:"delimiter?"}),"): ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"This function extracts frontmatter from a string.\nThe generic type does not validate that the frontmatter\nconforms to the type. It just provides the type\nfor developer convenience."}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-6",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-15",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"text"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"language?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"delimiter?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-15",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Object"})}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"body"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"metadata?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-93",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/extractFrontMatter.d.ts:7"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filterdefined",children:"filterDefined"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"filterDefined"}),"<",(0,s.jsx)(n.code,{children:"T"}),">(",(0,s.jsx)(n.code,{children:"array"}),"): ",(0,s.jsx)(n.code,{children:"Exclude"}),"<",(0,s.jsx)(n.code,{children:"T"}),", ",(0,s.jsx)(n.code,{children:"undefined"}),">[]"]}),"\n",(0,s.jsx)(n.p,{children:"Given an array of possibly undefined T, return those that are defined."}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-7",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(n.tbody,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-16",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"array"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"T"}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-16",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Exclude"}),"<",(0,s.jsx)(n.code,{children:"T"}),", ",(0,s.jsx)(n.code,{children:"undefined"}),">[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-94",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/arrayFilters.d.ts:8"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filterfulfilled",children:"filterFulfilled"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"filterFulfilled"}),"<",(0,s.jsx)(n.code,{children:"T"}),">(",(0,s.jsx)(n.code,{children:"array"}),"): ",(0,s.jsx)(n.code,{children:"PromiseFulfilledResult"}),"<",(0,s.jsx)(n.code,{children:"T"}),">[]"]}),"\n",(0,s.jsx)(n.p,{children:"Given an array of PromiseSettledResults, return those that are fulfilled as PromiseFulfilledResults."}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-8",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(n.tbody,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-17",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"array"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"PromiseSettledResult"}),"<",(0,s.jsx)(n.code,{children:"T"}),">[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-17",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"PromiseFulfilledResult"}),"<",(0,s.jsx)(n.code,{children:"T"}),">[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-95",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/arrayFilters.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filteronlysystemprompt",children:"filterOnlySystemPrompt"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"filterOnlySystemPrompt"}),"(",(0,s.jsx)(n.code,{children:"conversation"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]>"]}),"\n",(0,s.jsx)(n.p,{children:"Only include the initial system prompt."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-18",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversation"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,s.jsx)(n.code,{children:"Conversation"})}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})}),">"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-18",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-96",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/FilterPreviousMessages.ts#L9",children:"packages/mongodb-chatbot-server/src/processors/FilterPreviousMessages.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"includechunksformaxtokenspossible",children:"includeChunksForMaxTokensPossible"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"includeChunksForMaxTokensPossible"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]"]}),"\n",(0,s.jsx)(n.p,{children:"This function returns the chunks that can fit in the maxTokens.\nIt limits the number of tokens that are sent to the LLM."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-19",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"content"})]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"maxTokens"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-19",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-97",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L202",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:202"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"ispageformat",children:"isPageFormat"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"isPageFormat"}),"(",(0,s.jsx)(n.code,{children:"str"}),'): str is "txt" | "md" | "mdx" | "restructuredtext" | "csv" | "json" | "yaml" | "toml" | "xml" | "openapi-yaml" | "openapi-json" | "graphql" | "c" | "cpp" | "csharp" | "go" | "html" | "java" | "javascript" | "kotlin" | "latex" | "objective-c" | "php" | "python" | "ruby" | "rust" | "scala" | "shell" | "swift" | "typescript"']}),"\n",(0,s.jsx)(n.p,{children:"Type guard to check if a string is a canonical page format."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-20",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"str"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-20",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:'str is "txt" | "md" | "mdx" | "restructuredtext" | "csv" | "json" | "yaml" | "toml" | "xml" | "openapi-yaml" | "openapi-json" | "graphql" | "c" | "cpp" | "csharp" | "go" | "html" | "java" | "javascript" | "kotlin" | "latex" | "objective-c" | "php" | "python" | "ruby" | "rust" | "scala" | "shell" | "swift" | "typescript"'}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-98",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/PageFormat.d.ts:19"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeapp",children:"makeApp"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeApp"}),"(",(0,s.jsx)(n.code,{children:"config"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Express"}),">"]}),"\n",(0,s.jsx)(n.p,{children:"Constructor function to make the Express.js app."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-21",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"config"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/AppConfig",children:(0,s.jsx)(n.code,{children:"AppConfig"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-21",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Express"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-99",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/app.ts#L115",children:"packages/mongodb-chatbot-server/src/app.ts:115"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeboostonatlassearchfilter",children:"makeBoostOnAtlasSearchFilter"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeBoostOnAtlasSearchFilter"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/SearchBooster",children:(0,s.jsx)(n.code,{children:"SearchBooster"})})]}),"\n",(0,s.jsx)(n.p,{children:"Boost certain results in search results from Atlas Search."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-22",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MakeBoostOnAtlasSearchFilterArgs"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-22",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/SearchBooster",children:(0,s.jsx)(n.code,{children:"SearchBooster"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-100",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeBoostOnAtlasSearchFilter.ts#L37",children:"packages/mongodb-chatbot-server/src/processors/makeBoostOnAtlasSearchFilter.ts:37"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeconversationsrouter",children:"makeConversationsRouter"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeConversationsRouter"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Router"})]}),"\n",(0,s.jsx)(n.p,{children:"Constructor function to make the /conversations/* Express.js router."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-23",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterParams",children:(0,s.jsx)(n.code,{children:"ConversationsRouterParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-23",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Router"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-101",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L217",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:217"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedatastreamer",children:"makeDataStreamer"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDataStreamer"}),"(): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:(0,s.jsx)(n.code,{children:"DataStreamer"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Create a ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:"DataStreamer"})," that streams data to the client."]}),"\n",(0,s.jsx)(n.h4,{id:"returns-24",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:(0,s.jsx)(n.code,{children:"DataStreamer"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-102",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L116",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:116"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedefaultfindcontent",children:"makeDefaultFindContent"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDefaultFindContent"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentfunc",children:(0,s.jsx)(n.code,{children:"FindContentFunc"})})]}),"\n",(0,s.jsx)(n.p,{children:"Basic implementation of FindContentFunc with search boosters."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-24",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#makedefaultfindcontentfuncargs",children:(0,s.jsx)(n.code,{children:"MakeDefaultFindContentFuncArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-25",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentfunc",children:(0,s.jsx)(n.code,{children:"FindContentFunc"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-103",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeDefaultFindContent.ts#L19",children:"packages/mongodb-chatbot-server/src/processors/makeDefaultFindContent.ts:19"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedefaultfindverifiedanswer",children:"makeDefaultFindVerifiedAnswer"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDefaultFindVerifiedAnswer"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerfunc",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerFunc"})})]}),"\n",(0,s.jsx)(n.p,{children:"Basic implementation of FindVerifiedAnswerFunc."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-25",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#makedefaultfindverifiedanswerfuncargs",children:(0,s.jsx)(n.code,{children:"MakeDefaultFindVerifiedAnswerFuncArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-26",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerfunc",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerFunc"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-104",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeDefaultFindVerifiedAnswer.ts#L17",children:"packages/mongodb-chatbot-server/src/processors/makeDefaultFindVerifiedAnswer.ts:17"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedefaultreferencelinks",children:"makeDefaultReferenceLinks"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDefaultReferenceLinks"}),"(",(0,s.jsx)(n.code,{children:"chunks"}),"): { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[]"]}),"\n",(0,s.jsxs)(n.p,{children:["The default reference format returns the following for chunks from ",(0,s.jsx)(n.em,{children:"unique"})," pages:"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"{\n title: chunk.metadata.pageTitle ?? chunk.url, // if title doesn't exist, just put url\n url: chunk.url // this always exists\n}\n"})}),"\n",(0,s.jsx)(n.h4,{id:"parameters-26",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"chunks"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-27",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:["{ ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-105",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/MakeReferenceLinksFunc.ts#L6",children:"packages/mongodb-chatbot-server/src/processors/MakeReferenceLinksFunc.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makefilternpreviousmessages",children:"makeFilterNPreviousMessages"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeFilterNPreviousMessages"}),"(",(0,s.jsx)(n.code,{children:"n"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#filterpreviousmessages",children:(0,s.jsx)(n.code,{children:"FilterPreviousMessages"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Creates a filter that only includes the previous n messages in the conversations.\nThe first message in the conversation ",(0,s.jsx)(n.strong,{children:"must"})," be the system prompt."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-27",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"n"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Number of previous messages to include."})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-28",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#filterpreviousmessages",children:(0,s.jsx)(n.code,{children:"FilterPreviousMessages"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-106",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeFilterNPreviousMessages.ts#L8",children:"packages/mongodb-chatbot-server/src/processors/makeFilterNPreviousMessages.ts:8"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makehandletimeoutmiddleware",children:"makeHandleTimeoutMiddleware"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeHandleTimeoutMiddleware"}),"(",(0,s.jsx)(n.code,{children:"apiTimeout"}),"): (",(0,s.jsx)(n.code,{children:"req"}),": ",(0,s.jsx)(n.code,{children:"Request"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"ParsedQs"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>, ",(0,s.jsx)(n.code,{children:"res"}),": ",(0,s.jsx)(n.code,{children:"Response"}),"<",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>, ",(0,s.jsx)(n.code,{children:"next"}),": ",(0,s.jsx)(n.code,{children:"NextFunction"}),") => ",(0,s.jsx)(n.code,{children:"void"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-28",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"apiTimeout"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-29",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"fn"})}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"req"}),", ",(0,s.jsx)(n.code,{children:"res"}),", ",(0,s.jsx)(n.code,{children:"next"}),"): ",(0,s.jsx)(n.code,{children:"void"})]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-29",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"req"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Request"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"ParsedQs"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"res"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Response"}),"<",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"next"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"NextFunction"})})]})]})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-30",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-107",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/app.ts#L93",children:"packages/mongodb-chatbot-server/src/app.ts:93"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makelangchainembedder",children:"makeLangChainEmbedder"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeLangChainEmbedder"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Constructor for implementation of the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:"Embedder"})," using a LangChain.js ",(0,s.jsx)(n.a,{href:"https://js.langchain.com/docs/modules/data_connection/text_embedding/",children:(0,s.jsx)(n.code,{children:"Embeddings"})})," class."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-30",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#makelangchainembedderparams",children:(0,s.jsx)(n.code,{children:"MakeLangChainEmbedderParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-31",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-108",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/LangChainEmbedder.d.ts:13"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makelangchainchatllm",children:"makeLangchainChatLlm"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeLangchainChatLlm"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:(0,s.jsx)(n.code,{children:"ChatLlm"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Use any Langchain JS ",(0,s.jsx)(n.a,{href:"https://js.langchain.com/docs/modules/model_io/chat/",children:(0,s.jsx)(n.code,{children:"ChatModel"})}),"\nto talk to an LLM."]}),"\n",(0,s.jsx)(n.p,{children:"Note: This ChatLLM does not currently support tool calling."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-31",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps",children:(0,s.jsx)(n.code,{children:"MakeLangchainChatLlmProps"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-32",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:(0,s.jsx)(n.code,{children:"ChatLlm"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-109",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts#L23",children:"packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts:23"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemongodbconversationsservice",children:"makeMongoDbConversationsService"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMongoDbConversationsService"}),"(",(0,s.jsx)(n.code,{children:"database"}),", ",(0,s.jsx)(n.code,{children:"conversationConstants?"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:(0,s.jsx)(n.code,{children:"ConversationsService"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Create ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:"ConversationsService"})," that uses MongoDB as a data store."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-32",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Default value"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"database"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Db"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"undefined"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversationConstants"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationConstants",children:(0,s.jsx)(n.code,{children:"ConversationConstants"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"defaultConversationConstants"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-33",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:(0,s.jsx)(n.code,{children:"ConversationsService"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-110",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/mongodbConversations.ts#L25",children:"packages/mongodb-chatbot-server/src/services/mongodbConversations.ts:25"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemongodbembeddedcontentstore",children:"makeMongoDbEmbeddedContentStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMongoDbEmbeddedContentStore"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embeddedcontentstore",children:(0,s.jsx)(n.code,{children:"EmbeddedContentStore"})})," & ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#databaseconnection",children:(0,s.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-33",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MakeMongoDbDatabaseConnectionParams"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-34",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embeddedcontentstore",children:(0,s.jsx)(n.code,{children:"EmbeddedContentStore"})})," & ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#databaseconnection",children:(0,s.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-111",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/MongoDbEmbeddedContentStore.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemongodbpagestore",children:"makeMongoDbPageStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMongoDbPageStore"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#mongodbpagestore",children:(0,s.jsx)(n.code,{children:"MongoDbPageStore"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Data store for ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:"Page"})," objects using MongoDB."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-34",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MakeMongoDbDatabaseConnectionParams"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-35",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#mongodbpagestore",children:(0,s.jsx)(n.code,{children:"MongoDbPageStore"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-112",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/MongoDbPageStore.d.ts:12"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemongodbverifiedanswerstore",children:"makeMongoDbVerifiedAnswerStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMongoDbVerifiedAnswerStore"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#verifiedanswerstore",children:(0,s.jsx)(n.code,{children:"VerifiedAnswerStore"})})," & ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#databaseconnection",children:(0,s.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-35",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"MakeMongoDbDatabaseConnectionParams"})," & { ",(0,s.jsx)(n.code,{children:"collectionName"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-36",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#verifiedanswerstore",children:(0,s.jsx)(n.code,{children:"VerifiedAnswerStore"})})," & ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#databaseconnection",children:(0,s.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-113",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/MongoDbVerifiedAnswerStore.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeopenaichatllm",children:"makeOpenAiChatLlm"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeOpenAiChatLlm"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Required"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:(0,s.jsx)(n.code,{children:"ChatLlm"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Construct the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:"ChatLlm"})," service using the ",(0,s.jsx)(n.a,{href:"https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart?tabs=command-line&pivots=programming-language-studio",children:"OpenAI ChatGPT API"}),".\nThe ",(0,s.jsx)(n.code,{children:"ChatLlm"})," wraps the ",(0,s.jsx)(n.a,{href:"https://www.npmjs.com/package/@azure/openai",children:"@azure/openai"})," package."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-36",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams",children:(0,s.jsx)(n.code,{children:"MakeOpenAiChatLlmParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-37",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Required"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:(0,s.jsx)(n.code,{children:"ChatLlm"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-114",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts#L31",children:"packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts:31"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeopenaiembedder",children:"makeOpenAiEmbedder"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeOpenAiEmbedder"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Constructor for implementation of the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:"Embedder"})," using ",(0,s.jsx)(n.a,{href:"https://platform.openai.com/docs/guides/embeddings",children:"OpenAI\nEmbeddings API"}),"."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-37",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#makeopenaiembedderargs",children:(0,s.jsx)(n.code,{children:"MakeOpenAiEmbedderArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-38",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-115",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/OpenAiEmbedder.d.ts:22"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeraggenerateuserprompt",children:"makeRagGenerateUserPrompt"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeRagGenerateUserPrompt"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFunc"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Construct a ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:"GenerateUserPromptFunc"})," function\nthat uses retrieval augmented generation (RAG) to generate the user prompt\nand return references to use in the answer.\nThe returned RAG user prompt generator performs the following steps:"]}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"Preprocess the user's message using the query preprocessor."}),"\n",(0,s.jsx)(n.li,{children:"Find content using vector search."}),"\n",(0,s.jsx)(n.li,{children:"Removes any chunks that would exceed the max context tokens."}),"\n",(0,s.jsx)(n.li,{children:"Generate the user message using the make user message function."}),"\n",(0,s.jsx)(n.li,{children:"Return the user message and references."}),"\n"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-38",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams",children:(0,s.jsx)(n.code,{children:"MakeRagGenerateUserPromptParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-39",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFunc"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-116",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L64",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:64"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makestaticsite",children:"makeStaticSite"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeStaticSite"}),"(",(0,s.jsx)(n.code,{children:"app"}),"): ",(0,s.jsx)(n.code,{children:"Express"})]}),"\n",(0,s.jsxs)(n.p,{children:["Middleware that serves the static site from the root path\n(",(0,s.jsx)(n.code,{children:"GET https://my-site.com/"}),")."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-39",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"app"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Express"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-40",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Express"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-117",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/staticSite.ts#L8",children:"packages/mongodb-chatbot-server/src/routes/staticSite.ts:8"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"maketypechatjsontranslatefunc",children:"makeTypeChatJsonTranslateFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeTypeChatJsonTranslateFunc"}),"<",(0,s.jsx)(n.code,{children:"SchemaType"}),">(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): (",(0,s.jsx)(n.code,{children:"prompt"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"SchemaType"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-9",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"SchemaType"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,s.jsx)(n.code,{children:"object"})]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-40",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#maketypechatjsontranslatefuncargs",children:(0,s.jsx)(n.code,{children:"MakeTypeChatJsonTranslateFuncArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-41",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"fn"})}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"prompt"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"SchemaType"}),">"]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-41",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"prompt"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-42",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"SchemaType"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-118",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/TypeChatJsonTranslateFunc.d.ts:29"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeverifiedanswergenerateuserprompt",children:"makeVerifiedAnswerGenerateUserPrompt"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeVerifiedAnswerGenerateUserPrompt"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFunc"})})]}),"\n",(0,s.jsx)(n.p,{children:"Constructs a GenerateUserPromptFunc that searches for verified answers for the\nuser query. If no verified answer can be found for the given query, the\nonNoVerifiedAnswerFound GenerateUserPromptFunc is called instead."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-42",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams",children:(0,s.jsx)(n.code,{children:"MakeVerifiedAnswerGenerateUserPromptParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-43",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFunc"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-119",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts#L21",children:"packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pageformat-1",children:"pageFormat"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"pageFormat"}),"(",(0,s.jsx)(n.code,{children:"str"}),", ",(0,s.jsx)(n.code,{children:"defaultPageFormat?"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pageformat",children:(0,s.jsx)(n.code,{children:"PageFormat"})})]}),"\n",(0,s.jsx)(n.p,{children:"Converts a string to a canonical page format. If the string is not a\nrecognized page format or a synonym for one, this returns a default\npage format."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-43",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"str"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"defaultPageFormat?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:'"txt"'})," | ",(0,s.jsx)(n.code,{children:'"md"'})," | ",(0,s.jsx)(n.code,{children:'"mdx"'})," | ",(0,s.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,s.jsx)(n.code,{children:'"csv"'})," | ",(0,s.jsx)(n.code,{children:'"json"'})," | ",(0,s.jsx)(n.code,{children:'"yaml"'})," | ",(0,s.jsx)(n.code,{children:'"toml"'})," | ",(0,s.jsx)(n.code,{children:'"xml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,s.jsx)(n.code,{children:'"graphql"'})," | ",(0,s.jsx)(n.code,{children:'"c"'})," | ",(0,s.jsx)(n.code,{children:'"cpp"'})," | ",(0,s.jsx)(n.code,{children:'"csharp"'})," | ",(0,s.jsx)(n.code,{children:'"go"'})," | ",(0,s.jsx)(n.code,{children:'"html"'})," | ",(0,s.jsx)(n.code,{children:'"java"'})," | ",(0,s.jsx)(n.code,{children:'"javascript"'})," | ",(0,s.jsx)(n.code,{children:'"kotlin"'})," | ",(0,s.jsx)(n.code,{children:'"latex"'})," | ",(0,s.jsx)(n.code,{children:'"objective-c"'})," | ",(0,s.jsx)(n.code,{children:'"php"'})," | ",(0,s.jsx)(n.code,{children:'"python"'})," | ",(0,s.jsx)(n.code,{children:'"ruby"'})," | ",(0,s.jsx)(n.code,{children:'"rust"'})," | ",(0,s.jsx)(n.code,{children:'"scala"'})," | ",(0,s.jsx)(n.code,{children:'"shell"'})," | ",(0,s.jsx)(n.code,{children:'"swift"'})," | ",(0,s.jsx)(n.code,{children:'"typescript"'})]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-44",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pageformat",children:(0,s.jsx)(n.code,{children:"PageFormat"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-120",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/PageFormat.d.ts:25"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"removefrontmatter",children:"removeFrontMatter"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"removeFrontMatter"}),"(",(0,s.jsx)(n.code,{children:"content"}),", ",(0,s.jsx)(n.code,{children:"options?"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-44",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"options?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"FrontMatterOptions"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-45",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-121",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/removeFrontMatter.d.ts:2"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"reqhandler",children:"reqHandler"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"reqHandler"}),"(",(0,s.jsx)(n.code,{children:"req"}),", ",(0,s.jsx)(n.code,{children:"res"}),", ",(0,s.jsx)(n.code,{children:"next"}),"): ",(0,s.jsx)(n.code,{children:"void"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-45",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"req"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Request"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"ParsedQs"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"res"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Response"}),"<",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">, ",(0,s.jsx)(n.code,{children:"number"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"next"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"NextFunction"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-46",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-122",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"node_modules/@types/express-serve-static-core/index.d.ts:60"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"requirerequestorigin",children:"requireRequestOrigin"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"requireRequestOrigin"}),"(): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsmiddleware",children:(0,s.jsx)(n.code,{children:"ConversationsMiddleware"})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-47",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsmiddleware",children:(0,s.jsx)(n.code,{children:"ConversationsMiddleware"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-123",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/middleware/requireRequestOrigin.ts#L6",children:"packages/mongodb-chatbot-server/src/middleware/requireRequestOrigin.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"requirevalidipaddress",children:"requireValidIpAddress"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"requireValidIpAddress"}),"(): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsmiddleware",children:(0,s.jsx)(n.code,{children:"ConversationsMiddleware"})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-48",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsmiddleware",children:(0,s.jsx)(n.code,{children:"ConversationsMiddleware"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-124",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/middleware/requireValidIpAddress.ts#L5",children:"packages/mongodb-chatbot-server/src/middleware/requireValidIpAddress.ts:5"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"updatefrontmatter",children:"updateFrontMatter"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"updateFrontMatter"}),"(",(0,s.jsx)(n.code,{children:"text"}),", ",(0,s.jsx)(n.code,{children:"metadataIn"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-46",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"text"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"metadataIn"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-49",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-125",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/updateFrontMatter.d.ts:1"})]})}function o(e={}){const{wrapper:n}={...(0,d.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>c,a:()=>i});var s=r(67294);const d={},t=s.createContext(d);function i(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/9f213c28.9df723b9.js b/assets/js/9f213c28.9df723b9.js new file mode 100644 index 000000000..8df1c852e --- /dev/null +++ b/assets/js/9f213c28.9df723b9.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8686],{82997:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>o,frontMatter:()=>t,metadata:()=>l,toc:()=>h});var s=r(85893),d=r(11151);const t={id:"modules",title:"mongodb-chatbot-server",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},i=void 0,l={id:"reference/server/modules",title:"mongodb-chatbot-server",description:"Interfaces",source:"@site/docs/reference/server/modules.md",sourceDirName:"reference/server",slug:"/reference/server/modules",permalink:"/chatbot/reference/server/modules",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:.5,frontMatter:{id:"modules",title:"mongodb-chatbot-server",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},sidebar:"main",previous:{title:"Readme",permalink:"/chatbot/reference/server/"},next:{title:"AppConfig",permalink:"/chatbot/reference/server/interfaces/AppConfig"}},c={},h=[{value:"Interfaces",id:"interfaces",level:2},{value:"Type Aliases",id:"type-aliases",level:2},{value:"AddAssistantMessageParams",id:"addassistantmessageparams",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"AddConversationMessageParams",id:"addconversationmessageparams",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"AddCustomDataFunc",id:"addcustomdatafunc",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-2",level:4},{value:"AddFunctionMessageParams",id:"addfunctionmessageparams",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"AddManyConversationMessagesParams",id:"addmanyconversationmessagesparams",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"AddSomeMessageParams",id:"addsomemessageparams",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"AddSystemMessageParams",id:"addsystemmessageparams",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"AddUserMessageParams",id:"addusermessageparams",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"AssistantMessage",id:"assistantmessage",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"AssistantMessageMetadata",id:"assistantmessagemetadata",level:3},{value:"Index signature",id:"index-signature",level:4},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"ConversationCustomData",id:"conversationcustomdata",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"ConversationsMiddleware",id:"conversationsmiddleware",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"ConversationsRouterResponse",id:"conversationsrouterresponse",level:3},{value:"Defined in",id:"defined-in-12",level:4},{value:"CreateConversationParams",id:"createconversationparams",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"DatabaseConnection",id:"databaseconnection",level:3},{value:"Type declaration",id:"type-declaration-5",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"DeltaStreamEvent",id:"deltastreamevent",level:3},{value:"Defined in",id:"defined-in-15",level:4},{value:"EmbedArgs",id:"embedargs",level:3},{value:"Type declaration",id:"type-declaration-6",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"EmbedResult",id:"embedresult",level:3},{value:"Type declaration",id:"type-declaration-7",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"EmbeddedContentStore",id:"embeddedcontentstore",level:3},{value:"Defined in",id:"defined-in-18",level:4},{value:"Embedder",id:"embedder",level:3},{value:"Type declaration",id:"type-declaration-8",level:4},{value:"Defined in",id:"defined-in-19",level:4},{value:"FilterPreviousMessages",id:"filterpreviousmessages",level:3},{value:"Type declaration",id:"type-declaration-9",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-20",level:4},{value:"FindContentFunc",id:"findcontentfunc",level:3},{value:"Type declaration",id:"type-declaration-10",level:4},{value:"Parameters",id:"parameters-2",level:5},{value:"Returns",id:"returns-2",level:5},{value:"Defined in",id:"defined-in-21",level:4},{value:"FindContentFuncArgs",id:"findcontentfuncargs",level:3},{value:"Type declaration",id:"type-declaration-11",level:4},{value:"Defined in",id:"defined-in-22",level:4},{value:"FindContentResult",id:"findcontentresult",level:3},{value:"Type declaration",id:"type-declaration-12",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"FindNearestNeighborsOptions",id:"findnearestneighborsoptions",level:3},{value:"Type declaration",id:"type-declaration-13",level:4},{value:"Defined in",id:"defined-in-24",level:4},{value:"FindVerifiedAnswerFunc",id:"findverifiedanswerfunc",level:3},{value:"Type declaration",id:"type-declaration-14",level:4},{value:"Parameters",id:"parameters-3",level:5},{value:"Returns",id:"returns-3",level:5},{value:"Defined in",id:"defined-in-25",level:4},{value:"FindVerifiedAnswerFuncArgs",id:"findverifiedanswerfuncargs",level:3},{value:"Type declaration",id:"type-declaration-15",level:4},{value:"Defined in",id:"defined-in-26",level:4},{value:"FindVerifiedAnswerResult",id:"findverifiedanswerresult",level:3},{value:"Type declaration",id:"type-declaration-16",level:4},{value:"Defined in",id:"defined-in-27",level:4},{value:"FinishedStreamEvent",id:"finishedstreamevent",level:3},{value:"Defined in",id:"defined-in-28",level:4},{value:"FunctionMessage",id:"functionmessage",level:3},{value:"Defined in",id:"defined-in-29",level:4},{value:"GenerateUserPromptFunc",id:"generateuserpromptfunc",level:3},{value:"Type declaration",id:"type-declaration-17",level:4},{value:"Parameters",id:"parameters-4",level:5},{value:"Returns",id:"returns-4",level:5},{value:"Defined in",id:"defined-in-30",level:4},{value:"GenerateUserPromptFuncParams",id:"generateuserpromptfuncparams",level:3},{value:"Type declaration",id:"type-declaration-18",level:4},{value:"Defined in",id:"defined-in-31",level:4},{value:"LoadPagesArgs",id:"loadpagesargs",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Type declaration",id:"type-declaration-19",level:4},{value:"Defined in",id:"defined-in-32",level:4},{value:"MakeDefaultFindContentFuncArgs",id:"makedefaultfindcontentfuncargs",level:3},{value:"Type declaration",id:"type-declaration-20",level:4},{value:"Defined in",id:"defined-in-33",level:4},{value:"MakeDefaultFindVerifiedAnswerFuncArgs",id:"makedefaultfindverifiedanswerfuncargs",level:3},{value:"Type declaration",id:"type-declaration-21",level:4},{value:"Defined in",id:"defined-in-34",level:4},{value:"MakeLangChainEmbedderParams",id:"makelangchainembedderparams",level:3},{value:"Type declaration",id:"type-declaration-22",level:4},{value:"Defined in",id:"defined-in-35",level:4},{value:"MakeOpenAiEmbedderArgs",id:"makeopenaiembedderargs",level:3},{value:"Type declaration",id:"type-declaration-23",level:4},{value:"Defined in",id:"defined-in-36",level:4},{value:"MakeReferenceLinksFunc",id:"makereferencelinksfunc",level:3},{value:"Type declaration",id:"type-declaration-24",level:4},{value:"Parameters",id:"parameters-5",level:5},{value:"Returns",id:"returns-5",level:5},{value:"Defined in",id:"defined-in-37",level:4},{value:"MakeTypeChatJsonTranslateFuncArgs",id:"maketypechatjsontranslatefuncargs",level:3},{value:"Type declaration",id:"type-declaration-25",level:4},{value:"Defined in",id:"defined-in-38",level:4},{value:"MakeUserMessageFunc",id:"makeusermessagefunc",level:3},{value:"Type declaration",id:"type-declaration-26",level:4},{value:"Parameters",id:"parameters-6",level:5},{value:"Returns",id:"returns-6",level:5},{value:"Defined in",id:"defined-in-39",level:4},{value:"Message",id:"message",level:3},{value:"Defined in",id:"defined-in-40",level:4},{value:"MessageBase",id:"messagebase",level:3},{value:"Type declaration",id:"type-declaration-27",level:4},{value:"Defined in",id:"defined-in-41",level:4},{value:"MetadataStreamEvent",id:"metadatastreamevent",level:3},{value:"Defined in",id:"defined-in-42",level:4},{value:"MongoDbPageStore",id:"mongodbpagestore",level:3},{value:"Defined in",id:"defined-in-43",level:4},{value:"OpenAIChatCompletionWithoutUsage",id:"openaichatcompletionwithoutusage",level:3},{value:"Defined in",id:"defined-in-44",level:4},{value:"OpenAiAwaitedResponse",id:"openaiawaitedresponse",level:3},{value:"Defined in",id:"defined-in-45",level:4},{value:"OpenAiChatMessage",id:"openaichatmessage",level:3},{value:"Defined in",id:"defined-in-46",level:4},{value:"OpenAiMessageRole",id:"openaimessagerole",level:3},{value:"Defined in",id:"defined-in-47",level:4},{value:"OpenAiStreamingResponse",id:"openaistreamingresponse",level:3},{value:"Defined in",id:"defined-in-48",level:4},{value:"Page",id:"page",level:3},{value:"Type declaration",id:"type-declaration-28",level:4},{value:"Defined in",id:"defined-in-49",level:4},{value:"PageAction",id:"pageaction",level:3},{value:"Defined in",id:"defined-in-50",level:4},{value:"PageFormat",id:"pageformat",level:3},{value:"Defined in",id:"defined-in-51",level:4},{value:"PageMetadata",id:"pagemetadata",level:3},{value:"Index signature",id:"index-signature-1",level:4},{value:"Type declaration",id:"type-declaration-29",level:4},{value:"Defined in",id:"defined-in-52",level:4},{value:"PageStore",id:"pagestore",level:3},{value:"Type declaration",id:"type-declaration-30",level:4},{value:"Defined in",id:"defined-in-53",level:4},{value:"PersistedPage",id:"persistedpage",level:3},{value:"Defined in",id:"defined-in-54",level:4},{value:"ProcessingStreamEvent",id:"processingstreamevent",level:3},{value:"Defined in",id:"defined-in-55",level:4},{value:"QueryPreprocessorFunc",id:"querypreprocessorfunc",level:3},{value:"Type parameters",id:"type-parameters-1",level:4},{value:"Type declaration",id:"type-declaration-31",level:4},{value:"Parameters",id:"parameters-7",level:5},{value:"Returns",id:"returns-7",level:5},{value:"Defined in",id:"defined-in-56",level:4},{value:"QueryPreprocessorResult",id:"querypreprocessorresult",level:3},{value:"Type declaration",id:"type-declaration-32",level:4},{value:"Defined in",id:"defined-in-57",level:4},{value:"QueryProcessorFuncParams",id:"queryprocessorfuncparams",level:3},{value:"Type declaration",id:"type-declaration-33",level:4},{value:"Defined in",id:"defined-in-58",level:4},{value:"Question",id:"question",level:3},{value:"Defined in",id:"defined-in-59",level:4},{value:"Reference",id:"reference",level:3},{value:"Defined in",id:"defined-in-60",level:4},{value:"References",id:"references",level:3},{value:"Defined in",id:"defined-in-61",level:4},{value:"ReferencesStreamEvent",id:"referencesstreamevent",level:3},{value:"Defined in",id:"defined-in-62",level:4},{value:"SomeMessage",id:"somemessage",level:3},{value:"Defined in",id:"defined-in-63",level:4},{value:"SomeStreamEvent",id:"somestreamevent",level:3},{value:"Defined in",id:"defined-in-64",level:4},{value:"SystemMessage",id:"systemmessage",level:3},{value:"Defined in",id:"defined-in-65",level:4},{value:"SystemPrompt",id:"systemprompt",level:3},{value:"Defined in",id:"defined-in-66",level:4},{value:"ToolCallDirective",id:"toolcalldirective",level:3},{value:"Defined in",id:"defined-in-67",level:4},{value:"UserMessage",id:"usermessage",level:3},{value:"Defined in",id:"defined-in-68",level:4},{value:"VectorStore",id:"vectorstore",level:3},{value:"Type parameters",id:"type-parameters-2",level:4},{value:"Type declaration",id:"type-declaration-34",level:4},{value:"Defined in",id:"defined-in-69",level:4},{value:"VerifiedAnswer",id:"verifiedanswer",level:3},{value:"Defined in",id:"defined-in-70",level:4},{value:"VerifiedAnswerEventData",id:"verifiedanswereventdata",level:3},{value:"Defined in",id:"defined-in-71",level:4},{value:"VerifiedAnswerStore",id:"verifiedanswerstore",level:3},{value:"Defined in",id:"defined-in-72",level:4},{value:"WithFilterAndK",id:"withfilterandk",level:3},{value:"Type parameters",id:"type-parameters-3",level:4},{value:"Defined in",id:"defined-in-73",level:4},{value:"WithScore",id:"withscore",level:3},{value:"Type parameters",id:"type-parameters-4",level:4},{value:"Defined in",id:"defined-in-74",level:4},{value:"Variables",id:"variables",level:2},{value:"CORE_ENV_VARS",id:"core_env_vars",level:3},{value:"Type declaration",id:"type-declaration-35",level:4},{value:"Defined in",id:"defined-in-75",level:4},{value:"CUSTOM_REQUEST_ORIGIN_HEADER",id:"custom_request_origin_header",level:3},{value:"Defined in",id:"defined-in-76",level:4},{value:"DEFAULT_API_PREFIX",id:"default_api_prefix",level:3},{value:"Defined in",id:"defined-in-77",level:4},{value:"DEFAULT_MAX_REQUEST_TIMEOUT_MS",id:"default_max_request_timeout_ms",level:3},{value:"Defined in",id:"defined-in-78",level:4},{value:"Question",id:"question-1",level:3},{value:"Defined in",id:"defined-in-79",level:4},{value:"Reference",id:"reference-1",level:3},{value:"Defined in",id:"defined-in-80",level:4},{value:"References",id:"references-1",level:3},{value:"Defined in",id:"defined-in-81",level:4},{value:"SomeExpressRequest",id:"someexpressrequest",level:3},{value:"Defined in",id:"defined-in-82",level:4},{value:"VerifiedAnswer",id:"verifiedanswer-1",level:3},{value:"Defined in",id:"defined-in-83",level:4},{value:"defaultConversationConstants",id:"defaultconversationconstants",level:3},{value:"Defined in",id:"defined-in-84",level:4},{value:"logger",id:"logger",level:3},{value:"Defined in",id:"defined-in-85",level:4},{value:"pageFormats",id:"pageformats",level:3},{value:"Defined in",id:"defined-in-86",level:4},{value:"rateLimitResponse",id:"ratelimitresponse",level:3},{value:"Type declaration",id:"type-declaration-36",level:4},{value:"Defined in",id:"defined-in-87",level:4},{value:"Functions",id:"functions",level:2},{value:"asPageFormat",id:"aspageformat",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-88",level:4},{value:"assertEnvVars",id:"assertenvvars",level:3},{value:"Type parameters",id:"type-parameters-5",level:4},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-89",level:4},{value:"createLoggerMessage",id:"createloggermessage",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-90",level:4},{value:"createMessage",id:"createmessage",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-91",level:4},{value:"createMessageFromOpenAIChatMessage",id:"createmessagefromopenaichatmessage",level:3},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-12",level:4},{value:"Defined in",id:"defined-in-92",level:4},{value:"errorHandler",id:"errorhandler",level:3},{value:"Parameters",id:"parameters-13",level:4},{value:"Returns",id:"returns-13",level:4},{value:"Defined in",id:"defined-in-93",level:4},{value:"escapeNewlines",id:"escapenewlines",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Defined in",id:"defined-in-94",level:4},{value:"extractFrontMatter",id:"extractfrontmatter",level:3},{value:"Type parameters",id:"type-parameters-6",level:4},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Defined in",id:"defined-in-95",level:4},{value:"filterDefined",id:"filterdefined",level:3},{value:"Type parameters",id:"type-parameters-7",level:4},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-16",level:4},{value:"Defined in",id:"defined-in-96",level:4},{value:"filterFulfilled",id:"filterfulfilled",level:3},{value:"Type parameters",id:"type-parameters-8",level:4},{value:"Parameters",id:"parameters-17",level:4},{value:"Returns",id:"returns-17",level:4},{value:"Defined in",id:"defined-in-97",level:4},{value:"filterOnlySystemPrompt",id:"filteronlysystemprompt",level:3},{value:"Parameters",id:"parameters-18",level:4},{value:"Returns",id:"returns-18",level:4},{value:"Defined in",id:"defined-in-98",level:4},{value:"includeChunksForMaxTokensPossible",id:"includechunksformaxtokenspossible",level:3},{value:"Parameters",id:"parameters-19",level:4},{value:"Returns",id:"returns-19",level:4},{value:"Defined in",id:"defined-in-99",level:4},{value:"isPageFormat",id:"ispageformat",level:3},{value:"Parameters",id:"parameters-20",level:4},{value:"Returns",id:"returns-20",level:4},{value:"Defined in",id:"defined-in-100",level:4},{value:"makeApp",id:"makeapp",level:3},{value:"Parameters",id:"parameters-21",level:4},{value:"Returns",id:"returns-21",level:4},{value:"Defined in",id:"defined-in-101",level:4},{value:"makeBoostOnAtlasSearchFilter",id:"makeboostonatlassearchfilter",level:3},{value:"Parameters",id:"parameters-22",level:4},{value:"Returns",id:"returns-22",level:4},{value:"Defined in",id:"defined-in-102",level:4},{value:"makeConversationsRouter",id:"makeconversationsrouter",level:3},{value:"Parameters",id:"parameters-23",level:4},{value:"Returns",id:"returns-23",level:4},{value:"Defined in",id:"defined-in-103",level:4},{value:"makeDataStreamer",id:"makedatastreamer",level:3},{value:"Returns",id:"returns-24",level:4},{value:"Defined in",id:"defined-in-104",level:4},{value:"makeDefaultFindContent",id:"makedefaultfindcontent",level:3},{value:"Parameters",id:"parameters-24",level:4},{value:"Returns",id:"returns-25",level:4},{value:"Defined in",id:"defined-in-105",level:4},{value:"makeDefaultFindVerifiedAnswer",id:"makedefaultfindverifiedanswer",level:3},{value:"Parameters",id:"parameters-25",level:4},{value:"Returns",id:"returns-26",level:4},{value:"Defined in",id:"defined-in-106",level:4},{value:"makeDefaultReferenceLinks",id:"makedefaultreferencelinks",level:3},{value:"Parameters",id:"parameters-26",level:4},{value:"Returns",id:"returns-27",level:4},{value:"Defined in",id:"defined-in-107",level:4},{value:"makeFilterNPreviousMessages",id:"makefilternpreviousmessages",level:3},{value:"Parameters",id:"parameters-27",level:4},{value:"Returns",id:"returns-28",level:4},{value:"Defined in",id:"defined-in-108",level:4},{value:"makeHandleTimeoutMiddleware",id:"makehandletimeoutmiddleware",level:3},{value:"Parameters",id:"parameters-28",level:4},{value:"Returns",id:"returns-29",level:4},{value:"Parameters",id:"parameters-29",level:5},{value:"Returns",id:"returns-30",level:5},{value:"Defined in",id:"defined-in-109",level:4},{value:"makeLangChainEmbedder",id:"makelangchainembedder",level:3},{value:"Parameters",id:"parameters-30",level:4},{value:"Returns",id:"returns-31",level:4},{value:"Defined in",id:"defined-in-110",level:4},{value:"makeLangchainChatLlm",id:"makelangchainchatllm",level:3},{value:"Parameters",id:"parameters-31",level:4},{value:"Returns",id:"returns-32",level:4},{value:"Defined in",id:"defined-in-111",level:4},{value:"makeMongoDbConversationsService",id:"makemongodbconversationsservice",level:3},{value:"Parameters",id:"parameters-32",level:4},{value:"Returns",id:"returns-33",level:4},{value:"Defined in",id:"defined-in-112",level:4},{value:"makeMongoDbEmbeddedContentStore",id:"makemongodbembeddedcontentstore",level:3},{value:"Parameters",id:"parameters-33",level:4},{value:"Returns",id:"returns-34",level:4},{value:"Defined in",id:"defined-in-113",level:4},{value:"makeMongoDbPageStore",id:"makemongodbpagestore",level:3},{value:"Parameters",id:"parameters-34",level:4},{value:"Returns",id:"returns-35",level:4},{value:"Defined in",id:"defined-in-114",level:4},{value:"makeMongoDbVerifiedAnswerStore",id:"makemongodbverifiedanswerstore",level:3},{value:"Parameters",id:"parameters-35",level:4},{value:"Returns",id:"returns-36",level:4},{value:"Defined in",id:"defined-in-115",level:4},{value:"makeOpenAiChatLlm",id:"makeopenaichatllm",level:3},{value:"Parameters",id:"parameters-36",level:4},{value:"Returns",id:"returns-37",level:4},{value:"Defined in",id:"defined-in-116",level:4},{value:"makeOpenAiEmbedder",id:"makeopenaiembedder",level:3},{value:"Parameters",id:"parameters-37",level:4},{value:"Returns",id:"returns-38",level:4},{value:"Defined in",id:"defined-in-117",level:4},{value:"makeRagGenerateUserPrompt",id:"makeraggenerateuserprompt",level:3},{value:"Parameters",id:"parameters-38",level:4},{value:"Returns",id:"returns-39",level:4},{value:"Defined in",id:"defined-in-118",level:4},{value:"makeStaticSite",id:"makestaticsite",level:3},{value:"Parameters",id:"parameters-39",level:4},{value:"Returns",id:"returns-40",level:4},{value:"Defined in",id:"defined-in-119",level:4},{value:"makeTypeChatJsonTranslateFunc",id:"maketypechatjsontranslatefunc",level:3},{value:"Type parameters",id:"type-parameters-9",level:4},{value:"Parameters",id:"parameters-40",level:4},{value:"Returns",id:"returns-41",level:4},{value:"Parameters",id:"parameters-41",level:5},{value:"Returns",id:"returns-42",level:5},{value:"Defined in",id:"defined-in-120",level:4},{value:"makeVerifiedAnswerGenerateUserPrompt",id:"makeverifiedanswergenerateuserprompt",level:3},{value:"Parameters",id:"parameters-42",level:4},{value:"Returns",id:"returns-43",level:4},{value:"Defined in",id:"defined-in-121",level:4},{value:"pageFormat",id:"pageformat-1",level:3},{value:"Parameters",id:"parameters-43",level:4},{value:"Returns",id:"returns-44",level:4},{value:"Defined in",id:"defined-in-122",level:4},{value:"removeFrontMatter",id:"removefrontmatter",level:3},{value:"Parameters",id:"parameters-44",level:4},{value:"Returns",id:"returns-45",level:4},{value:"Defined in",id:"defined-in-123",level:4},{value:"reqHandler",id:"reqhandler",level:3},{value:"Parameters",id:"parameters-45",level:4},{value:"Returns",id:"returns-46",level:4},{value:"Defined in",id:"defined-in-124",level:4},{value:"requireRequestOrigin",id:"requirerequestorigin",level:3},{value:"Returns",id:"returns-47",level:4},{value:"Defined in",id:"defined-in-125",level:4},{value:"requireValidIpAddress",id:"requirevalidipaddress",level:3},{value:"Returns",id:"returns-48",level:4},{value:"Defined in",id:"defined-in-126",level:4},{value:"updateFrontMatter",id:"updatefrontmatter",level:3},{value:"Parameters",id:"parameters-46",level:4},{value:"Returns",id:"returns-49",level:4},{value:"Defined in",id:"defined-in-127",level:4}];function a(e){const n={a:"a",code:"code",em:"em",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,d.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/AppConfig",children:"AppConfig"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig",children:"AzureOpenAiServiceConfig"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/CallToolResponse",children:"CallToolResponse"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:"ChatLlm"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/CommentMessageParams",children:"CommentMessageParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationConstants",children:"ConversationConstants"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig",children:"ConversationsRateLimitConfig"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",children:"ConversationsRouterLocals"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterParams",children:"ConversationsRouterParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:"ConversationsService"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:"DataStreamer"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:"EmbeddedContent"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/FindByIdParams",children:"FindByIdParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue",children:"GenerateUserPromptFuncReturnValue"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams",children:"LlmAnswerQuestionParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/LlmCallToolParams",children:"LlmCallToolParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps",children:"MakeLangchainChatLlmProps"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams",children:"MakeOpenAiChatLlmParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams",children:"MakeRagGenerateUserPromptParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams",children:"MakeUserMessageFuncParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams",children:"MakeVerifiedAnswerGenerateUserPromptParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/RateMessageParams",children:"RateMessageParams"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/SearchBooster",children:"SearchBooster"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Tool",children:"Tool"})}),"\n",(0,s.jsx)(n.li,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ToolCallParams",children:"ToolCallParams"})}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,s.jsx)(n.h3,{id:"addassistantmessageparams",children:"AddAssistantMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddAssistantMessageParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#assistantmessage",children:(0,s.jsx)(n.code,{children:"AssistantMessage"})}),", ",(0,s.jsx)(n.code,{children:'"id"'})," | ",(0,s.jsx)(n.code,{children:'"createdAt"'}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L184",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:184"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addconversationmessageparams",children:"AddConversationMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddConversationMessageParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversationId"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ObjectId"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"message"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addsomemessageparams",children:(0,s.jsx)(n.code,{children:"AddSomeMessageParams"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L195",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:195"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addcustomdatafunc",children:"AddCustomDataFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddCustomDataFunc"}),": (",(0,s.jsx)(n.code,{children:"request"}),": ",(0,s.jsx)(n.code,{children:"Request"}),", ",(0,s.jsx)(n.code,{children:"response"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsrouterresponse",children:(0,s.jsx)(n.code,{children:"ConversationsRouterResponse"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"request"}),", ",(0,s.jsx)(n.code,{children:"response"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Function to add custom data to the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"})," persisted to the database.\nHas access to the Express.js request and response plus the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",children:"ConversationsRouterLocals"}),"\nfrom the Response.locals object."]}),"\n",(0,s.jsx)(n.h5,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"request"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Request"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"response"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsrouterresponse",children:(0,s.jsx)(n.code,{children:"ConversationsRouterResponse"})})})]})]})]}),"\n",(0,s.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L69",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:69"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addfunctionmessageparams",children:"AddFunctionMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddFunctionMessageParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#functionmessage",children:(0,s.jsx)(n.code,{children:"FunctionMessage"})}),", ",(0,s.jsx)(n.code,{children:'"id"'})," | ",(0,s.jsx)(n.code,{children:'"createdAt"'}),"> & { ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L177",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:177"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addmanyconversationmessagesparams",children:"AddManyConversationMessagesParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddManyConversationMessagesParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversationId"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ObjectId"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"messages"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addsomemessageparams",children:(0,s.jsx)(n.code,{children:"AddSomeMessageParams"})}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L200",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:200"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addsomemessageparams",children:"AddSomeMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddSomeMessageParams"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addsystemmessageparams",children:(0,s.jsx)(n.code,{children:"AddSystemMessageParams"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addusermessageparams",children:(0,s.jsx)(n.code,{children:"AddUserMessageParams"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addassistantmessageparams",children:(0,s.jsx)(n.code,{children:"AddAssistantMessageParams"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addfunctionmessageparams",children:(0,s.jsx)(n.code,{children:"AddFunctionMessageParams"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L189",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:189"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addsystemmessageparams",children:"AddSystemMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddSystemMessageParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#systemmessage",children:(0,s.jsx)(n.code,{children:"SystemMessage"})}),", ",(0,s.jsx)(n.code,{children:'"id"'})," | ",(0,s.jsx)(n.code,{children:'"createdAt"'}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L171",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:171"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"addusermessageparams",children:"AddUserMessageParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AddUserMessageParams"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(n.code,{children:"UserMessage"})}),", ",(0,s.jsx)(n.code,{children:'"id"'})," | ",(0,s.jsx)(n.code,{children:'"createdAt"'}),"> & { ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L173",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:173"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"assistantmessage",children:"AssistantMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AssistantMessage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#messagebase",children:(0,s.jsx)(n.code,{children:"MessageBase"})})," & { ",(0,s.jsx)(n.code,{children:"functionCall?"}),": ",(0,s.jsx)(n.code,{children:"FunctionCall"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#assistantmessagemetadata",children:(0,s.jsx)(n.code,{children:"AssistantMessageMetadata"})})," ; ",(0,s.jsx)(n.code,{children:"rating?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"references?"}),": ",(0,s.jsx)(n.code,{children:"any"}),"[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"assistant"'})," ; ",(0,s.jsx)(n.code,{children:"userComment?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L37",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:37"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"assistantmessagemetadata",children:"AssistantMessageMetadata"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"AssistantMessageMetadata"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"index-signature",children:"Index signature"}),"\n",(0,s.jsxs)(n.p,{children:["\u25aa [k: ",(0,s.jsx)(n.code,{children:"string"}),"]: ",(0,s.jsx)(n.code,{children:"unknown"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"verifiedAnswer?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#verifiedanswereventdata",children:(0,s.jsx)(n.code,{children:"VerifiedAnswerEventData"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"If the message came from the verified answers collection, contains the metadata about the verified answer."})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L64",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:64"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"conversationcustomdata",children:"ConversationCustomData"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ConversationCustomData"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> | ",(0,s.jsx)(n.code,{children:"undefined"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L144",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:144"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"conversationsmiddleware",children:"ConversationsMiddleware"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ConversationsMiddleware"}),": ",(0,s.jsx)(n.code,{children:"RequestHandler"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",children:(0,s.jsx)(n.code,{children:"ConversationsRouterLocals"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Middleware to put in front of all the routes in the conversationsRouter.\nThis middleware is useful for things like authentication, data validation, etc.\nIt exposes the app's ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:"ConversationsService"}),".\nIt also lets you access ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",children:"ConversationsRouterLocals"})," via Response.locals\n(",(0,s.jsx)(n.a,{href:"https://expressjs.com/en/api.html#res.locals",children:"docs"}),").\nYou can use the locals in other middleware or persist when you create the conversation\nwith the ",(0,s.jsx)(n.code,{children:"POST /conversations"})," endpoint with the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addcustomdatafunc",children:"AddCustomDataFunc"}),"."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L102",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:102"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"conversationsrouterresponse",children:"ConversationsRouterResponse"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ConversationsRouterResponse"}),": ",(0,s.jsx)(n.code,{children:"Response"}),"<",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",children:(0,s.jsx)(n.code,{children:"ConversationsRouterLocals"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Express.js Response from the app's ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:"ConversationsService"}),"."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L87",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:87"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"createconversationparams",children:"CreateConversationParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"CreateConversationParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"customData?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"initialMessages?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#somemessage",children:(0,s.jsx)(n.code,{children:"SomeMessage"})}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L166",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:166"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"databaseconnection",children:"DatabaseConnection"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"DatabaseConnection"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-5",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"close"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"force?"}),": ",(0,s.jsx)(n.code,{children:"boolean"}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"drop"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/DatabaseConnection.d.ts:1"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"deltastreamevent",children:"DeltaStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"DeltaStreamEvent"}),": ",(0,s.jsx)(n.code,{children:"StreamEvent"})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"delta"'})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Event when server streams additional message response to the client."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-15",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L54",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:54"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"embedargs",children:"EmbedArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"EmbedArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-6",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"text"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The text to embed."})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-16",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Embedder.d.ts:1"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"embedresult",children:"EmbedResult"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"EmbedResult"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-7",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"embedding"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"number"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Vector embedding of the text."})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-17",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Embedder.d.ts:7"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"embeddedcontentstore",children:"EmbeddedContentStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"EmbeddedContentStore"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#vectorstore",children:(0,s.jsx)(n.code,{children:"VectorStore"})}),"<",(0,s.jsx)(n.a,{href:"interfaces/EmbeddedContent.md",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"> & { ",(0,s.jsx)(n.code,{children:"close?"}),": () => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),"> ; ",(0,s.jsx)(n.code,{children:"deleteEmbeddedContent"}),": (",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"page"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:(0,s.jsx)(n.code,{children:"Page"})})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),"> ; ",(0,s.jsx)(n.code,{children:"loadEmbeddedContent"}),": (",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"page"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:(0,s.jsx)(n.code,{children:"Page"})})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]> ; ",(0,s.jsx)(n.code,{children:"updateEmbeddedContent"}),": (",(0,s.jsx)(n.code,{children:"args"}),": { ",(0,s.jsx)(n.code,{children:"embeddedContent"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[] ; ",(0,s.jsx)(n.code,{children:"page"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:(0,s.jsx)(n.code,{children:"Page"})})," }) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),"> }"]}),"\n",(0,s.jsx)(n.p,{children:"Data store of the embedded content."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-18",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/EmbeddedContent.d.ts:53"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"embedder",children:"Embedder"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Embedder"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"Takes a string of text and returns an array of numbers representing the\nvector embedding of the text."}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-8",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"embed"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"args"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedargs",children:(0,s.jsx)(n.code,{children:"EmbedArgs"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedresult",children:(0,s.jsx)(n.code,{children:"EmbedResult"})}),">"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-19",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Embedder.d.ts:17"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filterpreviousmessages",children:"FilterPreviousMessages"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FilterPreviousMessages"}),": (",(0,s.jsx)(n.code,{children:"conversation"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,s.jsx)(n.code,{children:"Conversation"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-9",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"conversation"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]>"]}),"\n",(0,s.jsx)(n.p,{children:"Filters which previous conversation messages are sent to the LLM\nalong with the user prompt.\nFor example, you may only want to send the system prompt to the LLM\nwith the user message or the system prompt and X prior messages."}),"\n",(0,s.jsx)(n.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversation"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,s.jsx)(n.code,{children:"Conversation"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-1",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-20",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/FilterPreviousMessages.ts#L9",children:"packages/mongodb-chatbot-server/src/processors/FilterPreviousMessages.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findcontentfunc",children:"FindContentFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindContentFunc"}),": (",(0,s.jsx)(n.code,{children:"args"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentfuncargs",children:(0,s.jsx)(n.code,{children:"FindContentFuncArgs"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentresult",children:(0,s.jsx)(n.code,{children:"FindContentResult"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-10",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"args"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentresult",children:(0,s.jsx)(n.code,{children:"FindContentResult"})}),">"]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-2",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentfuncargs",children:(0,s.jsx)(n.code,{children:"FindContentFuncArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-2",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentresult",children:(0,s.jsx)(n.code,{children:"FindContentResult"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-21",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts#L7",children:"packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts:7"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findcontentfuncargs",children:"FindContentFuncArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindContentFuncArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-11",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"query"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-22",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts#L3",children:"packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts:3"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findcontentresult",children:"FindContentResult"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindContentResult"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-12",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.a,{href:"interfaces/EmbeddedContent.md",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),">[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"queryEmbedding"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"number"}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-23",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts#L11",children:"packages/mongodb-chatbot-server/src/processors/FindContentFunc.ts:11"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findnearestneighborsoptions",children:"FindNearestNeighborsOptions"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindNearestNeighborsOptions"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"Options for performing a nearest-neighbor search."}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-13",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"filter"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Search filter expression."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"indexName"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The name of the index to use."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"k"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The number of nearest neighbors to return."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"minScore"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The minimum nearest-neighbor score threshold between 0-1."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"numCandidates"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Number of nearest neighbors to use during the search. Value must be less than or equal to 10000. You can't specify a number less than the number of documents to return (k)."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"path"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The keypath to the field with the vector data to use."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-24",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VectorStore.d.ts:17"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findverifiedanswerfunc",children:"FindVerifiedAnswerFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindVerifiedAnswerFunc"}),": (",(0,s.jsx)(n.code,{children:"args"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerfuncargs",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerFuncArgs"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerresult",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerResult"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-14",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"args"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerresult",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerResult"})}),">"]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-3",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"args"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerfuncargs",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerFuncArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-3",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerresult",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerResult"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-25",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts#L7",children:"packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts:7"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findverifiedanswerfuncargs",children:"FindVerifiedAnswerFuncArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindVerifiedAnswerFuncArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-15",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"query"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-26",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts#L3",children:"packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts:3"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"findverifiedanswerresult",children:"FindVerifiedAnswerResult"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FindVerifiedAnswerResult"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-16",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"answer?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.a,{href:"modules.md#verifiedanswer-1",children:(0,s.jsx)(n.code,{children:"VerifiedAnswer"})}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"queryEmbedding"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"number"}),"[]"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-27",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts#L11",children:"packages/mongodb-chatbot-server/src/processors/FindVerifiedAnswerFunc.ts:11"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"finishedstreamevent",children:"FinishedStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FinishedStreamEvent"}),": ",(0,s.jsx)(n.code,{children:"StreamEvent"})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"finished"'})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Event denoting the end of streaming."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-28",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L87",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:87"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"functionmessage",children:"FunctionMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"FunctionMessage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#messagebase",children:(0,s.jsx)(n.code,{children:"MessageBase"})})," & { ",(0,s.jsx)(n.code,{children:"name"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"function"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-29",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L79",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:79"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"generateuserpromptfunc",children:"GenerateUserPromptFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"GenerateUserPromptFunc"}),": (",(0,s.jsx)(n.code,{children:"params"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfuncparams",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFuncParams"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFuncReturnValue"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-17",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"params"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFuncReturnValue"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Generate the user prompt sent to the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:"ChatLlm"}),".\nThis function is a flexible construct that you can use to customize\nthe chatbot behavior. For example, you can use this function to\nperform retrieval augmented generation (RAG) or chain of thought prompting.\nInclude whatever logic in here to construct the user message\nthat the LLM responds to."]}),"\n",(0,s.jsx)(n.p,{children:"If you are doing RAG, this can include the content from vector search."}),"\n",(0,s.jsx)(n.h5,{id:"parameters-4",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"params"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfuncparams",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFuncParams"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-4",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFuncReturnValue"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-30",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L66",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:66"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"generateuserpromptfuncparams",children:"GenerateUserPromptFuncParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"GenerateUserPromptFuncParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-18",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversation?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,s.jsx)(n.code,{children:"Conversation"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Conversation with preceding messages"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"customData?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Custom data for the message request."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"reqId"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"String Id for request"})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"userMessageText"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Original user message"})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-31",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts#L9",children:"packages/mongodb-chatbot-server/src/processors/GenerateUserPromptFunc.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"loadpagesargs",children:"LoadPagesArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"LoadPagesArgs"}),"<",(0,s.jsx)(n.code,{children:"QueryShape"}),">: ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"QueryShape"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"unknown"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-19",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"query?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"QueryShape"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"A custom query to refine the pages to load."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"sources?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The names of the sources to load pages from. If undefined, loads available pages from all sources."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"updated?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Date"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"If specified, refines the query to load pages with an updated date later or equal to the given date."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"urls?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"If specified, refines the query to only load pages where the url is included in the list."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-32",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:50"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedefaultfindcontentfuncargs",children:"MakeDefaultFindContentFuncArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeDefaultFindContentFuncArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-20",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"embedder"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"findNearestNeighborsOptions?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findnearestneighborsoptions",children:(0,s.jsx)(n.code,{children:"FindNearestNeighborsOptions"})}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"searchBoosters?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/SearchBooster",children:(0,s.jsx)(n.code,{children:"SearchBooster"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"store"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embeddedcontentstore",children:(0,s.jsx)(n.code,{children:"EmbeddedContentStore"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-33",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeDefaultFindContent.ts#L9",children:"packages/mongodb-chatbot-server/src/processors/makeDefaultFindContent.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedefaultfindverifiedanswerfuncargs",children:"MakeDefaultFindVerifiedAnswerFuncArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeDefaultFindVerifiedAnswerFuncArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-21",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"embedder"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"findNearestNeighborsOptions?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findnearestneighborsoptions",children:(0,s.jsx)(n.code,{children:"FindNearestNeighborsOptions"})}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"store"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#verifiedanswerstore",children:(0,s.jsx)(n.code,{children:"VerifiedAnswerStore"})})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-34",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeDefaultFindVerifiedAnswer.ts#L8",children:"packages/mongodb-chatbot-server/src/processors/makeDefaultFindVerifiedAnswer.ts:8"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makelangchainembedderparams",children:"MakeLangChainEmbedderParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeLangChainEmbedderParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-22",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"langChainEmbeddings"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Embeddings"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["LangChain.js ",(0,s.jsx)(n.code,{children:"Embeddings"})," instance. You can configure things like caching and retry behavior in the ",(0,s.jsx)(n.code,{children:"Embeddings"})," instance."]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-35",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/LangChainEmbedder.d.ts:3"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeopenaiembedderargs",children:"MakeOpenAiEmbedderArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeOpenAiEmbedderArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-23",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"backoffOptions?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"BackoffOptions"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Options used for automatic retry (usually due to rate limiting)."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"deployment"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The deployment key."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"openAiClient"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OpenAIClient"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The OpenAI client."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-36",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/OpenAiEmbedder.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makereferencelinksfunc",children:"MakeReferenceLinksFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeReferenceLinksFunc"}),": (",(0,s.jsx)(n.code,{children:"chunks"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]) => ",(0,s.jsx)(n.code,{children:"any"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-24",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"chunks"}),"): ",(0,s.jsx)(n.code,{children:"any"}),"[]"]}),"\n",(0,s.jsx)(n.p,{children:"Function that generates the references in the response to user."}),"\n",(0,s.jsx)(n.h5,{id:"parameters-5",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"chunks"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-5",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"any"}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-37",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/MakeReferenceLinksFunc.ts#L6",children:"packages/mongodb-chatbot-server/src/processors/MakeReferenceLinksFunc.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"maketypechatjsontranslatefuncargs",children:"MakeTypeChatJsonTranslateFuncArgs"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeTypeChatJsonTranslateFuncArgs"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-25",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"azureOpenAiServiceConfig"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig",children:(0,s.jsx)(n.code,{children:"AzureOpenAiServiceConfig"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Settings for using the Azure service."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"numRetries?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Number of times to retry the query preprocessor if it fails."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"retryDelayMs?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Delay between retries in milliseconds."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"schema"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The text of a .d.ts that would inform the schema."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"schemaName"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The name of the TypeChat schema or interface."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-38",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/TypeChatJsonTranslateFunc.d.ts:7"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeusermessagefunc",children:"MakeUserMessageFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MakeUserMessageFunc"}),": (",(0,s.jsx)(n.code,{children:"params"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams",children:(0,s.jsx)(n.code,{children:"MakeUserMessageFuncParams"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(n.code,{children:"UserMessage"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-26",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"params"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(n.code,{children:"UserMessage"})}),">"]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-6",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"params"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams",children:(0,s.jsx)(n.code,{children:"MakeUserMessageFuncParams"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-6",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(n.code,{children:"UserMessage"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-39",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L48",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:48"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"message",children:"Message"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Message"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#somemessage",children:(0,s.jsx)(n.code,{children:"SomeMessage"})})," & { ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Message stored in the database."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-40",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L132",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:132"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"messagebase",children:"MessageBase"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MessageBase"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-27",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Message that occurs in the conversation."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"customData?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Custom data received from the client to include in the Message persisted to the database."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"metadata?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Arbitrary data about the message that should be sent to the client."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"role"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The role of the message in the conversation."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-41",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L10",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:10"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"metadatastreamevent",children:"MetadataStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MetadataStreamEvent"}),": ",(0,s.jsx)(n.code,{children:"StreamEvent"})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"metadata"'})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Event when server streams a metadata object to the client."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-42",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L79",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:79"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"mongodbpagestore",children:"MongoDbPageStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"MongoDbPageStore"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#databaseconnection",children:(0,s.jsx)(n.code,{children:"DatabaseConnection"})})," & ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pagestore",children:(0,s.jsx)(n.code,{children:"PageStore"})}),", ",(0,s.jsx)(n.code,{children:'"loadPages"'}),"> & { ",(0,s.jsx)(n.code,{children:"queryType"}),": ",(0,s.jsx)(n.code,{children:'"mongodb"'})," ; ",(0,s.jsx)(n.code,{children:"loadPages"}),": (",(0,s.jsx)(n.code,{children:"args?"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#loadpagesargs",children:(0,s.jsx)(n.code,{children:"LoadPagesArgs"})}),"<",(0,s.jsx)(n.code,{children:"Filter"}),"<",(0,s.jsx)(n.a,{href:"modules.md#persistedpage",children:(0,s.jsx)(n.code,{children:"PersistedPage"})}),">>) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#persistedpage",children:(0,s.jsx)(n.code,{children:"PersistedPage"})}),"[]> }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-43",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/MongoDbPageStore.d.ts:5"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"openaichatcompletionwithoutusage",children:"OpenAIChatCompletionWithoutUsage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"OpenAIChatCompletionWithoutUsage"}),": ",(0,s.jsx)(n.code,{children:"Omit"}),"<",(0,s.jsx)(n.code,{children:"ChatCompletions"}),", ",(0,s.jsx)(n.code,{children:'"usage"'}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-44",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L85",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:85"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"openaiawaitedresponse",children:"OpenAiAwaitedResponse"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"OpenAiAwaitedResponse"}),": ",(0,s.jsx)(n.code,{children:"ChatRequestAssistantMessage"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-45",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L89",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:89"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"openaichatmessage",children:"OpenAiChatMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"OpenAiChatMessage"}),": ",(0,s.jsx)(n.code,{children:"ChatRequestMessage"})," & { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," | ",(0,s.jsx)(n.code,{children:"null"})," ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#openaimessagerole",children:(0,s.jsx)(n.code,{children:"OpenAiMessageRole"})})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-46",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L21",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"openaimessagerole",children:"OpenAiMessageRole"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"OpenAiMessageRole"}),": ",(0,s.jsx)(n.code,{children:'"system"'})," | ",(0,s.jsx)(n.code,{children:'"assistant"'})," | ",(0,s.jsx)(n.code,{children:'"user"'})," | ",(0,s.jsx)(n.code,{children:'"function"'})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-47",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L19",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:19"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"openaistreamingresponse",children:"OpenAiStreamingResponse"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"OpenAiStreamingResponse"}),": ",(0,s.jsx)(n.code,{children:"AsyncIterable"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#openaichatcompletionwithoutusage",children:(0,s.jsx)(n.code,{children:"OpenAIChatCompletionWithoutUsage"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-48",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L87",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:87"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"page",children:"Page"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Page"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"Represents a page from a data source."}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-28",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"body"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The text of the page."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"format"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pageformat",children:(0,s.jsx)(n.code,{children:"PageFormat"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The file format of the page. This format determines how the page should be chunked and vector-embedded."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"metadata?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pagemetadata",children:(0,s.jsx)(n.code,{children:"PageMetadata"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Arbitrary metadata for page."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"sourceName"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Data source name."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"title?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"A human-readable title."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"url"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-49",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:5"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pageaction",children:"PageAction"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"PageAction"}),": ",(0,s.jsx)(n.code,{children:'"created"'})," | ",(0,s.jsx)(n.code,{children:'"updated"'})," | ",(0,s.jsx)(n.code,{children:'"deleted"'})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-50",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:36"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pageformat",children:"PageFormat"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"PageFormat"}),": typeof ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pageformats",children:(0,s.jsx)(n.code,{children:"pageFormats"})}),"[",(0,s.jsx)(n.code,{children:"number"}),"]"]}),"\n",(0,s.jsx)(n.p,{children:"A canonical page format."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-51",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/PageFormat.d.ts:15"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pagemetadata",children:"PageMetadata"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"PageMetadata"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"index-signature-1",children:"Index signature"}),"\n",(0,s.jsxs)(n.p,{children:["\u25aa [k: ",(0,s.jsx)(n.code,{children:"string"}),"]: ",(0,s.jsx)(n.code,{children:"unknown"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-29",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"tags?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"string"}),"[]"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Arbitrary tags."})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-52",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:29"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pagestore",children:"PageStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"PageStore"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsxs)(n.p,{children:["Data store for ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:"Page"})," objects."]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-30",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"close?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Close connection to data store."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"queryType?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:'"mongodb"'})," | ",(0,s.jsx)(n.code,{children:"string"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"The format that the store uses for custom queries. If not specified, the store does not allow custom queries."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"loadPages"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"args?"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#loadpagesargs",children:(0,s.jsx)(n.code,{children:"LoadPagesArgs"})}),"<",(0,s.jsx)(n.code,{children:"unknown"}),">) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#persistedpage",children:(0,s.jsx)(n.code,{children:"PersistedPage"})}),"[]>"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Loads pages from the Page store."})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"updatePages"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"pages"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#persistedpage",children:(0,s.jsx)(n.code,{children:"PersistedPage"})}),"[]) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Updates or adds the given pages in the store."})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-53",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:74"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"persistedpage",children:"PersistedPage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"PersistedPage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:(0,s.jsx)(n.code,{children:"Page"})})," & { ",(0,s.jsx)(n.code,{children:"action"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pageaction",children:(0,s.jsx)(n.code,{children:"PageAction"})})," ; ",(0,s.jsx)(n.code,{children:"updated"}),": ",(0,s.jsx)(n.code,{children:"Date"})," }"]}),"\n",(0,s.jsxs)(n.p,{children:["Represents a ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:"Page"})," stored in the database."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-54",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/Page.d.ts:40"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"processingstreamevent",children:"ProcessingStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ProcessingStreamEvent"}),": ",(0,s.jsx)(n.code,{children:"StreamEvent"})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"processing"'})," }"]}),"\n",(0,s.jsx)(n.p,{children:"Event for when the server is processing a request."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-55",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L59",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:59"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"querypreprocessorfunc",children:"QueryPreprocessorFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"QueryPreprocessorFunc"}),"<",(0,s.jsx)(n.code,{children:"ReturnType"}),">: (",(0,s.jsx)(n.code,{children:"params"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#queryprocessorfuncparams",children:(0,s.jsx)(n.code,{children:"QueryProcessorFuncParams"})}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"ReturnType"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-1",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ReturnType"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#querypreprocessorresult",children:(0,s.jsx)(n.code,{children:"QueryPreprocessorResult"})})," = ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#querypreprocessorresult",children:(0,s.jsx)(n.code,{children:"QueryPreprocessorResult"})})]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-31",children:"Type declaration"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"params"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"ReturnType"}),">"]}),"\n",(0,s.jsx)(n.p,{children:"Query preprocessors transform an input query to a new query based on your\nbusiness logic."}),"\n",(0,s.jsx)(n.p,{children:"If the preprocessor can't transform the query, it may return undefined. The\npreprocessor may also suggest not answering with the rejectQuery field in the\nreturn value (for example, if the query disparages your company, you might\nwant to send a canned response)."}),"\n",(0,s.jsx)(n.h5,{id:"parameters-7",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"params"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#queryprocessorfuncparams",children:(0,s.jsx)(n.code,{children:"QueryProcessorFuncParams"})})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-7",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"ReturnType"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-56",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts#L17",children:"packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts:17"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"querypreprocessorresult",children:"QueryPreprocessorResult"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"QueryPreprocessorResult"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-32",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"query?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"rejectQuery?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"boolean"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-57",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts#L21",children:"packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"queryprocessorfuncparams",children:"QueryProcessorFuncParams"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"QueryProcessorFuncParams"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-33",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"messages?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"query"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-58",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts#L3",children:"packages/mongodb-chatbot-server/src/processors/QueryPreprocessorFunc.ts:3"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"question",children:"Question"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Question"}),": ",(0,s.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-59",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:3"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:19"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"reference",children:"Reference"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"Reference"}),": ",(0,s.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,s.jsx)(n.p,{children:"A formatted reference for an assistant message."}),"\n",(0,s.jsx)(n.p,{children:"For example, a Reference might be a docs page, dev center article, or\na MongoDB University module."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-60",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:8"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:9"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"references",children:"References"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"References"}),": ",(0,s.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-61",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:19"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:20"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"referencesstreamevent",children:"ReferencesStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ReferencesStreamEvent"}),": ",(0,s.jsx)(n.code,{children:"StreamEvent"})," & { ",(0,s.jsx)(n.code,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"any"}),"[] ; ",(0,s.jsx)(n.code,{children:"type"}),": ",(0,s.jsx)(n.code,{children:'"references"'})," }"]}),"\n",(0,s.jsxs)(n.p,{children:["Event when server streams single ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#references-1",children:"References"})," object to the client."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-62",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L71",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:71"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"somemessage",children:"SomeMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SomeMessage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#usermessage",children:(0,s.jsx)(n.code,{children:"UserMessage"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#assistantmessage",children:(0,s.jsx)(n.code,{children:"AssistantMessage"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#systemmessage",children:(0,s.jsx)(n.code,{children:"SystemMessage"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#functionmessage",children:(0,s.jsx)(n.code,{children:"FunctionMessage"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Message in the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"."]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-63",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L123",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:123"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"somestreamevent",children:"SomeStreamEvent"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SomeStreamEvent"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#deltastreamevent",children:(0,s.jsx)(n.code,{children:"DeltaStreamEvent"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#metadatastreamevent",children:(0,s.jsx)(n.code,{children:"MetadataStreamEvent"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#processingstreamevent",children:(0,s.jsx)(n.code,{children:"ProcessingStreamEvent"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#referencesstreamevent",children:(0,s.jsx)(n.code,{children:"ReferencesStreamEvent"})})," | ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#finishedstreamevent",children:(0,s.jsx)(n.code,{children:"FinishedStreamEvent"})})]}),"\n",(0,s.jsx)(n.p,{children:"The event types streamed from the chat server to the client."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-64",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L95",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:95"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"systemmessage",children:"SystemMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SystemMessage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#messagebase",children:(0,s.jsx)(n.code,{children:"MessageBase"})})," & { ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"system"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-65",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L33",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:33"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"systemprompt",children:"SystemPrompt"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"SystemPrompt"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#openaichatmessage",children:(0,s.jsx)(n.code,{children:"OpenAiChatMessage"})})," & { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"system"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-66",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L34",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:34"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"toolcalldirective",children:"ToolCallDirective"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"ToolCallDirective"}),": ",(0,s.jsx)(n.code,{children:"FunctionCallPreset"})," | ",(0,s.jsx)(n.code,{children:"FunctionName"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-67",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L110",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:110"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"usermessage",children:"UserMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"UserMessage"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#messagebase",children:(0,s.jsx)(n.code,{children:"MessageBase"})})," & { ",(0,s.jsx)(n.code,{children:"contentForLlm?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"contextContent?"}),": ",(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.a,{href:"interfaces/EmbeddedContent.md",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),">>[] ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"preprocessedContent?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"rejectQuery?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"user"'})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-68",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L84",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:84"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"vectorstore",children:"VectorStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"VectorStore"}),"<",(0,s.jsx)(n.code,{children:"T"}),">: ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"Generic vector store for vector-searchable data."}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-2",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(n.tbody,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-34",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"close?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["() => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"void"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"findNearestNeighbors"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,s.jsx)(n.code,{children:"vector"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[], ",(0,s.jsx)(n.code,{children:"options?"}),": ",(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findnearestneighborsoptions",children:(0,s.jsx)(n.code,{children:"FindNearestNeighborsOptions"})}),">) => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.code,{children:"T"}),">[]>"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-69",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VectorStore.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"verifiedanswer",children:"VerifiedAnswer"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"VerifiedAnswer"}),": ",(0,s.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-70",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:20"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:88"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"verifiedanswereventdata",children:"VerifiedAnswerEventData"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"VerifiedAnswerEventData"}),": ",(0,s.jsx)(n.code,{children:"Pick"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#verifiedanswer-1",children:(0,s.jsx)(n.code,{children:"VerifiedAnswer"})}),", ",(0,s.jsx)(n.code,{children:'"_id"'})," | ",(0,s.jsx)(n.code,{children:'"created"'})," | ",(0,s.jsx)(n.code,{children:'"updated"'}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-71",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L74",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:74"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"verifiedanswerstore",children:"VerifiedAnswerStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"VerifiedAnswerStore"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#vectorstore",children:(0,s.jsx)(n.code,{children:"VectorStore"})}),"<",(0,s.jsx)(n.a,{href:"modules.md#verifiedanswer-1",children:(0,s.jsx)(n.code,{children:"VerifiedAnswer"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-72",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:89"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"withfilterandk",children:"WithFilterAndK"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"WithFilterAndK"}),"<",(0,s.jsx)(n.code,{children:"T"}),">: ",(0,s.jsx)(n.code,{children:"T"})," & { ",(0,s.jsx)(n.code,{children:"filter"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"k"}),": ",(0,s.jsx)(n.code,{children:"number"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-3",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(n.tbody,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-73",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeBoostOnAtlasSearchFilter.ts#L9",children:"packages/mongodb-chatbot-server/src/processors/makeBoostOnAtlasSearchFilter.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"withscore",children:"WithScore"}),"\n",(0,s.jsxs)(n.p,{children:["\u01ac ",(0,s.jsx)(n.strong,{children:"WithScore"}),"<",(0,s.jsx)(n.code,{children:"T"}),">: ",(0,s.jsx)(n.code,{children:"T"})," & { ",(0,s.jsx)(n.code,{children:"score"}),": ",(0,s.jsx)(n.code,{children:"number"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-4",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(n.tbody,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-74",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VectorStore.d.ts:11"}),"\n",(0,s.jsx)(n.h2,{id:"variables",children:"Variables"}),"\n",(0,s.jsx)(n.h3,{id:"core_env_vars",children:"CORE_ENV_VARS"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"CORE_ENV_VARS"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-35",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MONGODB_CONNECTION_URI"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MONGODB_DATABASE_NAME"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"NODE_ENV"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_API_KEY"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_CHAT_COMPLETION_DEPLOYMENT"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_CHAT_COMPLETION_MODEL_VERSION"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_EMBEDDING_DEPLOYMENT"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_EMBEDDING_MODEL"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_EMBEDDING_MODEL_VERSION"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"OPENAI_ENDPOINT"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"VECTOR_SEARCH_INDEX_NAME"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-75",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/CoreEnvVars.d.ts:1"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"custom_request_origin_header",children:"CUSTOM_REQUEST_ORIGIN_HEADER"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"CUSTOM_REQUEST_ORIGIN_HEADER"}),": ",(0,s.jsx)(n.code,{children:'"X-Request-Origin"'})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-76",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/middleware/requireRequestOrigin.ts#L4",children:"packages/mongodb-chatbot-server/src/middleware/requireRequestOrigin.ts:4"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"default_api_prefix",children:"DEFAULT_API_PREFIX"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"DEFAULT_API_PREFIX"}),": ",(0,s.jsx)(n.code,{children:'"/api/v1"'})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-77",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/app.ts#L108",children:"packages/mongodb-chatbot-server/src/app.ts:108"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"default_max_request_timeout_ms",children:"DEFAULT_MAX_REQUEST_TIMEOUT_MS"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"DEFAULT_MAX_REQUEST_TIMEOUT_MS"}),": ",(0,s.jsx)(n.code,{children:"60000"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-78",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/app.ts#L110",children:"packages/mongodb-chatbot-server/src/app.ts:110"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"question-1",children:"Question"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"Question"}),": ",(0,s.jsx)(n.code,{children:"z.ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"z.ZodArray"}),"<",(0,s.jsx)(n.code,{children:"z.ZodNumber"}),", ",(0,s.jsx)(n.code,{children:'"many"'}),"> ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"z.ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," }, { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," }>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-79",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:3"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:19"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"reference-1",children:"Reference"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"Reference"}),": ",(0,s.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"ZodString"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"ZodString"})," }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }, { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-80",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:8"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:9"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"references-1",children:"References"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"References"}),": ",(0,s.jsx)(n.code,{children:"ZodArray"}),"<",(0,s.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"ZodString"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"ZodString"})," }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }, { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }>, ",(0,s.jsx)(n.code,{children:'"many"'}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-81",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:19"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/conversations.d.ts:20"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"someexpressrequest",children:"SomeExpressRequest"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"SomeExpressRequest"}),": ",(0,s.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"body"}),": ",(0,s.jsx)(n.code,{children:"ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"ZodObject"}),"<",", ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", ",", ",">> ; ",(0,s.jsx)(n.code,{children:"headers"}),": ",(0,s.jsx)(n.code,{children:"ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"ZodObject"}),"<",", ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", ",", ",">> ; ",(0,s.jsx)(n.code,{children:"params"}),": ",(0,s.jsx)(n.code,{children:"ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"ZodObject"}),"<",", ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", ",", ",">> ; ",(0,s.jsx)(n.code,{children:"query"}),": ",(0,s.jsx)(n.code,{children:"ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"ZodObject"}),"<",", ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", ",", ",">> }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"body?"}),": {} ; ",(0,s.jsx)(n.code,{children:"headers?"}),": {} ; ",(0,s.jsx)(n.code,{children:"params?"}),": {} ; ",(0,s.jsx)(n.code,{children:"query?"}),": {} }, { ",(0,s.jsx)(n.code,{children:"body?"}),": {} ; ",(0,s.jsx)(n.code,{children:"headers?"}),": {} ; ",(0,s.jsx)(n.code,{children:"params?"}),": {} ; ",(0,s.jsx)(n.code,{children:"query?"}),": {} }>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-82",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/middleware/validateRequestSchema.ts#L6",children:"packages/mongodb-chatbot-server/src/middleware/validateRequestSchema.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"verifiedanswer-1",children:"VerifiedAnswer"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"VerifiedAnswer"}),": ",(0,s.jsx)(n.code,{children:"z.ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"_id"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"answer"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"author_email"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"created"}),": ",(0,s.jsx)(n.code,{children:"z.ZodDate"})," ; ",(0,s.jsx)(n.code,{children:"hidden"}),": ",(0,s.jsx)(n.code,{children:"z.ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"z.ZodBoolean"}),"> ; ",(0,s.jsx)(n.code,{children:"question"}),": ",(0,s.jsx)(n.code,{children:"z.ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"z.ZodArray"}),"<",(0,s.jsx)(n.code,{children:"z.ZodNumber"}),", ",(0,s.jsx)(n.code,{children:'"many"'}),"> ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"z.ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," }, { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," }> ; ",(0,s.jsx)(n.code,{children:"references"}),": ",(0,s.jsx)(n.code,{children:"z.ZodArray"}),"<",(0,s.jsx)(n.code,{children:"z.ZodObject"}),"<{ ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"z.ZodString"})," }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"z.ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }, { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }>, ",(0,s.jsx)(n.code,{children:'"many"'}),"> ; ",(0,s.jsx)(n.code,{children:"updated"}),": ",(0,s.jsx)(n.code,{children:"z.ZodOptional"}),"<",(0,s.jsx)(n.code,{children:"z.ZodDate"}),"> }, ",(0,s.jsx)(n.code,{children:'"strip"'}),", ",(0,s.jsx)(n.code,{children:"z.ZodTypeAny"}),", { ",(0,s.jsx)(n.code,{children:"_id"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"answer"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"author_email"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"created"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"hidden?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"question"}),": { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," } ; ",(0,s.jsx)(n.code,{children:"references"}),": { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[] ; ",(0,s.jsx)(n.code,{children:"updated?"}),": ",(0,s.jsx)(n.code,{children:"Date"})," }, { ",(0,s.jsx)(n.code,{children:"_id"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"answer"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"author_email"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"created"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"hidden?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"question"}),": { ",(0,s.jsx)(n.code,{children:"embedding"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"embedding_model"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding_model_version"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"text"}),": ",(0,s.jsx)(n.code,{children:"string"})," } ; ",(0,s.jsx)(n.code,{children:"references"}),": { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[] ; ",(0,s.jsx)(n.code,{children:"updated?"}),": ",(0,s.jsx)(n.code,{children:"Date"})," }>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-83",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:20"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/VerifiedAnswer.d.ts:88"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"defaultconversationconstants",children:"defaultConversationConstants"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"defaultConversationConstants"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationConstants",children:(0,s.jsx)(n.code,{children:"ConversationConstants"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-84",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L277",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:277"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"logger",children:"logger"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"logger"}),": ",(0,s.jsx)(n.code,{children:"Logger"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-85",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/logger.d.ts:13"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pageformats",children:"pageFormats"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"pageFormats"}),": (",(0,s.jsx)(n.code,{children:'"txt"'})," | ",(0,s.jsx)(n.code,{children:'"md"'})," | ",(0,s.jsx)(n.code,{children:'"mdx"'})," | ",(0,s.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,s.jsx)(n.code,{children:'"csv"'})," | ",(0,s.jsx)(n.code,{children:'"json"'})," | ",(0,s.jsx)(n.code,{children:'"yaml"'})," | ",(0,s.jsx)(n.code,{children:'"toml"'})," | ",(0,s.jsx)(n.code,{children:'"xml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,s.jsx)(n.code,{children:'"graphql"'})," | ",(0,s.jsx)(n.code,{children:'"c"'})," | ",(0,s.jsx)(n.code,{children:'"cpp"'})," | ",(0,s.jsx)(n.code,{children:'"csharp"'})," | ",(0,s.jsx)(n.code,{children:'"go"'})," | ",(0,s.jsx)(n.code,{children:'"html"'})," | ",(0,s.jsx)(n.code,{children:'"java"'})," | ",(0,s.jsx)(n.code,{children:'"javascript"'})," | ",(0,s.jsx)(n.code,{children:'"kotlin"'})," | ",(0,s.jsx)(n.code,{children:'"latex"'})," | ",(0,s.jsx)(n.code,{children:'"objective-c"'})," | ",(0,s.jsx)(n.code,{children:'"php"'})," | ",(0,s.jsx)(n.code,{children:'"python"'})," | ",(0,s.jsx)(n.code,{children:'"ruby"'})," | ",(0,s.jsx)(n.code,{children:'"rust"'})," | ",(0,s.jsx)(n.code,{children:'"scala"'})," | ",(0,s.jsx)(n.code,{children:'"shell"'})," | ",(0,s.jsx)(n.code,{children:'"swift"'})," | ",(0,s.jsx)(n.code,{children:'"typescript"'}),")[]"]}),"\n",(0,s.jsx)(n.p,{children:"The list of canonical file formats that we support for pages."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-86",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/PageFormat.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"ratelimitresponse",children:"rateLimitResponse"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Const"})," ",(0,s.jsx)(n.strong,{children:"rateLimitResponse"}),": ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-declaration-36",children:"Type declaration"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"error"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-87",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L194",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:194"})}),"\n",(0,s.jsx)(n.h2,{id:"functions",children:"Functions"}),"\n",(0,s.jsx)(n.h3,{id:"aspageformat",children:"asPageFormat"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"asPageFormat"}),"(",(0,s.jsx)(n.code,{children:"str"}),"): ",(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:'"txt"'})," | ",(0,s.jsx)(n.code,{children:'"md"'})," | ",(0,s.jsx)(n.code,{children:'"mdx"'})," | ",(0,s.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,s.jsx)(n.code,{children:'"csv"'})," | ",(0,s.jsx)(n.code,{children:'"json"'})," | ",(0,s.jsx)(n.code,{children:'"yaml"'})," | ",(0,s.jsx)(n.code,{children:'"toml"'})," | ",(0,s.jsx)(n.code,{children:'"xml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,s.jsx)(n.code,{children:'"graphql"'})," | ",(0,s.jsx)(n.code,{children:'"c"'})," | ",(0,s.jsx)(n.code,{children:'"cpp"'})," | ",(0,s.jsx)(n.code,{children:'"csharp"'})," | ",(0,s.jsx)(n.code,{children:'"go"'})," | ",(0,s.jsx)(n.code,{children:'"html"'})," | ",(0,s.jsx)(n.code,{children:'"java"'})," | ",(0,s.jsx)(n.code,{children:'"javascript"'})," | ",(0,s.jsx)(n.code,{children:'"kotlin"'})," | ",(0,s.jsx)(n.code,{children:'"latex"'})," | ",(0,s.jsx)(n.code,{children:'"objective-c"'})," | ",(0,s.jsx)(n.code,{children:'"php"'})," | ",(0,s.jsx)(n.code,{children:'"python"'})," | ",(0,s.jsx)(n.code,{children:'"ruby"'})," | ",(0,s.jsx)(n.code,{children:'"rust"'})," | ",(0,s.jsx)(n.code,{children:'"scala"'})," | ",(0,s.jsx)(n.code,{children:'"shell"'})," | ",(0,s.jsx)(n.code,{children:'"swift"'})," | ",(0,s.jsx)(n.code,{children:'"typescript"'})]}),"\n",(0,s.jsx)(n.p,{children:"Maps a string to the canonical page format it represents."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"str"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:'"txt"'})," | ",(0,s.jsx)(n.code,{children:'"md"'})," | ",(0,s.jsx)(n.code,{children:'"mdx"'})," | ",(0,s.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,s.jsx)(n.code,{children:'"csv"'})," | ",(0,s.jsx)(n.code,{children:'"json"'})," | ",(0,s.jsx)(n.code,{children:'"yaml"'})," | ",(0,s.jsx)(n.code,{children:'"toml"'})," | ",(0,s.jsx)(n.code,{children:'"xml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,s.jsx)(n.code,{children:'"graphql"'})," | ",(0,s.jsx)(n.code,{children:'"c"'})," | ",(0,s.jsx)(n.code,{children:'"cpp"'})," | ",(0,s.jsx)(n.code,{children:'"csharp"'})," | ",(0,s.jsx)(n.code,{children:'"go"'})," | ",(0,s.jsx)(n.code,{children:'"html"'})," | ",(0,s.jsx)(n.code,{children:'"java"'})," | ",(0,s.jsx)(n.code,{children:'"javascript"'})," | ",(0,s.jsx)(n.code,{children:'"kotlin"'})," | ",(0,s.jsx)(n.code,{children:'"latex"'})," | ",(0,s.jsx)(n.code,{children:'"objective-c"'})," | ",(0,s.jsx)(n.code,{children:'"php"'})," | ",(0,s.jsx)(n.code,{children:'"python"'})," | ",(0,s.jsx)(n.code,{children:'"ruby"'})," | ",(0,s.jsx)(n.code,{children:'"rust"'})," | ",(0,s.jsx)(n.code,{children:'"scala"'})," | ",(0,s.jsx)(n.code,{children:'"shell"'})," | ",(0,s.jsx)(n.code,{children:'"swift"'})," | ",(0,s.jsx)(n.code,{children:'"typescript"'})]}),"\n",(0,s.jsx)(n.p,{children:"The canonical page format, or undefined if the string is not\na recognized page format."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-88",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/PageFormat.d.ts:11"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"assertenvvars",children:"assertEnvVars"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"assertEnvVars"}),"<",(0,s.jsx)(n.code,{children:"T"}),">(",(0,s.jsx)(n.code,{children:"ENV_VARS"}),"): ",(0,s.jsx)(n.code,{children:"T"})]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-5",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"string"}),">"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ENV_VARS"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-9",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"T"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-89",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/assertEnvVars.d.ts:1"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"createloggermessage",children:"createLoggerMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"createLoggerMessage"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"CreateMessageParams"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-10",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Object"})}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"ipAddress"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"message"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"requestBody"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"unknown"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"requestId"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"undefined"})," | ",(0,s.jsx)(n.code,{children:"string"})]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-90",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/services/logger.d.ts:7"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"createmessage",children:"createMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"createMessage"}),"(",(0,s.jsx)(n.code,{children:"messageParams"}),"): { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"system"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"contentForLlm?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"contextContent?"}),": ",(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.a,{href:"interfaces/EmbeddedContent.md",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),">>[] ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"preprocessedContent?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"rejectQuery?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"user"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"name"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"function"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"functionCall?"}),": ",(0,s.jsx)(n.code,{children:"FunctionCall"})," ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> & ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#assistantmessagemetadata",children:(0,s.jsx)(n.code,{children:"AssistantMessageMetadata"})})," ; ",(0,s.jsx)(n.code,{children:"rating?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"references?"}),": { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"assistant"'})," ; ",(0,s.jsx)(n.code,{children:"userComment?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-11",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"messageParams"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addsomemessageparams",children:(0,s.jsx)(n.code,{children:"AddSomeMessageParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-11",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:["{ ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"system"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"contentForLlm?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"contextContent?"}),": ",(0,s.jsx)(n.code,{children:"Partial"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(n.code,{children:"WithScore"})}),"<",(0,s.jsx)(n.a,{href:"interfaces/EmbeddedContent.md",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),">>[] ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"preprocessedContent?"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"rejectQuery?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"user"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"name"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"function"'})," } | { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"createdAt"}),": ",(0,s.jsx)(n.code,{children:"Date"})," ; ",(0,s.jsx)(n.code,{children:"customData?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> ; ",(0,s.jsx)(n.code,{children:"functionCall?"}),": ",(0,s.jsx)(n.code,{children:"FunctionCall"})," ; ",(0,s.jsx)(n.code,{children:"id"}),": ",(0,s.jsx)(n.code,{children:"ObjectId"})," ; ",(0,s.jsx)(n.code,{children:"metadata?"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),"> & ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#assistantmessagemetadata",children:(0,s.jsx)(n.code,{children:"AssistantMessageMetadata"})})," ; ",(0,s.jsx)(n.code,{children:"rating?"}),": ",(0,s.jsx)(n.code,{children:"boolean"})," ; ",(0,s.jsx)(n.code,{children:"references?"}),": { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:'"assistant"'})," ; ",(0,s.jsx)(n.code,{children:"userComment?"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-91",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/mongodbConversations.ts#L166",children:"packages/mongodb-chatbot-server/src/services/mongodbConversations.ts:166"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"createmessagefromopenaichatmessage",children:"createMessageFromOpenAIChatMessage"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"createMessageFromOpenAIChatMessage"}),"(",(0,s.jsx)(n.code,{children:"chatMessage"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Create a ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:"Message"})," object from the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#openaichatmessage",children:"OpenAiChatMessage"})," object."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-12",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"chatMessage"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#addsomemessageparams",children:(0,s.jsx)(n.code,{children:"AddSomeMessageParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-12",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-92",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/mongodbConversations.ts#L184",children:"packages/mongodb-chatbot-server/src/services/mongodbConversations.ts:184"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"errorhandler",children:"errorHandler"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"errorHandler"}),"(",(0,s.jsx)(n.code,{children:"err"}),", ",(0,s.jsx)(n.code,{children:"req"}),", ",(0,s.jsx)(n.code,{children:"res"}),", ",(0,s.jsx)(n.code,{children:"next"}),"): ",(0,s.jsx)(n.code,{children:"void"})]}),"\n",(0,s.jsxs)(n.p,{children:["General error handler. Called at usage of ",(0,s.jsx)(n.code,{children:"next()"})," in routes."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-13",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"err"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"any"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"req"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Request"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"ParsedQs"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"res"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Response"}),"<",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">, ",(0,s.jsx)(n.code,{children:"number"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"next"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"NextFunction"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-13",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-93",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"node_modules/@types/express-serve-static-core/index.d.ts:73"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"escapenewlines",children:"escapeNewlines"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"escapeNewlines"}),"(",(0,s.jsx)(n.code,{children:"str"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-14",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"str"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-14",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-94",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L5",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:5"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"extractfrontmatter",children:"extractFrontMatter"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"extractFrontMatter"}),"<",(0,s.jsx)(n.code,{children:"T"}),">(",(0,s.jsx)(n.code,{children:"text"}),", ",(0,s.jsx)(n.code,{children:"language?"}),", ",(0,s.jsx)(n.code,{children:"delimiter?"}),"): ",(0,s.jsx)(n.code,{children:"Object"})]}),"\n",(0,s.jsx)(n.p,{children:"This function extracts frontmatter from a string.\nThe generic type does not validate that the frontmatter\nconforms to the type. It just provides the type\nfor developer convenience."}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-6",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-15",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"text"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"language?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"delimiter?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-15",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Object"})}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"body"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"metadata?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-95",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/extractFrontMatter.d.ts:7"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filterdefined",children:"filterDefined"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"filterDefined"}),"<",(0,s.jsx)(n.code,{children:"T"}),">(",(0,s.jsx)(n.code,{children:"array"}),"): ",(0,s.jsx)(n.code,{children:"Exclude"}),"<",(0,s.jsx)(n.code,{children:"T"}),", ",(0,s.jsx)(n.code,{children:"undefined"}),">[]"]}),"\n",(0,s.jsx)(n.p,{children:"Given an array of possibly undefined T, return those that are defined."}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-7",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(n.tbody,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-16",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"array"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"T"}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-16",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Exclude"}),"<",(0,s.jsx)(n.code,{children:"T"}),", ",(0,s.jsx)(n.code,{children:"undefined"}),">[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-96",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/arrayFilters.d.ts:8"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filterfulfilled",children:"filterFulfilled"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"filterFulfilled"}),"<",(0,s.jsx)(n.code,{children:"T"}),">(",(0,s.jsx)(n.code,{children:"array"}),"): ",(0,s.jsx)(n.code,{children:"PromiseFulfilledResult"}),"<",(0,s.jsx)(n.code,{children:"T"}),">[]"]}),"\n",(0,s.jsx)(n.p,{children:"Given an array of PromiseSettledResults, return those that are fulfilled as PromiseFulfilledResults."}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-8",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,s.jsx)(n.tbody,{children:(0,s.jsx)(n.tr,{children:(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-17",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"array"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"PromiseSettledResult"}),"<",(0,s.jsx)(n.code,{children:"T"}),">[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-17",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"PromiseFulfilledResult"}),"<",(0,s.jsx)(n.code,{children:"T"}),">[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-97",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/arrayFilters.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"filteronlysystemprompt",children:"filterOnlySystemPrompt"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"filterOnlySystemPrompt"}),"(",(0,s.jsx)(n.code,{children:"conversation"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]>"]}),"\n",(0,s.jsx)(n.p,{children:"Only include the initial system prompt."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-18",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversation"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,s.jsx)(n.code,{children:"Conversation"})}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})}),">"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-18",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,s.jsx)(n.code,{children:"Message"})}),"[]>"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-98",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/FilterPreviousMessages.ts#L9",children:"packages/mongodb-chatbot-server/src/processors/FilterPreviousMessages.ts:9"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"includechunksformaxtokenspossible",children:"includeChunksForMaxTokensPossible"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"includeChunksForMaxTokensPossible"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]"]}),"\n",(0,s.jsx)(n.p,{children:"This function returns the chunks that can fit in the maxTokens.\nIt limits the number of tokens that are sent to the LLM."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-19",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Object"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"content"})]}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(n.code,{children:"maxTokens"})]}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-19",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-99",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L202",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:202"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"ispageformat",children:"isPageFormat"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"isPageFormat"}),"(",(0,s.jsx)(n.code,{children:"str"}),'): str is "txt" | "md" | "mdx" | "restructuredtext" | "csv" | "json" | "yaml" | "toml" | "xml" | "openapi-yaml" | "openapi-json" | "graphql" | "c" | "cpp" | "csharp" | "go" | "html" | "java" | "javascript" | "kotlin" | "latex" | "objective-c" | "php" | "python" | "ruby" | "rust" | "scala" | "shell" | "swift" | "typescript"']}),"\n",(0,s.jsx)(n.p,{children:"Type guard to check if a string is a canonical page format."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-20",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"str"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-20",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:'str is "txt" | "md" | "mdx" | "restructuredtext" | "csv" | "json" | "yaml" | "toml" | "xml" | "openapi-yaml" | "openapi-json" | "graphql" | "c" | "cpp" | "csharp" | "go" | "html" | "java" | "javascript" | "kotlin" | "latex" | "objective-c" | "php" | "python" | "ruby" | "rust" | "scala" | "shell" | "swift" | "typescript"'}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-100",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/PageFormat.d.ts:19"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeapp",children:"makeApp"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeApp"}),"(",(0,s.jsx)(n.code,{children:"config"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Express"}),">"]}),"\n",(0,s.jsx)(n.p,{children:"Constructor function to make the Express.js app."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-21",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"config"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/AppConfig",children:(0,s.jsx)(n.code,{children:"AppConfig"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-21",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"Express"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-101",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/app.ts#L115",children:"packages/mongodb-chatbot-server/src/app.ts:115"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeboostonatlassearchfilter",children:"makeBoostOnAtlasSearchFilter"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeBoostOnAtlasSearchFilter"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/SearchBooster",children:(0,s.jsx)(n.code,{children:"SearchBooster"})})]}),"\n",(0,s.jsx)(n.p,{children:"Boost certain results in search results from Atlas Search."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-22",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MakeBoostOnAtlasSearchFilterArgs"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-22",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/SearchBooster",children:(0,s.jsx)(n.code,{children:"SearchBooster"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-102",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeBoostOnAtlasSearchFilter.ts#L37",children:"packages/mongodb-chatbot-server/src/processors/makeBoostOnAtlasSearchFilter.ts:37"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeconversationsrouter",children:"makeConversationsRouter"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeConversationsRouter"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Router"})]}),"\n",(0,s.jsx)(n.p,{children:"Constructor function to make the /conversations/* Express.js router."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-23",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRouterParams",children:(0,s.jsx)(n.code,{children:"ConversationsRouterParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-23",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Router"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-103",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L217",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:217"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedatastreamer",children:"makeDataStreamer"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDataStreamer"}),"(): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:(0,s.jsx)(n.code,{children:"DataStreamer"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Create a ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:"DataStreamer"})," that streams data to the client."]}),"\n",(0,s.jsx)(n.h4,{id:"returns-24",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:(0,s.jsx)(n.code,{children:"DataStreamer"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-104",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/dataStreamer.ts#L116",children:"packages/mongodb-chatbot-server/src/services/dataStreamer.ts:116"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedefaultfindcontent",children:"makeDefaultFindContent"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDefaultFindContent"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentfunc",children:(0,s.jsx)(n.code,{children:"FindContentFunc"})})]}),"\n",(0,s.jsx)(n.p,{children:"Basic implementation of FindContentFunc with search boosters."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-24",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#makedefaultfindcontentfuncargs",children:(0,s.jsx)(n.code,{children:"MakeDefaultFindContentFuncArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-25",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findcontentfunc",children:(0,s.jsx)(n.code,{children:"FindContentFunc"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-105",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeDefaultFindContent.ts#L19",children:"packages/mongodb-chatbot-server/src/processors/makeDefaultFindContent.ts:19"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedefaultfindverifiedanswer",children:"makeDefaultFindVerifiedAnswer"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDefaultFindVerifiedAnswer"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerfunc",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerFunc"})})]}),"\n",(0,s.jsx)(n.p,{children:"Basic implementation of FindVerifiedAnswerFunc."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-25",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#makedefaultfindverifiedanswerfuncargs",children:(0,s.jsx)(n.code,{children:"MakeDefaultFindVerifiedAnswerFuncArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-26",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#findverifiedanswerfunc",children:(0,s.jsx)(n.code,{children:"FindVerifiedAnswerFunc"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-106",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeDefaultFindVerifiedAnswer.ts#L17",children:"packages/mongodb-chatbot-server/src/processors/makeDefaultFindVerifiedAnswer.ts:17"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makedefaultreferencelinks",children:"makeDefaultReferenceLinks"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeDefaultReferenceLinks"}),"(",(0,s.jsx)(n.code,{children:"chunks"}),"): { ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[]"]}),"\n",(0,s.jsxs)(n.p,{children:["The default reference format returns the following for chunks from ",(0,s.jsx)(n.em,{children:"unique"})," pages:"]}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-js",children:"{\n title: chunk.metadata.pageTitle ?? chunk.url, // if title doesn't exist, just put url\n url: chunk.url // this always exists\n}\n"})}),"\n",(0,s.jsx)(n.h4,{id:"parameters-26",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"chunks"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,s.jsx)(n.code,{children:"EmbeddedContent"})}),"[]"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-27",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:["{ ",(0,s.jsx)(n.code,{children:"title"}),": ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"url"}),": ",(0,s.jsx)(n.code,{children:"string"})," }[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-107",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/MakeReferenceLinksFunc.ts#L6",children:"packages/mongodb-chatbot-server/src/processors/MakeReferenceLinksFunc.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makefilternpreviousmessages",children:"makeFilterNPreviousMessages"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeFilterNPreviousMessages"}),"(",(0,s.jsx)(n.code,{children:"n"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#filterpreviousmessages",children:(0,s.jsx)(n.code,{children:"FilterPreviousMessages"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Creates a filter that only includes the previous n messages in the conversations.\nThe first message in the conversation ",(0,s.jsx)(n.strong,{children:"must"})," be the system prompt."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-27",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"n"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:"Number of previous messages to include."})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-28",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#filterpreviousmessages",children:(0,s.jsx)(n.code,{children:"FilterPreviousMessages"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-108",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeFilterNPreviousMessages.ts#L8",children:"packages/mongodb-chatbot-server/src/processors/makeFilterNPreviousMessages.ts:8"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makehandletimeoutmiddleware",children:"makeHandleTimeoutMiddleware"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeHandleTimeoutMiddleware"}),"(",(0,s.jsx)(n.code,{children:"apiTimeout"}),"): (",(0,s.jsx)(n.code,{children:"req"}),": ",(0,s.jsx)(n.code,{children:"Request"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"ParsedQs"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>, ",(0,s.jsx)(n.code,{children:"res"}),": ",(0,s.jsx)(n.code,{children:"Response"}),"<",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>, ",(0,s.jsx)(n.code,{children:"next"}),": ",(0,s.jsx)(n.code,{children:"NextFunction"}),") => ",(0,s.jsx)(n.code,{children:"void"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-28",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"apiTimeout"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"number"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-29",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"fn"})}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"req"}),", ",(0,s.jsx)(n.code,{children:"res"}),", ",(0,s.jsx)(n.code,{children:"next"}),"): ",(0,s.jsx)(n.code,{children:"void"})]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-29",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"req"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Request"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"ParsedQs"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"res"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Response"}),"<",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"next"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"NextFunction"})})]})]})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-30",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-109",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/app.ts#L93",children:"packages/mongodb-chatbot-server/src/app.ts:93"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makelangchainembedder",children:"makeLangChainEmbedder"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeLangChainEmbedder"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Constructor for implementation of the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:"Embedder"})," using a LangChain.js ",(0,s.jsx)(n.a,{href:"https://js.langchain.com/docs/modules/data_connection/text_embedding/",children:(0,s.jsx)(n.code,{children:"Embeddings"})})," class."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-30",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#makelangchainembedderparams",children:(0,s.jsx)(n.code,{children:"MakeLangChainEmbedderParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-31",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-110",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/LangChainEmbedder.d.ts:13"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makelangchainchatllm",children:"makeLangchainChatLlm"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeLangchainChatLlm"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:(0,s.jsx)(n.code,{children:"ChatLlm"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Use any Langchain JS ",(0,s.jsx)(n.a,{href:"https://js.langchain.com/docs/modules/model_io/chat/",children:(0,s.jsx)(n.code,{children:"ChatModel"})}),"\nto talk to an LLM."]}),"\n",(0,s.jsx)(n.p,{children:"Note: This ChatLLM does not currently support tool calling."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-31",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps",children:(0,s.jsx)(n.code,{children:"MakeLangchainChatLlmProps"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-32",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:(0,s.jsx)(n.code,{children:"ChatLlm"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-111",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts#L23",children:"packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts:23"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemongodbconversationsservice",children:"makeMongoDbConversationsService"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMongoDbConversationsService"}),"(",(0,s.jsx)(n.code,{children:"database"}),", ",(0,s.jsx)(n.code,{children:"conversationConstants?"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:(0,s.jsx)(n.code,{children:"ConversationsService"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Create ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:"ConversationsService"})," that uses MongoDB as a data store."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-32",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Default value"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"database"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Db"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"undefined"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"conversationConstants"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationConstants",children:(0,s.jsx)(n.code,{children:"ConversationConstants"})})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"defaultConversationConstants"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-33",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:(0,s.jsx)(n.code,{children:"ConversationsService"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-112",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/mongodbConversations.ts#L25",children:"packages/mongodb-chatbot-server/src/services/mongodbConversations.ts:25"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemongodbembeddedcontentstore",children:"makeMongoDbEmbeddedContentStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMongoDbEmbeddedContentStore"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embeddedcontentstore",children:(0,s.jsx)(n.code,{children:"EmbeddedContentStore"})})," & ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#databaseconnection",children:(0,s.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-33",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MakeMongoDbDatabaseConnectionParams"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-34",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embeddedcontentstore",children:(0,s.jsx)(n.code,{children:"EmbeddedContentStore"})})," & ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#databaseconnection",children:(0,s.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-113",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/MongoDbEmbeddedContentStore.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemongodbpagestore",children:"makeMongoDbPageStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMongoDbPageStore"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#mongodbpagestore",children:(0,s.jsx)(n.code,{children:"MongoDbPageStore"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Data store for ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#page",children:"Page"})," objects using MongoDB."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-34",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"MakeMongoDbDatabaseConnectionParams"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-35",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#mongodbpagestore",children:(0,s.jsx)(n.code,{children:"MongoDbPageStore"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-114",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/MongoDbPageStore.d.ts:12"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makemongodbverifiedanswerstore",children:"makeMongoDbVerifiedAnswerStore"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeMongoDbVerifiedAnswerStore"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#verifiedanswerstore",children:(0,s.jsx)(n.code,{children:"VerifiedAnswerStore"})})," & ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#databaseconnection",children:(0,s.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-35",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"MakeMongoDbDatabaseConnectionParams"})," & { ",(0,s.jsx)(n.code,{children:"collectionName"}),": ",(0,s.jsx)(n.code,{children:"string"})," }"]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-36",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#verifiedanswerstore",children:(0,s.jsx)(n.code,{children:"VerifiedAnswerStore"})})," & ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#databaseconnection",children:(0,s.jsx)(n.code,{children:"DatabaseConnection"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-115",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/MongoDbVerifiedAnswerStore.d.ts:4"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeopenaichatllm",children:"makeOpenAiChatLlm"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeOpenAiChatLlm"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.code,{children:"Required"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:(0,s.jsx)(n.code,{children:"ChatLlm"})}),">"]}),"\n",(0,s.jsxs)(n.p,{children:["Construct the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:"ChatLlm"})," service using the ",(0,s.jsx)(n.a,{href:"https://learn.microsoft.com/en-us/azure/ai-services/openai/chatgpt-quickstart?tabs=command-line&pivots=programming-language-studio",children:"OpenAI ChatGPT API"}),".\nThe ",(0,s.jsx)(n.code,{children:"ChatLlm"})," wraps the ",(0,s.jsx)(n.a,{href:"https://www.npmjs.com/package/@azure/openai",children:"@azure/openai"})," package."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-36",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams",children:(0,s.jsx)(n.code,{children:"MakeOpenAiChatLlmParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-37",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Required"}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:(0,s.jsx)(n.code,{children:"ChatLlm"})}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-116",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts#L31",children:"packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts:31"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeopenaiembedder",children:"makeOpenAiEmbedder"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeOpenAiEmbedder"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Constructor for implementation of the ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:"Embedder"})," using ",(0,s.jsx)(n.a,{href:"https://platform.openai.com/docs/guides/embeddings",children:"OpenAI\nEmbeddings API"}),"."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-37",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#makeopenaiembedderargs",children:(0,s.jsx)(n.code,{children:"MakeOpenAiEmbedderArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-38",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#embedder",children:(0,s.jsx)(n.code,{children:"Embedder"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-117",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/OpenAiEmbedder.d.ts:22"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeraggenerateuserprompt",children:"makeRagGenerateUserPrompt"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeRagGenerateUserPrompt"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFunc"})})]}),"\n",(0,s.jsxs)(n.p,{children:["Construct a ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:"GenerateUserPromptFunc"})," function\nthat uses retrieval augmented generation (RAG) to generate the user prompt\nand return references to use in the answer.\nThe returned RAG user prompt generator performs the following steps:"]}),"\n",(0,s.jsxs)(n.ol,{children:["\n",(0,s.jsx)(n.li,{children:"Preprocess the user's message using the query preprocessor."}),"\n",(0,s.jsx)(n.li,{children:"Find content using vector search."}),"\n",(0,s.jsx)(n.li,{children:"Removes any chunks that would exceed the max context tokens."}),"\n",(0,s.jsx)(n.li,{children:"Generate the user message using the make user message function."}),"\n",(0,s.jsx)(n.li,{children:"Return the user message and references."}),"\n"]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-38",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams",children:(0,s.jsx)(n.code,{children:"MakeRagGenerateUserPromptParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-39",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFunc"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-118",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L64",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:64"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makestaticsite",children:"makeStaticSite"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeStaticSite"}),"(",(0,s.jsx)(n.code,{children:"app"}),"): ",(0,s.jsx)(n.code,{children:"Express"})]}),"\n",(0,s.jsxs)(n.p,{children:["Middleware that serves the static site from the root path\n(",(0,s.jsx)(n.code,{children:"GET https://my-site.com/"}),")."]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-39",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"app"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"Express"})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-40",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"Express"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-119",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/staticSite.ts#L8",children:"packages/mongodb-chatbot-server/src/routes/staticSite.ts:8"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"maketypechatjsontranslatefunc",children:"makeTypeChatJsonTranslateFunc"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeTypeChatJsonTranslateFunc"}),"<",(0,s.jsx)(n.code,{children:"SchemaType"}),">(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): (",(0,s.jsx)(n.code,{children:"prompt"}),": ",(0,s.jsx)(n.code,{children:"string"}),") => ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"SchemaType"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"type-parameters-9",children:"Type parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"SchemaType"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,s.jsx)(n.code,{children:"object"})]})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-40",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#maketypechatjsontranslatefuncargs",children:(0,s.jsx)(n.code,{children:"MakeTypeChatJsonTranslateFuncArgs"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-41",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"fn"})}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 (",(0,s.jsx)(n.code,{children:"prompt"}),"): ",(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"SchemaType"}),">"]}),"\n",(0,s.jsx)(n.h5,{id:"parameters-41",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"prompt"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,s.jsx)(n.h5,{id:"returns-42",children:"Returns"}),"\n",(0,s.jsxs)(n.p,{children:[(0,s.jsx)(n.code,{children:"Promise"}),"<",(0,s.jsx)(n.code,{children:"SchemaType"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-120",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/TypeChatJsonTranslateFunc.d.ts:29"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"makeverifiedanswergenerateuserprompt",children:"makeVerifiedAnswerGenerateUserPrompt"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"makeVerifiedAnswerGenerateUserPrompt"}),"(",(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFunc"})})]}),"\n",(0,s.jsx)(n.p,{children:"Constructs a GenerateUserPromptFunc that searches for verified answers for the\nuser query. If no verified answer can be found for the given query, the\nonNoVerifiedAnswerFound GenerateUserPromptFunc is called instead."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-42",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsx)(n.tbody,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams",children:(0,s.jsx)(n.code,{children:"MakeVerifiedAnswerGenerateUserPromptParams"})})})]})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-43",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,s.jsx)(n.code,{children:"GenerateUserPromptFunc"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-121",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts#L21",children:"packages/mongodb-chatbot-server/src/processors/makeVerifiedAnswerGenerateUserPrompt.ts:21"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"pageformat-1",children:"pageFormat"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"pageFormat"}),"(",(0,s.jsx)(n.code,{children:"str"}),", ",(0,s.jsx)(n.code,{children:"defaultPageFormat?"}),"): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pageformat",children:(0,s.jsx)(n.code,{children:"PageFormat"})})]}),"\n",(0,s.jsx)(n.p,{children:"Converts a string to a canonical page format. If the string is not a\nrecognized page format or a synonym for one, this returns a default\npage format."}),"\n",(0,s.jsx)(n.h4,{id:"parameters-43",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"str"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"defaultPageFormat?"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:'"txt"'})," | ",(0,s.jsx)(n.code,{children:'"md"'})," | ",(0,s.jsx)(n.code,{children:'"mdx"'})," | ",(0,s.jsx)(n.code,{children:'"restructuredtext"'})," | ",(0,s.jsx)(n.code,{children:'"csv"'})," | ",(0,s.jsx)(n.code,{children:'"json"'})," | ",(0,s.jsx)(n.code,{children:'"yaml"'})," | ",(0,s.jsx)(n.code,{children:'"toml"'})," | ",(0,s.jsx)(n.code,{children:'"xml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-yaml"'})," | ",(0,s.jsx)(n.code,{children:'"openapi-json"'})," | ",(0,s.jsx)(n.code,{children:'"graphql"'})," | ",(0,s.jsx)(n.code,{children:'"c"'})," | ",(0,s.jsx)(n.code,{children:'"cpp"'})," | ",(0,s.jsx)(n.code,{children:'"csharp"'})," | ",(0,s.jsx)(n.code,{children:'"go"'})," | ",(0,s.jsx)(n.code,{children:'"html"'})," | ",(0,s.jsx)(n.code,{children:'"java"'})," | ",(0,s.jsx)(n.code,{children:'"javascript"'})," | ",(0,s.jsx)(n.code,{children:'"kotlin"'})," | ",(0,s.jsx)(n.code,{children:'"latex"'})," | ",(0,s.jsx)(n.code,{children:'"objective-c"'})," | ",(0,s.jsx)(n.code,{children:'"php"'})," | ",(0,s.jsx)(n.code,{children:'"python"'})," | ",(0,s.jsx)(n.code,{children:'"ruby"'})," | ",(0,s.jsx)(n.code,{children:'"rust"'})," | ",(0,s.jsx)(n.code,{children:'"scala"'})," | ",(0,s.jsx)(n.code,{children:'"shell"'})," | ",(0,s.jsx)(n.code,{children:'"swift"'})," | ",(0,s.jsx)(n.code,{children:'"typescript"'})]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-44",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#pageformat",children:(0,s.jsx)(n.code,{children:"PageFormat"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-122",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/PageFormat.d.ts:25"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"removefrontmatter",children:"removeFrontMatter"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"removeFrontMatter"}),"(",(0,s.jsx)(n.code,{children:"content"}),", ",(0,s.jsx)(n.code,{children:"options?"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-44",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"content"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"options?"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"FrontMatterOptions"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-45",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-123",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/removeFrontMatter.d.ts:2"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"reqhandler",children:"reqHandler"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"reqHandler"}),"(",(0,s.jsx)(n.code,{children:"req"}),", ",(0,s.jsx)(n.code,{children:"res"}),", ",(0,s.jsx)(n.code,{children:"next"}),"): ",(0,s.jsx)(n.code,{children:"void"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-45",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"req"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Request"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"ParsedQs"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"res"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Response"}),"<",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">, ",(0,s.jsx)(n.code,{children:"number"}),">"]})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"next"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"NextFunction"})})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-46",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"void"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-124",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"node_modules/@types/express-serve-static-core/index.d.ts:60"}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"requirerequestorigin",children:"requireRequestOrigin"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"requireRequestOrigin"}),"(): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsmiddleware",children:(0,s.jsx)(n.code,{children:"ConversationsMiddleware"})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-47",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsmiddleware",children:(0,s.jsx)(n.code,{children:"ConversationsMiddleware"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-125",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/middleware/requireRequestOrigin.ts#L6",children:"packages/mongodb-chatbot-server/src/middleware/requireRequestOrigin.ts:6"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"requirevalidipaddress",children:"requireValidIpAddress"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"requireValidIpAddress"}),"(): ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsmiddleware",children:(0,s.jsx)(n.code,{children:"ConversationsMiddleware"})})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-48",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsmiddleware",children:(0,s.jsx)(n.code,{children:"ConversationsMiddleware"})})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-126",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/middleware/requireValidIpAddress.ts#L5",children:"packages/mongodb-chatbot-server/src/middleware/requireValidIpAddress.ts:5"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"updatefrontmatter",children:"updateFrontMatter"}),"\n",(0,s.jsxs)(n.p,{children:["\u25b8 ",(0,s.jsx)(n.strong,{children:"updateFrontMatter"}),"(",(0,s.jsx)(n.code,{children:"text"}),", ",(0,s.jsx)(n.code,{children:"metadataIn"}),"): ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"parameters-46",children:"Parameters"}),"\n",(0,s.jsxs)(n.table,{children:[(0,s.jsx)(n.thead,{children:(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(n.tbody,{children:[(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"text"})}),(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"string"})})]}),(0,s.jsxs)(n.tr,{children:[(0,s.jsx)(n.td,{style:{textAlign:"left"},children:(0,s.jsx)(n.code,{children:"metadataIn"})}),(0,s.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]})]})]})]}),"\n",(0,s.jsx)(n.h4,{id:"returns-49",children:"Returns"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.code,{children:"string"})}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-127",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:"packages/mongodb-rag-core/build/updateFrontMatter.d.ts:1"})]})}function o(e={}){const{wrapper:n}={...(0,d.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(a,{...e})}):a(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>l,a:()=>i});var s=r(67294);const d={},t=s.createContext(d);function i(e){const n=s.useContext(t);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),s.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a219802b.e8dc20f4.js b/assets/js/a219802b.60981514.js similarity index 94% rename from assets/js/a219802b.e8dc20f4.js rename to assets/js/a219802b.60981514.js index dc85c3024..f6f843642 100644 --- a/assets/js/a219802b.e8dc20f4.js +++ b/assets/js/a219802b.60981514.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7595],{73524:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>h,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var s=t(85893),a=t(11151);const r={id:"BaseTestCase",title:"Interface: BaseTestCase",sidebar_label:"BaseTestCase",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/evaluation/interfaces/BaseTestCase",title:"Interface: BaseTestCase",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/BaseTestCase.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/BaseTestCase",permalink:"/chatbot/reference/evaluation/interfaces/BaseTestCase",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"BaseTestCase",title:"Interface: BaseTestCase",sidebar_label:"BaseTestCase",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"BaseGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData"},next:{title:"CheckResponseQuality",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality"}},o={},d=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Properties",id:"properties",level:2},{value:"data",id:"data",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,a.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"BaseTestCase"})})}),"\n",(0,s.jsxs)(n.p,{children:["\u21b3 ",(0,s.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",children:(0,s.jsx)(n.code,{children:"ConversationTestCase"})})]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"data",children:"data"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L5",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:5"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"name"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L4",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:4"})})]})}function h(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>c,a:()=>i});var s=t(67294);const a={},r=s.createContext(a);function i(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7595],{73524:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>h,frontMatter:()=>r,metadata:()=>c,toc:()=>d});var s=t(85893),a=t(11151);const r={id:"BaseTestCase",title:"Interface: BaseTestCase",sidebar_label:"BaseTestCase",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/evaluation/interfaces/BaseTestCase",title:"Interface: BaseTestCase",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/BaseTestCase.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/BaseTestCase",permalink:"/chatbot/reference/evaluation/interfaces/BaseTestCase",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"BaseTestCase",title:"Interface: BaseTestCase",sidebar_label:"BaseTestCase",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"BaseGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData"},next:{title:"CheckResponseQuality",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality"}},o={},d=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Properties",id:"properties",level:2},{value:"data",id:"data",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,a.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.strong,{children:(0,s.jsx)(n.code,{children:"BaseTestCase"})})}),"\n",(0,s.jsxs)(n.p,{children:["\u21b3 ",(0,s.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",children:(0,s.jsx)(n.code,{children:"ConversationTestCase"})})]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"data",children:"data"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"data"}),": ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L5",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:5"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"name"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L4",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:4"})})]})}function h(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>c,a:()=>i});var s=t(67294);const a={},r=s.createContext(a);function i(e){const n=s.useContext(r);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),s.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a2f28722.fef4bf4a.js b/assets/js/a2f28722.fef4bf4a.js new file mode 100644 index 000000000..4dd8607b2 --- /dev/null +++ b/assets/js/a2f28722.fef4bf4a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5373],{29282:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>o,contentTitle:()=>c,default:()=>u,frontMatter:()=>r,metadata:()=>s,toc:()=>d});var a=n(85893),i=n(11151);const r={id:"ExpectedLinks",title:"Interface: ExpectedLinks",sidebar_label:"ExpectedLinks",sidebar_position:0,custom_edit_url:null},c=void 0,s={id:"reference/evaluation/interfaces/ExpectedLinks",title:"Interface: ExpectedLinks",description:"Indexable",source:"@site/docs/reference/evaluation/interfaces/ExpectedLinks.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ExpectedLinks",permalink:"/chatbot/reference/evaluation/interfaces/ExpectedLinks",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ExpectedLinks",title:"Interface: ExpectedLinks",sidebar_label:"ExpectedLinks",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"EvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/EvaluationStore"},next:{title:"GenerateDataAndMetadataParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams"}},o={},d=[{value:"Indexable",id:"indexable",level:2}];function l(e){const t={code:"code",h2:"h2",p:"p",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.h2,{id:"indexable",children:"Indexable"}),"\n",(0,a.jsxs)(t.p,{children:["\u25aa [expectedLink: ",(0,a.jsx)(t.code,{children:"string"}),"]: ",(0,a.jsx)(t.code,{children:"string"}),"[]"]}),"\n",(0,a.jsx)(t.p,{children:"The expected link is the key and the value is an array\nof actual links that match the expected link."})]})}function u(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},11151:(e,t,n)=>{n.d(t,{Z:()=>s,a:()=>c});var a=n(67294);const i={},r=a.createContext(i);function c(e){const t=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function s(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:c(e.components),a.createElement(r.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a3ea6000.4ff19775.js b/assets/js/a3ea6000.e77ac0e9.js similarity index 87% rename from assets/js/a3ea6000.4ff19775.js rename to assets/js/a3ea6000.e77ac0e9.js index 50c1d74be..4602b5aa9 100644 --- a/assets/js/a3ea6000.4ff19775.js +++ b/assets/js/a3ea6000.e77ac0e9.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2539],{78951:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>c,default:()=>h,frontMatter:()=>s,metadata:()=>o,toc:()=>r});var i=t(85893),a=t(11151);const s={id:"CheckResponseQualityParams",title:"Interface: CheckResponseQualityParams",sidebar_label:"CheckResponseQualityParams",sidebar_position:0,custom_edit_url:null},c=void 0,o={id:"reference/evaluation/interfaces/CheckResponseQualityParams",title:"Interface: CheckResponseQualityParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/CheckResponseQualityParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/CheckResponseQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CheckResponseQualityParams",title:"Interface: CheckResponseQualityParams",sidebar_label:"CheckResponseQualityParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CheckResponseQuality",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality"},next:{title:"CommandMetadataStore",permalink:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore"}},l={},r=[{value:"Properties",id:"properties",level:2},{value:"deploymentName",id:"deploymentname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"expectedOutputDescription",id:"expectedoutputdescription",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"fewShotExamples",id:"fewshotexamples",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"openAiClient",id:"openaiclient",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"received",id:"received",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,a.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,i.jsx)(n.h3,{id:"deploymentname",children:"deploymentName"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"deploymentName"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:12"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"expectedoutputdescription",children:"expectedOutputDescription"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"expectedOutputDescription"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:10"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"fewshotexamples",children:"fewShotExamples"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.code,{children:"Optional"})," ",(0,i.jsx)(n.strong,{children:"fewShotExamples"}),": ",(0,i.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample",children:(0,i.jsx)(n.code,{children:"ResponseQualityExample"})}),"[]"]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:13"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"openaiclient",children:"openAiClient"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"openAiClient"}),": ",(0,i.jsx)(n.code,{children:"OpenAIClient"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L11",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:11"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"received",children:"received"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"received"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L9",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:9"})})]})}function h(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>o,a:()=>c});var i=t(67294);const a={},s=i.createContext(a);function c(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:c(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2539],{78951:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>h,frontMatter:()=>s,metadata:()=>c,toc:()=>r});var i=t(85893),a=t(11151);const s={id:"CheckResponseQualityParams",title:"Interface: CheckResponseQualityParams",sidebar_label:"CheckResponseQualityParams",sidebar_position:0,custom_edit_url:null},o=void 0,c={id:"reference/evaluation/interfaces/CheckResponseQualityParams",title:"Interface: CheckResponseQualityParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/CheckResponseQualityParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/CheckResponseQualityParams",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"CheckResponseQualityParams",title:"Interface: CheckResponseQualityParams",sidebar_label:"CheckResponseQualityParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CheckResponseQuality",permalink:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality"},next:{title:"CommandMetadataStore",permalink:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore"}},l={},r=[{value:"Properties",id:"properties",level:2},{value:"deploymentName",id:"deploymentname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"expectedOutputDescription",id:"expectedoutputdescription",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"fewShotExamples",id:"fewshotexamples",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"openAiClient",id:"openaiclient",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"received",id:"received",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,a.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,i.jsx)(n.h3,{id:"deploymentname",children:"deploymentName"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"deploymentName"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:12"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"expectedoutputdescription",children:"expectedOutputDescription"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"expectedOutputDescription"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:10"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"fewshotexamples",children:"fewShotExamples"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.code,{children:"Optional"})," ",(0,i.jsx)(n.strong,{children:"fewShotExamples"}),": ",(0,i.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample",children:(0,i.jsx)(n.code,{children:"ResponseQualityExample"})}),"[]"]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:13"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"openaiclient",children:"openAiClient"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"openAiClient"}),": ",(0,i.jsx)(n.code,{children:"OpenAIClient"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L11",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:11"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"received",children:"received"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"received"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L9",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:9"})})]})}function h(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>c,a:()=>o});var i=t(67294);const a={},s=i.createContext(a);function o(e){const n=i.useContext(s);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:o(e.components),i.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a4b88ee3.9a440836.js b/assets/js/a4b88ee3.efb08939.js similarity index 86% rename from assets/js/a4b88ee3.9a440836.js rename to assets/js/a4b88ee3.efb08939.js index b69217e1c..fc9c77250 100644 --- a/assets/js/a4b88ee3.9a440836.js +++ b/assets/js/a4b88ee3.efb08939.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7415],{67035:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>a,toc:()=>s});var r=t(85893),o=t(11151);const i={id:"Report",title:"Interface: Report",sidebar_label:"Report",sidebar_position:0,custom_edit_url:null},d=void 0,a={id:"reference/evaluation/interfaces/Report",title:"Interface: Report",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/Report.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/Report",permalink:"/chatbot/reference/evaluation/interfaces/Report",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"Report",title:"Interface: Report",sidebar_label:"Report",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MongoDbReportStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore"},next:{title:"ReportEvalFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams"}},c={},s=[{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"commandRunMetadataId",id:"commandrunmetadataid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"createdAt",id:"createdat",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"data",id:"data",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-5",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,o.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"_id",children:"_id"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"_id"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L4",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:4"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"commandrunmetadataid",children:"commandRunMetadataId"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"commandRunMetadataId"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L15",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:15"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"createdat",children:"createdAt"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"createdAt"}),": ",(0,r.jsx)(n.code,{children:"Date"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L17",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:17"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"data",children:"data"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"data"}),": ",(0,r.jsx)(n.code,{children:"Record"}),"<",(0,r.jsx)(n.code,{children:"string"}),", ",(0,r.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L16",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:16"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"The name passed from the command that was run."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L14",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:14"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"type",children:"type"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"type"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"The type of the report."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L9",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:9"})})]})}function h(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>d});var r=t(67294);const o={},i=r.createContext(o);function d(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:d(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7415],{67035:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>d,toc:()=>s});var r=t(85893),o=t(11151);const i={id:"Report",title:"Interface: Report",sidebar_label:"Report",sidebar_position:0,custom_edit_url:null},a=void 0,d={id:"reference/evaluation/interfaces/Report",title:"Interface: Report",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/Report.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/Report",permalink:"/chatbot/reference/evaluation/interfaces/Report",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"Report",title:"Interface: Report",sidebar_label:"Report",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MongoDbReportStore",permalink:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore"},next:{title:"ReportEvalFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams"}},c={},s=[{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"commandRunMetadataId",id:"commandrunmetadataid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"createdAt",id:"createdat",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"data",id:"data",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-5",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,o.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"_id",children:"_id"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"_id"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L4",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:4"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"commandrunmetadataid",children:"commandRunMetadataId"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"commandRunMetadataId"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L15",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:15"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"createdat",children:"createdAt"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"createdAt"}),": ",(0,r.jsx)(n.code,{children:"Date"})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L17",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:17"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"data",children:"data"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"data"}),": ",(0,r.jsx)(n.code,{children:"Record"}),"<",(0,r.jsx)(n.code,{children:"string"}),", ",(0,r.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L16",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:16"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"The name passed from the command that was run."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L14",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:14"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"type",children:"type"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"type"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"The type of the report."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L9",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:9"})})]})}function h(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>d,a:()=>a});var r=t(67294);const o={},i=r.createContext(o);function a(e){const n=r.useContext(i);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:a(e.components),r.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a551f034.9c49e180.js b/assets/js/a551f034.dbc055b3.js similarity index 97% rename from assets/js/a551f034.9c49e180.js rename to assets/js/a551f034.dbc055b3.js index 3ce5c0977..9ecbf4edc 100644 --- a/assets/js/a551f034.9c49e180.js +++ b/assets/js/a551f034.dbc055b3.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5843],{15622:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>s,metadata:()=>l,toc:()=>c});var n=r(85893),i=r(11151);const s={id:"ReportStore",title:"Interface: ReportStore",sidebar_label:"ReportStore",sidebar_position:0,custom_edit_url:null},o=void 0,l={id:"reference/evaluation/interfaces/ReportStore",title:"Interface: ReportStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/ReportStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ReportStore",permalink:"/chatbot/reference/evaluation/interfaces/ReportStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ReportStore",title:"Interface: ReportStore",sidebar_label:"ReportStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ReportEvalFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams"},next:{title:"ResponseQualityExample",permalink:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample"}},d={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"close",id:"close",level:3},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4}];function a(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:["\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.strong,{children:(0,n.jsx)(t.code,{children:"ReportStore"})})}),"\n",(0,n.jsxs)(t.p,{children:["\u21b3 ",(0,n.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore",children:(0,n.jsx)(t.code,{children:"MongoDbReportStore"})})]}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(t.h2,{id:"methods",children:"Methods"}),"\n",(0,n.jsx)(t.h3,{id:"close",children:"close"}),"\n",(0,n.jsxs)(t.p,{children:["\u25b8 ",(0,n.jsx)(t.strong,{children:"close"}),"(): ",(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,n.jsx)(t.h4,{id:"returns",children:"Returns"}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,n.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:23"})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"find",children:"find"}),"\n",(0,n.jsxs)(t.p,{children:["\u25b8 ",(0,n.jsx)(t.strong,{children:"find"}),"(",(0,n.jsx)(t.code,{children:"filter"}),"): ",(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"undefined"})," | ",(0,n.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(t.code,{children:"Report"})}),"[]>"]}),"\n",(0,n.jsx)(t.h4,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(t.tbody,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{style:{textAlign:"left"},children:(0,n.jsx)(t.code,{children:"filter"})}),(0,n.jsx)(t.td,{style:{textAlign:"left"},children:(0,n.jsx)(t.code,{children:"unknown"})})]})})]}),"\n",(0,n.jsx)(t.h4,{id:"returns-1",children:"Returns"}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"undefined"})," | ",(0,n.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(t.code,{children:"Report"})}),"[]>"]}),"\n",(0,n.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L22",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:22"})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"insertone",children:"insertOne"}),"\n",(0,n.jsxs)(t.p,{children:["\u25b8 ",(0,n.jsx)(t.strong,{children:"insertOne"}),"(",(0,n.jsx)(t.code,{children:"evalResult"}),"): ",(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(t.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(t.tbody,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{style:{textAlign:"left"},children:(0,n.jsx)(t.code,{children:"evalResult"})}),(0,n.jsx)(t.td,{style:{textAlign:"left"},children:(0,n.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(t.code,{children:"Report"})})})]})})]}),"\n",(0,n.jsx)(t.h4,{id:"returns-2",children:"Returns"}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(t.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L21",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:21"})})]})}function h(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(a,{...e})}):a(e)}},11151:(e,t,r)=>{r.d(t,{Z:()=>l,a:()=>o});var n=r(67294);const i={},s=n.createContext(i);function o(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5843],{15622:(e,t,r)=>{r.r(t),r.d(t,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>s,metadata:()=>l,toc:()=>c});var n=r(85893),i=r(11151);const s={id:"ReportStore",title:"Interface: ReportStore",sidebar_label:"ReportStore",sidebar_position:0,custom_edit_url:null},o=void 0,l={id:"reference/evaluation/interfaces/ReportStore",title:"Interface: ReportStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/ReportStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ReportStore",permalink:"/chatbot/reference/evaluation/interfaces/ReportStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ReportStore",title:"Interface: ReportStore",sidebar_label:"ReportStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ReportEvalFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams"},next:{title:"ResponseQualityExample",permalink:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample"}},d={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"close",id:"close",level:3},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4}];function a(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,i.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,n.jsxs)(t.ul,{children:["\n",(0,n.jsxs)(t.li,{children:["\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.strong,{children:(0,n.jsx)(t.code,{children:"ReportStore"})})}),"\n",(0,n.jsxs)(t.p,{children:["\u21b3 ",(0,n.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore",children:(0,n.jsx)(t.code,{children:"MongoDbReportStore"})})]}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(t.h2,{id:"methods",children:"Methods"}),"\n",(0,n.jsx)(t.h3,{id:"close",children:"close"}),"\n",(0,n.jsxs)(t.p,{children:["\u25b8 ",(0,n.jsx)(t.strong,{children:"close"}),"(): ",(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,n.jsx)(t.h4,{id:"returns",children:"Returns"}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"void"}),">"]}),"\n",(0,n.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:23"})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"find",children:"find"}),"\n",(0,n.jsxs)(t.p,{children:["\u25b8 ",(0,n.jsx)(t.strong,{children:"find"}),"(",(0,n.jsx)(t.code,{children:"filter"}),"): ",(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"undefined"})," | ",(0,n.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(t.code,{children:"Report"})}),"[]>"]}),"\n",(0,n.jsx)(t.h4,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(t.tbody,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{style:{textAlign:"left"},children:(0,n.jsx)(t.code,{children:"filter"})}),(0,n.jsx)(t.td,{style:{textAlign:"left"},children:(0,n.jsx)(t.code,{children:"unknown"})})]})})]}),"\n",(0,n.jsx)(t.h4,{id:"returns-1",children:"Returns"}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"undefined"})," | ",(0,n.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(t.code,{children:"Report"})}),"[]>"]}),"\n",(0,n.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L22",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:22"})}),"\n",(0,n.jsx)(t.hr,{}),"\n",(0,n.jsx)(t.h3,{id:"insertone",children:"insertOne"}),"\n",(0,n.jsxs)(t.p,{children:["\u25b8 ",(0,n.jsx)(t.strong,{children:"insertOne"}),"(",(0,n.jsx)(t.code,{children:"evalResult"}),"): ",(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(t.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,n.jsxs)(t.table,{children:[(0,n.jsx)(t.thead,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(t.tbody,{children:(0,n.jsxs)(t.tr,{children:[(0,n.jsx)(t.td,{style:{textAlign:"left"},children:(0,n.jsx)(t.code,{children:"evalResult"})}),(0,n.jsx)(t.td,{style:{textAlign:"left"},children:(0,n.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,n.jsx)(t.code,{children:"Report"})})})]})})]}),"\n",(0,n.jsx)(t.h4,{id:"returns-2",children:"Returns"}),"\n",(0,n.jsxs)(t.p,{children:[(0,n.jsx)(t.code,{children:"Promise"}),"<",(0,n.jsx)(t.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(t.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(t.p,{children:(0,n.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L21",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:21"})})]})}function h(e={}){const{wrapper:t}={...(0,i.a)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(a,{...e})}):a(e)}},11151:(e,t,r)=>{r.d(t,{Z:()=>l,a:()=>o});var n=r(67294);const i={},s=n.createContext(i);function o(e){const t=n.useContext(s);return n.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),n.createElement(s.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a84b57e7.5b39eee1.js b/assets/js/a84b57e7.dfdb1d0e.js similarity index 86% rename from assets/js/a84b57e7.5b39eee1.js rename to assets/js/a84b57e7.dfdb1d0e.js index 39e733766..b8f5fd02b 100644 --- a/assets/js/a84b57e7.5b39eee1.js +++ b/assets/js/a84b57e7.dfdb1d0e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5687],{86936:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>h,frontMatter:()=>s,metadata:()=>c,toc:()=>l});var t=a(85893),r=a(11151);const s={id:"MakeLangchainChatLlmProps",title:"Interface: MakeLangchainChatLlmProps",sidebar_label:"MakeLangchainChatLlmProps",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/server/interfaces/MakeLangchainChatLlmProps",title:"Interface: MakeLangchainChatLlmProps",description:"Properties",source:"@site/docs/reference/server/interfaces/MakeLangchainChatLlmProps.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/MakeLangchainChatLlmProps",permalink:"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeLangchainChatLlmProps",title:"Interface: MakeLangchainChatLlmProps",sidebar_label:"MakeLangchainChatLlmProps",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"LlmCallToolParams",permalink:"/chatbot/reference/server/interfaces/LlmCallToolParams"},next:{title:"MakeOpenAiChatLlmParams",permalink:"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams"}},o={},l=[{value:"Properties",id:"properties",level:2},{value:"callOptions",id:"calloptions",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"chatModel",id:"chatmodel",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"calloptions",children:"callOptions"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"callOptions"}),": ",(0,t.jsx)(n.code,{children:"BaseLanguageModelCallOptions"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts#L14",children:"packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts:14"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"chatmodel",children:"chatModel"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"chatModel"}),": ",(0,t.jsx)(n.code,{children:"BaseChatModel"}),"<",(0,t.jsx)(n.code,{children:"BaseLanguageModelCallOptions"}),">"]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts#L13",children:"packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts:13"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>c,a:()=>i});var t=a(67294);const r={},s=t.createContext(r);function i(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5687],{86936:(e,n,a)=>{a.r(n),a.d(n,{assets:()=>o,contentTitle:()=>i,default:()=>d,frontMatter:()=>s,metadata:()=>c,toc:()=>l});var t=a(85893),r=a(11151);const s={id:"MakeLangchainChatLlmProps",title:"Interface: MakeLangchainChatLlmProps",sidebar_label:"MakeLangchainChatLlmProps",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/server/interfaces/MakeLangchainChatLlmProps",title:"Interface: MakeLangchainChatLlmProps",description:"Properties",source:"@site/docs/reference/server/interfaces/MakeLangchainChatLlmProps.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/MakeLangchainChatLlmProps",permalink:"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeLangchainChatLlmProps",title:"Interface: MakeLangchainChatLlmProps",sidebar_label:"MakeLangchainChatLlmProps",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"LlmCallToolParams",permalink:"/chatbot/reference/server/interfaces/LlmCallToolParams"},next:{title:"MakeOpenAiChatLlmParams",permalink:"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams"}},o={},l=[{value:"Properties",id:"properties",level:2},{value:"callOptions",id:"calloptions",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"chatModel",id:"chatmodel",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function h(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"calloptions",children:"callOptions"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"callOptions"}),": ",(0,t.jsx)(n.code,{children:"BaseLanguageModelCallOptions"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts#L14",children:"packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts:14"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"chatmodel",children:"chatModel"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"chatModel"}),": ",(0,t.jsx)(n.code,{children:"BaseChatModel"}),"<",(0,t.jsx)(n.code,{children:"BaseLanguageModelCallOptions"}),">"]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts#L13",children:"packages/mongodb-chatbot-server/src/services/LangchainChatLlm.ts:13"})})]})}function d(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},11151:(e,n,a)=>{a.d(n,{Z:()=>c,a:()=>i});var t=a(67294);const r={},s=t.createContext(r);function i(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a9058ace.c8d78210.js b/assets/js/a9058ace.3992d0c2.js similarity index 75% rename from assets/js/a9058ace.c8d78210.js rename to assets/js/a9058ace.3992d0c2.js index 1d5393857..037558bf9 100644 --- a/assets/js/a9058ace.c8d78210.js +++ b/assets/js/a9058ace.3992d0c2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4138],{39983:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>o,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>c,toc:()=>d});var n=r(85893),t=r(11151);const i={id:"RateMessageParams",title:"Interface: RateMessageParams",sidebar_label:"RateMessageParams",sidebar_position:0,custom_edit_url:null},a=void 0,c={id:"reference/server/interfaces/RateMessageParams",title:"Interface: RateMessageParams",description:"Properties",source:"@site/docs/reference/server/interfaces/RateMessageParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/RateMessageParams",permalink:"/chatbot/reference/server/interfaces/RateMessageParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"RateMessageParams",title:"Interface: RateMessageParams",sidebar_label:"RateMessageParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"OpenAiChatMessage",permalink:"/chatbot/reference/server/interfaces/OpenAiChatMessage"},next:{title:"SearchBooster",permalink:"/chatbot/reference/server/interfaces/SearchBooster"}},o={},d=[{value:"Properties",id:"properties",level:2},{value:"conversationId",id:"conversationid",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"messageId",id:"messageid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"rating",id:"rating",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const s={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(s.h3,{id:"conversationid",children:"conversationId"}),"\n",(0,n.jsxs)(s.p,{children:["\u2022 ",(0,n.jsx)(s.strong,{children:"conversationId"}),": ",(0,n.jsx)(s.code,{children:"ObjectId"})]}),"\n",(0,n.jsx)(s.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L201",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:201"})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.h3,{id:"messageid",children:"messageId"}),"\n",(0,n.jsxs)(s.p,{children:["\u2022 ",(0,n.jsx)(s.strong,{children:"messageId"}),": ",(0,n.jsx)(s.code,{children:"ObjectId"})]}),"\n",(0,n.jsx)(s.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L202",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:202"})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.h3,{id:"rating",children:"rating"}),"\n",(0,n.jsxs)(s.p,{children:["\u2022 ",(0,n.jsx)(s.strong,{children:"rating"}),": ",(0,n.jsx)(s.code,{children:"boolean"})]}),"\n",(0,n.jsx)(s.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L203",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:203"})})]})}function h(e={}){const{wrapper:s}={...(0,t.a)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},11151:(e,s,r)=>{r.d(s,{Z:()=>c,a:()=>a});var n=r(67294);const t={},i=n.createContext(t);function a(e){const s=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function c(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4138],{39983:(e,s,r)=>{r.r(s),r.d(s,{assets:()=>c,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>o,toc:()=>d});var n=r(85893),t=r(11151);const i={id:"RateMessageParams",title:"Interface: RateMessageParams",sidebar_label:"RateMessageParams",sidebar_position:0,custom_edit_url:null},a=void 0,o={id:"reference/server/interfaces/RateMessageParams",title:"Interface: RateMessageParams",description:"Properties",source:"@site/docs/reference/server/interfaces/RateMessageParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/RateMessageParams",permalink:"/chatbot/reference/server/interfaces/RateMessageParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"RateMessageParams",title:"Interface: RateMessageParams",sidebar_label:"RateMessageParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"OpenAiChatMessage",permalink:"/chatbot/reference/server/interfaces/OpenAiChatMessage"},next:{title:"SearchBooster",permalink:"/chatbot/reference/server/interfaces/SearchBooster"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"conversationId",id:"conversationid",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"messageId",id:"messageid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"rating",id:"rating",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const s={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(s.h3,{id:"conversationid",children:"conversationId"}),"\n",(0,n.jsxs)(s.p,{children:["\u2022 ",(0,n.jsx)(s.strong,{children:"conversationId"}),": ",(0,n.jsx)(s.code,{children:"ObjectId"})]}),"\n",(0,n.jsx)(s.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L208",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:208"})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.h3,{id:"messageid",children:"messageId"}),"\n",(0,n.jsxs)(s.p,{children:["\u2022 ",(0,n.jsx)(s.strong,{children:"messageId"}),": ",(0,n.jsx)(s.code,{children:"ObjectId"})]}),"\n",(0,n.jsx)(s.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L209",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:209"})}),"\n",(0,n.jsx)(s.hr,{}),"\n",(0,n.jsx)(s.h3,{id:"rating",children:"rating"}),"\n",(0,n.jsxs)(s.p,{children:["\u2022 ",(0,n.jsx)(s.strong,{children:"rating"}),": ",(0,n.jsx)(s.code,{children:"boolean"})]}),"\n",(0,n.jsx)(s.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(s.p,{children:(0,n.jsx)(s.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L210",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:210"})})]})}function h(e={}){const{wrapper:s}={...(0,t.a)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},11151:(e,s,r)=>{r.d(s,{Z:()=>o,a:()=>a});var n=r(67294);const t={},i=n.createContext(t);function a(e){const s=n.useContext(i);return n.useMemo((function(){return"function"==typeof e?e(s):{...s,...e}}),[s,e])}function o(e){let s;return s=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:a(e.components),n.createElement(i.Provider,{value:s},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/a94b3912.39d7e874.js b/assets/js/a94b3912.1230b4a7.js similarity index 85% rename from assets/js/a94b3912.39d7e874.js rename to assets/js/a94b3912.1230b4a7.js index 6bba25985..723e6f2eb 100644 --- a/assets/js/a94b3912.39d7e874.js +++ b/assets/js/a94b3912.1230b4a7.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6268],{36125:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>l,frontMatter:()=>i,metadata:()=>a,toc:()=>d});var t=s(85893),r=s(11151);const i={id:"Conversation",title:"Interface: Conversation",sidebar_label:"Conversation",sidebar_position:0,custom_edit_url:null},o=void 0,a={id:"reference/server/interfaces/Conversation",title:"Interface: Conversation",description:"Conversation between the user and the chatbot as stored in the database.",source:"@site/docs/reference/server/interfaces/Conversation.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/Conversation",permalink:"/chatbot/reference/server/interfaces/Conversation",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"Conversation",title:"Interface: Conversation",sidebar_label:"Conversation",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CommentMessageParams",permalink:"/chatbot/reference/server/interfaces/CommentMessageParams"},next:{title:"ConversationConstants",permalink:"/chatbot/reference/server/interfaces/ConversationConstants"}},c={},d=[{value:"Type parameters",id:"type-parameters",level:2},{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"createdAt",id:"createdat",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"customData",id:"customdata",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"messages",id:"messages",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"requestOrigin",id:"requestorigin",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function h(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.p,{children:"Conversation between the user and the chatbot as stored in the database."}),"\n",(0,t.jsx)(n.h2,{id:"type-parameters",children:"Type parameters"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,t.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,t.jsx)(n.tbody,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{style:{textAlign:"left"},children:(0,t.jsx)(n.code,{children:"CustomData"})}),(0,t.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,t.jsx)(n.code,{children:"ConversationCustomData"})})," = ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,t.jsx)(n.code,{children:"ConversationCustomData"})})]})]})})]}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"_id",children:"_id"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"_id"}),": ",(0,t.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L145",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:145"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"createdat",children:"createdAt"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"createdAt"}),": ",(0,t.jsx)(n.code,{children:"Date"})]}),"\n",(0,t.jsx)(n.p,{children:"The date the conversation was created."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L149",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:149"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"customdata",children:"customData"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"customData"}),": ",(0,t.jsx)(n.code,{children:"CustomData"})]}),"\n",(0,t.jsxs)(n.p,{children:["Custom data to include in the Conversation persisted to the database.\nYou can pass this data to the ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService#create",children:"()"})," method."]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L157",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:157"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"messages",children:"messages"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"messages"}),": ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,t.jsx)(n.code,{children:"Message"})}),"[]"]}),"\n",(0,t.jsx)(n.p,{children:"Messages in the conversation."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L147",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:147"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"requestorigin",children:"requestOrigin"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"requestOrigin"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"The hostname that the request originated from."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L151",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:151"})})]})}function l(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},11151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>o});var t=s(67294);const r={},i=t.createContext(r);function o(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6268],{36125:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>l,frontMatter:()=>i,metadata:()=>a,toc:()=>d});var t=s(85893),r=s(11151);const i={id:"Conversation",title:"Interface: Conversation",sidebar_label:"Conversation",sidebar_position:0,custom_edit_url:null},o=void 0,a={id:"reference/server/interfaces/Conversation",title:"Interface: Conversation",description:"Conversation between the user and the chatbot as stored in the database.",source:"@site/docs/reference/server/interfaces/Conversation.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/Conversation",permalink:"/chatbot/reference/server/interfaces/Conversation",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"Conversation",title:"Interface: Conversation",sidebar_label:"Conversation",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CommentMessageParams",permalink:"/chatbot/reference/server/interfaces/CommentMessageParams"},next:{title:"ConversationConstants",permalink:"/chatbot/reference/server/interfaces/ConversationConstants"}},c={},d=[{value:"Type parameters",id:"type-parameters",level:2},{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"createdAt",id:"createdat",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"customData",id:"customdata",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"messages",id:"messages",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"requestOrigin",id:"requestorigin",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function h(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.p,{children:"Conversation between the user and the chatbot as stored in the database."}),"\n",(0,t.jsx)(n.h2,{id:"type-parameters",children:"Type parameters"}),"\n",(0,t.jsxs)(n.table,{children:[(0,t.jsx)(n.thead,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,t.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,t.jsx)(n.tbody,{children:(0,t.jsxs)(n.tr,{children:[(0,t.jsx)(n.td,{style:{textAlign:"left"},children:(0,t.jsx)(n.code,{children:"CustomData"})}),(0,t.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,t.jsx)(n.code,{children:"ConversationCustomData"})})," = ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,t.jsx)(n.code,{children:"ConversationCustomData"})})]})]})})]}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"_id",children:"_id"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"_id"}),": ",(0,t.jsx)(n.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L152",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:152"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"createdat",children:"createdAt"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"createdAt"}),": ",(0,t.jsx)(n.code,{children:"Date"})]}),"\n",(0,t.jsx)(n.p,{children:"The date the conversation was created."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L156",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:156"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"customdata",children:"customData"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"customData"}),": ",(0,t.jsx)(n.code,{children:"CustomData"})]}),"\n",(0,t.jsxs)(n.p,{children:["Custom data to include in the Conversation persisted to the database.\nYou can pass this data to the ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService#create",children:"()"})," method."]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L164",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:164"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"messages",children:"messages"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"messages"}),": ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:(0,t.jsx)(n.code,{children:"Message"})}),"[]"]}),"\n",(0,t.jsx)(n.p,{children:"Messages in the conversation."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L154",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:154"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"requestorigin",children:"requestOrigin"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"requestOrigin"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.p,{children:"The hostname that the request originated from."}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L158",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:158"})})]})}function l(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},11151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>o});var t=s(67294);const r={},i=t.createContext(r);function o(e){const n=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(i.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/aa81105c.e15cffff.js b/assets/js/aa81105c.de75d083.js similarity index 98% rename from assets/js/aa81105c.e15cffff.js rename to assets/js/aa81105c.de75d083.js index cbe4e7b24..6f8246ed9 100644 --- a/assets/js/aa81105c.e15cffff.js +++ b/assets/js/aa81105c.de75d083.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9554],{49105:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>l,contentTitle:()=>c,default:()=>a,frontMatter:()=>n,metadata:()=>o,toc:()=>i});var s=t(85893),d=t(11151);const n={id:"SearchBooster",title:"Interface: SearchBooster",sidebar_label:"SearchBooster",sidebar_position:0,custom_edit_url:null},c=void 0,o={id:"reference/server/interfaces/SearchBooster",title:"Interface: SearchBooster",description:"Modify the vector search results to add, elevate, or mutate search results",source:"@site/docs/reference/server/interfaces/SearchBooster.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/SearchBooster",permalink:"/chatbot/reference/server/interfaces/SearchBooster",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"SearchBooster",title:"Interface: SearchBooster",sidebar_label:"SearchBooster",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"RateMessageParams",permalink:"/chatbot/reference/server/interfaces/RateMessageParams"},next:{title:"Tool",permalink:"/chatbot/reference/server/interfaces/Tool"}},l={},i=[{value:"Properties",id:"properties",level:2},{value:"boost",id:"boost",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"shouldBoost",id:"shouldboost",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-1",level:4}];function h(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,d.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.p,{children:"Modify the vector search results to add, elevate, or mutate search results\nafter the search has been performed."}),"\n",(0,s.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(r.h3,{id:"boost",children:"boost"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"boost"}),": (",(0,s.jsx)(r.code,{children:"__namedParameters"}),": { ",(0,s.jsx)(r.code,{children:"embedding"}),": ",(0,s.jsx)(r.code,{children:"number"}),"[] ; ",(0,s.jsx)(r.code,{children:"existingResults"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(r.code,{children:"WithScore"})}),"<",(0,s.jsx)(r.a,{href:"EmbeddedContent.md",children:(0,s.jsx)(r.code,{children:"EmbeddedContent"})}),">[] ; ",(0,s.jsx)(r.code,{children:"store"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#embeddedcontentstore",children:(0,s.jsx)(r.code,{children:"EmbeddedContentStore"})})," }) => ",(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(r.code,{children:"WithScore"})}),"<",(0,s.jsx)(r.a,{href:"EmbeddedContent.md",children:(0,s.jsx)(r.code,{children:"EmbeddedContent"})}),">[]>"]}),"\n",(0,s.jsx)(r.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,s.jsxs)(r.p,{children:["\u25b8 (",(0,s.jsx)(r.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(r.code,{children:"WithScore"})}),"<",(0,s.jsx)(r.a,{href:"EmbeddedContent.md",children:(0,s.jsx)(r.code,{children:"EmbeddedContent"})}),">[]>"]}),"\n",(0,s.jsx)(r.h5,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(r.table,{children:[(0,s.jsx)(r.thead,{children:(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(r.tbody,{children:[(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.code,{children:"Object"})})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(r.code,{children:"embedding"})]}),(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:[(0,s.jsx)(r.code,{children:"number"}),"[]"]})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(r.code,{children:"existingResults"})]}),(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:[(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(r.code,{children:"WithScore"})}),"<",(0,s.jsx)(r.a,{href:"EmbeddedContent.md",children:(0,s.jsx)(r.code,{children:"EmbeddedContent"})}),">[]"]})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(r.code,{children:"store"})]}),(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#embeddedcontentstore",children:(0,s.jsx)(r.code,{children:"EmbeddedContentStore"})})})]})]})]}),"\n",(0,s.jsx)(r.h5,{id:"returns",children:"Returns"}),"\n",(0,s.jsxs)(r.p,{children:[(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(r.code,{children:"WithScore"})}),"<",(0,s.jsx)(r.a,{href:"EmbeddedContent.md",children:(0,s.jsx)(r.code,{children:"EmbeddedContent"})}),">[]>"]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/SearchBooster.ts#L13",children:"packages/mongodb-chatbot-server/src/processors/SearchBooster.ts:13"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"shouldboost",children:"shouldBoost"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"shouldBoost"}),": (",(0,s.jsx)(r.code,{children:"__namedParameters"}),": { ",(0,s.jsx)(r.code,{children:"text"}),": ",(0,s.jsx)(r.code,{children:"string"})," }) => ",(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,s.jsx)(r.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,s.jsxs)(r.p,{children:["\u25b8 (",(0,s.jsx)(r.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,s.jsx)(r.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,s.jsxs)(r.table,{children:[(0,s.jsx)(r.thead,{children:(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(r.tbody,{children:[(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.code,{children:"Object"})})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(r.code,{children:"text"})]}),(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(r.h5,{id:"returns-1",children:"Returns"}),"\n",(0,s.jsxs)(r.p,{children:[(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/SearchBooster.ts#L12",children:"packages/mongodb-chatbot-server/src/processors/SearchBooster.ts:12"})})]})}function a(e={}){const{wrapper:r}={...(0,d.a)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},11151:(e,r,t)=>{t.d(r,{Z:()=>o,a:()=>c});var s=t(67294);const d={},n=s.createContext(d);function c(e){const r=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function o(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:c(e.components),s.createElement(n.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9554],{49105:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>l,contentTitle:()=>c,default:()=>a,frontMatter:()=>n,metadata:()=>o,toc:()=>i});var s=t(85893),d=t(11151);const n={id:"SearchBooster",title:"Interface: SearchBooster",sidebar_label:"SearchBooster",sidebar_position:0,custom_edit_url:null},c=void 0,o={id:"reference/server/interfaces/SearchBooster",title:"Interface: SearchBooster",description:"Modify the vector search results to add, elevate, or mutate search results",source:"@site/docs/reference/server/interfaces/SearchBooster.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/SearchBooster",permalink:"/chatbot/reference/server/interfaces/SearchBooster",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"SearchBooster",title:"Interface: SearchBooster",sidebar_label:"SearchBooster",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"RateMessageParams",permalink:"/chatbot/reference/server/interfaces/RateMessageParams"},next:{title:"Tool",permalink:"/chatbot/reference/server/interfaces/Tool"}},l={},i=[{value:"Properties",id:"properties",level:2},{value:"boost",id:"boost",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"shouldBoost",id:"shouldboost",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-1",level:4}];function h(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,d.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.p,{children:"Modify the vector search results to add, elevate, or mutate search results\nafter the search has been performed."}),"\n",(0,s.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(r.h3,{id:"boost",children:"boost"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"boost"}),": (",(0,s.jsx)(r.code,{children:"__namedParameters"}),": { ",(0,s.jsx)(r.code,{children:"embedding"}),": ",(0,s.jsx)(r.code,{children:"number"}),"[] ; ",(0,s.jsx)(r.code,{children:"existingResults"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(r.code,{children:"WithScore"})}),"<",(0,s.jsx)(r.a,{href:"EmbeddedContent.md",children:(0,s.jsx)(r.code,{children:"EmbeddedContent"})}),">[] ; ",(0,s.jsx)(r.code,{children:"store"}),": ",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#embeddedcontentstore",children:(0,s.jsx)(r.code,{children:"EmbeddedContentStore"})})," }) => ",(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(r.code,{children:"WithScore"})}),"<",(0,s.jsx)(r.a,{href:"EmbeddedContent.md",children:(0,s.jsx)(r.code,{children:"EmbeddedContent"})}),">[]>"]}),"\n",(0,s.jsx)(r.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,s.jsxs)(r.p,{children:["\u25b8 (",(0,s.jsx)(r.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(r.code,{children:"WithScore"})}),"<",(0,s.jsx)(r.a,{href:"EmbeddedContent.md",children:(0,s.jsx)(r.code,{children:"EmbeddedContent"})}),">[]>"]}),"\n",(0,s.jsx)(r.h5,{id:"parameters",children:"Parameters"}),"\n",(0,s.jsxs)(r.table,{children:[(0,s.jsx)(r.thead,{children:(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(r.tbody,{children:[(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.code,{children:"Object"})})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(r.code,{children:"embedding"})]}),(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:[(0,s.jsx)(r.code,{children:"number"}),"[]"]})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(r.code,{children:"existingResults"})]}),(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:[(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(r.code,{children:"WithScore"})}),"<",(0,s.jsx)(r.a,{href:"EmbeddedContent.md",children:(0,s.jsx)(r.code,{children:"EmbeddedContent"})}),">[]"]})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(r.code,{children:"store"})]}),(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#embeddedcontentstore",children:(0,s.jsx)(r.code,{children:"EmbeddedContentStore"})})})]})]})]}),"\n",(0,s.jsx)(r.h5,{id:"returns",children:"Returns"}),"\n",(0,s.jsxs)(r.p,{children:[(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.a,{href:"/chatbot/reference/server/modules#withscore",children:(0,s.jsx)(r.code,{children:"WithScore"})}),"<",(0,s.jsx)(r.a,{href:"EmbeddedContent.md",children:(0,s.jsx)(r.code,{children:"EmbeddedContent"})}),">[]>"]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/SearchBooster.ts#L13",children:"packages/mongodb-chatbot-server/src/processors/SearchBooster.ts:13"})}),"\n",(0,s.jsx)(r.hr,{}),"\n",(0,s.jsx)(r.h3,{id:"shouldboost",children:"shouldBoost"}),"\n",(0,s.jsxs)(r.p,{children:["\u2022 ",(0,s.jsx)(r.strong,{children:"shouldBoost"}),": (",(0,s.jsx)(r.code,{children:"__namedParameters"}),": { ",(0,s.jsx)(r.code,{children:"text"}),": ",(0,s.jsx)(r.code,{children:"string"})," }) => ",(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,s.jsx)(r.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,s.jsxs)(r.p,{children:["\u25b8 (",(0,s.jsx)(r.code,{children:"\xabdestructured\xbb"}),"): ",(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,s.jsx)(r.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,s.jsxs)(r.table,{children:[(0,s.jsx)(r.thead,{children:(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(r.tbody,{children:[(0,s.jsxs)(r.tr,{children:[(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.code,{children:"\xabdestructured\xbb"})}),(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.code,{children:"Object"})})]}),(0,s.jsxs)(r.tr,{children:[(0,s.jsxs)(r.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,s.jsx)(r.code,{children:"text"})]}),(0,s.jsx)(r.td,{style:{textAlign:"left"},children:(0,s.jsx)(r.code,{children:"string"})})]})]})]}),"\n",(0,s.jsx)(r.h5,{id:"returns-1",children:"Returns"}),"\n",(0,s.jsxs)(r.p,{children:[(0,s.jsx)(r.code,{children:"Promise"}),"<",(0,s.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,s.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(r.p,{children:(0,s.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/SearchBooster.ts#L12",children:"packages/mongodb-chatbot-server/src/processors/SearchBooster.ts:12"})})]})}function a(e={}){const{wrapper:r}={...(0,d.a)(),...e.components};return r?(0,s.jsx)(r,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},11151:(e,r,t)=>{t.d(r,{Z:()=>o,a:()=>c});var s=t(67294);const d={},n=s.createContext(d);function c(e){const r=s.useContext(n);return s.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function o(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:c(e.components),s.createElement(n.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ac5b8ccc.546ebf1e.js b/assets/js/ac5b8ccc.42e0362f.js similarity index 91% rename from assets/js/ac5b8ccc.546ebf1e.js rename to assets/js/ac5b8ccc.42e0362f.js index 47c29cadb..0d3d514ad 100644 --- a/assets/js/ac5b8ccc.546ebf1e.js +++ b/assets/js/ac5b8ccc.42e0362f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1776],{9439:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>a,metadata:()=>i,toc:()=>l});var s=r(85893),t=r(11151);const a={id:"LlmCallToolParams",title:"Interface: LlmCallToolParams",sidebar_label:"LlmCallToolParams",sidebar_position:0,custom_edit_url:null},o=void 0,i={id:"reference/server/interfaces/LlmCallToolParams",title:"Interface: LlmCallToolParams",description:"Parameters for invoking a tool call from the LLM.",source:"@site/docs/reference/server/interfaces/LlmCallToolParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/LlmCallToolParams",permalink:"/chatbot/reference/server/interfaces/LlmCallToolParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"LlmCallToolParams",title:"Interface: LlmCallToolParams",sidebar_label:"LlmCallToolParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"LlmAnswerQuestionParams",permalink:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams"},next:{title:"MakeLangchainChatLlmProps",permalink:"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps"}},c={},l=[{value:"Properties",id:"properties",level:2},{value:"conversation",id:"conversation",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"dataStreamer",id:"datastreamer",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"messages",id:"messages",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"request",id:"request",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.p,{children:"Parameters for invoking a tool call from the LLM."}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"conversation",children:"conversation"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Optional"})," ",(0,s.jsx)(n.strong,{children:"conversation"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,s.jsx)(n.code,{children:"Conversation"})}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})}),">"]}),"\n",(0,s.jsx)(n.p,{children:"Conversation in the DB. Useful for getting metadata to use in tool calls."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L125",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:125"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"datastreamer",children:"dataStreamer"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Optional"})," ",(0,s.jsx)(n.strong,{children:"dataStreamer"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:(0,s.jsx)(n.code,{children:"DataStreamer"})})]}),"\n",(0,s.jsx)(n.p,{children:"Data streamer with connection open to send events to the client."}),"\n",(0,s.jsx)(n.p,{children:"For example, you could use this to send updates about\nwhat the tool is doing to the client."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L134",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:134"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"messages",children:"messages"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"messages"}),": ",(0,s.jsx)(n.code,{children:"ChatRequestMessage"})," & { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"null"})," | ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#openaimessagerole",children:(0,s.jsx)(n.code,{children:"OpenAiMessageRole"})})," }[]"]}),"\n",(0,s.jsx)(n.p,{children:"Messages to send to the LLM. The tool call invocation information\nshould be in the last message."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L120",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:120"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"request",children:"request"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Optional"})," ",(0,s.jsx)(n.strong,{children:"request"}),": ",(0,s.jsx)(n.code,{children:"Request"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"ParsedQs"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>"]}),"\n",(0,s.jsx)(n.p,{children:"Current Express.js request from the client.\nUseful for getting metadata to use in tool calls."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L140",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:140"})})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>i,a:()=>o});var s=r(67294);const t={},a=s.createContext(t);function o(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1776],{9439:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>h,frontMatter:()=>a,metadata:()=>i,toc:()=>c});var s=r(85893),t=r(11151);const a={id:"LlmCallToolParams",title:"Interface: LlmCallToolParams",sidebar_label:"LlmCallToolParams",sidebar_position:0,custom_edit_url:null},o=void 0,i={id:"reference/server/interfaces/LlmCallToolParams",title:"Interface: LlmCallToolParams",description:"Parameters for invoking a tool call from the LLM.",source:"@site/docs/reference/server/interfaces/LlmCallToolParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/LlmCallToolParams",permalink:"/chatbot/reference/server/interfaces/LlmCallToolParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"LlmCallToolParams",title:"Interface: LlmCallToolParams",sidebar_label:"LlmCallToolParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"LlmAnswerQuestionParams",permalink:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams"},next:{title:"MakeLangchainChatLlmProps",permalink:"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps"}},l={},c=[{value:"Properties",id:"properties",level:2},{value:"conversation",id:"conversation",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"dataStreamer",id:"datastreamer",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"messages",id:"messages",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"request",id:"request",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.p,{children:"Parameters for invoking a tool call from the LLM."}),"\n",(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"conversation",children:"conversation"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Optional"})," ",(0,s.jsx)(n.strong,{children:"conversation"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,s.jsx)(n.code,{children:"Conversation"})}),"<",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,s.jsx)(n.code,{children:"ConversationCustomData"})}),">"]}),"\n",(0,s.jsx)(n.p,{children:"Conversation in the DB. Useful for getting metadata to use in tool calls."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L125",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:125"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"datastreamer",children:"dataStreamer"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Optional"})," ",(0,s.jsx)(n.strong,{children:"dataStreamer"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/DataStreamer",children:(0,s.jsx)(n.code,{children:"DataStreamer"})})]}),"\n",(0,s.jsx)(n.p,{children:"Data streamer with connection open to send events to the client."}),"\n",(0,s.jsx)(n.p,{children:"For example, you could use this to send updates about\nwhat the tool is doing to the client."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L134",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:134"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"messages",children:"messages"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"messages"}),": ",(0,s.jsx)(n.code,{children:"ChatRequestMessage"})," & { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"null"})," | ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/server/modules#openaimessagerole",children:(0,s.jsx)(n.code,{children:"OpenAiMessageRole"})})," }[]"]}),"\n",(0,s.jsx)(n.p,{children:"Messages to send to the LLM. The tool call invocation information\nshould be in the last message."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L120",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:120"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"request",children:"request"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.code,{children:"Optional"})," ",(0,s.jsx)(n.strong,{children:"request"}),": ",(0,s.jsx)(n.code,{children:"Request"}),"<",(0,s.jsx)(n.code,{children:"ParamsDictionary"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"any"}),", ",(0,s.jsx)(n.code,{children:"ParsedQs"}),", ",(0,s.jsx)(n.code,{children:"Record"}),"<",(0,s.jsx)(n.code,{children:"string"}),", ",(0,s.jsx)(n.code,{children:"any"}),">>"]}),"\n",(0,s.jsx)(n.p,{children:"Current Express.js request from the client.\nUseful for getting metadata to use in tool calls."}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L140",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:140"})})]})}function h(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>i,a:()=>o});var s=r(67294);const t={},a=s.createContext(t);function o(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:o(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b22bf373.717ed5ac.js b/assets/js/b22bf373.9dcde662.js similarity index 96% rename from assets/js/b22bf373.717ed5ac.js rename to assets/js/b22bf373.9dcde662.js index a0520ab2e..43dfd0339 100644 --- a/assets/js/b22bf373.717ed5ac.js +++ b/assets/js/b22bf373.9dcde662.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9775],{21696:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>d});var r=t(85893),i=t(11151);const s={id:"sources.MakeMongoDbUniversityDataSourceParams",title:"Interface: MakeMongoDbUniversityDataSourceParams",sidebar_label:"sources.MakeMongoDbUniversityDataSourceParams",custom_edit_url:null},o=void 0,a={id:"reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams",title:"Interface: MakeMongoDbUniversityDataSourceParams",description:"sources.MakeMongoDbUniversityDataSourceParams",source:"@site/docs/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.MakeMongoDbUniversityDataSourceParams",title:"Interface: MakeMongoDbUniversityDataSourceParams",sidebar_label:"sources.MakeMongoDbUniversityDataSourceParams",custom_edit_url:null},sidebar:"main",previous:{title:"sources.MakeLangChainDocumentLoaderDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams"},next:{title:"sources.ProjectBase",permalink:"/chatbot/reference/ingest/interfaces/sources.ProjectBase"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"apiKey",id:"apikey",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"baseUrl",id:"baseurl",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"metadata",id:"metadata",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"sourceName",id:"sourcename",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"tiCatalogFilterFunc",id:"ticatalogfilterfunc",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".MakeMongoDbUniversityDataSourceParams"]}),"\n",(0,r.jsx)(n.p,{children:"Parameters for constructing a MongoDB University Data API source."}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"apikey",children:"apiKey"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"apiKey"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"API key for the MongoDB University Data API."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L27",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:27"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"baseurl",children:"baseUrl"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"baseUrl"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"Base URL for the MongoDB University Data API."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L22",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:22"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"metadata",children:"metadata"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"metadata"}),": ",(0,r.jsx)(n.code,{children:"PageMetadata"})]}),"\n",(0,r.jsx)(n.p,{children:"Metadata for the MongoDB University Data API source.\nIncluded in the Page.metadata for each page."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L44",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:44"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"sourcename",children:"sourceName"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"sourceName"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsxs)(n.p,{children:["Name of the MongoDB University Data API source.\nMaps to the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#name",children:"DataSource.name"}),"."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L17",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:17"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"ticatalogfilterfunc",children:"tiCatalogFilterFunc"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"tiCatalogFilterFunc"}),": (",(0,r.jsx)(n.code,{children:"item"}),": ",(0,r.jsx)(n.code,{children:"TiCatalogItem"}),") => ",(0,r.jsx)(n.code,{children:"boolean"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 (",(0,r.jsx)(n.code,{children:"item"}),"): ",(0,r.jsx)(n.code,{children:"boolean"})]}),"\n",(0,r.jsx)(n.p,{children:"Filter function for filtering out items from the MongoDB University\ncatalog. For example, you may want to only ingest items that are\nin public content."}),"\n",(0,r.jsxs)(n.p,{children:["To only ingest public, published, and non-legacy\nMongoDB University content, use the\n",(0,r.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#filteronlypublicactiveticatalogitems",children:"filterOnlyPublicActiveTiCatalogItems"})," filter function."]}),"\n",(0,r.jsx)(n.h5,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"item"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"TiCatalogItem"})})]})})]}),"\n",(0,r.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"boolean"})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L38",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:38"})})]})}function h(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>o});var r=t(67294);const i={},s=r.createContext(i);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9775],{21696:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>d});var r=t(85893),i=t(11151);const s={id:"sources.MakeMongoDbUniversityDataSourceParams",title:"Interface: MakeMongoDbUniversityDataSourceParams",sidebar_label:"sources.MakeMongoDbUniversityDataSourceParams",custom_edit_url:null},o=void 0,a={id:"reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams",title:"Interface: MakeMongoDbUniversityDataSourceParams",description:"sources.MakeMongoDbUniversityDataSourceParams",source:"@site/docs/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.MakeMongoDbUniversityDataSourceParams",title:"Interface: MakeMongoDbUniversityDataSourceParams",sidebar_label:"sources.MakeMongoDbUniversityDataSourceParams",custom_edit_url:null},sidebar:"main",previous:{title:"sources.MakeLangChainDocumentLoaderDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams"},next:{title:"sources.ProjectBase",permalink:"/chatbot/reference/ingest/interfaces/sources.ProjectBase"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"apiKey",id:"apikey",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"baseUrl",id:"baseurl",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"metadata",id:"metadata",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"sourceName",id:"sourcename",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"tiCatalogFilterFunc",id:"ticatalogfilterfunc",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,i.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".MakeMongoDbUniversityDataSourceParams"]}),"\n",(0,r.jsx)(n.p,{children:"Parameters for constructing a MongoDB University Data API source."}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"apikey",children:"apiKey"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"apiKey"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"API key for the MongoDB University Data API."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L27",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:27"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"baseurl",children:"baseUrl"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"baseUrl"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.p,{children:"Base URL for the MongoDB University Data API."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L22",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:22"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"metadata",children:"metadata"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"metadata"}),": ",(0,r.jsx)(n.code,{children:"PageMetadata"})]}),"\n",(0,r.jsx)(n.p,{children:"Metadata for the MongoDB University Data API source.\nIncluded in the Page.metadata for each page."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L44",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:44"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"sourcename",children:"sourceName"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"sourceName"}),": ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsxs)(n.p,{children:["Name of the MongoDB University Data API source.\nMaps to the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#name",children:"DataSource.name"}),"."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L17",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:17"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"ticatalogfilterfunc",children:"tiCatalogFilterFunc"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"tiCatalogFilterFunc"}),": (",(0,r.jsx)(n.code,{children:"item"}),": ",(0,r.jsx)(n.code,{children:"TiCatalogItem"}),") => ",(0,r.jsx)(n.code,{children:"boolean"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 (",(0,r.jsx)(n.code,{children:"item"}),"): ",(0,r.jsx)(n.code,{children:"boolean"})]}),"\n",(0,r.jsx)(n.p,{children:"Filter function for filtering out items from the MongoDB University\ncatalog. For example, you may want to only ingest items that are\nin public content."}),"\n",(0,r.jsxs)(n.p,{children:["To only ingest public, published, and non-legacy\nMongoDB University content, use the\n",(0,r.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources#filteronlypublicactiveticatalogitems",children:"filterOnlyPublicActiveTiCatalogItems"})," filter function."]}),"\n",(0,r.jsx)(n.h5,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"item"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"TiCatalogItem"})})]})})]}),"\n",(0,r.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"boolean"})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts#L38",children:"mongodb-rag-ingest/src/sources/mongodb-university/MongoDbUniversityDataSource.ts:38"})})]})}function h(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>a,a:()=>o});var r=t(67294);const i={},s=r.createContext(i);function o(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/b6d883f0.724ed94b.js b/assets/js/b6d883f0.f0bc4cb4.js similarity index 95% rename from assets/js/b6d883f0.724ed94b.js rename to assets/js/b6d883f0.f0bc4cb4.js index b20adfbb0..ceb11fde3 100644 --- a/assets/js/b6d883f0.724ed94b.js +++ b/assets/js/b6d883f0.f0bc4cb4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[805],{65583:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>o,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>s,toc:()=>c});var t=n(85893),r=n(11151);const i={id:"ConversationGeneratedData",title:"Interface: ConversationGeneratedData",sidebar_label:"ConversationGeneratedData",sidebar_position:0,custom_edit_url:null},d=void 0,s={id:"reference/evaluation/interfaces/ConversationGeneratedData",title:"Interface: ConversationGeneratedData",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/ConversationGeneratedData.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ConversationGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationGeneratedData",title:"Interface: ConversationGeneratedData",sidebar_label:"ConversationGeneratedData",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationEvalData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationEvalData"},next:{title:"ConversationTestCase",permalink:"/chatbot/reference/evaluation/interfaces/ConversationTestCase"}},o={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"commandRunId",id:"commandrunid",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"data",id:"data",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"evalData",id:"evaldata",level:3},{value:"Overrides",id:"overrides-1",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"type",id:"type",level:3},{value:"Overrides",id:"overrides-2",level:4},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const a={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,t.jsxs)(a.ul,{children:["\n",(0,t.jsxs)(a.li,{children:["\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:(0,t.jsx)(a.code,{children:"BaseGeneratedData"})})}),"\n",(0,t.jsxs)(a.p,{children:["\u21b3 ",(0,t.jsx)(a.strong,{children:(0,t.jsx)(a.code,{children:"ConversationGeneratedData"})})]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(a.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(a.h3,{id:"_id",children:"_id"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"_id"}),": ",(0,t.jsx)(a.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(a.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,t.jsxs)(a.p,{children:[(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"}),".",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData#_id",children:"_id"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L5",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:5"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"commandrunid",children:"commandRunId"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"commandRunId"}),": ",(0,t.jsx)(a.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(a.h4,{id:"inherited-from-1",children:"Inherited from"}),"\n",(0,t.jsxs)(a.p,{children:[(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"}),".",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData#commandrunid",children:"commandRunId"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L6",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:6"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"data",children:"data"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"data"}),": ",(0,t.jsx)(a.code,{children:"Conversation"}),"<",(0,t.jsx)(a.code,{children:"ConversationCustomData"}),">"]}),"\n",(0,t.jsx)(a.h4,{id:"overrides",children:"Overrides"}),"\n",(0,t.jsxs)(a.p,{children:[(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"}),".",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData#data",children:"data"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L14",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:14"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"evaldata",children:"evalData"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"evalData"}),": ",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationEvalData",children:(0,t.jsx)(a.code,{children:"ConversationEvalData"})})]}),"\n",(0,t.jsx)(a.h4,{id:"overrides-1",children:"Overrides"}),"\n",(0,t.jsxs)(a.p,{children:[(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"}),".",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData#evaldata",children:"evalData"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L15",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:15"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"type",children:"type"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"type"}),": ",(0,t.jsx)(a.code,{children:'"conversation"'})]}),"\n",(0,t.jsx)(a.h4,{id:"overrides-2",children:"Overrides"}),"\n",(0,t.jsxs)(a.p,{children:[(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"}),".",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData#type",children:"type"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:13"})})]})}function h(e={}){const{wrapper:a}={...(0,r.a)(),...e.components};return a?(0,t.jsx)(a,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,a,n)=>{n.d(a,{Z:()=>s,a:()=>d});var t=n(67294);const r={},i=t.createContext(r);function d(e){const a=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function s(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),t.createElement(i.Provider,{value:a},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[805],{65583:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>o,contentTitle:()=>d,default:()=>h,frontMatter:()=>i,metadata:()=>s,toc:()=>c});var t=n(85893),r=n(11151);const i={id:"ConversationGeneratedData",title:"Interface: ConversationGeneratedData",sidebar_label:"ConversationGeneratedData",sidebar_position:0,custom_edit_url:null},d=void 0,s={id:"reference/evaluation/interfaces/ConversationGeneratedData",title:"Interface: ConversationGeneratedData",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/ConversationGeneratedData.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ConversationGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationGeneratedData",title:"Interface: ConversationGeneratedData",sidebar_label:"ConversationGeneratedData",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationEvalData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationEvalData"},next:{title:"ConversationTestCase",permalink:"/chatbot/reference/evaluation/interfaces/ConversationTestCase"}},o={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Properties",id:"properties",level:2},{value:"_id",id:"_id",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"commandRunId",id:"commandrunid",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"data",id:"data",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"evalData",id:"evaldata",level:3},{value:"Overrides",id:"overrides-1",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"type",id:"type",level:3},{value:"Overrides",id:"overrides-2",level:4},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const a={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,t.jsxs)(a.ul,{children:["\n",(0,t.jsxs)(a.li,{children:["\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:(0,t.jsx)(a.code,{children:"BaseGeneratedData"})})}),"\n",(0,t.jsxs)(a.p,{children:["\u21b3 ",(0,t.jsx)(a.strong,{children:(0,t.jsx)(a.code,{children:"ConversationGeneratedData"})})]}),"\n"]}),"\n"]}),"\n",(0,t.jsx)(a.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(a.h3,{id:"_id",children:"_id"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"_id"}),": ",(0,t.jsx)(a.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(a.h4,{id:"inherited-from",children:"Inherited from"}),"\n",(0,t.jsxs)(a.p,{children:[(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"}),".",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData#_id",children:"_id"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L5",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:5"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"commandrunid",children:"commandRunId"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"commandRunId"}),": ",(0,t.jsx)(a.code,{children:"ObjectId"})]}),"\n",(0,t.jsx)(a.h4,{id:"inherited-from-1",children:"Inherited from"}),"\n",(0,t.jsxs)(a.p,{children:[(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"}),".",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData#commandrunid",children:"commandRunId"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L6",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:6"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"data",children:"data"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"data"}),": ",(0,t.jsx)(a.code,{children:"Conversation"}),"<",(0,t.jsx)(a.code,{children:"ConversationCustomData"}),">"]}),"\n",(0,t.jsx)(a.h4,{id:"overrides",children:"Overrides"}),"\n",(0,t.jsxs)(a.p,{children:[(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"}),".",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData#data",children:"data"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L14",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:14"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"evaldata",children:"evalData"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"evalData"}),": ",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationEvalData",children:(0,t.jsx)(a.code,{children:"ConversationEvalData"})})]}),"\n",(0,t.jsx)(a.h4,{id:"overrides-1",children:"Overrides"}),"\n",(0,t.jsxs)(a.p,{children:[(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"}),".",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData#evaldata",children:"evalData"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L15",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:15"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"type",children:"type"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"type"}),": ",(0,t.jsx)(a.code,{children:'"conversation"'})]}),"\n",(0,t.jsx)(a.h4,{id:"overrides-2",children:"Overrides"}),"\n",(0,t.jsxs)(a.p,{children:[(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"}),".",(0,t.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData#type",children:"type"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L13",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:13"})})]})}function h(e={}){const{wrapper:a}={...(0,r.a)(),...e.components};return a?(0,t.jsx)(a,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,a,n)=>{n.d(a,{Z:()=>s,a:()=>d});var t=n(67294);const r={},i=t.createContext(r);function d(e){const a=t.useContext(i);return t.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function s(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:d(e.components),t.createElement(i.Provider,{value:a},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/c7a1dce5.c24651d7.js b/assets/js/c7a1dce5.b64aacf3.js similarity index 91% rename from assets/js/c7a1dce5.c24651d7.js rename to assets/js/c7a1dce5.b64aacf3.js index 67f0af70a..67384e629 100644 --- a/assets/js/c7a1dce5.c24651d7.js +++ b/assets/js/c7a1dce5.b64aacf3.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6960],{67813:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>a,toc:()=>l});var n=s(85893),t=s(11151);const o={id:"LlmAnswerQuestionParams",title:"Interface: LlmAnswerQuestionParams",sidebar_label:"LlmAnswerQuestionParams",sidebar_position:0,custom_edit_url:null},i=void 0,a={id:"reference/server/interfaces/LlmAnswerQuestionParams",title:"Interface: LlmAnswerQuestionParams",description:"Properties",source:"@site/docs/reference/server/interfaces/LlmAnswerQuestionParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/LlmAnswerQuestionParams",permalink:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"LlmAnswerQuestionParams",title:"Interface: LlmAnswerQuestionParams",sidebar_label:"LlmAnswerQuestionParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"GenerateUserPromptFuncReturnValue",permalink:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue"},next:{title:"LlmCallToolParams",permalink:"/chatbot/reference/server/interfaces/LlmCallToolParams"}},c={},l=[{value:"Properties",id:"properties",level:2},{value:"messages",id:"messages",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"toolCallOptions",id:"toolcalloptions",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function d(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(r.h3,{id:"messages",children:"messages"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"messages"}),": ",(0,n.jsx)(r.code,{children:"ChatRequestMessage"})," & { ",(0,n.jsx)(r.code,{children:"content"}),": ",(0,n.jsx)(r.code,{children:"null"})," | ",(0,n.jsx)(r.code,{children:"string"})," ; ",(0,n.jsx)(r.code,{children:"embedding?"}),": ",(0,n.jsx)(r.code,{children:"number"}),"[] ; ",(0,n.jsx)(r.code,{children:"role"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#openaimessagerole",children:(0,n.jsx)(r.code,{children:"OpenAiMessageRole"})})," }[]"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L40",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:40"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"toolcalloptions",children:"toolCallOptions"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.code,{children:"Optional"})," ",(0,n.jsx)(r.strong,{children:"toolCallOptions"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#toolcalldirective",children:(0,n.jsx)(r.code,{children:"ToolCallDirective"})})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L41",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:41"})})]})}function h(e={}){const{wrapper:r}={...(0,t.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},11151:(e,r,s)=>{s.d(r,{Z:()=>a,a:()=>i});var n=s(67294);const t={},o=n.createContext(t);function i(e){const r=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function a(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),n.createElement(o.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6960],{67813:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>l,contentTitle:()=>i,default:()=>h,frontMatter:()=>o,metadata:()=>a,toc:()=>c});var n=s(85893),t=s(11151);const o={id:"LlmAnswerQuestionParams",title:"Interface: LlmAnswerQuestionParams",sidebar_label:"LlmAnswerQuestionParams",sidebar_position:0,custom_edit_url:null},i=void 0,a={id:"reference/server/interfaces/LlmAnswerQuestionParams",title:"Interface: LlmAnswerQuestionParams",description:"Properties",source:"@site/docs/reference/server/interfaces/LlmAnswerQuestionParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/LlmAnswerQuestionParams",permalink:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"LlmAnswerQuestionParams",title:"Interface: LlmAnswerQuestionParams",sidebar_label:"LlmAnswerQuestionParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"GenerateUserPromptFuncReturnValue",permalink:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue"},next:{title:"LlmCallToolParams",permalink:"/chatbot/reference/server/interfaces/LlmCallToolParams"}},l={},c=[{value:"Properties",id:"properties",level:2},{value:"messages",id:"messages",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"toolCallOptions",id:"toolcalloptions",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function d(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,t.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(r.h3,{id:"messages",children:"messages"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"messages"}),": ",(0,n.jsx)(r.code,{children:"ChatRequestMessage"})," & { ",(0,n.jsx)(r.code,{children:"content"}),": ",(0,n.jsx)(r.code,{children:"null"})," | ",(0,n.jsx)(r.code,{children:"string"})," ; ",(0,n.jsx)(r.code,{children:"embedding?"}),": ",(0,n.jsx)(r.code,{children:"number"}),"[] ; ",(0,n.jsx)(r.code,{children:"role"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#openaimessagerole",children:(0,n.jsx)(r.code,{children:"OpenAiMessageRole"})})," }[]"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L40",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:40"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"toolcalloptions",children:"toolCallOptions"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.code,{children:"Optional"})," ",(0,n.jsx)(r.strong,{children:"toolCallOptions"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#toolcalldirective",children:(0,n.jsx)(r.code,{children:"ToolCallDirective"})})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ChatLlm.ts#L41",children:"packages/mongodb-chatbot-server/src/services/ChatLlm.ts:41"})})]})}function h(e={}){const{wrapper:r}={...(0,t.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},11151:(e,r,s)=>{s.d(r,{Z:()=>a,a:()=>i});var n=s(67294);const t={},o=n.createContext(t);function i(e){const r=n.useContext(o);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function a(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),n.createElement(o.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ced61363.2d0f4d97.js b/assets/js/ced61363.2d0f4d97.js deleted file mode 100644 index fa8d988fc..000000000 --- a/assets/js/ced61363.2d0f4d97.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5042],{56378:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>s,metadata:()=>l,toc:()=>c});var r=t(85893),a=t(11151);const s={id:"modules",title:"mongodb-chatbot-evaluation",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},i=void 0,l={id:"reference/evaluation/modules",title:"mongodb-chatbot-evaluation",description:"Interfaces",source:"@site/docs/reference/evaluation/modules.md",sourceDirName:"reference/evaluation",slug:"/reference/evaluation/modules",permalink:"/chatbot/reference/evaluation/modules",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:.5,frontMatter:{id:"modules",title:"mongodb-chatbot-evaluation",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},sidebar:"main",previous:{title:"Readme",permalink:"/chatbot/reference/evaluation/"},next:{title:"BaseGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData"}},d={},c=[{value:"Interfaces",id:"interfaces",level:2},{value:"Type Aliases",id:"type-aliases",level:2},{value:"ConfigConstructor",id:"configconstructor",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"ConversationTestCaseData",id:"conversationtestcasedata",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"EvaluateQualityFunc",id:"evaluatequalityfunc",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-2",level:4},{value:"GenerateDataFunc",id:"generatedatafunc",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-2",level:5},{value:"Defined in",id:"defined-in-3",level:4},{value:"GenerateReportAndMetadataParams",id:"generatereportandmetadataparams",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"LoadConfigArgs",id:"loadconfigargs",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"Pipeline",id:"pipeline",level:3},{value:"Type declaration",id:"type-declaration-5",level:4},{value:"Parameters",id:"parameters-2",level:5},{value:"Returns",id:"returns-3",level:5},{value:"Defined in",id:"defined-in-6",level:4},{value:"ReportEvalFunc",id:"reportevalfunc",level:3},{value:"Type declaration",id:"type-declaration-6",level:4},{value:"Parameters",id:"parameters-3",level:5},{value:"Returns",id:"returns-4",level:5},{value:"Defined in",id:"defined-in-7",level:4},{value:"SomeGeneratedData",id:"somegenerateddata",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"SomeTestCase",id:"sometestcase",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"Variables",id:"variables",level:2},{value:"ConversationTestCaseDataSchema",id:"conversationtestcasedataschema",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"mongodbResponseQualityExamples",id:"mongodbresponsequalityexamples",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"Functions",id:"functions",level:2},{value:"checkResponseQuality",id:"checkresponsequality",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"convertCommandRunMetadataToJson",id:"convertcommandrunmetadatatojson",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"evaluateConversationAverageRetrievalScore",id:"evaluateconversationaverageretrievalscore",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"generateDataAndMetadata",id:"generatedataandmetadata",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"generateReportAndMetadata",id:"generatereportandmetadata",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"getConversationsTestCasesFromYaml",id:"getconversationstestcasesfromyaml",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"isConversationTestCase",id:"isconversationtestcase",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-18",level:4},{value:"loadConfig",id:"loadconfig",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-12",level:4},{value:"Defined in",id:"defined-in-19",level:4},{value:"makeEvaluateConversationFaithfulness",id:"makeevaluateconversationfaithfulness",level:3},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-13",level:4},{value:"Defined in",id:"defined-in-20",level:4},{value:"makeEvaluateConversationQuality",id:"makeevaluateconversationquality",level:3},{value:"Parameters",id:"parameters-13",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"makeEvaluateConversationRelevancy",id:"makeevaluateconversationrelevancy",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Defined in",id:"defined-in-22",level:4},{value:"makeGenerateConversationData",id:"makegenerateconversationdata",level:3},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-16",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"makeGenerateLlmConversationData",id:"makegeneratellmconversationdata",level:3},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-17",level:4},{value:"Defined in",id:"defined-in-24",level:4},{value:"makeMongoDbCommandMetadataStore",id:"makemongodbcommandmetadatastore",level:3},{value:"Parameters",id:"parameters-17",level:4},{value:"Returns",id:"returns-18",level:4},{value:"Defined in",id:"defined-in-25",level:4},{value:"makeMongoDbEvaluationStore",id:"makemongodbevaluationstore",level:3},{value:"Parameters",id:"parameters-18",level:4},{value:"Returns",id:"returns-19",level:4},{value:"Defined in",id:"defined-in-26",level:4},{value:"makeMongoDbGeneratedDataStore",id:"makemongodbgenerateddatastore",level:3},{value:"Parameters",id:"parameters-19",level:4},{value:"Returns",id:"returns-20",level:4},{value:"Defined in",id:"defined-in-27",level:4},{value:"makeMongoDbReportStore",id:"makemongodbreportstore",level:3},{value:"Parameters",id:"parameters-20",level:4},{value:"Returns",id:"returns-21",level:4},{value:"Defined in",id:"defined-in-28",level:4},{value:"reportAverageScore",id:"reportaveragescore",level:3},{value:"Parameters",id:"parameters-21",level:4},{value:"Returns",id:"returns-22",level:4},{value:"Defined in",id:"defined-in-29",level:4},{value:"reportStatsForBinaryEvalRun",id:"reportstatsforbinaryevalrun",level:3},{value:"Parameters",id:"parameters-22",level:4},{value:"Returns",id:"returns-23",level:4},{value:"Defined in",id:"defined-in-30",level:4},{value:"runPipeline",id:"runpipeline",level:3},{value:"Parameters",id:"parameters-23",level:4},{value:"Returns",id:"returns-24",level:4},{value:"Defined in",id:"defined-in-31",level:4},{value:"stringifyConversation",id:"stringifyconversation",level:3},{value:"Parameters",id:"parameters-24",level:4},{value:"Returns",id:"returns-25",level:4},{value:"Defined in",id:"defined-in-32",level:4},{value:"withConfig",id:"withconfig",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Parameters",id:"parameters-25",level:4},{value:"Returns",id:"returns-26",level:4},{value:"Defined in",id:"defined-in-33",level:4},{value:"withConfigOptions",id:"withconfigoptions",level:3},{value:"Type parameters",id:"type-parameters-1",level:4},{value:"Parameters",id:"parameters-26",level:4},{value:"Returns",id:"returns-27",level:4},{value:"Defined in",id:"defined-in-34",level:4}];function o(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,a.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase",children:"BaseTestCase"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality",children:"CheckResponseQuality"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams",children:"CheckResponseQualityParams"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:"CommandMetadataStore"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",children:"CommandRunMetadata"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationEvalData",children:"ConversationEvalData"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData",children:"ConversationGeneratedData"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",children:"ConversationTestCase"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:"EvalConfig"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:"EvalResult"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams",children:"EvaluateConversationQualityParams"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams",children:"GenerateDataAndMetadataParams"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams",children:"GenerateDataFuncParams"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams",children:"MakeGenerateConversationDataParams"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams",children:"MakeGenerateLlmConversationDataParams"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams",children:"MakeMongoDbCommandMetadataStoreParams"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams",children:"MakeMongoDbEvaluationStoreParams"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams",children:"MakeMongoDbGeneratedDataStoreParams"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams",children:"MakeMongoDbReportStoreParams"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore",children:"MongoDbEvaluationStore"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore",children:"MongoDbGeneratedDataStore"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore",children:"MongoDbReportStore"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:"Report"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",children:"ReportEvalFuncParams"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:"ReportStore"})}),"\n",(0,r.jsx)(n.li,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample",children:"ResponseQualityExample"})}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,r.jsx)(n.h3,{id:"configconstructor",children:"ConfigConstructor"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"ConfigConstructor"}),": () => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,r.jsx)(n.code,{children:"EvalConfig"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 (): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,r.jsx)(n.code,{children:"EvalConfig"})}),">"]}),"\n",(0,r.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,r.jsx)(n.code,{children:"EvalConfig"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L43",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:43"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"conversationtestcasedata",children:"ConversationTestCaseData"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"ConversationTestCaseData"}),": ",(0,r.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:23"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"evaluatequalityfunc",children:"EvaluateQualityFunc"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"EvaluateQualityFunc"}),": (",(0,r.jsx)(n.code,{children:"params"}),": ",(0,r.jsx)(n.code,{children:"EvaluateQualityFuncParams"}),") => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 (",(0,r.jsx)(n.code,{children:"params"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,r.jsx)(n.h5,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"params"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"EvaluateQualityFuncParams"})})]})})]}),"\n",(0,r.jsx)(n.h5,{id:"returns-1",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluateQualityFunc.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluateQualityFunc.ts:10"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"generatedatafunc",children:"GenerateDataFunc"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"GenerateDataFunc"}),": (",(0,r.jsx)(n.code,{children:"params"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams",children:(0,r.jsx)(n.code,{children:"GenerateDataFuncParams"})}),") => ",(0,r.jsx)(n.code,{children:"Promise"}),"<{ ",(0,r.jsx)(n.code,{children:"failedCases"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,r.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,r.jsx)(n.code,{children:"generatedData"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[] }>"]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 (",(0,r.jsx)(n.code,{children:"params"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<{ ",(0,r.jsx)(n.code,{children:"failedCases"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,r.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,r.jsx)(n.code,{children:"generatedData"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[] }>"]}),"\n",(0,r.jsx)(n.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"params"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams",children:(0,r.jsx)(n.code,{children:"GenerateDataFuncParams"})})})]})})]}),"\n",(0,r.jsx)(n.h5,{id:"returns-2",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<{ ",(0,r.jsx)(n.code,{children:"failedCases"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,r.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,r.jsx)(n.code,{children:"generatedData"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[] }>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts#L16",children:"packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts:16"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"generatereportandmetadataparams",children:"GenerateReportAndMetadataParams"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"GenerateReportAndMetadataParams"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"evaluationRunId"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"ObjectId"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"evaluationStore"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:(0,r.jsx)(n.code,{children:"EvaluationStore"})})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"metadataStore"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:(0,r.jsx)(n.code,{children:"CommandMetadataStore"})})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"name"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"reportEvalFunc"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#reportevalfunc",children:(0,r.jsx)(n.code,{children:"ReportEvalFunc"})})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"reportStore"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:(0,r.jsx)(n.code,{children:"ReportStore"})})})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/generateReportAndMetadata.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/report/generateReportAndMetadata.ts:10"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"loadconfigargs",children:"LoadConfigArgs"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"LoadConfigArgs"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"config?"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/withConfig.ts#L6",children:"packages/mongodb-chatbot-evaluation/src/withConfig.ts:6"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"pipeline",children:"Pipeline"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"Pipeline"}),": (",(0,r.jsx)(n.code,{children:"generate"}),": ",(0,r.jsx)(n.code,{children:"PipelineGenerateFunc"}),", ",(0,r.jsx)(n.code,{children:"evaluate"}),": ",(0,r.jsx)(n.code,{children:"PipelineEvaluateFunc"}),", ",(0,r.jsx)(n.code,{children:"report"}),": ",(0,r.jsx)(n.code,{children:"PipelineReportFunc"}),") => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-5",children:"Type declaration"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 (",(0,r.jsx)(n.code,{children:"generate"}),", ",(0,r.jsx)(n.code,{children:"evaluate"}),", ",(0,r.jsx)(n.code,{children:"report"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h5,{id:"parameters-2",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generate"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"PipelineGenerateFunc"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"evaluate"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"PipelineEvaluateFunc"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"report"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"PipelineReportFunc"})})]})]})]}),"\n",(0,r.jsx)(n.h5,{id:"returns-3",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/Pipeline.ts#L21",children:"packages/mongodb-chatbot-evaluation/src/Pipeline.ts:21"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"reportevalfunc",children:"ReportEvalFunc"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"ReportEvalFunc"}),": (",(0,r.jsx)(n.code,{children:"params"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",children:(0,r.jsx)(n.code,{children:"ReportEvalFuncParams"})}),") => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,r.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration-6",children:"Type declaration"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 (",(0,r.jsx)(n.code,{children:"params"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,r.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,r.jsx)(n.h5,{id:"parameters-3",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"params"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",children:(0,r.jsx)(n.code,{children:"ReportEvalFuncParams"})})})]})})]}),"\n",(0,r.jsx)(n.h5,{id:"returns-4",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,r.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:12"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"somegenerateddata",children:"SomeGeneratedData"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"SomeGeneratedData"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData",children:(0,r.jsx)(n.code,{children:"ConversationGeneratedData"})})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:(0,r.jsx)(n.code,{children:"BaseGeneratedData"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L17",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:17"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"sometestcase",children:"SomeTestCase"}),"\n",(0,r.jsxs)(n.p,{children:["\u01ac ",(0,r.jsx)(n.strong,{children:"SomeTestCase"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",children:(0,r.jsx)(n.code,{children:"ConversationTestCase"})})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase",children:(0,r.jsx)(n.code,{children:"BaseTestCase"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L32",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:32"})}),"\n",(0,r.jsx)(n.h2,{id:"variables",children:"Variables"}),"\n",(0,r.jsx)(n.h3,{id:"conversationtestcasedataschema",children:"ConversationTestCaseDataSchema"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Const"})," ",(0,r.jsx)(n.strong,{children:"ConversationTestCaseDataSchema"}),": ",(0,r.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(n.code,{children:"expectation"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"messages"}),": ",(0,r.jsx)(n.code,{children:"ZodArray"}),"<",(0,r.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,r.jsx)(n.code,{children:"content"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"role"}),": ",(0,r.jsx)(n.code,{children:"ZodEnum"}),"<[",(0,r.jsx)(n.code,{children:'"assistant"'}),", ",(0,r.jsx)(n.code,{children:'"user"'}),"]> }, ",(0,r.jsx)(n.code,{children:'"strip"'}),", ",(0,r.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(n.code,{children:"content"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"role"}),": ",(0,r.jsx)(n.code,{children:'"assistant"'})," | ",(0,r.jsx)(n.code,{children:'"user"'})," }, { ",(0,r.jsx)(n.code,{children:"content"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"role"}),": ",(0,r.jsx)(n.code,{children:'"assistant"'})," | ",(0,r.jsx)(n.code,{children:'"user"'})," }>, ",(0,r.jsx)(n.code,{children:'"many"'}),"> ; ",(0,r.jsx)(n.code,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"ZodString"})," ; ",(0,r.jsx)(n.code,{children:"skip"}),": ",(0,r.jsx)(n.code,{children:"ZodOptional"}),"<",(0,r.jsx)(n.code,{children:"ZodBoolean"}),"> ; ",(0,r.jsx)(n.code,{children:"tags"}),": ",(0,r.jsx)(n.code,{children:"ZodOptional"}),"<",(0,r.jsx)(n.code,{children:"ZodArray"}),"<",(0,r.jsx)(n.code,{children:"ZodString"}),", ",(0,r.jsx)(n.code,{children:'"many"'}),">> }, ",(0,r.jsx)(n.code,{children:'"strip"'}),", ",(0,r.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,r.jsx)(n.code,{children:"expectation"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"messages"}),': { role: "assistant" | "user"; content: string; }[] ; ',(0,r.jsx)(n.code,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"skip?"}),": ",(0,r.jsx)(n.code,{children:"boolean"})," ; ",(0,r.jsx)(n.code,{children:"tags?"}),": ",(0,r.jsx)(n.code,{children:"string"}),"[] }, { ",(0,r.jsx)(n.code,{children:"expectation"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"messages"}),': { role: "assistant" | "user"; content: string; }[] ; ',(0,r.jsx)(n.code,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"skip?"}),": ",(0,r.jsx)(n.code,{children:"boolean"})," ; ",(0,r.jsx)(n.code,{children:"tags?"}),": ",(0,r.jsx)(n.code,{children:"string"}),"[] }>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L8",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:8"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"mongodbresponsequalityexamples",children:"mongodbResponseQualityExamples"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Const"})," ",(0,r.jsx)(n.strong,{children:"mongodbResponseQualityExamples"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample",children:(0,r.jsx)(n.code,{children:"ResponseQualityExample"})}),"[]"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L128",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:128"})}),"\n",(0,r.jsx)(n.h2,{id:"functions",children:"Functions"}),"\n",(0,r.jsx)(n.h3,{id:"checkresponsequality",children:"checkResponseQuality"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"checkResponseQuality"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality",children:(0,r.jsx)(n.code,{children:"CheckResponseQuality"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams",children:(0,r.jsx)(n.code,{children:"CheckResponseQualityParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality",children:(0,r.jsx)(n.code,{children:"CheckResponseQuality"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L27",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:27"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"convertcommandrunmetadatatojson",children:"convertCommandRunMetadataToJson"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"convertCommandRunMetadataToJson"}),"(",(0,r.jsx)(n.code,{children:"command"}),"): ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-5",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"command"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",children:(0,r.jsx)(n.code,{children:"CommandRunMetadata"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-6",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"Object"})}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"_id"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"command"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:'"generate"'})," | ",(0,r.jsx)(n.code,{children:'"evaluate"'})," | ",(0,r.jsx)(n.code,{children:'"report"'})]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"endTime"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"number"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"name"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"startTime"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"number"})})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L16",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:16"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"evaluateconversationaverageretrievalscore",children:"evaluateConversationAverageRetrievalScore"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"evaluateConversationAverageRetrievalScore"}),"(",(0,r.jsx)(n.code,{children:"params"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,r.jsx)(n.p,{children:"Evaluate average similarity score for the retrieved context information."}),"\n",(0,r.jsx)(n.h4,{id:"parameters-6",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"params"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"EvaluateQualityFuncParams"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-7",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,r.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluateQualityFunc.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluateQualityFunc.ts:10"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"generatedataandmetadata",children:"generateDataAndMetadata"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"generateDataAndMetadata"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<{ ",(0,r.jsx)(n.code,{children:"failedCases"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,r.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,r.jsx)(n.code,{children:"generatedData"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[] ; ",(0,r.jsx)(n.code,{children:"metadata"}),": { ",(0,r.jsx)(n.code,{children:"_id"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})," = runId; ",(0,r.jsx)(n.code,{children:"command"}),": ",(0,r.jsx)(n.code,{children:'"generate"'}),' = "generate"; ',(0,r.jsx)(n.code,{children:"endTime"}),": ",(0,r.jsx)(n.code,{children:"Date"})," ; ",(0,r.jsx)(n.code,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"startTime"}),": ",(0,r.jsx)(n.code,{children:"Date"})," } }>"]}),"\n",(0,r.jsx)(n.p,{children:"Generate data for test cases and store metadata about the generation."}),"\n",(0,r.jsx)(n.h4,{id:"parameters-7",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams",children:(0,r.jsx)(n.code,{children:"GenerateDataAndMetadataParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<{ ",(0,r.jsx)(n.code,{children:"failedCases"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,r.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,r.jsx)(n.code,{children:"generatedData"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[] ; ",(0,r.jsx)(n.code,{children:"metadata"}),": { ",(0,r.jsx)(n.code,{children:"_id"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})," = runId; ",(0,r.jsx)(n.code,{children:"command"}),": ",(0,r.jsx)(n.code,{children:'"generate"'}),' = "generate"; ',(0,r.jsx)(n.code,{children:"endTime"}),": ",(0,r.jsx)(n.code,{children:"Date"})," ; ",(0,r.jsx)(n.code,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"startTime"}),": ",(0,r.jsx)(n.code,{children:"Date"})," } }>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-15",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L40",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:40"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"generatereportandmetadata",children:"generateReportAndMetadata"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"generateReportAndMetadata"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<{ ",(0,r.jsx)(n.code,{children:"metadata"}),": { ",(0,r.jsx)(n.code,{children:"_id"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})," = runId; ",(0,r.jsx)(n.code,{children:"command"}),": ",(0,r.jsx)(n.code,{children:'"report"'}),' = "report"; ',(0,r.jsx)(n.code,{children:"endTime"}),": ",(0,r.jsx)(n.code,{children:"Date"})," ; ",(0,r.jsx)(n.code,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"startTime"}),": ",(0,r.jsx)(n.code,{children:"Date"})," } ; ",(0,r.jsx)(n.code,{children:"report"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,r.jsx)(n.code,{children:"Report"})})," }>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatereportandmetadataparams",children:(0,r.jsx)(n.code,{children:"GenerateReportAndMetadataParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-9",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<{ ",(0,r.jsx)(n.code,{children:"metadata"}),": { ",(0,r.jsx)(n.code,{children:"_id"}),": ",(0,r.jsx)(n.code,{children:"ObjectId"})," = runId; ",(0,r.jsx)(n.code,{children:"command"}),": ",(0,r.jsx)(n.code,{children:'"report"'}),' = "report"; ',(0,r.jsx)(n.code,{children:"endTime"}),": ",(0,r.jsx)(n.code,{children:"Date"})," ; ",(0,r.jsx)(n.code,{children:"name"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"startTime"}),": ",(0,r.jsx)(n.code,{children:"Date"})," } ; ",(0,r.jsx)(n.code,{children:"report"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,r.jsx)(n.code,{children:"Report"})})," }>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-16",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/generateReportAndMetadata.ts#L19",children:"packages/mongodb-chatbot-evaluation/src/report/generateReportAndMetadata.ts:19"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"getconversationstestcasesfromyaml",children:"getConversationsTestCasesFromYaml"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"getConversationsTestCasesFromYaml"}),"(",(0,r.jsx)(n.code,{children:"yamlData"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",children:(0,r.jsx)(n.code,{children:"ConversationTestCase"})}),"[]"]}),"\n",(0,r.jsx)(n.p,{children:"Get conversation test cases from YAML file.\nThrows if the YAML is not correctly formatted."}),"\n",(0,r.jsx)(n.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"yamlData"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-10",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",children:(0,r.jsx)(n.code,{children:"ConversationTestCase"})}),"[]"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-17",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/getConversationsTestCasesFromYaml.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/generate/getConversationsTestCasesFromYaml.ts:12"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"isconversationtestcase",children:"isConversationTestCase"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"isConversationTestCase"}),"(",(0,r.jsx)(n.code,{children:"testCase"}),"): testCase is ConversationTestCase"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"testCase"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,r.jsx)(n.code,{children:"SomeTestCase"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-11",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:"testCase is ConversationTestCase"}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-18",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L34",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:34"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"loadconfig",children:"loadConfig"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"loadConfig"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,r.jsx)(n.code,{children:"EvalConfig"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-11",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#loadconfigargs",children:(0,r.jsx)(n.code,{children:"LoadConfigArgs"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-12",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,r.jsx)(n.code,{children:"EvalConfig"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-19",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/withConfig.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/withConfig.ts:10"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makeevaluateconversationfaithfulness",children:"makeEvaluateConversationFaithfulness"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeEvaluateConversationFaithfulness"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,r.jsx)(n.code,{children:"EvaluateQualityFunc"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Evaluate whether the assistant's response is faithful to the retrieved context information\nWraps the LlamaIndex.ts ",(0,r.jsx)(n.a,{href:"https://ts.llamaindex.ai/modules/evaluation/modules/faithfulness",children:(0,r.jsx)(n.code,{children:"FaithfulnessEvaluator"})}),"."]}),"\n",(0,r.jsx)(n.p,{children:"Note that in our testing experience, results vary based on the large language model\nused in the evaluator. For example, on a dataset of ~50 questions,\nthe OpenAI GPT-3.5 model had a higher incidence of false negatives,\nwhile the OpenAI GPT-4 model had more false positives."}),"\n",(0,r.jsx)(n.p,{children:"All evaluation results should be analyzed with a critical eye\nand you should thoroughly review results before making any decisions based on them."}),"\n",(0,r.jsx)(n.h4,{id:"parameters-12",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"MakeEvaluatorParams"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-13",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,r.jsx)(n.code,{children:"EvaluateQualityFunc"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-20",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationFaithfulness.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationFaithfulness.ts:28"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makeevaluateconversationquality",children:"makeEvaluateConversationQuality"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeEvaluateConversationQuality"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,r.jsx)(n.code,{children:"EvaluateQualityFunc"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Construct a a ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:"EvaluateQualityFunc"})," that evaluates the quality of a conversation\nusing an OpenAI ChatGPT LLM."]}),"\n",(0,r.jsxs)(n.p,{children:["The returned ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:"EvalResult"})," has the following properties:"]}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["In ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult#result",children:"EvalResult.result"}),", ",(0,r.jsx)(n.code,{children:"1"})," if the conversation meets quality standards and ",(0,r.jsx)(n.code,{children:"0"})," if it does not."]}),"\n",(0,r.jsxs)(n.li,{children:["In ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult#metadata",children:"EvalResult.metadata"}),", ",(0,r.jsx)(n.code,{children:"reason"})," for the result, as generated by the LLM."]}),"\n"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-13",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams",children:(0,r.jsx)(n.code,{children:"EvaluateConversationQualityParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-14",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,r.jsx)(n.code,{children:"EvaluateQualityFunc"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-21",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts#L43",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts:43"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makeevaluateconversationrelevancy",children:"makeEvaluateConversationRelevancy"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeEvaluateConversationRelevancy"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,r.jsx)(n.code,{children:"EvaluateQualityFunc"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Evaluate whether the assistant's response is relevant to the user query\nWraps the LlamaIndex.ts ",(0,r.jsx)(n.a,{href:"https://ts.llamaindex.ai/modules/evaluation/modules/relevancy",children:(0,r.jsx)(n.code,{children:"RelevancyEvaluator"})}),"."]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-14",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"MakeEvaluatorParams"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-15",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,r.jsx)(n.code,{children:"EvaluateQualityFunc"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-22",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationRelevancy.ts#L20",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationRelevancy.ts:20"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makegenerateconversationdata",children:"makeGenerateConversationData"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeGenerateConversationData"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,r.jsx)(n.code,{children:"GenerateDataFunc"})})]}),"\n",(0,r.jsx)(n.p,{children:"Generate conversation data from test cases."}),"\n",(0,r.jsx)(n.h4,{id:"parameters-15",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams",children:(0,r.jsx)(n.code,{children:"MakeGenerateConversationDataParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-16",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,r.jsx)(n.code,{children:"GenerateDataFunc"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-23",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts#L49",children:"packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:49"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makegeneratellmconversationdata",children:"makeGenerateLlmConversationData"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeGenerateLlmConversationData"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,r.jsx)(n.code,{children:"GenerateDataFunc"})})]}),"\n",(0,r.jsx)(n.p,{children:"Generate conversation data from test cases using a large language model,\nnot an instance of the chatbot."}),"\n",(0,r.jsx)(n.p,{children:"This can be useful for evaluating how an LLM performs on a specific task,\neven before a RAG chatbot is implemented."}),"\n",(0,r.jsx)(n.h4,{id:"parameters-16",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams",children:(0,r.jsx)(n.code,{children:"MakeGenerateLlmConversationDataParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-17",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,r.jsx)(n.code,{children:"GenerateDataFunc"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-24",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts#L43",children:"packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts:43"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makemongodbcommandmetadatastore",children:"makeMongoDbCommandMetadataStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeMongoDbCommandMetadataStore"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:(0,r.jsx)(n.code,{children:"CommandMetadataStore"})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-17",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams",children:(0,r.jsx)(n.code,{children:"MakeMongoDbCommandMetadataStoreParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-18",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:(0,r.jsx)(n.code,{children:"CommandMetadataStore"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-25",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L36",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:36"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makemongodbevaluationstore",children:"makeMongoDbEvaluationStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeMongoDbEvaluationStore"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore",children:(0,r.jsx)(n.code,{children:"MongoDbEvaluationStore"})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-18",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams",children:(0,r.jsx)(n.code,{children:"MakeMongoDbEvaluationStoreParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-19",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore",children:(0,r.jsx)(n.code,{children:"MongoDbEvaluationStore"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-26",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L52",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:52"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makemongodbgenerateddatastore",children:"makeMongoDbGeneratedDataStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeMongoDbGeneratedDataStore"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore",children:(0,r.jsx)(n.code,{children:"MongoDbGeneratedDataStore"})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-19",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams",children:(0,r.jsx)(n.code,{children:"MakeMongoDbGeneratedDataStoreParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-20",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore",children:(0,r.jsx)(n.code,{children:"MongoDbGeneratedDataStore"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-27",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L64",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:64"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"makemongodbreportstore",children:"makeMongoDbReportStore"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"makeMongoDbReportStore"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore",children:(0,r.jsx)(n.code,{children:"MongoDbReportStore"})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-20",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams",children:(0,r.jsx)(n.code,{children:"MakeMongoDbReportStoreParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-21",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore",children:(0,r.jsx)(n.code,{children:"MongoDbReportStore"})})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-28",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L39",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:39"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"reportaveragescore",children:"reportAverageScore"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"reportAverageScore"}),"(",(0,r.jsx)(n.code,{children:"params"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,r.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,r.jsx)(n.p,{children:"Report the average score of an evaluation run."}),"\n",(0,r.jsx)(n.h4,{id:"parameters-21",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"params"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",children:(0,r.jsx)(n.code,{children:"ReportEvalFuncParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-22",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,r.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-29",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:12"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"reportstatsforbinaryevalrun",children:"reportStatsForBinaryEvalRun"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"reportStatsForBinaryEvalRun"}),"(",(0,r.jsx)(n.code,{children:"params"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,r.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,r.jsxs)(n.p,{children:["Report on the pass percentage of a binary evaluation (eval that return either 1 or 0)\nfor eval run ",(0,r.jsx)(n.code,{children:"evaluationRunId"}),"."]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-22",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"params"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",children:(0,r.jsx)(n.code,{children:"ReportEvalFuncParams"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-23",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,r.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-30",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:12"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"runpipeline",children:"runPipeline"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"runPipeline"}),"(",(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.p,{children:"Runs a pipeline of commands from configuration file.\nThis is a useful utility for chaining a group of commands."}),"\n",(0,r.jsx)(n.p,{children:"For example, you may want to generate one set of converations,\nthen generate N evaluations for each conversation,\nand then M reports for each evaluation."}),"\n",(0,r.jsx)(n.h4,{id:"parameters-23",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"RunPipelineParams"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-24",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-31",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/Pipeline.ts#L53",children:"packages/mongodb-chatbot-evaluation/src/Pipeline.ts:53"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"stringifyconversation",children:"stringifyConversation"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"stringifyConversation"}),"(",(0,r.jsx)(n.code,{children:"messages"}),"): ",(0,r.jsx)(n.code,{children:"string"})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-24",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"messages"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["{ ",(0,r.jsx)(n.code,{children:"content"}),": ",(0,r.jsx)(n.code,{children:"string"})," ; ",(0,r.jsx)(n.code,{children:"role"}),": ",(0,r.jsx)(n.code,{children:"string"})," }[]"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-25",children:"Returns"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.code,{children:"string"})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-32",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/stringifyConversation.ts#L1",children:"packages/mongodb-chatbot-evaluation/src/evaluate/stringifyConversation.ts:1"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"withconfig",children:"withConfig"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"withConfig"}),"<",(0,r.jsx)(n.code,{children:"T"}),">(",(0,r.jsx)(n.code,{children:"action"}),", ",(0,r.jsx)(n.code,{children:"args"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,r.jsx)(n.tbody,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-25",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsxs)(n.tbody,{children:[(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"action"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,r.jsx)(n.code,{children:"config"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,r.jsx)(n.code,{children:"EvalConfig"})}),", ",(0,r.jsx)(n.code,{children:"args"}),": ",(0,r.jsx)(n.code,{children:"T"}),") => ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]})]}),(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"args"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#loadconfigargs",children:(0,r.jsx)(n.code,{children:"LoadConfigArgs"})})," & ",(0,r.jsx)(n.code,{children:"T"})]})]})]})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-26",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-33",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/withConfig.ts#L62",children:"packages/mongodb-chatbot-evaluation/src/withConfig.ts:62"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"withconfigoptions",children:"withConfigOptions"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"withConfigOptions"}),"<",(0,r.jsx)(n.code,{children:"T"}),">(",(0,r.jsx)(n.code,{children:"args"}),"): ",(0,r.jsx)(n.code,{children:"Argv"}),"<",(0,r.jsx)(n.code,{children:"T"})," & ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#loadconfigargs",children:(0,r.jsx)(n.code,{children:"LoadConfigArgs"})}),">"]}),"\n",(0,r.jsx)(n.p,{children:"Apply config options to CLI command."}),"\n",(0,r.jsx)(n.h4,{id:"type-parameters-1",children:"Type parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,r.jsx)(n.tbody,{children:(0,r.jsx)(n.tr,{children:(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-26",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"args"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"Argv"}),"<",(0,r.jsx)(n.code,{children:"T"}),">"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-27",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Argv"}),"<",(0,r.jsx)(n.code,{children:"T"})," & ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#loadconfigargs",children:(0,r.jsx)(n.code,{children:"LoadConfigArgs"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-34",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/withConfig.ts#L88",children:"packages/mongodb-chatbot-evaluation/src/withConfig.ts:88"})})]})}function h(e={}){const{wrapper:n}={...(0,a.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(o,{...e})}):o(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>i});var r=t(67294);const a={},s=r.createContext(a);function i(e){const n=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),r.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/ced61363.dcae1f77.js b/assets/js/ced61363.dcae1f77.js new file mode 100644 index 000000000..96b30e1e6 --- /dev/null +++ b/assets/js/ced61363.dcae1f77.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5042],{56378:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>s,metadata:()=>l,toc:()=>c});var a=t(85893),r=t(11151);const s={id:"modules",title:"mongodb-chatbot-evaluation",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},i=void 0,l={id:"reference/evaluation/modules",title:"mongodb-chatbot-evaluation",description:"Interfaces",source:"@site/docs/reference/evaluation/modules.md",sourceDirName:"reference/evaluation",slug:"/reference/evaluation/modules",permalink:"/chatbot/reference/evaluation/modules",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:.5,frontMatter:{id:"modules",title:"mongodb-chatbot-evaluation",sidebar_label:"Exports",sidebar_position:.5,custom_edit_url:null},sidebar:"main",previous:{title:"Readme",permalink:"/chatbot/reference/evaluation/"},next:{title:"BaseGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData"}},d={},c=[{value:"Interfaces",id:"interfaces",level:2},{value:"Type Aliases",id:"type-aliases",level:2},{value:"ConfigConstructor",id:"configconstructor",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"ConversationTestCaseData",id:"conversationtestcasedata",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"EvaluateQualityFunc",id:"evaluatequalityfunc",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-2",level:4},{value:"GenerateDataFunc",id:"generatedatafunc",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-2",level:5},{value:"Defined in",id:"defined-in-3",level:4},{value:"GenerateReportAndMetadataParams",id:"generatereportandmetadataparams",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"LoadConfigArgs",id:"loadconfigargs",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"Pipeline",id:"pipeline",level:3},{value:"Type declaration",id:"type-declaration-5",level:4},{value:"Parameters",id:"parameters-2",level:5},{value:"Returns",id:"returns-3",level:5},{value:"Defined in",id:"defined-in-6",level:4},{value:"ReportEvalFunc",id:"reportevalfunc",level:3},{value:"Type declaration",id:"type-declaration-6",level:4},{value:"Parameters",id:"parameters-3",level:5},{value:"Returns",id:"returns-4",level:5},{value:"Defined in",id:"defined-in-7",level:4},{value:"SomeGeneratedData",id:"somegenerateddata",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"SomeTestCase",id:"sometestcase",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"Variables",id:"variables",level:2},{value:"ConversationTestCaseDataSchema",id:"conversationtestcasedataschema",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"mongodbResponseQualityExamples",id:"mongodbresponsequalityexamples",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"Functions",id:"functions",level:2},{value:"checkResponseQuality",id:"checkresponsequality",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"convertCommandRunMetadataToJson",id:"convertcommandrunmetadatatojson",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"evaluateConversationAverageRetrievalScore",id:"evaluateconversationaverageretrievalscore",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"evaluateExpectedLinks",id:"evaluateexpectedlinks",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"generateDataAndMetadata",id:"generatedataandmetadata",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"generateReportAndMetadata",id:"generatereportandmetadata",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"getConversationsTestCasesFromYaml",id:"getconversationstestcasesfromyaml",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-18",level:4},{value:"isConversationTestCase",id:"isconversationtestcase",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-12",level:4},{value:"Defined in",id:"defined-in-19",level:4},{value:"loadConfig",id:"loadconfig",level:3},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-13",level:4},{value:"Defined in",id:"defined-in-20",level:4},{value:"makeEvaluateConversationFaithfulness",id:"makeevaluateconversationfaithfulness",level:3},{value:"Parameters",id:"parameters-13",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"makeEvaluateConversationQuality",id:"makeevaluateconversationquality",level:3},{value:"Parameters",id:"parameters-14",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Defined in",id:"defined-in-22",level:4},{value:"makeEvaluateConversationRelevancy",id:"makeevaluateconversationrelevancy",level:3},{value:"Parameters",id:"parameters-15",level:4},{value:"Returns",id:"returns-16",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"makeGenerateConversationData",id:"makegenerateconversationdata",level:3},{value:"Parameters",id:"parameters-16",level:4},{value:"Returns",id:"returns-17",level:4},{value:"Defined in",id:"defined-in-24",level:4},{value:"makeGenerateLlmConversationData",id:"makegeneratellmconversationdata",level:3},{value:"Parameters",id:"parameters-17",level:4},{value:"Returns",id:"returns-18",level:4},{value:"Defined in",id:"defined-in-25",level:4},{value:"makeMongoDbCommandMetadataStore",id:"makemongodbcommandmetadatastore",level:3},{value:"Parameters",id:"parameters-18",level:4},{value:"Returns",id:"returns-19",level:4},{value:"Defined in",id:"defined-in-26",level:4},{value:"makeMongoDbEvaluationStore",id:"makemongodbevaluationstore",level:3},{value:"Parameters",id:"parameters-19",level:4},{value:"Returns",id:"returns-20",level:4},{value:"Defined in",id:"defined-in-27",level:4},{value:"makeMongoDbGeneratedDataStore",id:"makemongodbgenerateddatastore",level:3},{value:"Parameters",id:"parameters-20",level:4},{value:"Returns",id:"returns-21",level:4},{value:"Defined in",id:"defined-in-28",level:4},{value:"makeMongoDbReportStore",id:"makemongodbreportstore",level:3},{value:"Parameters",id:"parameters-21",level:4},{value:"Returns",id:"returns-22",level:4},{value:"Defined in",id:"defined-in-29",level:4},{value:"reportAverageScore",id:"reportaveragescore",level:3},{value:"Parameters",id:"parameters-22",level:4},{value:"Returns",id:"returns-23",level:4},{value:"Defined in",id:"defined-in-30",level:4},{value:"reportStatsForBinaryEvalRun",id:"reportstatsforbinaryevalrun",level:3},{value:"Parameters",id:"parameters-23",level:4},{value:"Returns",id:"returns-24",level:4},{value:"Defined in",id:"defined-in-31",level:4},{value:"runPipeline",id:"runpipeline",level:3},{value:"Parameters",id:"parameters-24",level:4},{value:"Returns",id:"returns-25",level:4},{value:"Defined in",id:"defined-in-32",level:4},{value:"stringifyConversation",id:"stringifyconversation",level:3},{value:"Parameters",id:"parameters-25",level:4},{value:"Returns",id:"returns-26",level:4},{value:"Defined in",id:"defined-in-33",level:4},{value:"withConfig",id:"withconfig",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Parameters",id:"parameters-26",level:4},{value:"Returns",id:"returns-27",level:4},{value:"Defined in",id:"defined-in-34",level:4},{value:"withConfigOptions",id:"withconfigoptions",level:3},{value:"Type parameters",id:"type-parameters-1",level:4},{value:"Parameters",id:"parameters-27",level:4},{value:"Returns",id:"returns-28",level:4},{value:"Defined in",id:"defined-in-35",level:4}];function o(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h2,{id:"interfaces",children:"Interfaces"}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:"BaseGeneratedData"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase",children:"BaseTestCase"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality",children:"CheckResponseQuality"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams",children:"CheckResponseQualityParams"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:"CommandMetadataStore"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",children:"CommandRunMetadata"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationEvalData",children:"ConversationEvalData"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData",children:"ConversationGeneratedData"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",children:"ConversationTestCase"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:"EvalConfig"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:"EvalResult"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams",children:"EvaluateConversationQualityParams"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:"EvaluationStore"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ExpectedLinks",children:"ExpectedLinks"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams",children:"GenerateDataAndMetadataParams"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams",children:"GenerateDataFuncParams"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:"GeneratedDataStore"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams",children:"MakeGenerateConversationDataParams"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams",children:"MakeGenerateLlmConversationDataParams"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams",children:"MakeMongoDbCommandMetadataStoreParams"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams",children:"MakeMongoDbEvaluationStoreParams"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams",children:"MakeMongoDbGeneratedDataStoreParams"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams",children:"MakeMongoDbReportStoreParams"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore",children:"MongoDbEvaluationStore"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore",children:"MongoDbGeneratedDataStore"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore",children:"MongoDbReportStore"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:"Report"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",children:"ReportEvalFuncParams"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:"ReportStore"})}),"\n",(0,a.jsx)(n.li,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample",children:"ResponseQualityExample"})}),"\n"]}),"\n",(0,a.jsx)(n.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,a.jsx)(n.h3,{id:"configconstructor",children:"ConfigConstructor"}),"\n",(0,a.jsxs)(n.p,{children:["\u01ac ",(0,a.jsx)(n.strong,{children:"ConfigConstructor"}),": () => ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,a.jsx)(n.code,{children:"EvalConfig"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 (): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,a.jsx)(n.code,{children:"EvalConfig"})}),">"]}),"\n",(0,a.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,a.jsx)(n.code,{children:"EvalConfig"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/EvalConfig.ts#L43",children:"packages/mongodb-chatbot-evaluation/src/EvalConfig.ts:43"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"conversationtestcasedata",children:"ConversationTestCaseData"}),"\n",(0,a.jsxs)(n.p,{children:["\u01ac ",(0,a.jsx)(n.strong,{children:"ConversationTestCaseData"}),": ",(0,a.jsx)(n.code,{children:"z.infer"}),""]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L32",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:32"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"evaluatequalityfunc",children:"EvaluateQualityFunc"}),"\n",(0,a.jsxs)(n.p,{children:["\u01ac ",(0,a.jsx)(n.strong,{children:"EvaluateQualityFunc"}),": (",(0,a.jsx)(n.code,{children:"params"}),": ",(0,a.jsx)(n.code,{children:"EvaluateQualityFuncParams"}),") => ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,a.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 (",(0,a.jsx)(n.code,{children:"params"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,a.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,a.jsx)(n.h5,{id:"parameters",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"params"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"EvaluateQualityFuncParams"})})]})})]}),"\n",(0,a.jsx)(n.h5,{id:"returns-1",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,a.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluateQualityFunc.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluateQualityFunc.ts:10"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"generatedatafunc",children:"GenerateDataFunc"}),"\n",(0,a.jsxs)(n.p,{children:["\u01ac ",(0,a.jsx)(n.strong,{children:"GenerateDataFunc"}),": (",(0,a.jsx)(n.code,{children:"params"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams",children:(0,a.jsx)(n.code,{children:"GenerateDataFuncParams"})}),") => ",(0,a.jsx)(n.code,{children:"Promise"}),"<{ ",(0,a.jsx)(n.code,{children:"failedCases"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,a.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,a.jsx)(n.code,{children:"generatedData"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,a.jsx)(n.code,{children:"SomeGeneratedData"})}),"[] }>"]}),"\n",(0,a.jsx)(n.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 (",(0,a.jsx)(n.code,{children:"params"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<{ ",(0,a.jsx)(n.code,{children:"failedCases"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,a.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,a.jsx)(n.code,{children:"generatedData"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,a.jsx)(n.code,{children:"SomeGeneratedData"})}),"[] }>"]}),"\n",(0,a.jsx)(n.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"params"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams",children:(0,a.jsx)(n.code,{children:"GenerateDataFuncParams"})})})]})})]}),"\n",(0,a.jsx)(n.h5,{id:"returns-2",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<{ ",(0,a.jsx)(n.code,{children:"failedCases"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,a.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,a.jsx)(n.code,{children:"generatedData"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,a.jsx)(n.code,{children:"SomeGeneratedData"})}),"[] }>"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts#L16",children:"packages/mongodb-chatbot-evaluation/src/generate/GenerateDataFunc.ts:16"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"generatereportandmetadataparams",children:"GenerateReportAndMetadataParams"}),"\n",(0,a.jsxs)(n.p,{children:["\u01ac ",(0,a.jsx)(n.strong,{children:"GenerateReportAndMetadataParams"}),": ",(0,a.jsx)(n.code,{children:"Object"})]}),"\n",(0,a.jsx)(n.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsxs)(n.tbody,{children:[(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"evaluationRunId"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"ObjectId"})})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"evaluationStore"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:(0,a.jsx)(n.code,{children:"EvaluationStore"})})})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"metadataStore"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:(0,a.jsx)(n.code,{children:"CommandMetadataStore"})})})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"name"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"string"})})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"reportEvalFunc"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#reportevalfunc",children:(0,a.jsx)(n.code,{children:"ReportEvalFunc"})})})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"reportStore"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:(0,a.jsx)(n.code,{children:"ReportStore"})})})]})]})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/generateReportAndMetadata.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/report/generateReportAndMetadata.ts:10"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"loadconfigargs",children:"LoadConfigArgs"}),"\n",(0,a.jsxs)(n.p,{children:["\u01ac ",(0,a.jsx)(n.strong,{children:"LoadConfigArgs"}),": ",(0,a.jsx)(n.code,{children:"Object"})]}),"\n",(0,a.jsx)(n.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"config?"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/withConfig.ts#L6",children:"packages/mongodb-chatbot-evaluation/src/withConfig.ts:6"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"pipeline",children:"Pipeline"}),"\n",(0,a.jsxs)(n.p,{children:["\u01ac ",(0,a.jsx)(n.strong,{children:"Pipeline"}),": (",(0,a.jsx)(n.code,{children:"generate"}),": ",(0,a.jsx)(n.code,{children:"PipelineGenerateFunc"}),", ",(0,a.jsx)(n.code,{children:"evaluate"}),": ",(0,a.jsx)(n.code,{children:"PipelineEvaluateFunc"}),", ",(0,a.jsx)(n.code,{children:"report"}),": ",(0,a.jsx)(n.code,{children:"PipelineReportFunc"}),") => ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"type-declaration-5",children:"Type declaration"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 (",(0,a.jsx)(n.code,{children:"generate"}),", ",(0,a.jsx)(n.code,{children:"evaluate"}),", ",(0,a.jsx)(n.code,{children:"report"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.h5,{id:"parameters-2",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsxs)(n.tbody,{children:[(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"generate"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"PipelineGenerateFunc"})})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"evaluate"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"PipelineEvaluateFunc"})})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"report"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"PipelineReportFunc"})})]})]})]}),"\n",(0,a.jsx)(n.h5,{id:"returns-3",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/Pipeline.ts#L21",children:"packages/mongodb-chatbot-evaluation/src/Pipeline.ts:21"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"reportevalfunc",children:"ReportEvalFunc"}),"\n",(0,a.jsxs)(n.p,{children:["\u01ac ",(0,a.jsx)(n.strong,{children:"ReportEvalFunc"}),": (",(0,a.jsx)(n.code,{children:"params"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",children:(0,a.jsx)(n.code,{children:"ReportEvalFuncParams"})}),") => ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,a.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"type-declaration-6",children:"Type declaration"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 (",(0,a.jsx)(n.code,{children:"params"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,a.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,a.jsx)(n.h5,{id:"parameters-3",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"params"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",children:(0,a.jsx)(n.code,{children:"ReportEvalFuncParams"})})})]})})]}),"\n",(0,a.jsx)(n.h5,{id:"returns-4",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,a.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:12"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"somegenerateddata",children:"SomeGeneratedData"}),"\n",(0,a.jsxs)(n.p,{children:["\u01ac ",(0,a.jsx)(n.strong,{children:"SomeGeneratedData"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData",children:(0,a.jsx)(n.code,{children:"ConversationGeneratedData"})})," | ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",children:(0,a.jsx)(n.code,{children:"BaseGeneratedData"})})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L17",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:17"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"sometestcase",children:"SomeTestCase"}),"\n",(0,a.jsxs)(n.p,{children:["\u01ac ",(0,a.jsx)(n.strong,{children:"SomeTestCase"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",children:(0,a.jsx)(n.code,{children:"ConversationTestCase"})})," | ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase",children:(0,a.jsx)(n.code,{children:"BaseTestCase"})})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L41",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:41"})}),"\n",(0,a.jsx)(n.h2,{id:"variables",children:"Variables"}),"\n",(0,a.jsx)(n.h3,{id:"conversationtestcasedataschema",children:"ConversationTestCaseDataSchema"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Const"})," ",(0,a.jsx)(n.strong,{children:"ConversationTestCaseDataSchema"}),": ",(0,a.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,a.jsx)(n.code,{children:"expectation"}),": ",(0,a.jsx)(n.code,{children:"ZodOptional"}),"<",(0,a.jsx)(n.code,{children:"ZodString"}),"> ; ",(0,a.jsx)(n.code,{children:"expectedLinks"}),": ",(0,a.jsx)(n.code,{children:"ZodOptional"}),"<",(0,a.jsx)(n.code,{children:"ZodArray"}),"<",(0,a.jsx)(n.code,{children:"ZodString"}),", ",(0,a.jsx)(n.code,{children:'"many"'}),">> ; ",(0,a.jsx)(n.code,{children:"messages"}),": ",(0,a.jsx)(n.code,{children:"ZodArray"}),"<",(0,a.jsx)(n.code,{children:"ZodObject"}),"<{ ",(0,a.jsx)(n.code,{children:"content"}),": ",(0,a.jsx)(n.code,{children:"ZodString"})," ; ",(0,a.jsx)(n.code,{children:"role"}),": ",(0,a.jsx)(n.code,{children:"ZodEnum"}),"<[",(0,a.jsx)(n.code,{children:'"assistant"'}),", ",(0,a.jsx)(n.code,{children:'"user"'}),"]> }, ",(0,a.jsx)(n.code,{children:'"strip"'}),", ",(0,a.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,a.jsx)(n.code,{children:"content"}),": ",(0,a.jsx)(n.code,{children:"string"})," ; ",(0,a.jsx)(n.code,{children:"role"}),": ",(0,a.jsx)(n.code,{children:'"assistant"'})," | ",(0,a.jsx)(n.code,{children:'"user"'})," }, { ",(0,a.jsx)(n.code,{children:"content"}),": ",(0,a.jsx)(n.code,{children:"string"})," ; ",(0,a.jsx)(n.code,{children:"role"}),": ",(0,a.jsx)(n.code,{children:'"assistant"'})," | ",(0,a.jsx)(n.code,{children:'"user"'})," }>, ",(0,a.jsx)(n.code,{children:'"many"'}),"> ; ",(0,a.jsx)(n.code,{children:"name"}),": ",(0,a.jsx)(n.code,{children:"ZodString"})," ; ",(0,a.jsx)(n.code,{children:"skip"}),": ",(0,a.jsx)(n.code,{children:"ZodOptional"}),"<",(0,a.jsx)(n.code,{children:"ZodBoolean"}),"> ; ",(0,a.jsx)(n.code,{children:"tags"}),": ",(0,a.jsx)(n.code,{children:"ZodOptional"}),"<",(0,a.jsx)(n.code,{children:"ZodArray"}),"<",(0,a.jsx)(n.code,{children:"ZodString"}),", ",(0,a.jsx)(n.code,{children:'"many"'}),">> }, ",(0,a.jsx)(n.code,{children:'"strip"'}),", ",(0,a.jsx)(n.code,{children:"ZodTypeAny"}),", { ",(0,a.jsx)(n.code,{children:"expectation?"}),": ",(0,a.jsx)(n.code,{children:"string"})," ; ",(0,a.jsx)(n.code,{children:"expectedLinks?"}),": ",(0,a.jsx)(n.code,{children:"string"}),"[] ; ",(0,a.jsx)(n.code,{children:"messages"}),': { role: "assistant" | "user"; content: string; }[] ; ',(0,a.jsx)(n.code,{children:"name"}),": ",(0,a.jsx)(n.code,{children:"string"})," ; ",(0,a.jsx)(n.code,{children:"skip?"}),": ",(0,a.jsx)(n.code,{children:"boolean"})," ; ",(0,a.jsx)(n.code,{children:"tags?"}),": ",(0,a.jsx)(n.code,{children:"string"}),"[] }, { ",(0,a.jsx)(n.code,{children:"expectation?"}),": ",(0,a.jsx)(n.code,{children:"string"})," ; ",(0,a.jsx)(n.code,{children:"expectedLinks?"}),": ",(0,a.jsx)(n.code,{children:"string"}),"[] ; ",(0,a.jsx)(n.code,{children:"messages"}),': { role: "assistant" | "user"; content: string; }[] ; ',(0,a.jsx)(n.code,{children:"name"}),": ",(0,a.jsx)(n.code,{children:"string"})," ; ",(0,a.jsx)(n.code,{children:"skip?"}),": ",(0,a.jsx)(n.code,{children:"boolean"})," ; ",(0,a.jsx)(n.code,{children:"tags?"}),": ",(0,a.jsx)(n.code,{children:"string"}),"[] }>"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L8",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:8"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"mongodbresponsequalityexamples",children:"mongodbResponseQualityExamples"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Const"})," ",(0,a.jsx)(n.strong,{children:"mongodbResponseQualityExamples"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample",children:(0,a.jsx)(n.code,{children:"ResponseQualityExample"})}),"[]"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L128",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:128"})}),"\n",(0,a.jsx)(n.h2,{id:"functions",children:"Functions"}),"\n",(0,a.jsx)(n.h3,{id:"checkresponsequality",children:"checkResponseQuality"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"checkResponseQuality"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality",children:(0,a.jsx)(n.code,{children:"CheckResponseQuality"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams",children:(0,a.jsx)(n.code,{children:"CheckResponseQualityParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality",children:(0,a.jsx)(n.code,{children:"CheckResponseQuality"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L27",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:27"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"convertcommandrunmetadatatojson",children:"convertCommandRunMetadataToJson"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"convertCommandRunMetadataToJson"}),"(",(0,a.jsx)(n.code,{children:"command"}),"): ",(0,a.jsx)(n.code,{children:"Object"})]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-5",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"command"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",children:(0,a.jsx)(n.code,{children:"CommandRunMetadata"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-6",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.code,{children:"Object"})}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsxs)(n.tbody,{children:[(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"_id"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"string"})})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"command"})}),(0,a.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,a.jsx)(n.code,{children:'"generate"'})," | ",(0,a.jsx)(n.code,{children:'"evaluate"'})," | ",(0,a.jsx)(n.code,{children:'"report"'})]})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"endTime"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"number"})})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"name"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"string"})})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"startTime"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"number"})})]})]})]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L16",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:16"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"evaluateconversationaverageretrievalscore",children:"evaluateConversationAverageRetrievalScore"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"evaluateConversationAverageRetrievalScore"}),"(",(0,a.jsx)(n.code,{children:"params"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,a.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,a.jsx)(n.p,{children:"Evaluate average similarity score for the retrieved context information."}),"\n",(0,a.jsx)(n.h4,{id:"parameters-6",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"params"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"EvaluateQualityFuncParams"})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-7",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,a.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluateQualityFunc.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluateQualityFunc.ts:10"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"evaluateexpectedlinks",children:"evaluateExpectedLinks"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"evaluateExpectedLinks"}),"(",(0,a.jsx)(n.code,{children:"params"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,a.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,a.jsxs)(n.p,{children:["Evaluates if the final assistant message contains the expected links.\nSkips if no ",(0,a.jsx)(n.code,{children:"expectedLinks"})," in the test case data."]}),"\n",(0,a.jsxs)(n.p,{children:["The evaluation checks if each actual link one of the ",(0,a.jsx)(n.code,{children:"expectedLink"})," values\nas a ",(0,a.jsx)(n.strong,{children:"substring"}),". This is to allow for the base URL of the link to change.\nThis is possible if the documentation you're testing against is versioned,\nso that the link might update.\nFor example, if the ",(0,a.jsx)(n.code,{children:"expectedLinks"})," includes ",(0,a.jsx)(n.code,{children:'["link1", "link2" ]'}),",\nthis would match for the actual links of ",(0,a.jsx)(n.code,{children:'["https://mongodb.com/foo/v1/link1", "https://docs.mongodb.com/foo/v2/link2"]'}),"."]}),"\n",(0,a.jsxs)(n.p,{children:["The eval result is the portion of the ",(0,a.jsx)(n.code,{children:"expectedLinks"})," that are present in the final assistant message.\nFor example, if the ",(0,a.jsx)(n.code,{children:"expectedLinks"})," are ",(0,a.jsx)(n.code,{children:'["link1", "link2" ]'}),"\nand the final assistant message only contains ",(0,a.jsx)(n.code,{children:'["link1"]'}),", the eval ",(0,a.jsx)(n.code,{children:"result: .5"}),"."]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-7",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"params"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"EvaluateQualityFuncParams"})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:(0,a.jsx)(n.code,{children:"EvalResult"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-15",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluateQualityFunc.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluateQualityFunc.ts:10"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"generatedataandmetadata",children:"generateDataAndMetadata"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"generateDataAndMetadata"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<{ ",(0,a.jsx)(n.code,{children:"failedCases"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,a.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,a.jsx)(n.code,{children:"generatedData"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,a.jsx)(n.code,{children:"SomeGeneratedData"})}),"[] ; ",(0,a.jsx)(n.code,{children:"metadata"}),": { ",(0,a.jsx)(n.code,{children:"_id"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})," = runId; ",(0,a.jsx)(n.code,{children:"command"}),": ",(0,a.jsx)(n.code,{children:'"generate"'}),' = "generate"; ',(0,a.jsx)(n.code,{children:"endTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})," ; ",(0,a.jsx)(n.code,{children:"name"}),": ",(0,a.jsx)(n.code,{children:"string"})," ; ",(0,a.jsx)(n.code,{children:"startTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})," } }>"]}),"\n",(0,a.jsx)(n.p,{children:"Generate data for test cases and store metadata about the generation."}),"\n",(0,a.jsx)(n.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams",children:(0,a.jsx)(n.code,{children:"GenerateDataAndMetadataParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-9",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<{ ",(0,a.jsx)(n.code,{children:"failedCases"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,a.jsx)(n.code,{children:"SomeTestCase"})}),"[] ; ",(0,a.jsx)(n.code,{children:"generatedData"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,a.jsx)(n.code,{children:"SomeGeneratedData"})}),"[] ; ",(0,a.jsx)(n.code,{children:"metadata"}),": { ",(0,a.jsx)(n.code,{children:"_id"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})," = runId; ",(0,a.jsx)(n.code,{children:"command"}),": ",(0,a.jsx)(n.code,{children:'"generate"'}),' = "generate"; ',(0,a.jsx)(n.code,{children:"endTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})," ; ",(0,a.jsx)(n.code,{children:"name"}),": ",(0,a.jsx)(n.code,{children:"string"})," ; ",(0,a.jsx)(n.code,{children:"startTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})," } }>"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-16",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L40",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:40"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"generatereportandmetadata",children:"generateReportAndMetadata"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"generateReportAndMetadata"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<{ ",(0,a.jsx)(n.code,{children:"metadata"}),": { ",(0,a.jsx)(n.code,{children:"_id"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})," = runId; ",(0,a.jsx)(n.code,{children:"command"}),": ",(0,a.jsx)(n.code,{children:'"report"'}),' = "report"; ',(0,a.jsx)(n.code,{children:"endTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})," ; ",(0,a.jsx)(n.code,{children:"name"}),": ",(0,a.jsx)(n.code,{children:"string"})," ; ",(0,a.jsx)(n.code,{children:"startTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})," } ; ",(0,a.jsx)(n.code,{children:"report"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,a.jsx)(n.code,{children:"Report"})})," }>"]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatereportandmetadataparams",children:(0,a.jsx)(n.code,{children:"GenerateReportAndMetadataParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-10",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<{ ",(0,a.jsx)(n.code,{children:"metadata"}),": { ",(0,a.jsx)(n.code,{children:"_id"}),": ",(0,a.jsx)(n.code,{children:"ObjectId"})," = runId; ",(0,a.jsx)(n.code,{children:"command"}),": ",(0,a.jsx)(n.code,{children:'"report"'}),' = "report"; ',(0,a.jsx)(n.code,{children:"endTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})," ; ",(0,a.jsx)(n.code,{children:"name"}),": ",(0,a.jsx)(n.code,{children:"string"})," ; ",(0,a.jsx)(n.code,{children:"startTime"}),": ",(0,a.jsx)(n.code,{children:"Date"})," } ; ",(0,a.jsx)(n.code,{children:"report"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,a.jsx)(n.code,{children:"Report"})})," }>"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-17",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/generateReportAndMetadata.ts#L19",children:"packages/mongodb-chatbot-evaluation/src/report/generateReportAndMetadata.ts:19"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"getconversationstestcasesfromyaml",children:"getConversationsTestCasesFromYaml"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"getConversationsTestCasesFromYaml"}),"(",(0,a.jsx)(n.code,{children:"yamlData"}),"): ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",children:(0,a.jsx)(n.code,{children:"ConversationTestCase"})}),"[]"]}),"\n",(0,a.jsx)(n.p,{children:"Get conversation test cases from YAML file.\nThrows if the YAML is not correctly formatted."}),"\n",(0,a.jsx)(n.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"yamlData"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"string"})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-11",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",children:(0,a.jsx)(n.code,{children:"ConversationTestCase"})}),"[]"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-18",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/getConversationsTestCasesFromYaml.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/generate/getConversationsTestCasesFromYaml.ts:12"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"isconversationtestcase",children:"isConversationTestCase"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"isConversationTestCase"}),"(",(0,a.jsx)(n.code,{children:"testCase"}),"): testCase is ConversationTestCase"]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-11",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"testCase"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,a.jsx)(n.code,{children:"SomeTestCase"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-12",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:"testCase is ConversationTestCase"}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-19",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L43",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:43"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"loadconfig",children:"loadConfig"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"loadConfig"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,a.jsx)(n.code,{children:"EvalConfig"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-12",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#loadconfigargs",children:(0,a.jsx)(n.code,{children:"LoadConfigArgs"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-13",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,a.jsx)(n.code,{children:"EvalConfig"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-20",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/withConfig.ts#L10",children:"packages/mongodb-chatbot-evaluation/src/withConfig.ts:10"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"makeevaluateconversationfaithfulness",children:"makeEvaluateConversationFaithfulness"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"makeEvaluateConversationFaithfulness"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})})]}),"\n",(0,a.jsxs)(n.p,{children:["Evaluate whether the assistant's response is faithful to the retrieved context information\nWraps the LlamaIndex.ts ",(0,a.jsx)(n.a,{href:"https://ts.llamaindex.ai/modules/evaluation/modules/faithfulness",children:(0,a.jsx)(n.code,{children:"FaithfulnessEvaluator"})}),"."]}),"\n",(0,a.jsx)(n.p,{children:"Note that in our testing experience, results vary based on the large language model\nused in the evaluator. For example, on a dataset of ~50 questions,\nthe OpenAI GPT-3.5 model had a higher incidence of false negatives,\nwhile the OpenAI GPT-4 model had more false positives."}),"\n",(0,a.jsx)(n.p,{children:"All evaluation results should be analyzed with a critical eye\nand you should thoroughly review results before making any decisions based on them."}),"\n",(0,a.jsx)(n.h4,{id:"parameters-13",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"MakeEvaluatorParams"})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-14",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-21",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationFaithfulness.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationFaithfulness.ts:28"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"makeevaluateconversationquality",children:"makeEvaluateConversationQuality"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"makeEvaluateConversationQuality"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})})]}),"\n",(0,a.jsxs)(n.p,{children:["Construct a a ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:"EvaluateQualityFunc"})," that evaluates the quality of a conversation\nusing an OpenAI ChatGPT LLM."]}),"\n",(0,a.jsxs)(n.p,{children:["The returned ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult",children:"EvalResult"})," has the following properties:"]}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:["In ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult#result",children:"EvalResult.result"}),", ",(0,a.jsx)(n.code,{children:"1"})," if the conversation meets quality standards and ",(0,a.jsx)(n.code,{children:"0"})," if it does not."]}),"\n",(0,a.jsxs)(n.li,{children:["In ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalResult#metadata",children:"EvalResult.metadata"}),", ",(0,a.jsx)(n.code,{children:"reason"})," for the result, as generated by the LLM."]}),"\n"]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-14",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams",children:(0,a.jsx)(n.code,{children:"EvaluateConversationQualityParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-15",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-22",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts#L43",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationQuality.ts:43"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"makeevaluateconversationrelevancy",children:"makeEvaluateConversationRelevancy"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"makeEvaluateConversationRelevancy"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})})]}),"\n",(0,a.jsxs)(n.p,{children:["Evaluate whether the assistant's response is relevant to the user query\nWraps the LlamaIndex.ts ",(0,a.jsx)(n.a,{href:"https://ts.llamaindex.ai/modules/evaluation/modules/relevancy",children:(0,a.jsx)(n.code,{children:"RelevancyEvaluator"})}),"."]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-15",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"MakeEvaluatorParams"})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-16",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-23",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationRelevancy.ts#L20",children:"packages/mongodb-chatbot-evaluation/src/evaluate/evaluateConversationRelevancy.ts:20"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"makegenerateconversationdata",children:"makeGenerateConversationData"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"makeGenerateConversationData"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,a.jsx)(n.code,{children:"GenerateDataFunc"})})]}),"\n",(0,a.jsx)(n.p,{children:"Generate conversation data from test cases."}),"\n",(0,a.jsx)(n.h4,{id:"parameters-16",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams",children:(0,a.jsx)(n.code,{children:"MakeGenerateConversationDataParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-17",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,a.jsx)(n.code,{children:"GenerateDataFunc"})})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-24",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts#L49",children:"packages/mongodb-chatbot-evaluation/src/generate/generateConversationData.ts:49"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"makegeneratellmconversationdata",children:"makeGenerateLlmConversationData"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"makeGenerateLlmConversationData"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,a.jsx)(n.code,{children:"GenerateDataFunc"})})]}),"\n",(0,a.jsx)(n.p,{children:"Generate conversation data from test cases using a large language model,\nnot an instance of the chatbot."}),"\n",(0,a.jsx)(n.p,{children:"This can be useful for evaluating how an LLM performs on a specific task,\neven before a RAG chatbot is implemented."}),"\n",(0,a.jsx)(n.h4,{id:"parameters-17",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams",children:(0,a.jsx)(n.code,{children:"MakeGenerateLlmConversationDataParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-18",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,a.jsx)(n.code,{children:"GenerateDataFunc"})})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-25",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts#L43",children:"packages/mongodb-chatbot-evaluation/src/generate/generateLlmConversationData.ts:43"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"makemongodbcommandmetadatastore",children:"makeMongoDbCommandMetadataStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"makeMongoDbCommandMetadataStore"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:(0,a.jsx)(n.code,{children:"CommandMetadataStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-18",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams",children:(0,a.jsx)(n.code,{children:"MakeMongoDbCommandMetadataStoreParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-19",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:(0,a.jsx)(n.code,{children:"CommandMetadataStore"})})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-26",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L36",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:36"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"makemongodbevaluationstore",children:"makeMongoDbEvaluationStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"makeMongoDbEvaluationStore"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore",children:(0,a.jsx)(n.code,{children:"MongoDbEvaluationStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-19",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams",children:(0,a.jsx)(n.code,{children:"MakeMongoDbEvaluationStoreParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-20",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore",children:(0,a.jsx)(n.code,{children:"MongoDbEvaluationStore"})})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-27",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts#L52",children:"packages/mongodb-chatbot-evaluation/src/evaluate/EvaluationStore.ts:52"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"makemongodbgenerateddatastore",children:"makeMongoDbGeneratedDataStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"makeMongoDbGeneratedDataStore"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore",children:(0,a.jsx)(n.code,{children:"MongoDbGeneratedDataStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-20",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams",children:(0,a.jsx)(n.code,{children:"MakeMongoDbGeneratedDataStoreParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-21",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore",children:(0,a.jsx)(n.code,{children:"MongoDbGeneratedDataStore"})})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-28",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L69",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:69"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"makemongodbreportstore",children:"makeMongoDbReportStore"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"makeMongoDbReportStore"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore",children:(0,a.jsx)(n.code,{children:"MongoDbReportStore"})})]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-21",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams",children:(0,a.jsx)(n.code,{children:"MakeMongoDbReportStoreParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-22",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore",children:(0,a.jsx)(n.code,{children:"MongoDbReportStore"})})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-29",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts#L39",children:"packages/mongodb-chatbot-evaluation/src/report/ReportStore.ts:39"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"reportaveragescore",children:"reportAverageScore"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"reportAverageScore"}),"(",(0,a.jsx)(n.code,{children:"params"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,a.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,a.jsx)(n.p,{children:"Report the average score of an evaluation run."}),"\n",(0,a.jsx)(n.h4,{id:"parameters-22",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"params"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",children:(0,a.jsx)(n.code,{children:"ReportEvalFuncParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-23",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,a.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-30",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:12"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"reportstatsforbinaryevalrun",children:"reportStatsForBinaryEvalRun"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"reportStatsForBinaryEvalRun"}),"(",(0,a.jsx)(n.code,{children:"params"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,a.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,a.jsxs)(n.p,{children:["Report on the pass percentage of a binary evaluation (eval that return either 1 or 0)\nfor eval run ",(0,a.jsx)(n.code,{children:"evaluationRunId"}),"."]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-23",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"params"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",children:(0,a.jsx)(n.code,{children:"ReportEvalFuncParams"})})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-24",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/Report",children:(0,a.jsx)(n.code,{children:"Report"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-31",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts#L12",children:"packages/mongodb-chatbot-evaluation/src/report/ReportEvalFunc.ts:12"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"runpipeline",children:"runPipeline"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"runPipeline"}),"(",(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.p,{children:"Runs a pipeline of commands from configuration file.\nThis is a useful utility for chaining a group of commands."}),"\n",(0,a.jsx)(n.p,{children:"For example, you may want to generate one set of converations,\nthen generate N evaluations for each conversation,\nand then M reports for each evaluation."}),"\n",(0,a.jsx)(n.h4,{id:"parameters-24",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"RunPipelineParams"})})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-25",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-32",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/Pipeline.ts#L53",children:"packages/mongodb-chatbot-evaluation/src/Pipeline.ts:53"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"stringifyconversation",children:"stringifyConversation"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"stringifyConversation"}),"(",(0,a.jsx)(n.code,{children:"messages"}),"): ",(0,a.jsx)(n.code,{children:"string"})]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-25",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"messages"})}),(0,a.jsxs)(n.td,{style:{textAlign:"left"},children:["{ ",(0,a.jsx)(n.code,{children:"content"}),": ",(0,a.jsx)(n.code,{children:"string"})," ; ",(0,a.jsx)(n.code,{children:"role"}),": ",(0,a.jsx)(n.code,{children:"string"})," }[]"]})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-26",children:"Returns"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.code,{children:"string"})}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-33",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/stringifyConversation.ts#L1",children:"packages/mongodb-chatbot-evaluation/src/evaluate/stringifyConversation.ts:1"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"withconfig",children:"withConfig"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"withConfig"}),"<",(0,a.jsx)(n.code,{children:"T"}),">(",(0,a.jsx)(n.code,{children:"action"}),", ",(0,a.jsx)(n.code,{children:"args"}),"): ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsx)(n.tr,{children:(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,a.jsx)(n.tbody,{children:(0,a.jsx)(n.tr,{children:(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-26",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsxs)(n.tbody,{children:[(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"action"})}),(0,a.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,a.jsx)(n.code,{children:"config"}),": ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,a.jsx)(n.code,{children:"EvalConfig"})}),", ",(0,a.jsx)(n.code,{children:"args"}),": ",(0,a.jsx)(n.code,{children:"T"}),") => ",(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]})]}),(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"args"})}),(0,a.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#loadconfigargs",children:(0,a.jsx)(n.code,{children:"LoadConfigArgs"})})," & ",(0,a.jsx)(n.code,{children:"T"})]})]})]})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-27",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Promise"}),"<",(0,a.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-34",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/withConfig.ts#L62",children:"packages/mongodb-chatbot-evaluation/src/withConfig.ts:62"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"withconfigoptions",children:"withConfigOptions"}),"\n",(0,a.jsxs)(n.p,{children:["\u25b8 ",(0,a.jsx)(n.strong,{children:"withConfigOptions"}),"<",(0,a.jsx)(n.code,{children:"T"}),">(",(0,a.jsx)(n.code,{children:"args"}),"): ",(0,a.jsx)(n.code,{children:"Argv"}),"<",(0,a.jsx)(n.code,{children:"T"})," & ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#loadconfigargs",children:(0,a.jsx)(n.code,{children:"LoadConfigArgs"})}),">"]}),"\n",(0,a.jsx)(n.p,{children:"Apply config options to CLI command."}),"\n",(0,a.jsx)(n.h4,{id:"type-parameters-1",children:"Type parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsx)(n.tr,{children:(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"})})}),(0,a.jsx)(n.tbody,{children:(0,a.jsx)(n.tr,{children:(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"T"})})})})]}),"\n",(0,a.jsx)(n.h4,{id:"parameters-27",children:"Parameters"}),"\n",(0,a.jsxs)(n.table,{children:[(0,a.jsx)(n.thead,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,a.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,a.jsx)(n.tbody,{children:(0,a.jsxs)(n.tr,{children:[(0,a.jsx)(n.td,{style:{textAlign:"left"},children:(0,a.jsx)(n.code,{children:"args"})}),(0,a.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,a.jsx)(n.code,{children:"Argv"}),"<",(0,a.jsx)(n.code,{children:"T"}),">"]})]})})]}),"\n",(0,a.jsx)(n.h4,{id:"returns-28",children:"Returns"}),"\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Argv"}),"<",(0,a.jsx)(n.code,{children:"T"})," & ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#loadconfigargs",children:(0,a.jsx)(n.code,{children:"LoadConfigArgs"})}),">"]}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-35",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/withConfig.ts#L88",children:"packages/mongodb-chatbot-evaluation/src/withConfig.ts:88"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(o,{...e})}):o(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>i});var a=t(67294);const r={},s=a.createContext(r);function i(e){const n=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),a.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d2a2d3b7.690b22e8.js b/assets/js/d2a2d3b7.66ecee3a.js similarity index 85% rename from assets/js/d2a2d3b7.690b22e8.js rename to assets/js/d2a2d3b7.66ecee3a.js index 829c107e4..df4602017 100644 --- a/assets/js/d2a2d3b7.690b22e8.js +++ b/assets/js/d2a2d3b7.66ecee3a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1457],{90972:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>u,frontMatter:()=>a,metadata:()=>c,toc:()=>r});var s=t(85893),i=t(11151);const a={id:"ResponseQualityExample",title:"Interface: ResponseQualityExample",sidebar_label:"ResponseQualityExample",sidebar_position:0,custom_edit_url:null},o=void 0,c={id:"reference/evaluation/interfaces/ResponseQualityExample",title:"Interface: ResponseQualityExample",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/ResponseQualityExample.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ResponseQualityExample",permalink:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ResponseQualityExample",title:"Interface: ResponseQualityExample",sidebar_label:"ResponseQualityExample",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ReportStore",permalink:"/chatbot/reference/evaluation/interfaces/ReportStore"}},l={},r=[{value:"Properties",id:"properties",level:2},{value:"expectation",id:"expectation",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"llmOutput",id:"llmoutput",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"messages",id:"messages",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,i.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"expectation",children:"expectation"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"expectation"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L18",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:18"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"llmoutput",children:"llmOutput"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"llmOutput"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality",children:(0,s.jsx)(n.code,{children:"CheckResponseQuality"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L19",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:19"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"messages",children:"messages"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"messages"}),": ",(0,s.jsx)(n.code,{children:"ChatRequestMessage"})," & { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"null"})," | ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:"OpenAiMessageRole"})," }[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L17",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:17"})})]})}function u(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>c,a:()=>o});var s=t(67294);const i={},a=s.createContext(i);function o(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1457],{90972:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>u,frontMatter:()=>a,metadata:()=>l,toc:()=>r});var s=t(85893),i=t(11151);const a={id:"ResponseQualityExample",title:"Interface: ResponseQualityExample",sidebar_label:"ResponseQualityExample",sidebar_position:0,custom_edit_url:null},o=void 0,l={id:"reference/evaluation/interfaces/ResponseQualityExample",title:"Interface: ResponseQualityExample",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/ResponseQualityExample.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ResponseQualityExample",permalink:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ResponseQualityExample",title:"Interface: ResponseQualityExample",sidebar_label:"ResponseQualityExample",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ReportStore",permalink:"/chatbot/reference/evaluation/interfaces/ReportStore"}},c={},r=[{value:"Properties",id:"properties",level:2},{value:"expectation",id:"expectation",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"llmOutput",id:"llmoutput",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"messages",id:"messages",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,i.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(n.h3,{id:"expectation",children:"expectation"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"expectation"}),": ",(0,s.jsx)(n.code,{children:"string"})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L18",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:18"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"llmoutput",children:"llmOutput"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"llmOutput"}),": ",(0,s.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality",children:(0,s.jsx)(n.code,{children:"CheckResponseQuality"})})]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L19",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:19"})}),"\n",(0,s.jsx)(n.hr,{}),"\n",(0,s.jsx)(n.h3,{id:"messages",children:"messages"}),"\n",(0,s.jsxs)(n.p,{children:["\u2022 ",(0,s.jsx)(n.strong,{children:"messages"}),": ",(0,s.jsx)(n.code,{children:"ChatRequestMessage"})," & { ",(0,s.jsx)(n.code,{children:"content"}),": ",(0,s.jsx)(n.code,{children:"null"})," | ",(0,s.jsx)(n.code,{children:"string"})," ; ",(0,s.jsx)(n.code,{children:"embedding?"}),": ",(0,s.jsx)(n.code,{children:"number"}),"[] ; ",(0,s.jsx)(n.code,{children:"role"}),": ",(0,s.jsx)(n.code,{children:"OpenAiMessageRole"})," }[]"]}),"\n",(0,s.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,s.jsx)(n.p,{children:(0,s.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts#L17",children:"packages/mongodb-chatbot-evaluation/src/evaluate/checkResponseQuality.ts:17"})})]})}function u(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>l,a:()=>o});var s=t(67294);const i={},a=s.createContext(i);function o(e){const n=s.useContext(a);return s.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function l(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:o(e.components),s.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d4b5776c.d1ef5522.js b/assets/js/d4b5776c.5ecd7d7d.js similarity index 94% rename from assets/js/d4b5776c.d1ef5522.js rename to assets/js/d4b5776c.5ecd7d7d.js index 650258eeb..eb9b0a354 100644 --- a/assets/js/d4b5776c.d1ef5522.js +++ b/assets/js/d4b5776c.5ecd7d7d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3367],{63532:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>a,contentTitle:()=>i,default:()=>u,frontMatter:()=>c,metadata:()=>o,toc:()=>d});var t=r(85893),s=r(11151);const c={id:"sources.DevCenterEntryTag",title:"Interface: DevCenterEntryTag",sidebar_label:"sources.DevCenterEntryTag",custom_edit_url:null},i=void 0,o={id:"reference/ingest/interfaces/sources.DevCenterEntryTag",title:"Interface: DevCenterEntryTag",description:"sources.DevCenterEntryTag",source:"@site/docs/reference/ingest/interfaces/sources.DevCenterEntryTag.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.DevCenterEntryTag",permalink:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.DevCenterEntryTag",title:"Interface: DevCenterEntryTag",sidebar_label:"sources.DevCenterEntryTag",custom_edit_url:null},sidebar:"main",previous:{title:"sources.Branch",permalink:"/chatbot/reference/ingest/interfaces/sources.Branch"},next:{title:"sources.MakeGitDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams"}},a={},d=[{value:"Properties",id:"properties",level:2},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".DevCenterEntryTag"]}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"name"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L28",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:28"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"type",children:"type"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"type"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L29",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:29"})})]})}function u(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>o,a:()=>i});var t=r(67294);const s={},c=t.createContext(s);function i(e){const n=t.useContext(c);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),t.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3367],{63532:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>a,contentTitle:()=>i,default:()=>u,frontMatter:()=>c,metadata:()=>o,toc:()=>d});var t=r(85893),s=r(11151);const c={id:"sources.DevCenterEntryTag",title:"Interface: DevCenterEntryTag",sidebar_label:"sources.DevCenterEntryTag",custom_edit_url:null},i=void 0,o={id:"reference/ingest/interfaces/sources.DevCenterEntryTag",title:"Interface: DevCenterEntryTag",description:"sources.DevCenterEntryTag",source:"@site/docs/reference/ingest/interfaces/sources.DevCenterEntryTag.md",sourceDirName:"reference/ingest/interfaces",slug:"/reference/ingest/interfaces/sources.DevCenterEntryTag",permalink:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",frontMatter:{id:"sources.DevCenterEntryTag",title:"Interface: DevCenterEntryTag",sidebar_label:"sources.DevCenterEntryTag",custom_edit_url:null},sidebar:"main",previous:{title:"sources.Branch",permalink:"/chatbot/reference/ingest/interfaces/sources.Branch"},next:{title:"sources.MakeGitDataSourceParams",permalink:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams"}},a={},d=[{value:"Properties",id:"properties",level:2},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-1",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.p,{children:[(0,t.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/sources",children:"sources"}),".DevCenterEntryTag"]}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"name"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L28",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:28"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"type",children:"type"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"type"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/sources/DevCenterDataSource.ts#L29",children:"mongodb-rag-ingest/src/sources/DevCenterDataSource.ts:29"})})]})}function u(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>o,a:()=>i});var t=r(67294);const s={},c=t.createContext(s);function i(e){const n=t.useContext(c);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:i(e.components),t.createElement(c.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d65f73bb.2e96d673.js b/assets/js/d65f73bb.92c8cbf8.js similarity index 82% rename from assets/js/d65f73bb.2e96d673.js rename to assets/js/d65f73bb.92c8cbf8.js index 1708b18f3..18b76b0a6 100644 --- a/assets/js/d65f73bb.2e96d673.js +++ b/assets/js/d65f73bb.92c8cbf8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9349],{33535:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>o,contentTitle:()=>c,default:()=>h,frontMatter:()=>t,metadata:()=>i,toc:()=>d});var n=s(85893),a=s(11151);const t={id:"MakeUserMessageFuncParams",title:"Interface: MakeUserMessageFuncParams",sidebar_label:"MakeUserMessageFuncParams",sidebar_position:0,custom_edit_url:null},c=void 0,i={id:"reference/server/interfaces/MakeUserMessageFuncParams",title:"Interface: MakeUserMessageFuncParams",description:"Properties",source:"@site/docs/reference/server/interfaces/MakeUserMessageFuncParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/MakeUserMessageFuncParams",permalink:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeUserMessageFuncParams",title:"Interface: MakeUserMessageFuncParams",sidebar_label:"MakeUserMessageFuncParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeRagGenerateUserPromptParams",permalink:"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams"},next:{title:"MakeVerifiedAnswerGenerateUserPromptParams",permalink:"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams"}},o={},d=[{value:"Properties",id:"properties",level:2},{value:"content",id:"content",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"originalUserMessage",id:"originalusermessage",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"preprocessedUserMessage",id:"preprocessedusermessage",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"queryEmbedding",id:"queryembedding",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"rejectQuery",id:"rejectquery",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,a.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(r.h3,{id:"content",children:"content"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"content"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,n.jsx)(r.code,{children:"EmbeddedContent"})}),"[]"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L41",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:41"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"originalusermessage",children:"originalUserMessage"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"originalUserMessage"}),": ",(0,n.jsx)(r.code,{children:"string"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L42",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:42"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"preprocessedusermessage",children:"preprocessedUserMessage"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.code,{children:"Optional"})," ",(0,n.jsx)(r.strong,{children:"preprocessedUserMessage"}),": ",(0,n.jsx)(r.code,{children:"string"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L43",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:43"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"queryembedding",children:"queryEmbedding"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.code,{children:"Optional"})," ",(0,n.jsx)(r.strong,{children:"queryEmbedding"}),": ",(0,n.jsx)(r.code,{children:"number"}),"[]"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L44",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:44"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"rejectquery",children:"rejectQuery"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.code,{children:"Optional"})," ",(0,n.jsx)(r.strong,{children:"rejectQuery"}),": ",(0,n.jsx)(r.code,{children:"boolean"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L45",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:45"})})]})}function h(e={}){const{wrapper:r}={...(0,a.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},11151:(e,r,s)=>{s.d(r,{Z:()=>i,a:()=>c});var n=s(67294);const a={},t=n.createContext(a);function c(e){const r=n.useContext(t);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function i(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:c(e.components),n.createElement(t.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9349],{33535:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>c,contentTitle:()=>i,default:()=>h,frontMatter:()=>t,metadata:()=>o,toc:()=>d});var n=s(85893),a=s(11151);const t={id:"MakeUserMessageFuncParams",title:"Interface: MakeUserMessageFuncParams",sidebar_label:"MakeUserMessageFuncParams",sidebar_position:0,custom_edit_url:null},i=void 0,o={id:"reference/server/interfaces/MakeUserMessageFuncParams",title:"Interface: MakeUserMessageFuncParams",description:"Properties",source:"@site/docs/reference/server/interfaces/MakeUserMessageFuncParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/MakeUserMessageFuncParams",permalink:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeUserMessageFuncParams",title:"Interface: MakeUserMessageFuncParams",sidebar_label:"MakeUserMessageFuncParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeRagGenerateUserPromptParams",permalink:"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams"},next:{title:"MakeVerifiedAnswerGenerateUserPromptParams",permalink:"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"content",id:"content",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"originalUserMessage",id:"originalusermessage",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"preprocessedUserMessage",id:"preprocessedusermessage",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"queryEmbedding",id:"queryembedding",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"rejectQuery",id:"rejectquery",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,a.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(r.h3,{id:"content",children:"content"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"content"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/EmbeddedContent",children:(0,n.jsx)(r.code,{children:"EmbeddedContent"})}),"[]"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L41",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:41"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"originalusermessage",children:"originalUserMessage"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"originalUserMessage"}),": ",(0,n.jsx)(r.code,{children:"string"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L42",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:42"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"preprocessedusermessage",children:"preprocessedUserMessage"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.code,{children:"Optional"})," ",(0,n.jsx)(r.strong,{children:"preprocessedUserMessage"}),": ",(0,n.jsx)(r.code,{children:"string"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L43",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:43"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"queryembedding",children:"queryEmbedding"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.code,{children:"Optional"})," ",(0,n.jsx)(r.strong,{children:"queryEmbedding"}),": ",(0,n.jsx)(r.code,{children:"number"}),"[]"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L44",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:44"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"rejectquery",children:"rejectQuery"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.code,{children:"Optional"})," ",(0,n.jsx)(r.strong,{children:"rejectQuery"}),": ",(0,n.jsx)(r.code,{children:"boolean"})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts#L45",children:"packages/mongodb-chatbot-server/src/processors/makeRagGenerateUserPrompt.ts:45"})})]})}function h(e={}){const{wrapper:r}={...(0,a.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},11151:(e,r,s)=>{s.d(r,{Z:()=>o,a:()=>i});var n=s(67294);const a={},t=n.createContext(a);function i(e){const r=n.useContext(t);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function o(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(a):e.components||a:i(e.components),n.createElement(t.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d67b0b72.a20e618a.js b/assets/js/d67b0b72.a20e618a.js new file mode 100644 index 000000000..e390b8d6f --- /dev/null +++ b/assets/js/d67b0b72.a20e618a.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9649],{69299:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>s,default:()=>h,frontMatter:()=>r,metadata:()=>c,toc:()=>l});var a=t(85893),o=t(11151);const r={},s="Configuration Reference",c={id:"evaluation/configuration-reference",title:"Configuration Reference",description:"This page contains reference documentation for the configuration options for the MongoDB Chatbot Evaluation CLI.",source:"@site/docs/evaluation/configuration-reference.md",sourceDirName:"evaluation",slug:"/evaluation/configuration-reference",permalink:"/chatbot/evaluation/configuration-reference",draft:!1,unlisted:!1,editUrl:"https://github.com/mongodb/chatbot/tree/main/docs/docs/evaluation/configuration-reference.md",tags:[],version:"current",frontMatter:{},sidebar:"main",previous:{title:"CLI Command Reference",permalink:"/chatbot/evaluation/command-reference"},next:{title:"Pipelines",permalink:"/chatbot/evaluation/pipeline"}},i={},l=[{value:"API Reference",id:"api-reference",level:2},{value:"ConfigConstructor",id:"configconstructor",level:2},{value:"Data Stores",id:"data-stores",level:2},{value:"CommandMetadataStore",id:"commandmetadatastore",level:3},{value:"MongoDBCommandMetadataStore",id:"mongodbcommandmetadatastore",level:4},{value:"GeneratedDataStore",id:"generateddatastore",level:3},{value:"MongoDBGeneratedDataStore",id:"mongodbgenerateddatastore",level:4},{value:"EvaluationStore",id:"evaluationstore",level:3},{value:"MongoDBEvaluationStore",id:"mongodbevaluationstore",level:4},{value:"ReportStore",id:"reportstore",level:3},{value:"MongoDBReportStore",id:"mongodbreportstore",level:4},{value:"Test Cases",id:"test-cases",level:2},{value:"Load test cases from a file",id:"load-test-cases-from-a-file",level:3},{value:"Command Executor Functions",id:"command-executor-functions",level:2},{value:"GenerateDataFunc",id:"generatedatafunc",level:3},{value:"EvaluateQualityFunc",id:"evaluatequalityfunc",level:3},{value:"ReportEvalFunc",id:"reportevalfunc",level:3}];function d(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h1,{id:"configuration-reference",children:"Configuration Reference"}),"\n",(0,a.jsx)(n.p,{children:"This page contains reference documentation for the configuration options for the MongoDB Chatbot Evaluation CLI."}),"\n",(0,a.jsxs)(n.p,{children:["An Evaluation CLI config file is a CommonJS file that exports a ",(0,a.jsx)(n.code,{children:"ConfigConstructor"})," function as its default export."]}),"\n",(0,a.jsxs)(n.p,{children:["For an example of setting up a configuration file, refer to the ",(0,a.jsx)(n.a,{href:"/chatbot/evaluation/",children:"Configuration"})," documentation."]}),"\n",(0,a.jsxs)(n.p,{children:["You need to install the Evaluation CLI to configure it. Refer to the ",(0,a.jsx)(n.a,{href:"/chatbot/evaluation/#install",children:"Installation"})," documentation for instructions."]}),"\n",(0,a.jsx)(n.h2,{id:"api-reference",children:"API Reference"}),"\n",(0,a.jsxs)(n.p,{children:["For a full API reference of all modules exported by ",(0,a.jsx)(n.code,{children:"mongodb-chatbot-evaluation"}),", refer to the ",(0,a.jsx)(n.a,{href:"../reference/evaluation/",children:"API Reference"})," documentation."]}),"\n",(0,a.jsx)(n.p,{children:"This page links to the key reference documentation for configuring the Ingest CLI."}),"\n",(0,a.jsx)(n.h2,{id:"configconstructor",children:(0,a.jsx)(n.code,{children:"ConfigConstructor"})}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#configconstructor",children:(0,a.jsx)(n.code,{children:"ConfigConstructor"})})," function is the root configuration type for the Ingest CLI. This exports an ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvalConfig",children:(0,a.jsx)(n.code,{children:"EvalConfig"})})," object."]}),"\n",(0,a.jsx)(n.h2,{id:"data-stores",children:"Data Stores"}),"\n",(0,a.jsx)(n.h3,{id:"commandmetadatastore",children:(0,a.jsx)(n.code,{children:"CommandMetadataStore"})}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:(0,a.jsx)(n.code,{children:"CommandMetadataStore"})})," is an interface for storing metadata of each command run."]}),"\n",(0,a.jsx)(n.h4,{id:"mongodbcommandmetadatastore",children:(0,a.jsx)(n.code,{children:"MongoDBCommandMetadataStore"})}),"\n",(0,a.jsxs)(n.p,{children:["To create a ",(0,a.jsx)(n.code,{children:"CommandMetadataStore"})," that stores data in MongoDB,\nuse the constructor function ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#makemongodbcommandmetadatastore",children:(0,a.jsx)(n.code,{children:"makeMongoDbCommandMetadataStore()"})}),"."]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:'import { makeMongoDbCommandMetadataStore } from "mongodb-chatbot-evaluation";\n\nconst commandMetadataStore = makeMongoDbCommandMetadataStore({\n connectionUri: MONGODB_CONNECTION_URI,\n databaseName: MONGODB_DATABASE_NAME,\n});\n'})}),"\n",(0,a.jsx)(n.h3,{id:"generateddatastore",children:(0,a.jsx)(n.code,{children:"GeneratedDataStore"})}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:(0,a.jsx)(n.code,{children:"GeneratedDataStore"})})," is an interface for storing and working with generated evaluation data."]}),"\n",(0,a.jsx)(n.h4,{id:"mongodbgenerateddatastore",children:(0,a.jsx)(n.code,{children:"MongoDBGeneratedDataStore"})}),"\n",(0,a.jsxs)(n.p,{children:["To create a ",(0,a.jsx)(n.code,{children:"GeneratedDataStore"})," that stores data in MongoDB,\nuse the constructor function ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#makemongodbgenerateddatastore",children:(0,a.jsx)(n.code,{children:"makeMongoDbGeneratedDataStore()"})}),"."]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:'import { makeMongoDbGeneratedDataStore } from "mongodb-chatbot-evaluation";\n\nconst generatedDataStore = makeMongoDbGeneratedDataStore({\n connectionUri: MONGODB_CONNECTION_URI,\n databaseName: MONGODB_DATABASE_NAME,\n});\n'})}),"\n",(0,a.jsx)(n.h3,{id:"evaluationstore",children:(0,a.jsx)(n.code,{children:"EvaluationStore"})}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/EvaluationStore",children:(0,a.jsx)(n.code,{children:"EvaluationStore"})})," is an interface for storing and accessing the results of an evaluation."]}),"\n",(0,a.jsx)(n.h4,{id:"mongodbevaluationstore",children:(0,a.jsx)(n.code,{children:"MongoDBEvaluationStore"})}),"\n",(0,a.jsxs)(n.p,{children:["To create an ",(0,a.jsx)(n.code,{children:"EvaluationStore"})," that stores data in MongoDB,\nuse the constructor function ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#makemongodbevaluationstore",children:(0,a.jsx)(n.code,{children:"makeMongoDbEvaluationStore()"})}),"."]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:'import { makeMongoDbEvaluationStore } from "mongodb-chatbot-evaluation";\n\nconst evaluationStore = makeMongoDbEvaluationStore({\n connectionUri: MONGODB_CONNECTION_URI,\n databaseName: MONGODB_DATABASE_NAME,\n});\n'})}),"\n",(0,a.jsx)(n.h3,{id:"reportstore",children:(0,a.jsx)(n.code,{children:"ReportStore"})}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ReportStore",children:(0,a.jsx)(n.code,{children:"ReportStore"})})," is an interface for storing reports on the results of evaluation runs."]}),"\n",(0,a.jsx)(n.h4,{id:"mongodbreportstore",children:(0,a.jsx)(n.code,{children:"MongoDBReportStore"})}),"\n",(0,a.jsxs)(n.p,{children:["To create a ",(0,a.jsx)(n.code,{children:"ReportStore"})," that stores data in MongoDB,\nuse the constructor function ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#makemongodbreportstore",children:(0,a.jsx)(n.code,{children:"makeMongoDbReportStore()"})}),"."]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:'import { makeMongoDbReportStore } from "mongodb-chatbot-evaluation";\n\nconst reportStore = makeMongoDbReportStore({\n connectionUri: MONGODB_CONNECTION_URI,\n databaseName: MONGODB_DATABASE_NAME,\n});\n'})}),"\n",(0,a.jsx)(n.h2,{id:"test-cases",children:"Test Cases"}),"\n",(0,a.jsxs)(n.p,{children:["You must provide test cases to evaluate the chatbot. Pass the test cases to the ",(0,a.jsx)(n.code,{children:"commands.generate"})," property in the ",(0,a.jsx)(n.code,{children:"EvalConfig"}),"."]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-typescript",children:'const testCases: ConversationTestCase[] = [\n {\n name: `It understands "why the chicken crossed the road" jokes`,\n expectation: `\n The ASSISTANT responds with a completion of the classic chicken crossing the road joke.\n The joke should be completed in a way that is both humorous and appropriate.\n `,\n tags: ["joke"],\n messages: [\n { role: "user", content: "Why did the chicken cross the road?" }\n ]\n },\n];\n\nconst evalConfig: EvalConfig = {\n // ... other fields,\n commands: {\n generate: {\n myTest: {\n type: "conversation",\n // highlight-start\n testCases: testCases,\n // highlight-end\n generator: makeGenerateConversationData({ ... }),\n },\n },\n evaluate: { /* ... */ },\n report: { /* ... */ },\n },\n};\n'})}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.code,{children:"mongodb-chatbot-evaluation"})," package includes built-in support for the ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",children:(0,a.jsx)(n.code,{children:"ConversationTestCase"})})," type.\nYou can use this to evaluate the chatbot's performance on conversation data."]}),"\n",(0,a.jsx)(n.h3,{id:"load-test-cases-from-a-file",children:"Load test cases from a file"}),"\n",(0,a.jsxs)(n.p,{children:["You can load ",(0,a.jsx)(n.code,{children:"ConversationTestCase"})," object from a YAML file using the ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#getconversationstestcasesfromyaml",children:(0,a.jsx)(n.code,{children:"getConversationsTestCasesFromYaml()"})})," function."]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:'import { getConversationsTestCasesFromYaml } from "mongodb-chatbot-evaluation";\n\nconst testCases = getConversationsTestCasesFromYaml("path/to/test-cases.yaml");\n'})}),"\n",(0,a.jsx)(n.h2,{id:"command-executor-functions",children:"Command Executor Functions"}),"\n",(0,a.jsx)(n.p,{children:"These functions are used to execute commands in the pipeline.\nThere are different functions for the different commands."}),"\n",(0,a.jsx)(n.h3,{id:"generatedatafunc",children:(0,a.jsx)(n.code,{children:"GenerateDataFunc"})}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,a.jsx)(n.code,{children:"GenerateDataFunc"})})," is a function that generates data to be evaluated."]}),"\n",(0,a.jsxs)(n.p,{children:["Pass a ",(0,a.jsx)(n.code,{children:"GenerateDataFunc"})," to the ",(0,a.jsx)(n.code,{children:"commands.generate"})," property in the ",(0,a.jsx)(n.code,{children:"EvalConfig"}),"."]}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.code,{children:"mongodb-chatbot-evaluation"})," package includes the following ",(0,a.jsx)(n.code,{children:"GenerateDataFunc"})," implementation functions:"]}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#makegenerateconversationdata",children:(0,a.jsx)(n.code,{children:"makeGenerateConversationData()"})}),": Generates conversation data from the test cases.\nThe function calls a MongoDB Chatbot Server API to create conversations and add messages.\nThis lets you evaluate the chatbot's performance on a running server to get behavior resembling how your actual app behaves."]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#makegeneratellmconversationdata",children:(0,a.jsx)(n.code,{children:"makeGenerateLlmConversationData()"})}),": Generates conversation data from the test cases.\nThe function calls a ",(0,a.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:(0,a.jsx)(n.code,{children:"ChatLlm"})})," instance to generate responses. This is useful to see how a language model without retrieval-augmented generation performs on a test case."]}),"\n"]}),"\n",(0,a.jsxs)(n.p,{children:["Example of using ",(0,a.jsx)(n.code,{children:"makeGenerateConversationData()"}),":"]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:'// eval.config.ts\nimport { makeGenerateConversationData } from "mongodb-chatbot-evaluation";\n\nconst generateDataFunc = makeGenerateConversationData({\n conversations,\n httpHeaders: {\n Origin: "Testing",\n },\n apiBaseUrl: CONVERSATIONS_SERVER_BASE_URL,\n});\n\nexport default async function configConstructor() {\n return {\n // ... other configuration options\n commands: {\n generate: {\n conversations: {\n type: "conversation",\n testCases: someTestCases,\n generator: generateDataFunc,\n },\n },\n // ... other commands\n },\n };\n}\n'})}),"\n",(0,a.jsx)(n.h3,{id:"evaluatequalityfunc",children:(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluatequalityfunc",children:(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})})," is a function that evaluates some quality of generated data."]}),"\n",(0,a.jsxs)(n.p,{children:["Pass an ",(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})," to the ",(0,a.jsx)(n.code,{children:"commands.evaluate"})," property in the ",(0,a.jsx)(n.code,{children:"EvalConfig"}),"."]}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.code,{children:"mongodb-chatbot-evaluation"})," package includes the following ",(0,a.jsx)(n.code,{children:"EvaluateQualityFunc"})," implementation functions:"]}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#makeevaluateconversationquality",children:(0,a.jsx)(n.code,{children:"makeEvaluateConversationQuality()"})}),": Evaluates the quality of a conversation by comparing the generated response to a provided expectation.\nThe function uses the OpenAI API to evaluate the quality of the responses."]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#makeevaluateconversationfaithfulness",children:(0,a.jsx)(n.code,{children:"makeEvaluateConversationFaithfulness()"})}),": Evaluates the faithfulness of a conversation by comparing the generated response to the context information retrieved before generating an answer."]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#evaluateconversationaverageretrievalscore",children:(0,a.jsx)(n.code,{children:"evaluateConversationAverageRetrievalScore()"})}),": Evaluates the average retrieval score of a conversation by comparing the generated responses to a provided expectation."]}),"\n"]}),"\n",(0,a.jsxs)(n.p,{children:["Example of using ",(0,a.jsx)(n.code,{children:"makeEvaluateConversationQuality()"}),":"]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:'// eval.config.ts\n\nimport { makeEvaluateConversationQuality } from "mongodb-chatbot-evaluation";\nimport { OpenAIClient, AzureKeyCredential } from "@azure/openai";\n\nconst evaluateQualityFunc = makeEvaluateConversationQuality({\n deploymentName: OPENAI_CHAT_COMPLETION_DEPLOYMENT,\n openAiClient: new OpenAIClient(\n OPENAI_ENDPOINT,\n new AzureKeyCredential(OPENAI_API_KEY)\n ),\n});\n\nexport default async function configConstructor() {\n return {\n // ... other configuration options\n commands: {\n evaluate: {\n conversationQuality: {\n evaluator: evaluateQualityFunc,\n },\n },\n // ... other commands\n },\n };\n}\n'})}),"\n",(0,a.jsx)(n.h3,{id:"reportevalfunc",children:(0,a.jsx)(n.code,{children:"ReportEvalFunc"})}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#reportevalfunc",children:(0,a.jsx)(n.code,{children:"ReportEvalFunc"})})," is a function that generates a report from the evaluation data."]}),"\n",(0,a.jsxs)(n.p,{children:["Pass a ",(0,a.jsx)(n.code,{children:"ReportEvalFunc"})," to the ",(0,a.jsx)(n.code,{children:"commands.report"})," property in the ",(0,a.jsx)(n.code,{children:"EvalConfig"}),"."]}),"\n",(0,a.jsxs)(n.p,{children:["The ",(0,a.jsx)(n.code,{children:"mongodb-chatbot-evaluation"})," package includes the following ",(0,a.jsx)(n.code,{children:"ReportEvalFunc"})," implementation functions:"]}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#reportstatsforbinaryevalrun",children:(0,a.jsx)(n.code,{children:"reportStatsForBinaryEvalRun()"})}),": Generates a report for a binary evaluation run, one that has results of either ",(0,a.jsx)(n.code,{children:"0"})," or ",(0,a.jsx)(n.code,{children:"1"}),"."]}),"\n",(0,a.jsxs)(n.li,{children:[(0,a.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#reportaveragescore",children:(0,a.jsx)(n.code,{children:"reportAverageScore()"})}),": Generates a report for the average score of a set of evaluation data."]}),"\n"]}),"\n",(0,a.jsxs)(n.p,{children:["Example of using ",(0,a.jsx)(n.code,{children:"reportStatsForBinaryEvalRun()"}),":"]}),"\n",(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-ts",children:'// eval.config.ts\n\nimport { reportStatsForBinaryEvalRun } from "mongodb-chatbot-evaluation";\n\nexport default async function configConstructor() {\n return {\n // ... other configuration options\n commands: {\n // ... other commands\n report: {\n binaryEvalRun: {\n reporter: reportStatsForBinaryEvalRun,\n },\n },\n },\n };\n}\n'})})]})}function h(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>c,a:()=>s});var a=t(67294);const o={},r=a.createContext(o);function s(e){const n=a.useContext(r);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:s(e.components),a.createElement(r.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d8792099.2bd479dc.js b/assets/js/d8792099.cedb3557.js similarity index 95% rename from assets/js/d8792099.2bd479dc.js rename to assets/js/d8792099.cedb3557.js index 474281509..c81310dfd 100644 --- a/assets/js/d8792099.2bd479dc.js +++ b/assets/js/d8792099.cedb3557.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7423],{90374:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>l,frontMatter:()=>o,metadata:()=>a,toc:()=>d});var r=s(85893),t=s(11151);const o={id:"ConversationsRouterParams",title:"Interface: ConversationsRouterParams",sidebar_label:"ConversationsRouterParams",sidebar_position:0,custom_edit_url:null},i=void 0,a={id:"reference/server/interfaces/ConversationsRouterParams",title:"Interface: ConversationsRouterParams",description:"Configuration for the /conversations/* routes.",source:"@site/docs/reference/server/interfaces/ConversationsRouterParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ConversationsRouterParams",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationsRouterParams",title:"Interface: ConversationsRouterParams",sidebar_label:"ConversationsRouterParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationsRouterLocals",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterLocals"},next:{title:"ConversationsService",permalink:"/chatbot/reference/server/interfaces/ConversationsService"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"addMessageToConversationCustomData",id:"addmessagetoconversationcustomdata",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"conversations",id:"conversations",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"createConversationCustomData",id:"createconversationcustomdata",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"filterPreviousMessages",id:"filterpreviousmessages",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"generateUserPrompt",id:"generateuserprompt",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"llm",id:"llm",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"maxInputLengthCharacters",id:"maxinputlengthcharacters",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"maxUserCommentLength",id:"maxusercommentlength",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"maxUserMessagesInConversation",id:"maxusermessagesinconversation",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"middleware",id:"middleware",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"rateLimitConfig",id:"ratelimitconfig",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"systemPrompt",id:"systemprompt",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in-11",level:4}];function h(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.p,{children:"Configuration for the /conversations/* routes."}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"addmessagetoconversationcustomdata",children:"addMessageToConversationCustomData"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"addMessageToConversationCustomData"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#addcustomdatafunc",children:(0,r.jsx)(n.code,{children:"AddCustomDataFunc"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Function that takes the request + response and returns any custom data you want to include\nin the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:"Message"})," persisted to the database.\nFor example, you might want to store details about what LLM was used to generate the response.\nThe custom data is persisted to the database with the ",(0,r.jsx)(n.code,{children:"Message"})," in the\nMessage.customData field inside of the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation#messages",children:"Conversation.messages"})," array."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L185",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:185"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"conversations",children:"conversations"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"conversations"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:(0,r.jsx)(n.code,{children:"ConversationsService"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L118",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:118"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"createconversationcustomdata",children:"createConversationCustomData"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"createConversationCustomData"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#addcustomdatafunc",children:(0,r.jsx)(n.code,{children:"AddCustomDataFunc"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Function that takes the request + response and returns any custom data you want to include\nin the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"})," persisted to the database.\nFor example, you might want to store the user's email address with the conversation.\nThe custom data is persisted to the database with the Conversation in the\n",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation#customdata",children:"Conversation.customData"})," field."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L176",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:176"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"filterpreviousmessages",children:"filterPreviousMessages"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"filterPreviousMessages"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#filterpreviousmessages",children:(0,r.jsx)(n.code,{children:"FilterPreviousMessages"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Function to filter which previous messages are sent to the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:"ChatLlm"}),".\nFor example, you may only want to send the system prompt to the LLM\nwith the user message or the system prompt and X prior messages.\nDefaults to sending only the system prompt."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L140",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:140"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"generateuserprompt",children:"generateUserPrompt"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"generateUserPrompt"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,r.jsx)(n.code,{children:"GenerateUserPromptFunc"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Function to generate the user prompt sent to the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:"ChatLlm"}),".\nYou can perform any preprocessing of the user's message\nincluding retrieval augmented generation here."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L126",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:126"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"llm",children:"llm"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"llm"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:(0,r.jsx)(n.code,{children:"ChatLlm"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L117",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:117"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"maxinputlengthcharacters",children:"maxInputLengthCharacters"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"maxInputLengthCharacters"}),": ",(0,r.jsx)(n.code,{children:"number"})]}),"\n",(0,r.jsx)(n.p,{children:"Maximum number of characters in user input.\nServer returns 400 error if user input is longer than this."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L132",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:132"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"maxusercommentlength",children:"maxUserCommentLength"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"maxUserCommentLength"}),": ",(0,r.jsx)(n.code,{children:"number"})]}),"\n",(0,r.jsxs)(n.p,{children:["Maximum number of characters allowed in a user's comment on an assistant ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:"Message"}),".\nIf not specified, user comments may be of any length."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L191",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:191"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"maxusermessagesinconversation",children:"maxUserMessagesInConversation"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"maxUserMessagesInConversation"}),": ",(0,r.jsx)(n.code,{children:"number"})]}),"\n",(0,r.jsx)(n.p,{children:"Maximum number of user-sent messages in a conversation.\nServer returns 400 error if user tries to add a message to a conversation\nthat has this many messages."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L147",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:147"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"middleware",children:"middleware"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"middleware"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsmiddleware",children:(0,r.jsx)(n.code,{children:"ConversationsMiddleware"})}),"[]"]}),"\n",(0,r.jsx)(n.p,{children:"Middleware to put in front of all the routes in the conversationsRouter.\nYou can use this to do things like authentication, data validation, etc."}),"\n",(0,r.jsx)(n.p,{children:"If you want the middleware to run only on certain routes,\nyou can add conditional logic inside the middleware. For example:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'const someMiddleware: ConversationsMiddleware = (req, res, next) => {\n if (req.path === "/conversations") {\n // Do something\n }\n next();\n}\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L167",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:167"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"ratelimitconfig",children:"rateLimitConfig"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"rateLimitConfig"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig",children:(0,r.jsx)(n.code,{children:"ConversationsRateLimitConfig"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L148",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:148"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"systemprompt",children:"systemPrompt"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"systemPrompt"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"embedding?"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"number"}),"[]"]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The vector representation of the content."})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L119",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:119"})})]})}function l(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},11151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>i});var r=s(67294);const t={},o=r.createContext(t);function i(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7423],{90374:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>c,contentTitle:()=>i,default:()=>l,frontMatter:()=>o,metadata:()=>a,toc:()=>d});var r=s(85893),t=s(11151);const o={id:"ConversationsRouterParams",title:"Interface: ConversationsRouterParams",sidebar_label:"ConversationsRouterParams",sidebar_position:0,custom_edit_url:null},i=void 0,a={id:"reference/server/interfaces/ConversationsRouterParams",title:"Interface: ConversationsRouterParams",description:"Configuration for the /conversations/* routes.",source:"@site/docs/reference/server/interfaces/ConversationsRouterParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ConversationsRouterParams",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationsRouterParams",title:"Interface: ConversationsRouterParams",sidebar_label:"ConversationsRouterParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationsRouterLocals",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterLocals"},next:{title:"ConversationsService",permalink:"/chatbot/reference/server/interfaces/ConversationsService"}},c={},d=[{value:"Properties",id:"properties",level:2},{value:"addMessageToConversationCustomData",id:"addmessagetoconversationcustomdata",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"conversations",id:"conversations",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"createConversationCustomData",id:"createconversationcustomdata",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"filterPreviousMessages",id:"filterpreviousmessages",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"generateUserPrompt",id:"generateuserprompt",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"llm",id:"llm",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"maxInputLengthCharacters",id:"maxinputlengthcharacters",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"maxUserCommentLength",id:"maxusercommentlength",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"maxUserMessagesInConversation",id:"maxusermessagesinconversation",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"middleware",id:"middleware",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"rateLimitConfig",id:"ratelimitconfig",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"systemPrompt",id:"systemprompt",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in-11",level:4}];function h(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.p,{children:"Configuration for the /conversations/* routes."}),"\n",(0,r.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,r.jsx)(n.h3,{id:"addmessagetoconversationcustomdata",children:"addMessageToConversationCustomData"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"addMessageToConversationCustomData"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#addcustomdatafunc",children:(0,r.jsx)(n.code,{children:"AddCustomDataFunc"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Function that takes the request + response and returns any custom data you want to include\nin the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:"Message"})," persisted to the database.\nFor example, you might want to store details about what LLM was used to generate the response.\nThe custom data is persisted to the database with the ",(0,r.jsx)(n.code,{children:"Message"})," in the\nMessage.customData field inside of the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation#messages",children:"Conversation.messages"})," array."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L185",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:185"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"conversations",children:"conversations"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"conversations"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsService",children:(0,r.jsx)(n.code,{children:"ConversationsService"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L118",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:118"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"createconversationcustomdata",children:"createConversationCustomData"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"createConversationCustomData"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#addcustomdatafunc",children:(0,r.jsx)(n.code,{children:"AddCustomDataFunc"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Function that takes the request + response and returns any custom data you want to include\nin the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"})," persisted to the database.\nFor example, you might want to store the user's email address with the conversation.\nThe custom data is persisted to the database with the Conversation in the\n",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Conversation#customdata",children:"Conversation.customData"})," field."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L176",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:176"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"filterpreviousmessages",children:"filterPreviousMessages"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"filterPreviousMessages"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#filterpreviousmessages",children:(0,r.jsx)(n.code,{children:"FilterPreviousMessages"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Function to filter which previous messages are sent to the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:"ChatLlm"}),".\nFor example, you may only want to send the system prompt to the LLM\nwith the user message or the system prompt and X prior messages.\nDefaults to sending only the system prompt."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L140",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:140"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"generateuserprompt",children:"generateUserPrompt"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"generateUserPrompt"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#generateuserpromptfunc",children:(0,r.jsx)(n.code,{children:"GenerateUserPromptFunc"})})]}),"\n",(0,r.jsxs)(n.p,{children:["Function to generate the user prompt sent to the ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:"ChatLlm"}),".\nYou can perform any preprocessing of the user's message\nincluding retrieval augmented generation here."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L126",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:126"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"llm",children:"llm"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"llm"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ChatLlm",children:(0,r.jsx)(n.code,{children:"ChatLlm"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L117",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:117"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"maxinputlengthcharacters",children:"maxInputLengthCharacters"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"maxInputLengthCharacters"}),": ",(0,r.jsx)(n.code,{children:"number"})]}),"\n",(0,r.jsx)(n.p,{children:"Maximum number of characters in user input.\nServer returns 400 error if user input is longer than this."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L132",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:132"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"maxusercommentlength",children:"maxUserCommentLength"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"maxUserCommentLength"}),": ",(0,r.jsx)(n.code,{children:"number"})]}),"\n",(0,r.jsxs)(n.p,{children:["Maximum number of characters allowed in a user's comment on an assistant ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#message",children:"Message"}),".\nIf not specified, user comments may be of any length."]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L191",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:191"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"maxusermessagesinconversation",children:"maxUserMessagesInConversation"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"maxUserMessagesInConversation"}),": ",(0,r.jsx)(n.code,{children:"number"})]}),"\n",(0,r.jsx)(n.p,{children:"Maximum number of user-sent messages in a conversation.\nServer returns 400 error if user tries to add a message to a conversation\nthat has this many messages."}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L147",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:147"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"middleware",children:"middleware"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"middleware"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/modules#conversationsmiddleware",children:(0,r.jsx)(n.code,{children:"ConversationsMiddleware"})}),"[]"]}),"\n",(0,r.jsx)(n.p,{children:"Middleware to put in front of all the routes in the conversationsRouter.\nYou can use this to do things like authentication, data validation, etc."}),"\n",(0,r.jsx)(n.p,{children:"If you want the middleware to run only on certain routes,\nyou can add conditional logic inside the middleware. For example:"}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-ts",children:'const someMiddleware: ConversationsMiddleware = (req, res, next) => {\n if (req.path === "/conversations") {\n // Do something\n }\n next();\n}\n'})}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L167",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:167"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"ratelimitconfig",children:"rateLimitConfig"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.code,{children:"Optional"})," ",(0,r.jsx)(n.strong,{children:"rateLimitConfig"}),": ",(0,r.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig",children:(0,r.jsx)(n.code,{children:"ConversationsRateLimitConfig"})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L148",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:148"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"systemprompt",children:"systemPrompt"}),"\n",(0,r.jsxs)(n.p,{children:["\u2022 ",(0,r.jsx)(n.strong,{children:"systemPrompt"}),": ",(0,r.jsx)(n.code,{children:"Object"})]}),"\n",(0,r.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"embedding?"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.code,{children:"number"}),"[]"]}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:"The vector representation of the content."})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts#L119",children:"packages/mongodb-chatbot-server/src/routes/conversations/conversationsRouter.ts:119"})})]})}function l(e={}){const{wrapper:n}={...(0,t.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},11151:(e,n,s)=>{s.d(n,{Z:()=>a,a:()=>i});var r=s(67294);const t={},o=r.createContext(t);function i(e){const n=r.useContext(o);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d9cc7f9d.82241b37.js b/assets/js/d9cc7f9d.82241b37.js deleted file mode 100644 index 3e38efeb0..000000000 --- a/assets/js/d9cc7f9d.82241b37.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1264],{88514:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>l,toc:()=>c});var s=n(85893),r=n(11151);const i={id:"ConversationTestCase",title:"Interface: ConversationTestCase",sidebar_label:"ConversationTestCase",sidebar_position:0,custom_edit_url:null},a=void 0,l={id:"reference/evaluation/interfaces/ConversationTestCase",title:"Interface: ConversationTestCase",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/ConversationTestCase.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ConversationTestCase",permalink:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationTestCase",title:"Interface: ConversationTestCase",sidebar_label:"ConversationTestCase",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData"},next:{title:"EvalConfig",permalink:"/chatbot/reference/evaluation/interfaces/EvalConfig"}},d={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Properties",id:"properties",level:2},{value:"data",id:"data",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"name",id:"name",level:3},{value:"Overrides",id:"overrides-1",level:4},{value:"Defined in",id:"defined-in-1",level:4}];function o(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase",children:(0,s.jsx)(t.code,{children:"BaseTestCase"})})}),"\n",(0,s.jsxs)(t.p,{children:["\u21b3 ",(0,s.jsx)(t.strong,{children:(0,s.jsx)(t.code,{children:"ConversationTestCase"})})]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(t.h3,{id:"data",children:"data"}),"\n",(0,s.jsxs)(t.p,{children:["\u2022 ",(0,s.jsx)(t.strong,{children:"data"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"expectation"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"messages"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:'{ role: "assistant" | "user"; content: string; }[]'})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"name"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"skip?"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"boolean"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"tags?"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.code,{children:"string"}),"[]"]})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"overrides",children:"Overrides"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase",children:"BaseTestCase"}),".",(0,s.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase#data",children:"data"})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:28"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"name",children:"name"}),"\n",(0,s.jsxs)(t.p,{children:["\u2022 ",(0,s.jsx)(t.strong,{children:"name"}),": ",(0,s.jsx)(t.code,{children:'"conversation"'})]}),"\n",(0,s.jsx)(t.h4,{id:"overrides-1",children:"Overrides"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase",children:"BaseTestCase"}),".",(0,s.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase#name",children:"name"})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L29",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:29"})})]})}function h(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(o,{...e})}):o(e)}},11151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>a});var s=n(67294);const r={},i=s.createContext(r);function a(e){const t=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),s.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/d9cc7f9d.cf75a1d1.js b/assets/js/d9cc7f9d.cf75a1d1.js new file mode 100644 index 000000000..a93661f57 --- /dev/null +++ b/assets/js/d9cc7f9d.cf75a1d1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[1264],{88514:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>h,frontMatter:()=>i,metadata:()=>l,toc:()=>c});var s=n(85893),r=n(11151);const i={id:"ConversationTestCase",title:"Interface: ConversationTestCase",sidebar_label:"ConversationTestCase",sidebar_position:0,custom_edit_url:null},a=void 0,l={id:"reference/evaluation/interfaces/ConversationTestCase",title:"Interface: ConversationTestCase",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/ConversationTestCase.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ConversationTestCase",permalink:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationTestCase",title:"Interface: ConversationTestCase",sidebar_label:"ConversationTestCase",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData"},next:{title:"EvalConfig",permalink:"/chatbot/reference/evaluation/interfaces/EvalConfig"}},d={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Properties",id:"properties",level:2},{value:"data",id:"data",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"name",id:"name",level:3},{value:"Overrides",id:"overrides-1",level:4},{value:"Defined in",id:"defined-in-1",level:4}];function o(e){const t={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,s.jsxs)(t.ul,{children:["\n",(0,s.jsxs)(t.li,{children:["\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase",children:(0,s.jsx)(t.code,{children:"BaseTestCase"})})}),"\n",(0,s.jsxs)(t.p,{children:["\u21b3 ",(0,s.jsx)(t.strong,{children:(0,s.jsx)(t.code,{children:"ConversationTestCase"})})]}),"\n"]}),"\n"]}),"\n",(0,s.jsx)(t.h2,{id:"properties",children:"Properties"}),"\n",(0,s.jsx)(t.h3,{id:"data",children:"data"}),"\n",(0,s.jsxs)(t.p,{children:["\u2022 ",(0,s.jsx)(t.strong,{children:"data"}),": ",(0,s.jsx)(t.code,{children:"Object"})]}),"\n",(0,s.jsx)(t.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Name"}),(0,s.jsx)(t.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"expectation?"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"expectedLinks?"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.code,{children:"string"}),"[]"]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"messages"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:'{ role: "assistant" | "user"; content: string; }[]'})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"name"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"string"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"skip?"})}),(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"boolean"})})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"left"},children:(0,s.jsx)(t.code,{children:"tags?"})}),(0,s.jsxs)(t.td,{style:{textAlign:"left"},children:[(0,s.jsx)(t.code,{children:"string"}),"[]"]})]})]})]}),"\n",(0,s.jsx)(t.h4,{id:"overrides",children:"Overrides"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase",children:"BaseTestCase"}),".",(0,s.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase#data",children:"data"})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L37",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:37"})}),"\n",(0,s.jsx)(t.hr,{}),"\n",(0,s.jsx)(t.h3,{id:"name",children:"name"}),"\n",(0,s.jsxs)(t.p,{children:["\u2022 ",(0,s.jsx)(t.strong,{children:"name"}),": ",(0,s.jsx)(t.code,{children:'"conversation"'})]}),"\n",(0,s.jsx)(t.h4,{id:"overrides-1",children:"Overrides"}),"\n",(0,s.jsxs)(t.p,{children:[(0,s.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase",children:"BaseTestCase"}),".",(0,s.jsx)(t.a,{href:"/chatbot/reference/evaluation/interfaces/BaseTestCase#name",children:"name"})]}),"\n",(0,s.jsx)(t.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,s.jsx)(t.p,{children:(0,s.jsx)(t.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts#L38",children:"packages/mongodb-chatbot-evaluation/src/generate/TestCase.ts:38"})})]})}function h(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(o,{...e})}):o(e)}},11151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>a});var s=n(67294);const r={},i=s.createContext(r);function a(e){const t=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),s.createElement(i.Provider,{value:t},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/dd6b762f.aa37ec5d.js b/assets/js/dd6b762f.58302cbb.js similarity index 90% rename from assets/js/dd6b762f.aa37ec5d.js rename to assets/js/dd6b762f.58302cbb.js index c276fa0bd..baea2bc1a 100644 --- a/assets/js/dd6b762f.aa37ec5d.js +++ b/assets/js/dd6b762f.58302cbb.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2834],{12442:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>i,default:()=>h,frontMatter:()=>a,metadata:()=>s,toc:()=>c});var r=t(85893),d=t(11151);const a={id:"GeneratedDataStore",title:"Interface: GeneratedDataStore",sidebar_label:"GeneratedDataStore",sidebar_position:0,custom_edit_url:null},i=void 0,s={id:"reference/evaluation/interfaces/GeneratedDataStore",title:"Interface: GeneratedDataStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/GeneratedDataStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/GeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"GeneratedDataStore",title:"Interface: GeneratedDataStore",sidebar_label:"GeneratedDataStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"GenerateDataFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams"},next:{title:"MakeGenerateConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams"}},l={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"close",id:"close",level:3},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"findByCommandRunId",id:"findbycommandrunid",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"findById",id:"findbyid",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"insertMany",id:"insertmany",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-5",level:4}];function o(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,d.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"GeneratedDataStore"})})}),"\n",(0,r.jsxs)(n.p,{children:["\u21b3 ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore",children:(0,r.jsx)(n.code,{children:"MongoDbGeneratedDataStore"})})]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,r.jsx)(n.h3,{id:"close",children:"close"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"close"}),"(): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L45",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:45"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"find",children:"find"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"find"}),"(",(0,r.jsx)(n.code,{children:"filter"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"filter"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"unknown"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L44",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:44"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"findbycommandrunid",children:"findByCommandRunId"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"findByCommandRunId"}),"(",(0,r.jsx)(n.code,{children:"commandRunId"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"commandRunId"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"ObjectId"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L41",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:41"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"findbyid",children:"findById"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"findById"}),"(",(0,r.jsx)(n.code,{children:"generatedDataId"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedDataId"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"ObjectId"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L40",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:40"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertmany",children:"insertMany"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertMany"}),"(",(0,r.jsx)(n.code,{children:"generatedData"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedData"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L39",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:39"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertone",children:"insertOne"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertOne"}),"(",(0,r.jsx)(n.code,{children:"generatedData"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedData"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L38",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:38"})})]})}function h(e={}){const{wrapper:n}={...(0,d.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(o,{...e})}):o(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>s,a:()=>i});var r=t(67294);const d={},a=r.createContext(d);function i(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2834],{12442:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>i,default:()=>h,frontMatter:()=>a,metadata:()=>s,toc:()=>c});var r=t(85893),d=t(11151);const a={id:"GeneratedDataStore",title:"Interface: GeneratedDataStore",sidebar_label:"GeneratedDataStore",sidebar_position:0,custom_edit_url:null},i=void 0,s={id:"reference/evaluation/interfaces/GeneratedDataStore",title:"Interface: GeneratedDataStore",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/GeneratedDataStore.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/GeneratedDataStore",permalink:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"GeneratedDataStore",title:"Interface: GeneratedDataStore",sidebar_label:"GeneratedDataStore",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"GenerateDataFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams"},next:{title:"MakeGenerateConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams"}},l={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Methods",id:"methods",level:2},{value:"close",id:"close",level:3},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"find",id:"find",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"findByCommandRunId",id:"findbycommandrunid",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"findById",id:"findbyid",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"insertMany",id:"insertmany",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"insertOne",id:"insertone",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-5",level:4}];function o(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",ul:"ul",...(0,d.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:["\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.strong,{children:(0,r.jsx)(n.code,{children:"GeneratedDataStore"})})}),"\n",(0,r.jsxs)(n.p,{children:["\u21b3 ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore",children:(0,r.jsx)(n.code,{children:"MongoDbGeneratedDataStore"})})]}),"\n"]}),"\n"]}),"\n",(0,r.jsx)(n.h2,{id:"methods",children:"Methods"}),"\n",(0,r.jsx)(n.h3,{id:"close",children:"close"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"close"}),"(): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"returns",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L50",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:50"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"find",children:"find"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"find"}),"(",(0,r.jsx)(n.code,{children:"filter"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"filter"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"unknown"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-1",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L49",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:49"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"findbycommandrunid",children:"findByCommandRunId"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"findByCommandRunId"}),"(",(0,r.jsx)(n.code,{children:"commandRunId"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-1",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"commandRunId"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"ObjectId"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-2",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]>"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L46",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:46"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"findbyid",children:"findById"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"findById"}),"(",(0,r.jsx)(n.code,{children:"generatedDataId"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-2",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedDataId"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"ObjectId"})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"undefined"})," | ",(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L45",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:45"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertmany",children:"insertMany"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertMany"}),"(",(0,r.jsx)(n.code,{children:"generatedData"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedData"})}),(0,r.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})}),"[]"]})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L44",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:44"})}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"insertone",children:"insertOne"}),"\n",(0,r.jsxs)(n.p,{children:["\u25b8 ",(0,r.jsx)(n.strong,{children:"insertOne"}),"(",(0,r.jsx)(n.code,{children:"generatedData"}),"): ",(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,r.jsxs)(n.table,{children:[(0,r.jsx)(n.thead,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,r.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,r.jsx)(n.tbody,{children:(0,r.jsxs)(n.tr,{children:[(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.code,{children:"generatedData"})}),(0,r.jsx)(n.td,{style:{textAlign:"left"},children:(0,r.jsx)(n.a,{href:"/chatbot/reference/evaluation/modules#somegenerateddata",children:(0,r.jsx)(n.code,{children:"SomeGeneratedData"})})})]})})]}),"\n",(0,r.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.code,{children:"Promise"}),"<",(0,r.jsx)(n.code,{children:"boolean"}),">"]}),"\n",(0,r.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,r.jsx)(n.p,{children:(0,r.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L43",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:43"})})]})}function h(e={}){const{wrapper:n}={...(0,d.a)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(o,{...e})}):o(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>s,a:()=>i});var r=t(67294);const d={},a=r.createContext(d);function i(e){const n=r.useContext(a);return r.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function s(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(d):e.components||d:i(e.components),r.createElement(a.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/e6673042.3bad0405.js b/assets/js/e6673042.6a8ef984.js similarity index 64% rename from assets/js/e6673042.3bad0405.js rename to assets/js/e6673042.6a8ef984.js index d9d918c5e..a43b6c092 100644 --- a/assets/js/e6673042.3bad0405.js +++ b/assets/js/e6673042.6a8ef984.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6816],{98207:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>l});var t=i(85893),r=i(11151);const s={id:"MakeOpenAiChatLlmParams",title:"Interface: MakeOpenAiChatLlmParams",sidebar_label:"MakeOpenAiChatLlmParams",sidebar_position:0,custom_edit_url:null},o=void 0,a={id:"reference/server/interfaces/MakeOpenAiChatLlmParams",title:"Interface: MakeOpenAiChatLlmParams",description:"Configuration for the makeOpenAiChatLlm function.",source:"@site/docs/reference/server/interfaces/MakeOpenAiChatLlmParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/MakeOpenAiChatLlmParams",permalink:"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeOpenAiChatLlmParams",title:"Interface: MakeOpenAiChatLlmParams",sidebar_label:"MakeOpenAiChatLlmParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeLangchainChatLlmProps",permalink:"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps"},next:{title:"MakeRagGenerateUserPromptParams",permalink:"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams"}},c={},l=[{value:"Properties",id:"properties",level:2},{value:"deployment",id:"deployment",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"openAiClient",id:"openaiclient",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"openAiLmmConfigOptions",id:"openailmmconfigoptions",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"tools",id:"tools",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.p,{children:["Configuration for the ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/modules#makeopenaichatllm",children:"makeOpenAiChatLlm"})," function."]}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"deployment",children:"deployment"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"deployment"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts#L21",children:"packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts:21"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"openaiclient",children:"openAiClient"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"openAiClient"}),": ",(0,t.jsx)(n.code,{children:"OpenAIClient"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts#L22",children:"packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts:22"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"openailmmconfigoptions",children:"openAiLmmConfigOptions"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"openAiLmmConfigOptions"}),": ",(0,t.jsx)(n.code,{children:"GetChatCompletionsOptions"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts#L23",children:"packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts:23"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"tools",children:"tools"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"tools"}),": ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Tool",children:(0,t.jsx)(n.code,{children:"Tool"})}),"[]"]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts#L24",children:"packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts:24"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},11151:(e,n,i)=>{i.d(n,{Z:()=>a,a:()=>o});var t=i(67294);const r={},s=t.createContext(r);function o(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6816],{98207:(e,n,i)=>{i.r(n),i.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>h,frontMatter:()=>s,metadata:()=>a,toc:()=>l});var t=i(85893),r=i(11151);const s={id:"MakeOpenAiChatLlmParams",title:"Interface: MakeOpenAiChatLlmParams",sidebar_label:"MakeOpenAiChatLlmParams",sidebar_position:0,custom_edit_url:null},o=void 0,a={id:"reference/server/interfaces/MakeOpenAiChatLlmParams",title:"Interface: MakeOpenAiChatLlmParams",description:"Configuration for the makeOpenAiChatLlm function.",source:"@site/docs/reference/server/interfaces/MakeOpenAiChatLlmParams.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/MakeOpenAiChatLlmParams",permalink:"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeOpenAiChatLlmParams",title:"Interface: MakeOpenAiChatLlmParams",sidebar_label:"MakeOpenAiChatLlmParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeLangchainChatLlmProps",permalink:"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps"},next:{title:"MakeRagGenerateUserPromptParams",permalink:"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams"}},c={},l=[{value:"Properties",id:"properties",level:2},{value:"deployment",id:"deployment",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"openAiClient",id:"openaiclient",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"openAiLmmConfigOptions",id:"openailmmconfigoptions",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"tools",id:"tools",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(n.p,{children:["Configuration for the ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/modules#makeopenaichatllm",children:"makeOpenAiChatLlm"})," function."]}),"\n",(0,t.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(n.h3,{id:"deployment",children:"deployment"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"deployment"}),": ",(0,t.jsx)(n.code,{children:"string"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts#L21",children:"packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts:21"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"openaiclient",children:"openAiClient"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.strong,{children:"openAiClient"}),": ",(0,t.jsx)(n.code,{children:"OpenAIClient"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts#L22",children:"packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts:22"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"openailmmconfigoptions",children:"openAiLmmConfigOptions"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"openAiLmmConfigOptions"}),": ",(0,t.jsx)(n.code,{children:"GetChatCompletionsOptions"})]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts#L23",children:"packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts:23"})}),"\n",(0,t.jsx)(n.hr,{}),"\n",(0,t.jsx)(n.h3,{id:"tools",children:"tools"}),"\n",(0,t.jsxs)(n.p,{children:["\u2022 ",(0,t.jsx)(n.code,{children:"Optional"})," ",(0,t.jsx)(n.strong,{children:"tools"}),": ",(0,t.jsx)(n.a,{href:"/chatbot/reference/server/interfaces/Tool",children:(0,t.jsx)(n.code,{children:"Tool"})}),"[]"]}),"\n",(0,t.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts#L24",children:"packages/mongodb-chatbot-server/src/services/openAiChatLlm.ts:24"})})]})}function h(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},11151:(e,n,i)=>{i.d(n,{Z:()=>a,a:()=>o});var t=i(67294);const r={},s=t.createContext(r);function o(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:o(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f4e3b7a1.5c87d80d.js b/assets/js/f4e3b7a1.24c13d06.js similarity index 92% rename from assets/js/f4e3b7a1.5c87d80d.js rename to assets/js/f4e3b7a1.24c13d06.js index 329f75a2d..4bfcedb25 100644 --- a/assets/js/f4e3b7a1.5c87d80d.js +++ b/assets/js/f4e3b7a1.24c13d06.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2264],{63418:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>a,metadata:()=>c,toc:()=>o});var n=s(85893),t=s(11151);const a={id:"ConversationsService",title:"Interface: ConversationsService",sidebar_label:"ConversationsService",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/server/interfaces/ConversationsService",title:"Interface: ConversationsService",description:"Service for managing Conversations.",source:"@site/docs/reference/server/interfaces/ConversationsService.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ConversationsService",permalink:"/chatbot/reference/server/interfaces/ConversationsService",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationsService",title:"Interface: ConversationsService",sidebar_label:"ConversationsService",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationsRouterParams",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterParams"},next:{title:"DataStreamer",permalink:"/chatbot/reference/server/interfaces/DataStreamer"}},d={},o=[{value:"Properties",id:"properties",level:2},{value:"addConversationMessage",id:"addconversationmessage",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"addManyConversationMessages",id:"addmanyconversationmessages",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-1",level:4},{value:"commentMessage",id:"commentmessage",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Parameters",id:"parameters-2",level:5},{value:"Returns",id:"returns-2",level:5},{value:"Defined in",id:"defined-in-2",level:4},{value:"conversationConstants",id:"conversationconstants",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"create",id:"create",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Parameters",id:"parameters-3",level:5},{value:"Returns",id:"returns-3",level:5},{value:"Defined in",id:"defined-in-4",level:4},{value:"findById",id:"findbyid",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Parameters",id:"parameters-4",level:5},{value:"Returns",id:"returns-4",level:5},{value:"Defined in",id:"defined-in-5",level:4},{value:"rateMessage",id:"ratemessage",level:3},{value:"Type declaration",id:"type-declaration-5",level:4},{value:"Parameters",id:"parameters-5",level:5},{value:"Returns",id:"returns-5",level:5},{value:"Defined in",id:"defined-in-6",level:4}];function l(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.p,{children:["Service for managing ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"s."]}),"\n",(0,n.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(r.h3,{id:"addconversationmessage",children:"addConversationMessage"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"addConversationMessage"}),": (",(0,n.jsx)(r.code,{children:"params"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#addconversationmessageparams",children:(0,n.jsx)(r.code,{children:"AddConversationMessageParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"params"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),">"]}),"\n",(0,n.jsxs)(r.p,{children:["Add a ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:"Message"})," to a ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"."]}),"\n",(0,n.jsx)(r.h5,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"params"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#addconversationmessageparams",children:(0,n.jsx)(r.code,{children:"AddConversationMessageParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L240",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:240"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"addmanyconversationmessages",children:"addManyConversationMessages"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"addManyConversationMessages"}),": (",(0,n.jsx)(r.code,{children:"params"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#addmanyconversationmessagesparams",children:(0,n.jsx)(r.code,{children:"AddManyConversationMessagesParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),"[]>"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"params"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),"[]>"]}),"\n",(0,n.jsxs)(r.p,{children:["Add multiple ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:"Message"})," objects to a ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"."]}),"\n",(0,n.jsx)(r.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"params"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#addmanyconversationmessagesparams",children:(0,n.jsx)(r.code,{children:"AddManyConversationMessagesParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns-1",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),"[]>"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L246",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:246"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"commentmessage",children:"commentMessage"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"commentMessage"}),": (",(0,n.jsx)(r.code,{children:"__namedParameters"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/CommentMessageParams",children:(0,n.jsx)(r.code,{children:"CommentMessageParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsxs)(r.p,{children:["Add a user comment to an assistant ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:"Message"}),"."]}),"\n",(0,n.jsx)(r.h5,{id:"parameters-2",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/CommentMessageParams",children:(0,n.jsx)(r.code,{children:"CommentMessageParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns-2",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L263",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:263"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"conversationconstants",children:"conversationConstants"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"conversationConstants"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/ConversationConstants",children:(0,n.jsx)(r.code,{children:"ConversationConstants"})})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L230",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:230"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"create",children:"create"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"create"}),": (",(0,n.jsx)(r.code,{children:"params?"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#createconversationparams",children:(0,n.jsx)(r.code,{children:"CreateConversationParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"params?"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsxs)(r.p,{children:["Create a new ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"."]}),"\n",(0,n.jsx)(r.h5,{id:"parameters-3",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"params?"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#createconversationparams",children:(0,n.jsx)(r.code,{children:"CreateConversationParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns-3",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L235",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:235"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"findbyid",children:"findById"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"findById"}),": (",(0,n.jsx)(r.code,{children:"__namedParameters"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/FindByIdParams",children:(0,n.jsx)(r.code,{children:"FindByIdParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"null"})," | ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"null"})," | ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsx)(r.h5,{id:"parameters-4",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/FindByIdParams",children:(0,n.jsx)(r.code,{children:"FindByIdParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns-4",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"null"})," | ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L249",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:249"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"ratemessage",children:"rateMessage"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"rateMessage"}),": (",(0,n.jsx)(r.code,{children:"__namedParameters"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/RateMessageParams",children:(0,n.jsx)(r.code,{children:"RateMessageParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration-5",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsxs)(r.p,{children:["Rate a ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:"Message"})," in a ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"."]}),"\n",(0,n.jsx)(r.h5,{id:"parameters-5",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/RateMessageParams",children:(0,n.jsx)(r.code,{children:"RateMessageParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns-5",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L254",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:254"})})]})}function h(e={}){const{wrapper:r}={...(0,t.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},11151:(e,r,s)=>{s.d(r,{Z:()=>c,a:()=>i});var n=s(67294);const t={},a=n.createContext(t);function i(e){const r=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function c(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),n.createElement(a.Provider,{value:r},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2264],{63418:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>d,contentTitle:()=>i,default:()=>h,frontMatter:()=>a,metadata:()=>c,toc:()=>o});var n=s(85893),t=s(11151);const a={id:"ConversationsService",title:"Interface: ConversationsService",sidebar_label:"ConversationsService",sidebar_position:0,custom_edit_url:null},i=void 0,c={id:"reference/server/interfaces/ConversationsService",title:"Interface: ConversationsService",description:"Service for managing Conversations.",source:"@site/docs/reference/server/interfaces/ConversationsService.md",sourceDirName:"reference/server/interfaces",slug:"/reference/server/interfaces/ConversationsService",permalink:"/chatbot/reference/server/interfaces/ConversationsService",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationsService",title:"Interface: ConversationsService",sidebar_label:"ConversationsService",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ConversationsRouterParams",permalink:"/chatbot/reference/server/interfaces/ConversationsRouterParams"},next:{title:"DataStreamer",permalink:"/chatbot/reference/server/interfaces/DataStreamer"}},d={},o=[{value:"Properties",id:"properties",level:2},{value:"addConversationMessage",id:"addconversationmessage",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"addManyConversationMessages",id:"addmanyconversationmessages",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-1",level:4},{value:"commentMessage",id:"commentmessage",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Parameters",id:"parameters-2",level:5},{value:"Returns",id:"returns-2",level:5},{value:"Defined in",id:"defined-in-2",level:4},{value:"conversationConstants",id:"conversationconstants",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"create",id:"create",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Parameters",id:"parameters-3",level:5},{value:"Returns",id:"returns-3",level:5},{value:"Defined in",id:"defined-in-4",level:4},{value:"findById",id:"findbyid",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Parameters",id:"parameters-4",level:5},{value:"Returns",id:"returns-4",level:5},{value:"Defined in",id:"defined-in-5",level:4},{value:"rateMessage",id:"ratemessage",level:3},{value:"Type declaration",id:"type-declaration-5",level:4},{value:"Parameters",id:"parameters-5",level:5},{value:"Returns",id:"returns-5",level:5},{value:"Defined in",id:"defined-in-6",level:4}];function l(e){const r={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,t.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(r.p,{children:["Service for managing ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"s."]}),"\n",(0,n.jsx)(r.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(r.h3,{id:"addconversationmessage",children:"addConversationMessage"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"addConversationMessage"}),": (",(0,n.jsx)(r.code,{children:"params"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#addconversationmessageparams",children:(0,n.jsx)(r.code,{children:"AddConversationMessageParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"params"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),">"]}),"\n",(0,n.jsxs)(r.p,{children:["Add a ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:"Message"})," to a ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"."]}),"\n",(0,n.jsx)(r.h5,{id:"parameters",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"params"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#addconversationmessageparams",children:(0,n.jsx)(r.code,{children:"AddConversationMessageParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L247",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:247"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"addmanyconversationmessages",children:"addManyConversationMessages"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"addManyConversationMessages"}),": (",(0,n.jsx)(r.code,{children:"params"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#addmanyconversationmessagesparams",children:(0,n.jsx)(r.code,{children:"AddManyConversationMessagesParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),"[]>"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"params"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),"[]>"]}),"\n",(0,n.jsxs)(r.p,{children:["Add multiple ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:"Message"})," objects to a ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"."]}),"\n",(0,n.jsx)(r.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"params"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#addmanyconversationmessagesparams",children:(0,n.jsx)(r.code,{children:"AddManyConversationMessagesParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns-1",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:(0,n.jsx)(r.code,{children:"Message"})}),"[]>"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L253",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:253"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"commentmessage",children:"commentMessage"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"commentMessage"}),": (",(0,n.jsx)(r.code,{children:"__namedParameters"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/CommentMessageParams",children:(0,n.jsx)(r.code,{children:"CommentMessageParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsxs)(r.p,{children:["Add a user comment to an assistant ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:"Message"}),"."]}),"\n",(0,n.jsx)(r.h5,{id:"parameters-2",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/CommentMessageParams",children:(0,n.jsx)(r.code,{children:"CommentMessageParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns-2",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L270",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:270"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"conversationconstants",children:"conversationConstants"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"conversationConstants"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/ConversationConstants",children:(0,n.jsx)(r.code,{children:"ConversationConstants"})})]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L237",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:237"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"create",children:"create"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"create"}),": (",(0,n.jsx)(r.code,{children:"params?"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#createconversationparams",children:(0,n.jsx)(r.code,{children:"CreateConversationParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"params?"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsxs)(r.p,{children:["Create a new ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"."]}),"\n",(0,n.jsx)(r.h5,{id:"parameters-3",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"params?"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#createconversationparams",children:(0,n.jsx)(r.code,{children:"CreateConversationParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns-3",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L242",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:242"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"findbyid",children:"findById"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"findById"}),": (",(0,n.jsx)(r.code,{children:"__namedParameters"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/FindByIdParams",children:(0,n.jsx)(r.code,{children:"FindByIdParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"null"})," | ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"null"})," | ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsx)(r.h5,{id:"parameters-4",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/FindByIdParams",children:(0,n.jsx)(r.code,{children:"FindByIdParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns-4",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"null"})," | ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:(0,n.jsx)(r.code,{children:"Conversation"})}),"<",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#conversationcustomdata",children:(0,n.jsx)(r.code,{children:"ConversationCustomData"})}),">>"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L256",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:256"})}),"\n",(0,n.jsx)(r.hr,{}),"\n",(0,n.jsx)(r.h3,{id:"ratemessage",children:"rateMessage"}),"\n",(0,n.jsxs)(r.p,{children:["\u2022 ",(0,n.jsx)(r.strong,{children:"rateMessage"}),": (",(0,n.jsx)(r.code,{children:"__namedParameters"}),": ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/RateMessageParams",children:(0,n.jsx)(r.code,{children:"RateMessageParams"})}),") => ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"type-declaration-5",children:"Type declaration"}),"\n",(0,n.jsxs)(r.p,{children:["\u25b8 (",(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"}),"): ",(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsxs)(r.p,{children:["Rate a ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/modules#message",children:"Message"})," in a ",(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/Conversation",children:"Conversation"}),"."]}),"\n",(0,n.jsx)(r.h5,{id:"parameters-5",children:"Parameters"}),"\n",(0,n.jsxs)(r.table,{children:[(0,n.jsx)(r.thead,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Name"}),(0,n.jsx)(r.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,n.jsx)(r.tbody,{children:(0,n.jsxs)(r.tr,{children:[(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.code,{children:"\xabdestructured\xbb"})}),(0,n.jsx)(r.td,{style:{textAlign:"left"},children:(0,n.jsx)(r.a,{href:"/chatbot/reference/server/interfaces/RateMessageParams",children:(0,n.jsx)(r.code,{children:"RateMessageParams"})})})]})})]}),"\n",(0,n.jsx)(r.h5,{id:"returns-5",children:"Returns"}),"\n",(0,n.jsxs)(r.p,{children:[(0,n.jsx)(r.code,{children:"Promise"}),"<",(0,n.jsx)(r.code,{children:"boolean"}),">"]}),"\n",(0,n.jsx)(r.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,n.jsx)(r.p,{children:(0,n.jsx)(r.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-server/src/services/ConversationsService.ts#L261",children:"packages/mongodb-chatbot-server/src/services/ConversationsService.ts:261"})})]})}function h(e={}){const{wrapper:r}={...(0,t.a)(),...e.components};return r?(0,n.jsx)(r,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},11151:(e,r,s)=>{s.d(r,{Z:()=>c,a:()=>i});var n=s(67294);const t={},a=n.createContext(t);function i(e){const r=n.useContext(a);return n.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function c(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(t):e.components||t:i(e.components),n.createElement(a.Provider,{value:r},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f5f59c64.0d0e97a6.js b/assets/js/f5f59c64.669abb5b.js similarity index 85% rename from assets/js/f5f59c64.0d0e97a6.js rename to assets/js/f5f59c64.669abb5b.js index f302e761b..68e4f6772 100644 --- a/assets/js/f5f59c64.0d0e97a6.js +++ b/assets/js/f5f59c64.669abb5b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6516],{24124:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>s,contentTitle:()=>i,default:()=>m,frontMatter:()=>r,metadata:()=>d,toc:()=>c});var t=n(85893),o=n(11151);const r={id:"MakeMongoDbCommandMetadataStoreParams",title:"Interface: MakeMongoDbCommandMetadataStoreParams",sidebar_label:"MakeMongoDbCommandMetadataStoreParams",sidebar_position:0,custom_edit_url:null},i=void 0,d={id:"reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams",title:"Interface: MakeMongoDbCommandMetadataStoreParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeMongoDbCommandMetadataStoreParams",title:"Interface: MakeMongoDbCommandMetadataStoreParams",sidebar_label:"MakeMongoDbCommandMetadataStoreParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeGenerateLlmConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams"},next:{title:"MakeMongoDbEvaluationStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams"}},s={},c=[{value:"Properties",id:"properties",level:2},{value:"collectionName",id:"collectionname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"connectionUri",id:"connectionuri",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"databaseName",id:"databasename",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const a={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,o.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(a.h3,{id:"collectionname",children:"collectionName"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.code,{children:"Optional"})," ",(0,t.jsx)(a.strong,{children:"collectionName"}),": ",(0,t.jsx)(a.code,{children:"string"})]}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.strong,{children:(0,t.jsx)(a.code,{children:"Default"})})}),"\n",(0,t.jsx)(a.pre,{children:(0,t.jsx)(a.code,{className:"language-ts",children:'"command_run_metadata"\n'})}),"\n",(0,t.jsx)(a.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L33",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:33"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"connectionuri",children:"connectionUri"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"connectionUri"}),": ",(0,t.jsx)(a.code,{children:"string"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L27",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:27"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"databasename",children:"databaseName"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"databaseName"}),": ",(0,t.jsx)(a.code,{children:"string"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:28"})})]})}function m(e={}){const{wrapper:a}={...(0,o.a)(),...e.components};return a?(0,t.jsx)(a,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,a,n)=>{n.d(a,{Z:()=>d,a:()=>i});var t=n(67294);const o={},r=t.createContext(o);function i(e){const a=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function d(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),t.createElement(r.Provider,{value:a},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6516],{24124:(e,a,n)=>{n.r(a),n.d(a,{assets:()=>d,contentTitle:()=>i,default:()=>m,frontMatter:()=>r,metadata:()=>s,toc:()=>c});var t=n(85893),o=n(11151);const r={id:"MakeMongoDbCommandMetadataStoreParams",title:"Interface: MakeMongoDbCommandMetadataStoreParams",sidebar_label:"MakeMongoDbCommandMetadataStoreParams",sidebar_position:0,custom_edit_url:null},i=void 0,s={id:"reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams",title:"Interface: MakeMongoDbCommandMetadataStoreParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"MakeMongoDbCommandMetadataStoreParams",title:"Interface: MakeMongoDbCommandMetadataStoreParams",sidebar_label:"MakeMongoDbCommandMetadataStoreParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"MakeGenerateLlmConversationDataParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams"},next:{title:"MakeMongoDbEvaluationStoreParams",permalink:"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams"}},d={},c=[{value:"Properties",id:"properties",level:2},{value:"collectionName",id:"collectionname",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"connectionUri",id:"connectionuri",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"databaseName",id:"databasename",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function l(e){const a={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",pre:"pre",strong:"strong",...(0,o.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.h2,{id:"properties",children:"Properties"}),"\n",(0,t.jsx)(a.h3,{id:"collectionname",children:"collectionName"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.code,{children:"Optional"})," ",(0,t.jsx)(a.strong,{children:"collectionName"}),": ",(0,t.jsx)(a.code,{children:"string"})]}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.strong,{children:(0,t.jsx)(a.code,{children:"Default"})})}),"\n",(0,t.jsx)(a.pre,{children:(0,t.jsx)(a.code,{className:"language-ts",children:'"command_run_metadata"\n'})}),"\n",(0,t.jsx)(a.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L33",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:33"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"connectionuri",children:"connectionUri"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"connectionUri"}),": ",(0,t.jsx)(a.code,{children:"string"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L27",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:27"})}),"\n",(0,t.jsx)(a.hr,{}),"\n",(0,t.jsx)(a.h3,{id:"databasename",children:"databaseName"}),"\n",(0,t.jsxs)(a.p,{children:["\u2022 ",(0,t.jsx)(a.strong,{children:"databaseName"}),": ",(0,t.jsx)(a.code,{children:"string"})]}),"\n",(0,t.jsx)(a.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts#L28",children:"packages/mongodb-chatbot-evaluation/src/CommandMetadataStore.ts:28"})})]})}function m(e={}){const{wrapper:a}={...(0,o.a)(),...e.components};return a?(0,t.jsx)(a,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},11151:(e,a,n)=>{n.d(a,{Z:()=>s,a:()=>i});var t=n(67294);const o={},r=t.createContext(o);function i(e){const a=t.useContext(r);return t.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function s(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),t.createElement(r.Provider,{value:a},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f6f48b5e.147235b6.js b/assets/js/f6f48b5e.147235b6.js new file mode 100644 index 000000000..9cabd1744 --- /dev/null +++ b/assets/js/f6f48b5e.147235b6.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8917],{181:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>o,toc:()=>d});var a=t(85893),i=t(11151);const s={id:"ConversationEvalData",title:"Interface: ConversationEvalData",sidebar_label:"ConversationEvalData",sidebar_position:0,custom_edit_url:null},r=void 0,o={id:"reference/evaluation/interfaces/ConversationEvalData",title:"Interface: ConversationEvalData",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/ConversationEvalData.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ConversationEvalData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationEvalData",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationEvalData",title:"Interface: ConversationEvalData",sidebar_label:"ConversationEvalData",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CommandRunMetadata",permalink:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata"},next:{title:"ConversationGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData"}},c={},d=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Properties",id:"properties",level:2},{value:"expectedLinks",id:"expectedlinks",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"qualitativeFinalAssistantMessageExpectation",id:"qualitativefinalassistantmessageexpectation",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"tags",id:"tags",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Record"}),"<",(0,a.jsx)(n.code,{children:"string"}),", ",(0,a.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,a.jsxs)(n.p,{children:["\u21b3 ",(0,a.jsx)(n.strong,{children:(0,a.jsx)(n.code,{children:"ConversationEvalData"})})]}),"\n"]}),"\n"]}),"\n",(0,a.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,a.jsx)(n.h3,{id:"expectedlinks",children:"expectedLinks"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Optional"})," ",(0,a.jsx)(n.strong,{children:"expectedLinks"}),": ",(0,a.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,a.jsx)(n.p,{children:"Link segments expected to be included in the final assistant message."}),"\n",(0,a.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L39",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:39"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"name"}),": ",(0,a.jsx)(n.code,{children:"string"})]}),"\n",(0,a.jsx)(n.p,{children:"Description of what the test case assesses."}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L34",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:34"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"qualitativefinalassistantmessageexpectation",children:"qualitativeFinalAssistantMessageExpectation"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Optional"})," ",(0,a.jsx)(n.strong,{children:"qualitativeFinalAssistantMessageExpectation"}),": ",(0,a.jsx)(n.code,{children:"string"})]}),"\n",(0,a.jsx)(n.p,{children:"Description of what you want to see from the final assistant message.\nAn LLM can use this description to see if the final assistant message meets this expectation."}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L29",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:29"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"tags",children:"tags"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Optional"})," ",(0,a.jsx)(n.strong,{children:"tags"}),": ",(0,a.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,a.jsx)(n.p,{children:"Arbitrary metadata about the conversation."}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:23"})})]})}function h(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(l,{...e})}):l(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>o,a:()=>r});var a=t(67294);const i={},s=a.createContext(i);function r(e){const n=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),a.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/f6f48b5e.f38ac531.js b/assets/js/f6f48b5e.f38ac531.js deleted file mode 100644 index 7e63e71ae..000000000 --- a/assets/js/f6f48b5e.f38ac531.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8917],{181:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>r,default:()=>h,frontMatter:()=>s,metadata:()=>o,toc:()=>l});var a=t(85893),i=t(11151);const s={id:"ConversationEvalData",title:"Interface: ConversationEvalData",sidebar_label:"ConversationEvalData",sidebar_position:0,custom_edit_url:null},r=void 0,o={id:"reference/evaluation/interfaces/ConversationEvalData",title:"Interface: ConversationEvalData",description:"Hierarchy",source:"@site/docs/reference/evaluation/interfaces/ConversationEvalData.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/ConversationEvalData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationEvalData",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"ConversationEvalData",title:"Interface: ConversationEvalData",sidebar_label:"ConversationEvalData",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"CommandRunMetadata",permalink:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata"},next:{title:"ConversationGeneratedData",permalink:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData"}},c={},l=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Properties",id:"properties",level:2},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"qualitativeFinalAssistantMessageExpectation",id:"qualitativefinalassistantmessageexpectation",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"tags",id:"tags",level:3},{value:"Defined in",id:"defined-in-2",level:4}];function d(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",li:"li",p:"p",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.h2,{id:"hierarchy",children:"Hierarchy"}),"\n",(0,a.jsxs)(n.ul,{children:["\n",(0,a.jsxs)(n.li,{children:["\n",(0,a.jsxs)(n.p,{children:[(0,a.jsx)(n.code,{children:"Record"}),"<",(0,a.jsx)(n.code,{children:"string"}),", ",(0,a.jsx)(n.code,{children:"unknown"}),">"]}),"\n",(0,a.jsxs)(n.p,{children:["\u21b3 ",(0,a.jsx)(n.strong,{children:(0,a.jsx)(n.code,{children:"ConversationEvalData"})})]}),"\n"]}),"\n"]}),"\n",(0,a.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,a.jsx)(n.h3,{id:"name",children:"name"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"name"}),": ",(0,a.jsx)(n.code,{children:"string"})]}),"\n",(0,a.jsx)(n.p,{children:"Description of what the test case assesses."}),"\n",(0,a.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L34",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:34"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"qualitativefinalassistantmessageexpectation",children:"qualitativeFinalAssistantMessageExpectation"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.strong,{children:"qualitativeFinalAssistantMessageExpectation"}),": ",(0,a.jsx)(n.code,{children:"string"})]}),"\n",(0,a.jsx)(n.p,{children:"Description of what you want to see from the final assistant message.\nAn LLM can use this description to see if the final assistant message meets this expectation."}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L29",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:29"})}),"\n",(0,a.jsx)(n.hr,{}),"\n",(0,a.jsx)(n.h3,{id:"tags",children:"tags"}),"\n",(0,a.jsxs)(n.p,{children:["\u2022 ",(0,a.jsx)(n.code,{children:"Optional"})," ",(0,a.jsx)(n.strong,{children:"tags"}),": ",(0,a.jsx)(n.code,{children:"string"}),"[]"]}),"\n",(0,a.jsx)(n.p,{children:"Arbitrary metadata about the conversation."}),"\n",(0,a.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,a.jsx)(n.p,{children:(0,a.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts#L23",children:"packages/mongodb-chatbot-evaluation/src/generate/GeneratedDataStore.ts:23"})})]})}function h(e={}){const{wrapper:n}={...(0,i.a)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(d,{...e})}):d(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>o,a:()=>r});var a=t(67294);const i={},s=a.createContext(i);function r(e){const n=a.useContext(s);return a.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:r(e.components),a.createElement(s.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/fbabf8d9.ca7d421d.js b/assets/js/fbabf8d9.56a563bd.js similarity index 85% rename from assets/js/fbabf8d9.ca7d421d.js rename to assets/js/fbabf8d9.56a563bd.js index e7a3db3e8..6ea13a5a7 100644 --- a/assets/js/fbabf8d9.ca7d421d.js +++ b/assets/js/fbabf8d9.56a563bd.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2328],{31334:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>d,contentTitle:()=>c,default:()=>h,frontMatter:()=>t,metadata:()=>o,toc:()=>a});var i=r(85893),s=r(11151);const t={id:"AzureOpenAiServiceConfig",title:"Interface: AzureOpenAiServiceConfig",sidebar_label:"AzureOpenAiServiceConfig",sidebar_position:0,custom_edit_url:null},c=void 0,o={id:"reference/core/interfaces/AzureOpenAiServiceConfig",title:"Interface: AzureOpenAiServiceConfig",description:"Properties",source:"@site/docs/reference/core/interfaces/AzureOpenAiServiceConfig.md",sourceDirName:"reference/core/interfaces",slug:"/reference/core/interfaces/AzureOpenAiServiceConfig",permalink:"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"AzureOpenAiServiceConfig",title:"Interface: AzureOpenAiServiceConfig",sidebar_label:"AzureOpenAiServiceConfig",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Exports",permalink:"/chatbot/reference/core/modules"},next:{title:"EmbeddedContent",permalink:"/chatbot/reference/core/interfaces/EmbeddedContent"}},d={},a=[{value:"Properties",id:"properties",level:2},{value:"apiKey",id:"apikey",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"baseUrl",id:"baseurl",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"deployment",id:"deployment",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"version",id:"version",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,s.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,i.jsx)(n.h3,{id:"apikey",children:"apiKey"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"apiKey"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L5",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:5"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"baseurl",children:"baseUrl"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"baseUrl"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L6",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:6"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"deployment",children:"deployment"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"deployment"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L7",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:7"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"version",children:"version"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"version"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L8",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:8"})})]})}function h(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>o,a:()=>c});var i=r(67294);const s={},t=i.createContext(s);function c(e){const n=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function o(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:c(e.components),i.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2328],{31334:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>h,frontMatter:()=>t,metadata:()=>c,toc:()=>a});var i=r(85893),s=r(11151);const t={id:"AzureOpenAiServiceConfig",title:"Interface: AzureOpenAiServiceConfig",sidebar_label:"AzureOpenAiServiceConfig",sidebar_position:0,custom_edit_url:null},o=void 0,c={id:"reference/core/interfaces/AzureOpenAiServiceConfig",title:"Interface: AzureOpenAiServiceConfig",description:"Properties",source:"@site/docs/reference/core/interfaces/AzureOpenAiServiceConfig.md",sourceDirName:"reference/core/interfaces",slug:"/reference/core/interfaces/AzureOpenAiServiceConfig",permalink:"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"AzureOpenAiServiceConfig",title:"Interface: AzureOpenAiServiceConfig",sidebar_label:"AzureOpenAiServiceConfig",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"Exports",permalink:"/chatbot/reference/core/modules"},next:{title:"EmbeddedContent",permalink:"/chatbot/reference/core/interfaces/EmbeddedContent"}},d={},a=[{value:"Properties",id:"properties",level:2},{value:"apiKey",id:"apikey",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"baseUrl",id:"baseurl",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"deployment",id:"deployment",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"version",id:"version",level:3},{value:"Defined in",id:"defined-in-3",level:4}];function l(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,s.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h2,{id:"properties",children:"Properties"}),"\n",(0,i.jsx)(n.h3,{id:"apikey",children:"apiKey"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"apiKey"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L5",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:5"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"baseurl",children:"baseUrl"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"baseUrl"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L6",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:6"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"deployment",children:"deployment"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"deployment"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L7",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:7"})}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"version",children:"version"}),"\n",(0,i.jsxs)(n.p,{children:["\u2022 ",(0,i.jsx)(n.strong,{children:"version"}),": ",(0,i.jsx)(n.code,{children:"string"})]}),"\n",(0,i.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts#L8",children:"packages/mongodb-rag-core/src/TypeChatJsonTranslateFunc.ts:8"})})]})}function h(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(l,{...e})}):l(e)}},11151:(e,n,r)=>{r.d(n,{Z:()=>c,a:()=>o});var i=r(67294);const s={},t=i.createContext(s);function o(e){const n=i.useContext(t);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:o(e.components),i.createElement(t.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/fe605128.a5246c44.js b/assets/js/fe605128.a5246c44.js new file mode 100644 index 000000000..266677425 --- /dev/null +++ b/assets/js/fe605128.a5246c44.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5324],{22609:(e,a,t)=>{t.r(a),t.d(a,{assets:()=>o,contentTitle:()=>s,default:()=>h,frontMatter:()=>d,metadata:()=>i,toc:()=>c});var n=t(85893),r=t(11151);const d={id:"GenerateDataAndMetadataParams",title:"Interface: GenerateDataAndMetadataParams",sidebar_label:"GenerateDataAndMetadataParams",sidebar_position:0,custom_edit_url:null},s=void 0,i={id:"reference/evaluation/interfaces/GenerateDataAndMetadataParams",title:"Interface: GenerateDataAndMetadataParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/GenerateDataAndMetadataParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/GenerateDataAndMetadataParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"GenerateDataAndMetadataParams",title:"Interface: GenerateDataAndMetadataParams",sidebar_label:"GenerateDataAndMetadataParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"ExpectedLinks",permalink:"/chatbot/reference/evaluation/interfaces/ExpectedLinks"},next:{title:"GenerateDataFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams"}},o={},c=[{value:"Properties",id:"properties",level:2},{value:"generatedDataStore",id:"generateddatastore",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"generator",id:"generator",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"metadataStore",id:"metadatastore",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"testCases",id:"testcases",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const a={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(a.h3,{id:"generateddatastore",children:"generatedDataStore"}),"\n",(0,n.jsxs)(a.p,{children:["\u2022 ",(0,n.jsx)(a.strong,{children:"generatedDataStore"}),": ",(0,n.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:(0,n.jsx)(a.code,{children:"GeneratedDataStore"})})]}),"\n",(0,n.jsx)(a.p,{children:"Store for generated data."}),"\n",(0,n.jsx)(a.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L29",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:29"})}),"\n",(0,n.jsx)(a.hr,{}),"\n",(0,n.jsx)(a.h3,{id:"generator",children:"generator"}),"\n",(0,n.jsxs)(a.p,{children:["\u2022 ",(0,n.jsx)(a.strong,{children:"generator"}),": ",(0,n.jsx)(a.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,n.jsx)(a.code,{children:"GenerateDataFunc"})})]}),"\n",(0,n.jsx)(a.p,{children:"Function to generate data from test cases."}),"\n",(0,n.jsx)(a.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L24",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:24"})}),"\n",(0,n.jsx)(a.hr,{}),"\n",(0,n.jsx)(a.h3,{id:"metadatastore",children:"metadataStore"}),"\n",(0,n.jsxs)(a.p,{children:["\u2022 ",(0,n.jsx)(a.strong,{children:"metadataStore"}),": ",(0,n.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:(0,n.jsx)(a.code,{children:"CommandMetadataStore"})})]}),"\n",(0,n.jsx)(a.p,{children:"Store for command metadata."}),"\n",(0,n.jsx)(a.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L34",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:34"})}),"\n",(0,n.jsx)(a.hr,{}),"\n",(0,n.jsx)(a.h3,{id:"name",children:"name"}),"\n",(0,n.jsxs)(a.p,{children:["\u2022 ",(0,n.jsx)(a.strong,{children:"name"}),": ",(0,n.jsx)(a.code,{children:"string"})]}),"\n",(0,n.jsx)(a.p,{children:"Name of the command that generated the data."}),"\n",(0,n.jsx)(a.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L19",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:19"})}),"\n",(0,n.jsx)(a.hr,{}),"\n",(0,n.jsx)(a.h3,{id:"testcases",children:"testCases"}),"\n",(0,n.jsxs)(a.p,{children:["\u2022 ",(0,n.jsx)(a.strong,{children:"testCases"}),": ",(0,n.jsx)(a.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,n.jsx)(a.code,{children:"SomeTestCase"})}),"[]"]}),"\n",(0,n.jsx)(a.p,{children:"Test cases to generate data from."}),"\n",(0,n.jsx)(a.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L14",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:14"})})]})}function h(e={}){const{wrapper:a}={...(0,r.a)(),...e.components};return a?(0,n.jsx)(a,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},11151:(e,a,t)=>{t.d(a,{Z:()=>i,a:()=>s});var n=t(67294);const r={},d=n.createContext(r);function s(e){const a=n.useContext(d);return n.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function i(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),n.createElement(d.Provider,{value:a},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/fe605128.fcd7f983.js b/assets/js/fe605128.fcd7f983.js deleted file mode 100644 index 49020dbb7..000000000 --- a/assets/js/fe605128.fcd7f983.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5324],{22609:(e,a,t)=>{t.r(a),t.d(a,{assets:()=>o,contentTitle:()=>s,default:()=>h,frontMatter:()=>d,metadata:()=>i,toc:()=>c});var n=t(85893),r=t(11151);const d={id:"GenerateDataAndMetadataParams",title:"Interface: GenerateDataAndMetadataParams",sidebar_label:"GenerateDataAndMetadataParams",sidebar_position:0,custom_edit_url:null},s=void 0,i={id:"reference/evaluation/interfaces/GenerateDataAndMetadataParams",title:"Interface: GenerateDataAndMetadataParams",description:"Properties",source:"@site/docs/reference/evaluation/interfaces/GenerateDataAndMetadataParams.md",sourceDirName:"reference/evaluation/interfaces",slug:"/reference/evaluation/interfaces/GenerateDataAndMetadataParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"GenerateDataAndMetadataParams",title:"Interface: GenerateDataAndMetadataParams",sidebar_label:"GenerateDataAndMetadataParams",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"EvaluationStore",permalink:"/chatbot/reference/evaluation/interfaces/EvaluationStore"},next:{title:"GenerateDataFuncParams",permalink:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams"}},o={},c=[{value:"Properties",id:"properties",level:2},{value:"generatedDataStore",id:"generateddatastore",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"generator",id:"generator",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"metadataStore",id:"metadatastore",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"testCases",id:"testcases",level:3},{value:"Defined in",id:"defined-in-4",level:4}];function l(e){const a={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",hr:"hr",p:"p",strong:"strong",...(0,r.a)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(a.h2,{id:"properties",children:"Properties"}),"\n",(0,n.jsx)(a.h3,{id:"generateddatastore",children:"generatedDataStore"}),"\n",(0,n.jsxs)(a.p,{children:["\u2022 ",(0,n.jsx)(a.strong,{children:"generatedDataStore"}),": ",(0,n.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",children:(0,n.jsx)(a.code,{children:"GeneratedDataStore"})})]}),"\n",(0,n.jsx)(a.p,{children:"Store for generated data."}),"\n",(0,n.jsx)(a.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L29",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:29"})}),"\n",(0,n.jsx)(a.hr,{}),"\n",(0,n.jsx)(a.h3,{id:"generator",children:"generator"}),"\n",(0,n.jsxs)(a.p,{children:["\u2022 ",(0,n.jsx)(a.strong,{children:"generator"}),": ",(0,n.jsx)(a.a,{href:"/chatbot/reference/evaluation/modules#generatedatafunc",children:(0,n.jsx)(a.code,{children:"GenerateDataFunc"})})]}),"\n",(0,n.jsx)(a.p,{children:"Function to generate data from test cases."}),"\n",(0,n.jsx)(a.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L24",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:24"})}),"\n",(0,n.jsx)(a.hr,{}),"\n",(0,n.jsx)(a.h3,{id:"metadatastore",children:"metadataStore"}),"\n",(0,n.jsxs)(a.p,{children:["\u2022 ",(0,n.jsx)(a.strong,{children:"metadataStore"}),": ",(0,n.jsx)(a.a,{href:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",children:(0,n.jsx)(a.code,{children:"CommandMetadataStore"})})]}),"\n",(0,n.jsx)(a.p,{children:"Store for command metadata."}),"\n",(0,n.jsx)(a.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L34",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:34"})}),"\n",(0,n.jsx)(a.hr,{}),"\n",(0,n.jsx)(a.h3,{id:"name",children:"name"}),"\n",(0,n.jsxs)(a.p,{children:["\u2022 ",(0,n.jsx)(a.strong,{children:"name"}),": ",(0,n.jsx)(a.code,{children:"string"})]}),"\n",(0,n.jsx)(a.p,{children:"Name of the command that generated the data."}),"\n",(0,n.jsx)(a.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L19",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:19"})}),"\n",(0,n.jsx)(a.hr,{}),"\n",(0,n.jsx)(a.h3,{id:"testcases",children:"testCases"}),"\n",(0,n.jsxs)(a.p,{children:["\u2022 ",(0,n.jsx)(a.strong,{children:"testCases"}),": ",(0,n.jsx)(a.a,{href:"/chatbot/reference/evaluation/modules#sometestcase",children:(0,n.jsx)(a.code,{children:"SomeTestCase"})}),"[]"]}),"\n",(0,n.jsx)(a.p,{children:"Test cases to generate data from."}),"\n",(0,n.jsx)(a.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,n.jsx)(a.p,{children:(0,n.jsx)(a.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts#L14",children:"packages/mongodb-chatbot-evaluation/src/generate/generateDataAndMetadata.ts:14"})})]})}function h(e={}){const{wrapper:a}={...(0,r.a)(),...e.components};return a?(0,n.jsx)(a,{...e,children:(0,n.jsx)(l,{...e})}):l(e)}},11151:(e,a,t)=>{t.d(a,{Z:()=>i,a:()=>s});var n=t(67294);const r={},d=n.createContext(r);function s(e){const a=n.useContext(d);return n.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function i(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:s(e.components),n.createElement(d.Provider,{value:a},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/fef834fc.81ccd7ef.js b/assets/js/fef834fc.766f51dc.js similarity index 97% rename from assets/js/fef834fc.81ccd7ef.js rename to assets/js/fef834fc.766f51dc.js index 388929f11..d223df308 100644 --- a/assets/js/fef834fc.81ccd7ef.js +++ b/assets/js/fef834fc.766f51dc.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7435],{72479:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>r,default:()=>x,frontMatter:()=>l,metadata:()=>i,toc:()=>h});var d=t(85893),s=t(11151);const l={id:"embed",title:"Module: embed",sidebar_label:"embed",sidebar_position:0,custom_edit_url:null},r=void 0,i={id:"reference/ingest/modules/embed",title:"Module: embed",description:"Type Aliases",source:"@site/docs/reference/ingest/modules/embed.md",sourceDirName:"reference/ingest/modules",slug:"/reference/ingest/modules/embed",permalink:"/chatbot/reference/ingest/modules/embed",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"embed",title:"Module: embed",sidebar_label:"embed",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"index",permalink:"/chatbot/reference/ingest/modules/"},next:{title:"sources",permalink:"/chatbot/reference/ingest/modules/sources"}},c={},h=[{value:"Type Aliases",id:"type-aliases",level:2},{value:"ChunkFunc",id:"chunkfunc",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"ChunkMetadataGetter",id:"chunkmetadatagetter",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-1",level:4},{value:"ChunkOptions",id:"chunkoptions",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"ChunkTransformer",id:"chunktransformer",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Parameters",id:"parameters-2",level:5},{value:"Returns",id:"returns-2",level:5},{value:"Defined in",id:"defined-in-3",level:4},{value:"ContentChunk",id:"contentchunk",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"SomeTokenizer",id:"sometokenizer",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"Variables",id:"variables",level:2},{value:"defaultOpenApiSpecYamlChunkOptions",id:"defaultopenapispecyamlchunkoptions",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"Functions",id:"functions",level:2},{value:"chunkMd",id:"chunkmd",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"chunkOpenApiSpecYaml",id:"chunkopenapispecyaml",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"chunkPage",id:"chunkpage",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"makeChunkFrontMatterUpdater",id:"makechunkfrontmatterupdater",level:3},{value:"Type parameters",id:"type-parameters-1",level:4},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"standardChunkFrontMatterUpdater",id:"standardchunkfrontmatterupdater",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"standardMetadataGetter",id:"standardmetadatagetter",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"updateEmbeddedContent",id:"updateembeddedcontent",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"updateEmbeddedContentForPage",id:"updateembeddedcontentforpage",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-14",level:4}];function o(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.a)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(n.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,d.jsx)(n.h3,{id:"chunkfunc",children:"ChunkFunc"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"ChunkFunc"}),": (",(0,d.jsx)(n.code,{children:"page"}),": ",(0,d.jsx)(n.code,{children:"Page"}),", ",(0,d.jsx)(n.code,{children:"options?"}),": ",(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">) => ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 (",(0,d.jsx)(n.code,{children:"page"}),", ",(0,d.jsx)(n.code,{children:"options?"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.p,{children:"A ChunkFunc is a function that takes a page and returns it in chunks."}),"\n",(0,d.jsx)(n.h5,{id:"parameters",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"options?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]})]})]}),"\n",(0,d.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L12",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:12"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"chunkmetadatagetter",children:"ChunkMetadataGetter"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"ChunkMetadataGetter"}),"<",(0,d.jsx)(n.code,{children:"T"}),">: (",(0,d.jsx)(n.code,{children:"args"}),": { ",(0,d.jsx)(n.code,{children:"chunk"}),": ",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),"> ; ",(0,d.jsx)(n.code,{children:"metadata?"}),": ",(0,d.jsx)(n.code,{children:"T"})," ; ",(0,d.jsx)(n.code,{children:"page"}),": ",(0,d.jsx)(n.code,{children:"Page"})," ; ",(0,d.jsx)(n.code,{children:"text"}),": ",(0,d.jsx)(n.code,{children:"string"})," }) => ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"T"}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"T"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,d.jsx)(n.code,{children:"Record"}),"<",(0,d.jsx)(n.code,{children:"string"}),", ",(0,d.jsx)(n.code,{children:"unknown"}),"> = ",(0,d.jsx)(n.code,{children:"Record"}),"<",(0,d.jsx)(n.code,{children:"string"}),", ",(0,d.jsx)(n.code,{children:"unknown"}),">"]})]})})]}),"\n",(0,d.jsx)(n.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 (",(0,d.jsx)(n.code,{children:"args"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"T"}),">"]}),"\n",(0,d.jsx)(n.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.chunk"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">"]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"T"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Previous metadata, if any. Omitting this from the return value should not overwrite previous metadata."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.text"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"string"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"The text of the chunk without metadata."})]})]})]}),"\n",(0,d.jsx)(n.h5,{id:"returns-1",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"T"}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/ChunkTransformer.ts#L13",children:"mongodb-rag-ingest/src/embed/ChunkTransformer.ts:13"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"chunkoptions",children:"ChunkOptions"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"ChunkOptions"}),": ",(0,d.jsx)(n.code,{children:"Object"})]}),"\n",(0,d.jsxs)(n.p,{children:["Options for converting a ",(0,d.jsx)(n.code,{children:"Page"})," into ",(0,d.jsx)(n.code,{children:"ContentChunk[]"}),"."]}),"\n",(0,d.jsx)(n.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"chunkOverlap"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"number"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Number of tokens to overlap between chunks. If this is 0, chunks will not overlap. If this is greater than 0, chunks will overlap by this number of tokens."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"maxChunkSize"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"number"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Maximum chunk size before transform function is applied to it. If Page has more tokens than this number, it is split into smaller chunks."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"minChunkSize?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"number"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["Minimum chunk size before transform function is applied to it. If a chunk has fewer tokens than this number, it is discarded before ingestion. You can use this as a vector search optimization to avoid including chunks with very few tokens and thus very little semantic meaning. ",(0,d.jsx)(n.strong,{children:(0,d.jsx)(n.code,{children:"Example"})})," You might set this to ",(0,d.jsx)(n.code,{children:"15"})," to avoid including chunks that are just a few characters or words. For instance, you likely would not want to set a chunk that is just the closing of a code block (",(0,d.jsx)(n.code,{children:"), which occurs not infrequently if chunking using the Langchain RecursiveCharacterTextSplitter. Chunk 1: ````text "}),'py foo = "bar" # more semantically relevant python code... ',(0,d.jsx)(n.code,{children:"Chunk 2:"}),"text ``` ````"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"tokenizer"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#sometokenizer",children:(0,d.jsx)(n.code,{children:"SomeTokenizer"})})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Tokenizer to use to count number of tokens in text."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"transform?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunktransformer",children:(0,d.jsx)(n.code,{children:"ChunkTransformer"})})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Transform to be applied to each chunk as it is produced. Provides the opportunity to prepend metadata, etc."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"yamlChunkSize?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"number"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"If provided, this will override the maxChunkSize for openapi-yaml pages. This is useful because openapi-yaml pages tend to be very large, and we want to split them into smaller chunks than the default maxChunkSize."})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L20",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:20"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"chunktransformer",children:"ChunkTransformer"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"ChunkTransformer"}),": (",(0,d.jsx)(n.code,{children:"chunk"}),": ",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">, ",(0,d.jsx)(n.code,{children:"details"}),": { ",(0,d.jsx)(n.code,{children:"page"}),": ",(0,d.jsx)(n.code,{children:"Page"})," }) => ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">>"]}),"\n",(0,d.jsx)(n.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 (",(0,d.jsx)(n.code,{children:"chunk"}),", ",(0,d.jsx)(n.code,{children:"details"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">>"]}),"\n",(0,d.jsx)(n.h5,{id:"parameters-2",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"chunk"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"details"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"details.page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]})]})]}),"\n",(0,d.jsx)(n.h5,{id:"returns-2",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/ChunkTransformer.ts#L6",children:"mongodb-rag-ingest/src/embed/ChunkTransformer.ts:6"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"contentchunk",children:"ContentChunk"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"ContentChunk"}),": ",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.code,{children:"EmbeddedContent"}),", ",(0,d.jsx)(n.code,{children:'"embedding"'})," | ",(0,d.jsx)(n.code,{children:'"updated"'}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L7",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:7"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"sometokenizer",children:"SomeTokenizer"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"SomeTokenizer"}),": ",(0,d.jsx)(n.code,{children:"Object"})]}),"\n",(0,d.jsx)(n.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"encode"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,d.jsx)(n.code,{children:"text"}),": ",(0,d.jsx)(n.code,{children:"string"}),") => { ",(0,d.jsx)(n.code,{children:"bpe"}),": ",(0,d.jsx)(n.code,{children:"number"}),"[] ; ",(0,d.jsx)(n.code,{children:"text"}),": ",(0,d.jsx)(n.code,{children:"string"}),"[] }"]})]})})]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L80",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:80"})}),"\n",(0,d.jsx)(n.h2,{id:"variables",children:"Variables"}),"\n",(0,d.jsx)(n.h3,{id:"defaultopenapispecyamlchunkoptions",children:"defaultOpenApiSpecYamlChunkOptions"}),"\n",(0,d.jsxs)(n.p,{children:["\u2022 ",(0,d.jsx)(n.code,{children:"Const"})," ",(0,d.jsx)(n.strong,{children:"defaultOpenApiSpecYamlChunkOptions"}),": ",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})})]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/chunkOpenApiSpecYaml.ts#L13",children:"mongodb-rag-ingest/src/embed/chunkOpenApiSpecYaml.ts:13"})}),"\n",(0,d.jsx)(n.h2,{id:"functions",children:"Functions"}),"\n",(0,d.jsx)(n.h3,{id:"chunkmd",children:"chunkMd"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"chunkMd"}),"(",(0,d.jsx)(n.code,{children:"page"}),", ",(0,d.jsx)(n.code,{children:"options?"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.p,{children:"A ChunkFunc is a function that takes a page and returns it in chunks."}),"\n",(0,d.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"options?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L12",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:12"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"chunkopenapispecyaml",children:"chunkOpenApiSpecYaml"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"chunkOpenApiSpecYaml"}),"(",(0,d.jsx)(n.code,{children:"page"}),", ",(0,d.jsx)(n.code,{children:"options?"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.p,{children:"A ChunkFunc is a function that takes a page and returns it in chunks."}),"\n",(0,d.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"options?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L12",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:12"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"chunkpage",children:"chunkPage"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"chunkPage"}),"(",(0,d.jsx)(n.code,{children:"page"}),", ",(0,d.jsx)(n.code,{children:"options?"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.p,{children:"Returns chunked of a content page."}),"\n",(0,d.jsx)(n.h4,{id:"parameters-5",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"options?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L12",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:12"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"makechunkfrontmatterupdater",children:"makeChunkFrontMatterUpdater"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"makeChunkFrontMatterUpdater"}),"<",(0,d.jsx)(n.code,{children:"T"}),">(",(0,d.jsx)(n.code,{children:"getMetadata"}),"): ",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunktransformer",children:(0,d.jsx)(n.code,{children:"ChunkTransformer"})})]}),"\n",(0,d.jsx)(n.p,{children:"Create a function that adds or updates front matter metadata to the chunk\ntext."}),"\n",(0,d.jsx)(n.h4,{id:"type-parameters-1",children:"Type parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"T"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,d.jsx)(n.code,{children:"Record"}),"<",(0,d.jsx)(n.code,{children:"string"}),", ",(0,d.jsx)(n.code,{children:"unknown"}),"> = ",(0,d.jsx)(n.code,{children:"Record"}),"<",(0,d.jsx)(n.code,{children:"string"}),", ",(0,d.jsx)(n.code,{children:"unknown"}),">"]})]})})]}),"\n",(0,d.jsx)(n.h4,{id:"parameters-6",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"getMetadata"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkmetadatagetter",children:(0,d.jsx)(n.code,{children:"ChunkMetadataGetter"})}),"<",(0,d.jsx)(n.code,{children:"T"}),">"]})]})})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-6",children:"Returns"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunktransformer",children:(0,d.jsx)(n.code,{children:"ChunkTransformer"})})}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/ChunkTransformer.ts#L36",children:"mongodb-rag-ingest/src/embed/ChunkTransformer.ts:36"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"standardchunkfrontmatterupdater",children:"standardChunkFrontMatterUpdater"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"standardChunkFrontMatterUpdater"}),"(",(0,d.jsx)(n.code,{children:"chunk"}),", ",(0,d.jsx)(n.code,{children:"details"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">>"]}),"\n",(0,d.jsx)(n.h4,{id:"parameters-7",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"chunk"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"details"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"details.page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-7",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/ChunkTransformer.ts#L6",children:"mongodb-rag-ingest/src/embed/ChunkTransformer.ts:6"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"standardmetadatagetter",children:"standardMetadataGetter"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"standardMetadataGetter"}),"(",(0,d.jsx)(n.code,{children:"args"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<{ ",(0,d.jsx)(n.code,{children:"[k: string]"}),": ",(0,d.jsx)(n.code,{children:"unknown"}),"; ",(0,d.jsx)(n.code,{children:"codeBlockLanguages?"}),": ",(0,d.jsx)(n.code,{children:"string"}),"[] ; ",(0,d.jsx)(n.code,{children:"hasCodeBlock"}),": ",(0,d.jsx)(n.code,{children:"boolean"})," ; ",(0,d.jsx)(n.code,{children:"pageTitle?"}),": ",(0,d.jsx)(n.code,{children:"string"})," ; ",(0,d.jsx)(n.code,{children:"tags?"}),": ",(0,d.jsx)(n.code,{children:"string"}),"[] }>"]}),"\n",(0,d.jsx)(n.p,{children:"Forms common metadata based on the chunk text, including info about any code\nexamples in the text."}),"\n",(0,d.jsx)(n.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.chunk"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">"]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Previous metadata, if any. Omitting this from the return value should not overwrite previous metadata."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata.codeBlockLanguages?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"string"}),"[]"]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata.hasCodeBlock"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"boolean"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata.pageTitle?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"string"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata.tags?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"string"}),"[]"]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.text"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"string"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"The text of the chunk without metadata."})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<{ ",(0,d.jsx)(n.code,{children:"[k: string]"}),": ",(0,d.jsx)(n.code,{children:"unknown"}),"; ",(0,d.jsx)(n.code,{children:"codeBlockLanguages?"}),": ",(0,d.jsx)(n.code,{children:"string"}),"[] ; ",(0,d.jsx)(n.code,{children:"hasCodeBlock"}),": ",(0,d.jsx)(n.code,{children:"boolean"})," ; ",(0,d.jsx)(n.code,{children:"pageTitle?"}),": ",(0,d.jsx)(n.code,{children:"string"})," ; ",(0,d.jsx)(n.code,{children:"tags?"}),": ",(0,d.jsx)(n.code,{children:"string"}),"[] }>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/ChunkTransformer.ts#L15",children:"mongodb-rag-ingest/src/embed/ChunkTransformer.ts:15"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"updateembeddedcontent",children:"updateEmbeddedContent"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"updateEmbeddedContent"}),"(",(0,d.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,d.jsx)(n.p,{children:"(Re-)embeddedContent the pages in the page store that have changed since the given date\nand stores the embeddedContent in the embeddedContent store."}),"\n",(0,d.jsx)(n.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"chunkOptions?"})]}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"embeddedContentStore"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"EmbeddedContentStore"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"embedder"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Embedder"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"pageStore"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"PageStore"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"since"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Date"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"sourceNames?"})]}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"string"}),"[]"]})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-9",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/updateEmbeddedContent.ts#L16",children:"mongodb-rag-ingest/src/embed/updateEmbeddedContent.ts:16"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"updateembeddedcontentforpage",children:"updateEmbeddedContentForPage"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"updateEmbeddedContentForPage"}),"(",(0,d.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"chunkOptions?"})]}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"embedder"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Embedder"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"page"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"PersistedPage"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"store"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"EmbeddedContentStore"})})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-10",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/f43cc5d/packages/mongodb-rag-ingest/src/embed/updateEmbeddedContent.ts#L77",children:"mongodb-rag-ingest/src/embed/updateEmbeddedContent.ts:77"})})]})}function x(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,d.jsx)(n,{...e,children:(0,d.jsx)(o,{...e})}):o(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>r});var d=t(67294);const s={},l=d.createContext(s);function r(e){const n=d.useContext(l);return d.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),d.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7435],{72479:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>r,default:()=>x,frontMatter:()=>l,metadata:()=>i,toc:()=>h});var d=t(85893),s=t(11151);const l={id:"embed",title:"Module: embed",sidebar_label:"embed",sidebar_position:0,custom_edit_url:null},r=void 0,i={id:"reference/ingest/modules/embed",title:"Module: embed",description:"Type Aliases",source:"@site/docs/reference/ingest/modules/embed.md",sourceDirName:"reference/ingest/modules",slug:"/reference/ingest/modules/embed",permalink:"/chatbot/reference/ingest/modules/embed",draft:!1,unlisted:!1,editUrl:null,tags:[],version:"current",sidebarPosition:0,frontMatter:{id:"embed",title:"Module: embed",sidebar_label:"embed",sidebar_position:0,custom_edit_url:null},sidebar:"main",previous:{title:"index",permalink:"/chatbot/reference/ingest/modules/"},next:{title:"sources",permalink:"/chatbot/reference/ingest/modules/sources"}},c={},h=[{value:"Type Aliases",id:"type-aliases",level:2},{value:"ChunkFunc",id:"chunkfunc",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"ChunkMetadataGetter",id:"chunkmetadatagetter",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Parameters",id:"parameters-1",level:5},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-1",level:4},{value:"ChunkOptions",id:"chunkoptions",level:3},{value:"Type declaration",id:"type-declaration-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"ChunkTransformer",id:"chunktransformer",level:3},{value:"Type declaration",id:"type-declaration-3",level:4},{value:"Parameters",id:"parameters-2",level:5},{value:"Returns",id:"returns-2",level:5},{value:"Defined in",id:"defined-in-3",level:4},{value:"ContentChunk",id:"contentchunk",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"SomeTokenizer",id:"sometokenizer",level:3},{value:"Type declaration",id:"type-declaration-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"Variables",id:"variables",level:2},{value:"defaultOpenApiSpecYamlChunkOptions",id:"defaultopenapispecyamlchunkoptions",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"Functions",id:"functions",level:2},{value:"chunkMd",id:"chunkmd",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"chunkOpenApiSpecYaml",id:"chunkopenapispecyaml",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"chunkPage",id:"chunkpage",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"makeChunkFrontMatterUpdater",id:"makechunkfrontmatterupdater",level:3},{value:"Type parameters",id:"type-parameters-1",level:4},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"standardChunkFrontMatterUpdater",id:"standardchunkfrontmatterupdater",level:3},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"standardMetadataGetter",id:"standardmetadatagetter",level:3},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"updateEmbeddedContent",id:"updateembeddedcontent",level:3},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"updateEmbeddedContentForPage",id:"updateembeddedcontentforpage",level:3},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-14",level:4}];function o(e){const n={a:"a",code:"code",h2:"h2",h3:"h3",h4:"h4",h5:"h5",hr:"hr",p:"p",strong:"strong",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,s.a)(),...e.components};return(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)(n.h2,{id:"type-aliases",children:"Type Aliases"}),"\n",(0,d.jsx)(n.h3,{id:"chunkfunc",children:"ChunkFunc"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"ChunkFunc"}),": (",(0,d.jsx)(n.code,{children:"page"}),": ",(0,d.jsx)(n.code,{children:"Page"}),", ",(0,d.jsx)(n.code,{children:"options?"}),": ",(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">) => ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.h4,{id:"type-declaration",children:"Type declaration"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 (",(0,d.jsx)(n.code,{children:"page"}),", ",(0,d.jsx)(n.code,{children:"options?"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.p,{children:"A ChunkFunc is a function that takes a page and returns it in chunks."}),"\n",(0,d.jsx)(n.h5,{id:"parameters",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"options?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]})]})]}),"\n",(0,d.jsx)(n.h5,{id:"returns",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L12",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:12"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"chunkmetadatagetter",children:"ChunkMetadataGetter"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"ChunkMetadataGetter"}),"<",(0,d.jsx)(n.code,{children:"T"}),">: (",(0,d.jsx)(n.code,{children:"args"}),": { ",(0,d.jsx)(n.code,{children:"chunk"}),": ",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),"> ; ",(0,d.jsx)(n.code,{children:"metadata?"}),": ",(0,d.jsx)(n.code,{children:"T"})," ; ",(0,d.jsx)(n.code,{children:"page"}),": ",(0,d.jsx)(n.code,{children:"Page"})," ; ",(0,d.jsx)(n.code,{children:"text"}),": ",(0,d.jsx)(n.code,{children:"string"})," }) => ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"T"}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"type-parameters",children:"Type parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"T"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,d.jsx)(n.code,{children:"Record"}),"<",(0,d.jsx)(n.code,{children:"string"}),", ",(0,d.jsx)(n.code,{children:"unknown"}),"> = ",(0,d.jsx)(n.code,{children:"Record"}),"<",(0,d.jsx)(n.code,{children:"string"}),", ",(0,d.jsx)(n.code,{children:"unknown"}),">"]})]})})]}),"\n",(0,d.jsx)(n.h4,{id:"type-declaration-1",children:"Type declaration"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 (",(0,d.jsx)(n.code,{children:"args"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"T"}),">"]}),"\n",(0,d.jsx)(n.h5,{id:"parameters-1",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.chunk"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">"]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"T"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Previous metadata, if any. Omitting this from the return value should not overwrite previous metadata."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.text"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"string"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"The text of the chunk without metadata."})]})]})]}),"\n",(0,d.jsx)(n.h5,{id:"returns-1",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"T"}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-1",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/ChunkTransformer.ts#L13",children:"mongodb-rag-ingest/src/embed/ChunkTransformer.ts:13"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"chunkoptions",children:"ChunkOptions"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"ChunkOptions"}),": ",(0,d.jsx)(n.code,{children:"Object"})]}),"\n",(0,d.jsxs)(n.p,{children:["Options for converting a ",(0,d.jsx)(n.code,{children:"Page"})," into ",(0,d.jsx)(n.code,{children:"ContentChunk[]"}),"."]}),"\n",(0,d.jsx)(n.h4,{id:"type-declaration-2",children:"Type declaration"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"chunkOverlap"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"number"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Number of tokens to overlap between chunks. If this is 0, chunks will not overlap. If this is greater than 0, chunks will overlap by this number of tokens."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"maxChunkSize"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"number"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Maximum chunk size before transform function is applied to it. If Page has more tokens than this number, it is split into smaller chunks."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"minChunkSize?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"number"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["Minimum chunk size before transform function is applied to it. If a chunk has fewer tokens than this number, it is discarded before ingestion. You can use this as a vector search optimization to avoid including chunks with very few tokens and thus very little semantic meaning. ",(0,d.jsx)(n.strong,{children:(0,d.jsx)(n.code,{children:"Example"})})," You might set this to ",(0,d.jsx)(n.code,{children:"15"})," to avoid including chunks that are just a few characters or words. For instance, you likely would not want to set a chunk that is just the closing of a code block (",(0,d.jsx)(n.code,{children:"), which occurs not infrequently if chunking using the Langchain RecursiveCharacterTextSplitter. Chunk 1: ````text "}),'py foo = "bar" # more semantically relevant python code... ',(0,d.jsx)(n.code,{children:"Chunk 2:"}),"text ``` ````"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"tokenizer"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#sometokenizer",children:(0,d.jsx)(n.code,{children:"SomeTokenizer"})})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Tokenizer to use to count number of tokens in text."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"transform?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunktransformer",children:(0,d.jsx)(n.code,{children:"ChunkTransformer"})})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Transform to be applied to each chunk as it is produced. Provides the opportunity to prepend metadata, etc."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"yamlChunkSize?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"number"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"If provided, this will override the maxChunkSize for openapi-yaml pages. This is useful because openapi-yaml pages tend to be very large, and we want to split them into smaller chunks than the default maxChunkSize."})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-2",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L20",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:20"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"chunktransformer",children:"ChunkTransformer"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"ChunkTransformer"}),": (",(0,d.jsx)(n.code,{children:"chunk"}),": ",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">, ",(0,d.jsx)(n.code,{children:"details"}),": { ",(0,d.jsx)(n.code,{children:"page"}),": ",(0,d.jsx)(n.code,{children:"Page"})," }) => ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">>"]}),"\n",(0,d.jsx)(n.h4,{id:"type-declaration-3",children:"Type declaration"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 (",(0,d.jsx)(n.code,{children:"chunk"}),", ",(0,d.jsx)(n.code,{children:"details"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">>"]}),"\n",(0,d.jsx)(n.h5,{id:"parameters-2",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"chunk"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"details"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"details.page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]})]})]}),"\n",(0,d.jsx)(n.h5,{id:"returns-2",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-3",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/ChunkTransformer.ts#L6",children:"mongodb-rag-ingest/src/embed/ChunkTransformer.ts:6"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"contentchunk",children:"ContentChunk"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"ContentChunk"}),": ",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.code,{children:"EmbeddedContent"}),", ",(0,d.jsx)(n.code,{children:'"embedding"'})," | ",(0,d.jsx)(n.code,{children:'"updated"'}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-4",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L7",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:7"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"sometokenizer",children:"SomeTokenizer"}),"\n",(0,d.jsxs)(n.p,{children:["\u01ac ",(0,d.jsx)(n.strong,{children:"SomeTokenizer"}),": ",(0,d.jsx)(n.code,{children:"Object"})]}),"\n",(0,d.jsx)(n.h4,{id:"type-declaration-4",children:"Type declaration"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"encode"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["(",(0,d.jsx)(n.code,{children:"text"}),": ",(0,d.jsx)(n.code,{children:"string"}),") => { ",(0,d.jsx)(n.code,{children:"bpe"}),": ",(0,d.jsx)(n.code,{children:"number"}),"[] ; ",(0,d.jsx)(n.code,{children:"text"}),": ",(0,d.jsx)(n.code,{children:"string"}),"[] }"]})]})})]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-5",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L80",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:80"})}),"\n",(0,d.jsx)(n.h2,{id:"variables",children:"Variables"}),"\n",(0,d.jsx)(n.h3,{id:"defaultopenapispecyamlchunkoptions",children:"defaultOpenApiSpecYamlChunkOptions"}),"\n",(0,d.jsxs)(n.p,{children:["\u2022 ",(0,d.jsx)(n.code,{children:"Const"})," ",(0,d.jsx)(n.strong,{children:"defaultOpenApiSpecYamlChunkOptions"}),": ",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})})]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-6",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/chunkOpenApiSpecYaml.ts#L13",children:"mongodb-rag-ingest/src/embed/chunkOpenApiSpecYaml.ts:13"})}),"\n",(0,d.jsx)(n.h2,{id:"functions",children:"Functions"}),"\n",(0,d.jsx)(n.h3,{id:"chunkmd",children:"chunkMd"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"chunkMd"}),"(",(0,d.jsx)(n.code,{children:"page"}),", ",(0,d.jsx)(n.code,{children:"options?"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.p,{children:"A ChunkFunc is a function that takes a page and returns it in chunks."}),"\n",(0,d.jsx)(n.h4,{id:"parameters-3",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"options?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-3",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-7",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L12",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:12"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"chunkopenapispecyaml",children:"chunkOpenApiSpecYaml"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"chunkOpenApiSpecYaml"}),"(",(0,d.jsx)(n.code,{children:"page"}),", ",(0,d.jsx)(n.code,{children:"options?"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.p,{children:"A ChunkFunc is a function that takes a page and returns it in chunks."}),"\n",(0,d.jsx)(n.h4,{id:"parameters-4",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"options?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-4",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-8",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L12",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:12"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"chunkpage",children:"chunkPage"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"chunkPage"}),"(",(0,d.jsx)(n.code,{children:"page"}),", ",(0,d.jsx)(n.code,{children:"options?"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.p,{children:"Returns chunked of a content page."}),"\n",(0,d.jsx)(n.h4,{id:"parameters-5",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"options?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-5",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),"[]>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-9",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/chunkPage.ts#L12",children:"mongodb-rag-ingest/src/embed/chunkPage.ts:12"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"makechunkfrontmatterupdater",children:"makeChunkFrontMatterUpdater"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"makeChunkFrontMatterUpdater"}),"<",(0,d.jsx)(n.code,{children:"T"}),">(",(0,d.jsx)(n.code,{children:"getMetadata"}),"): ",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunktransformer",children:(0,d.jsx)(n.code,{children:"ChunkTransformer"})})]}),"\n",(0,d.jsx)(n.p,{children:"Create a function that adds or updates front matter metadata to the chunk\ntext."}),"\n",(0,d.jsx)(n.h4,{id:"type-parameters-1",children:"Type parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"T"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["extends ",(0,d.jsx)(n.code,{children:"Record"}),"<",(0,d.jsx)(n.code,{children:"string"}),", ",(0,d.jsx)(n.code,{children:"unknown"}),"> = ",(0,d.jsx)(n.code,{children:"Record"}),"<",(0,d.jsx)(n.code,{children:"string"}),", ",(0,d.jsx)(n.code,{children:"unknown"}),">"]})]})})]}),"\n",(0,d.jsx)(n.h4,{id:"parameters-6",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsx)(n.tbody,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"getMetadata"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkmetadatagetter",children:(0,d.jsx)(n.code,{children:"ChunkMetadataGetter"})}),"<",(0,d.jsx)(n.code,{children:"T"}),">"]})]})})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-6",children:"Returns"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunktransformer",children:(0,d.jsx)(n.code,{children:"ChunkTransformer"})})}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-10",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/ChunkTransformer.ts#L36",children:"mongodb-rag-ingest/src/embed/ChunkTransformer.ts:36"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"standardchunkfrontmatterupdater",children:"standardChunkFrontMatterUpdater"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"standardChunkFrontMatterUpdater"}),"(",(0,d.jsx)(n.code,{children:"chunk"}),", ",(0,d.jsx)(n.code,{children:"details"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">>"]}),"\n",(0,d.jsx)(n.h4,{id:"parameters-7",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"chunk"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"details"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"details.page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-7",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-11",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/ChunkTransformer.ts#L6",children:"mongodb-rag-ingest/src/embed/ChunkTransformer.ts:6"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"standardmetadatagetter",children:"standardMetadataGetter"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"standardMetadataGetter"}),"(",(0,d.jsx)(n.code,{children:"args"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<{ ",(0,d.jsx)(n.code,{children:"[k: string]"}),": ",(0,d.jsx)(n.code,{children:"unknown"}),"; ",(0,d.jsx)(n.code,{children:"codeBlockLanguages?"}),": ",(0,d.jsx)(n.code,{children:"string"}),"[] ; ",(0,d.jsx)(n.code,{children:"hasCodeBlock"}),": ",(0,d.jsx)(n.code,{children:"boolean"})," ; ",(0,d.jsx)(n.code,{children:"pageTitle?"}),": ",(0,d.jsx)(n.code,{children:"string"})," ; ",(0,d.jsx)(n.code,{children:"tags?"}),": ",(0,d.jsx)(n.code,{children:"string"}),"[] }>"]}),"\n",(0,d.jsx)(n.p,{children:"Forms common metadata based on the chunk text, including info about any code\nexamples in the text."}),"\n",(0,d.jsx)(n.h4,{id:"parameters-8",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Description"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.chunk"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Omit"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#contentchunk",children:(0,d.jsx)(n.code,{children:"ContentChunk"})}),", ",(0,d.jsx)(n.code,{children:'"tokenCount"'}),">"]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"Previous metadata, if any. Omitting this from the return value should not overwrite previous metadata."})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata.codeBlockLanguages?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"string"}),"[]"]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata.hasCodeBlock"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"boolean"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata.pageTitle?"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"string"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.metadata.tags?"})}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"string"}),"[]"]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Page"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"-"})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"args.text"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"string"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:"The text of the chunk without metadata."})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-8",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<{ ",(0,d.jsx)(n.code,{children:"[k: string]"}),": ",(0,d.jsx)(n.code,{children:"unknown"}),"; ",(0,d.jsx)(n.code,{children:"codeBlockLanguages?"}),": ",(0,d.jsx)(n.code,{children:"string"}),"[] ; ",(0,d.jsx)(n.code,{children:"hasCodeBlock"}),": ",(0,d.jsx)(n.code,{children:"boolean"})," ; ",(0,d.jsx)(n.code,{children:"pageTitle?"}),": ",(0,d.jsx)(n.code,{children:"string"})," ; ",(0,d.jsx)(n.code,{children:"tags?"}),": ",(0,d.jsx)(n.code,{children:"string"}),"[] }>"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-12",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/ChunkTransformer.ts#L15",children:"mongodb-rag-ingest/src/embed/ChunkTransformer.ts:15"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"updateembeddedcontent",children:"updateEmbeddedContent"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"updateEmbeddedContent"}),"(",(0,d.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,d.jsx)(n.p,{children:"(Re-)embeddedContent the pages in the page store that have changed since the given date\nand stores the embeddedContent in the embeddedContent store."}),"\n",(0,d.jsx)(n.h4,{id:"parameters-9",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"chunkOptions?"})]}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"embeddedContentStore"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"EmbeddedContentStore"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"embedder"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Embedder"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"pageStore"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"PageStore"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"since"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Date"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"sourceNames?"})]}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"string"}),"[]"]})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-9",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-13",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/updateEmbeddedContent.ts#L16",children:"mongodb-rag-ingest/src/embed/updateEmbeddedContent.ts:16"})}),"\n",(0,d.jsx)(n.hr,{}),"\n",(0,d.jsx)(n.h3,{id:"updateembeddedcontentforpage",children:"updateEmbeddedContentForPage"}),"\n",(0,d.jsxs)(n.p,{children:["\u25b8 ",(0,d.jsx)(n.strong,{children:"updateEmbeddedContentForPage"}),"(",(0,d.jsx)(n.code,{children:"\xabdestructured\xbb"}),"): ",(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"parameters-10",children:"Parameters"}),"\n",(0,d.jsxs)(n.table,{children:[(0,d.jsx)(n.thead,{children:(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Name"}),(0,d.jsx)(n.th,{style:{textAlign:"left"},children:"Type"})]})}),(0,d.jsxs)(n.tbody,{children:[(0,d.jsxs)(n.tr,{children:[(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"\xabdestructured\xbb"})}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Object"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"chunkOptions?"})]}),(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:[(0,d.jsx)(n.code,{children:"Partial"}),"<",(0,d.jsx)(n.a,{href:"/chatbot/reference/ingest/modules/embed#chunkoptions",children:(0,d.jsx)(n.code,{children:"ChunkOptions"})}),">"]})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"embedder"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"Embedder"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"page"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"PersistedPage"})})]}),(0,d.jsxs)(n.tr,{children:[(0,d.jsxs)(n.td,{style:{textAlign:"left"},children:["\u203a\xa0",(0,d.jsx)(n.code,{children:"store"})]}),(0,d.jsx)(n.td,{style:{textAlign:"left"},children:(0,d.jsx)(n.code,{children:"EmbeddedContentStore"})})]})]})]}),"\n",(0,d.jsx)(n.h4,{id:"returns-10",children:"Returns"}),"\n",(0,d.jsxs)(n.p,{children:[(0,d.jsx)(n.code,{children:"Promise"}),"<",(0,d.jsx)(n.code,{children:"void"}),">"]}),"\n",(0,d.jsx)(n.h4,{id:"defined-in-14",children:"Defined in"}),"\n",(0,d.jsx)(n.p,{children:(0,d.jsx)(n.a,{href:"https://github.com/mongodben/chatbot/blob/1b3e54e/packages/mongodb-rag-ingest/src/embed/updateEmbeddedContent.ts#L77",children:"mongodb-rag-ingest/src/embed/updateEmbeddedContent.ts:77"})})]})}function x(e={}){const{wrapper:n}={...(0,s.a)(),...e.components};return n?(0,d.jsx)(n,{...e,children:(0,d.jsx)(o,{...e})}):o(e)}},11151:(e,n,t)=>{t.d(n,{Z:()=>i,a:()=>r});var d=t(67294);const s={},l=d.createContext(s);function r(e){const n=d.useContext(l);return d.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function i(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:r(e.components),d.createElement(l.Provider,{value:n},e.children)}}}]); \ No newline at end of file diff --git a/assets/js/main.2f39ec8a.js b/assets/js/main.2f39ec8a.js new file mode 100644 index 000000000..ebb5b7762 --- /dev/null +++ b/assets/js/main.2f39ec8a.js @@ -0,0 +1,2 @@ +/*! For license information please see main.2f39ec8a.js.LICENSE.txt */ +(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[179],{723:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});n(67294);var r=n(68356),a=n.n(r),o=n(16887);const i={"00126ca9":[()=>n.e(8086).then(n.bind(n,3230)),"@site/docs/reference/server/interfaces/ConversationConstants.md",3230],"00ed12f2":[()=>n.e(4113).then(n.bind(n,76992)),"@site/docs/reference/core/modules.md",76992],"04312b52":[()=>n.e(3885).then(n.bind(n,25710)),"@site/docs/reference/eval/interfaces/MongoDbEvaluationStore.md",25710],"04607c60":[()=>n.e(9412).then(n.bind(n,55034)),"@site/docs/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams.md",55034],"053515eb":[()=>n.e(378).then(n.bind(n,51428)),"@site/docs/reference/server/interfaces/CommentMessageParams.md",51428],"06cd8c03":[()=>n.e(6387).then(n.bind(n,1824)),"@site/docs/reference/server/interfaces/CallToolResponse.md",1824],"075a07c3":[()=>n.e(4788).then(n.bind(n,77502)),"@site/docs/reference/evaluation/interfaces/ReportEvalFuncParams.md",77502],"095cad7e":[()=>n.e(5745).then(n.bind(n,19790)),"@site/docs/reference/server/interfaces/FindByIdParams.md",19790],"09aec7c4":[()=>n.e(8904).then(n.bind(n,8468)),"@site/docs/reference/evaluation/interfaces/MongoDbEvaluationStore.md",8468],"0a965094":[()=>n.e(8030).then(n.bind(n,7291)),"@site/docs/reference/ingest/interfaces/sources.ProjectBase.md",7291],"0dc0950a":[()=>n.e(6321).then(n.bind(n,57018)),"@site/docs/ui.md",57018],"0e2fd017":[()=>n.e(8063).then(n.bind(n,39842)),"@site/docs/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams.md",39842],"0ff22746":[()=>n.e(8733).then(n.bind(n,60326)),"@site/docs/reference/evaluation/interfaces/EvalConfig.md",60326],"12495dd8":[()=>n.e(6242).then(n.bind(n,9530)),"@site/docs/server/conversations.md",9530],"1374c2dd":[()=>n.e(1665).then(n.bind(n,35382)),"@site/docs/evaluation/command-reference.md",35382],"14eb3368":[()=>Promise.all([n.e(532),n.e(9817)]).then(n.bind(n,34228)),"@theme/DocCategoryGeneratedIndexPage",34228],"16d7d47e":[()=>n.e(9763).then(n.bind(n,12189)),"@site/docs/reference/ingest/modules/sources.md",12189],17896441:[()=>Promise.all([n.e(532),n.e(7918)]).then(n.bind(n,10987)),"@theme/DocItem",10987],"19af0c64":[()=>n.e(1538).then(n.bind(n,80600)),"@site/docs/evaluation/index.md",80600],"1c129967":[()=>n.e(7597).then(n.bind(n,58006)),"@site/docs/server/llm.md",58006],"1ddf9523":[()=>n.e(3848).then(n.bind(n,19062)),"@site/docs/server/persist.md",19062],"1e7b863f":[()=>n.e(3201).then(n.bind(n,61117)),"@site/docs/reference/eval/interfaces/ConversationEvalData.md",61117],"211c52ba":[()=>n.e(4020).then(n.bind(n,72985)),"@site/docs/reference/eval/interfaces/EvaluateConversationQualityParams.md",72985],"217a4326":[()=>n.e(4195).then(n.bind(n,50024)),"@site/docs/reference/server/interfaces/ToolCallParams.md",50024],"21f447ab":[()=>n.e(1052).then(n.bind(n,31935)),"@site/docs/reference/ingest/interfaces/sources.SnootyProject.md",31935],"2352c6d6":[()=>n.e(8321).then(n.bind(n,48665)),"@site/docs/reference/server/interfaces/ConversationsRouterLocals.md",48665],"23fab249":[()=>n.e(6628).then(n.t.bind(n,83769,19)),"/Users/ben.p/projects/chatbot/docs/.docusaurus/docusaurus-plugin-content-docs/default/plugin-route-context-module-100.json",83769],"25a9715c":[()=>n.e(9591).then(n.bind(n,87944)),"@site/docs/reference/eval/interfaces/EvaluationStore.md",87944],"29c2c5fe":[()=>n.e(8641).then(n.bind(n,44107)),"@site/docs/ingest/configuration-reference.md",44107],"2a14c161":[()=>n.e(9344).then(n.bind(n,79787)),"@site/docs/reference/evaluation/interfaces/MakeMongoDbReportStoreParams.md",79787],"2d7acbd3":[()=>n.e(9887).then(n.bind(n,35972)),"@site/docs/reference/eval/interfaces/EvalConfig.md",35972],"2db9a80b":[()=>n.e(8566).then(n.bind(n,35385)),"@site/docs/ingest/data-sources.md",35385],"2ef183da":[()=>n.e(8391).then(n.bind(n,59556)),"@site/docs/server/configure.md",59556],"2f54c1f7":[()=>n.e(8213).then(n.bind(n,37836)),"@site/docs/reference/eval/interfaces/GenerateDataFuncParams.md",37836],"34ee439d":[()=>n.e(9868).then(n.bind(n,23367)),"@site/docs/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams.md",23367],"37f76691":[()=>n.e(2357).then(n.bind(n,36128)),"@site/docs/reference/evaluation/interfaces/EvaluateConversationQualityParams.md",36128],"3965815d":[()=>n.e(3039).then(n.bind(n,42497)),"@site/docs/reference/eval/interfaces/MakeGenerateConversationDataParams.md",42497],"3bc6e262":[()=>n.e(36).then(n.bind(n,81874)),"@site/docs/reference/eval/modules.md",81874],"3eaab77f":[()=>n.e(6210).then(n.bind(n,9588)),"@site/docs/reference/server/index.md",9588],"3f30df8d":[()=>n.e(9991).then(n.bind(n,79583)),"@site/docs/reference/evaluation/interfaces/EvalResult.md",79583],"44c3951e":[()=>n.e(4125).then(n.bind(n,25659)),"@site/docs/reference/evaluation/interfaces/CheckResponseQuality.md",25659],"46ba77e2":[()=>n.e(7954).then(n.bind(n,10398)),"@site/docs/reference/server/interfaces/ChatLlm.md",10398],"47301a5f":[()=>n.e(9136).then(n.bind(n,32067)),"@site/docs/reference/ingest/interfaces/sources.Branch.md",32067],"49efd6ab":[()=>n.e(7475).then(n.bind(n,84041)),"@site/docs/server/rag/preprocess.md",84041],"4c053673":[()=>n.e(8753).then(n.bind(n,68367)),"@site/docs/reference/server/interfaces/AppConfig.md",68367],"4d856518":[()=>n.e(8202).then(n.t.bind(n,94704,19)),"~docs/default/category-chatbot-main-category-api-reference-146.json",94704],"4e9b4fcd":[()=>n.e(5302).then(n.bind(n,17594)),"@site/docs/reference/server/interfaces/GenerateUserPromptFuncReturnValue.md",17594],"4f272872":[()=>n.e(7058).then(n.bind(n,23771)),"@site/docs/reference/eval/interfaces/MakeMongoDbEvaluationStoreParams.md",23771],"4fddc917":[()=>n.e(2477).then(n.bind(n,12766)),"@site/docs/reference/evaluation/interfaces/CommandMetadataStore.md",12766],"51717f57":[()=>n.e(9776).then(n.bind(n,20686)),"@site/docs/reference/server/interfaces/EmbeddedContent.md",20686],"522e53fb":[()=>n.e(6887).then(n.bind(n,51)),"@site/docs/reference/server/interfaces/Tool.md",51],"52cccada":[()=>n.e(4625).then(n.bind(n,89751)),"@site/docs/reference/server/interfaces/ConversationsRateLimitConfig.md",89751],"558b764a":[()=>n.e(2622).then(n.bind(n,44685)),"@site/docs/reference/eval/interfaces/MakeMongoDbGeneratedDataStoreParams.md",44685],"59c4025c":[()=>n.e(5299).then(n.bind(n,45109)),"@site/docs/reference/evaluation/interfaces/CommandRunMetadata.md",45109],"5d73a134":[()=>n.e(2829).then(n.bind(n,5736)),"@site/docs/reference/eval/interfaces/BaseTestCase.md",5736],"5df701b8":[()=>n.e(8046).then(n.bind(n,42340)),"@site/docs/reference/eval/interfaces/ConversationGeneratedData.md",42340],"5e95c892":[()=>n.e(9661).then(n.bind(n,41892)),"@theme/DocsRoot",41892],"655a7d02":[()=>n.e(7882).then(n.bind(n,53344)),"@site/docs/reference/eval/interfaces/GenerateDataAndMetadataParams.md",53344],"68c95906":[()=>n.e(7988).then(n.bind(n,6101)),"@site/docs/reference/ingest/modules.md",6101],"6b7a1cdb":[()=>n.e(3820).then(n.bind(n,4578)),"@site/docs/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams.md",4578],"6c0ba004":[()=>n.e(3519).then(n.bind(n,80461)),"@site/docs/reference/evaluation/interfaces/EvaluationStore.md",80461],"6f2b505e":[()=>n.e(6274).then(n.bind(n,70750)),"@site/docs/ingest/command-reference.md",70750],"706742cd":[()=>n.e(6533).then(n.bind(n,7517)),"@site/docs/server/evaluate.md",7517],"70b5ccce":[()=>n.e(7929).then(n.bind(n,96474)),"@site/docs/reference/eval/interfaces/MakeMongoDbReportStoreParams.md",96474],"72e14192":[()=>n.e(7239).then(n.bind(n,54363)),"@site/docs/quick-start.md",54363],"73b44927":[()=>n.e(7083).then(n.bind(n,49550)),"@site/docs/reference/eval/interfaces/MongoDbGeneratedDataStore.md",49550],"770044b3":[()=>n.e(5658).then(n.bind(n,55939)),"@site/docs/reference/evaluation/interfaces/MakeGenerateConversationDataParams.md",55939],"7a721800":[()=>n.e(7626).then(n.bind(n,35625)),"@site/docs/reference/eval/interfaces/EvalResult.md",35625],"7b16a47f":[()=>n.e(8665).then(n.bind(n,20964)),"@site/docs/server/rag/references.md",20964],"7c21ef34":[()=>n.e(6173).then(n.bind(n,2705)),"@site/docs/reference/evaluation/interfaces/MongoDbGeneratedDataStore.md",2705],81770523:[()=>n.e(4352).then(n.bind(n,27534)),"@site/docs/reference/ingest/interfaces/sources.MakeGitDataSourceParams.md",27534],85320797:[()=>n.e(4835).then(n.bind(n,7323)),"@site/docs/reference/evaluation/interfaces/BaseGeneratedData.md",7323],"86e9bf51":[()=>n.e(9201).then(n.bind(n,79143)),"@site/docs/reference/server/interfaces/DataStreamer.md",79143],"88d96d71":[()=>n.e(6801).then(n.bind(n,53700)),"@site/docs/reference/eval/interfaces/CommandMetadataStore.md",53700],"8950b783":[()=>n.e(7801).then(n.bind(n,27832)),"@site/docs/reference/eval/interfaces/GeneratedDataStore.md",27832],"8a071b55":[()=>n.e(4470).then(n.bind(n,98107)),"@site/docs/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams.md",98107],"8a5452c6":[()=>n.e(7677).then(n.bind(n,83297)),"@site/docs/reference/evaluation/interfaces/GenerateDataFuncParams.md",83297],"8e875b0a":[()=>n.e(4561).then(n.t.bind(n,41837,19)),"/Users/ben.p/projects/chatbot/docs/.docusaurus/docusaurus-plugin-redoc/plugin-redoc-0/redocApiSpecV1.2-plugin-redoc-0.json",41837],"9019bb38":[()=>n.e(9249).then(n.bind(n,48829)),"@site/docs/evaluation/pipeline.md",48829],"90a663a7":[()=>n.e(1269).then(n.bind(n,37162)),"@site/docs/reference/evaluation/interfaces/MongoDbReportStore.md",37162],"911a1996":[()=>n.e(2e3).then(n.bind(n,3901)),"@site/docs/reference/core/interfaces/EmbeddedContent.md",3901],"9295fd90":[()=>n.e(7323).then(n.bind(n,67479)),"@site/docs/reference/server/interfaces/MakeRagGenerateUserPromptParams.md",67479],"935f2afb":[()=>n.e(53).then(n.t.bind(n,1109,19)),"~docs/default/version-current-metadata-prop-751.json",1109],"94d04570":[()=>n.e(3329).then(n.bind(n,51889)),"@site/docs/reference/eval/interfaces/CheckResponseQualityParams.md",51889],"9d74c2e1":[()=>n.e(2214).then(n.bind(n,50837)),"@site/docs/reference/ingest/modules/index.md",50837],"9f213c28":[()=>n.e(8686).then(n.bind(n,82997)),"@site/docs/reference/server/modules.md",82997],"9f4e19d3":[()=>n.e(3084).then(n.bind(n,88390)),"@site/docs/reference/eval/interfaces/Report.md",88390],a0e92a93:[()=>n.e(4716).then(n.bind(n,35264)),"@site/docs/reference/eval/interfaces/MongoDbReportStore.md",35264],a17134cd:[()=>n.e(7945).then(n.bind(n,94583)),"@site/docs/ingest/optimize.md",94583],a219802b:[()=>n.e(7595).then(n.bind(n,73524)),"@site/docs/reference/evaluation/interfaces/BaseTestCase.md",73524],a2f28722:[()=>n.e(5373).then(n.bind(n,29282)),"@site/docs/reference/evaluation/interfaces/ExpectedLinks.md",29282],a3752608:[()=>n.e(7652).then(n.bind(n,74427)),"@site/docs/reference/eval/interfaces/ConversationTestCase.md",74427],a3ea6000:[()=>n.e(2539).then(n.bind(n,78951)),"@site/docs/reference/evaluation/interfaces/CheckResponseQualityParams.md",78951],a4b88ee3:[()=>n.e(7415).then(n.bind(n,67035)),"@site/docs/reference/evaluation/interfaces/Report.md",67035],a551f034:[()=>n.e(5843).then(n.bind(n,15622)),"@site/docs/reference/evaluation/interfaces/ReportStore.md",15622],a719d946:[()=>n.e(6227).then(n.t.bind(n,69162,19)),"/Users/ben.p/projects/chatbot/docs/.docusaurus/docusaurus-plugin-redoc/plugin-redoc-0/plugin-route-context-module-100.json",69162],a77318db:[()=>n.e(8874).then(n.bind(n,1752)),"@site/docs/reference/eval/interfaces/CommandRunMetadata.md",1752],a7bd4aaa:[()=>n.e(8518).then(n.bind(n,8564)),"@theme/DocVersionRoot",8564],a84b57e7:[()=>n.e(5687).then(n.bind(n,86936)),"@site/docs/reference/server/interfaces/MakeLangchainChatLlmProps.md",86936],a8a2dfd7:[()=>n.e(5041).then(n.bind(n,29453)),"@site/docs/reference/eval/interfaces/CheckResponseQuality.md",29453],a9058ace:[()=>n.e(4138).then(n.bind(n,39983)),"@site/docs/reference/server/interfaces/RateMessageParams.md",39983],a94703ab:[()=>Promise.all([n.e(532),n.e(4368)]).then(n.bind(n,12674)),"@theme/DocRoot",12674],a94b3912:[()=>n.e(6268).then(n.bind(n,36125)),"@site/docs/reference/server/interfaces/Conversation.md",36125],aa81105c:[()=>n.e(9554).then(n.bind(n,49105)),"@site/docs/reference/server/interfaces/SearchBooster.md",49105],ac5b8ccc:[()=>n.e(1776).then(n.bind(n,9439)),"@site/docs/reference/server/interfaces/LlmCallToolParams.md",9439],b22bf373:[()=>n.e(9775).then(n.bind(n,21696)),"@site/docs/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams.md",21696],b6d883f0:[()=>n.e(805).then(n.bind(n,65583)),"@site/docs/reference/evaluation/interfaces/ConversationGeneratedData.md",65583],b98b7bfa:[()=>n.e(7394).then(n.bind(n,85248)),"@site/docs/server/custom-logic.md",85248],c377a04b:[()=>n.e(6971).then(n.bind(n,59925)),"@site/docs/index.md",59925],c7a1dce5:[()=>n.e(6960).then(n.bind(n,67813)),"@site/docs/reference/server/interfaces/LlmAnswerQuestionParams.md",67813],cdcc7979:[()=>n.e(9537).then(n.bind(n,94656)),"@site/docs/reference/eval/interfaces/ResponseQualityExample.md",94656],cecfba5b:[()=>n.e(5525).then(n.bind(n,77016)),"@site/docs/reference/evaluation/index.md",77016],ced61363:[()=>n.e(5042).then(n.bind(n,56378)),"@site/docs/reference/evaluation/modules.md",56378],d2778410:[()=>n.e(8959).then(n.bind(n,22466)),"@site/docs/reference/eval/interfaces/MakeMongoDbCommandMetadataStoreParams.md",22466],d2a2d3b7:[()=>n.e(1457).then(n.bind(n,90972)),"@site/docs/reference/evaluation/interfaces/ResponseQualityExample.md",90972],d377581f:[()=>n.e(5915).then(n.bind(n,17215)),"@site/docs/reference/eval/interfaces/BaseGeneratedData.md",17215],d404fa5f:[()=>n.e(4007).then(n.bind(n,51482)),"@site/docs/mongodb.md",51482],d4b5776c:[()=>n.e(3367).then(n.bind(n,63532)),"@site/docs/reference/ingest/interfaces/sources.DevCenterEntryTag.md",63532],d65f73bb:[()=>n.e(9349).then(n.bind(n,33535)),"@site/docs/reference/server/interfaces/MakeUserMessageFuncParams.md",33535],d67b0b72:[()=>n.e(9649).then(n.bind(n,69299)),"@site/docs/evaluation/configuration-reference.md",69299],d8792099:[()=>n.e(7423).then(n.bind(n,90374)),"@site/docs/reference/server/interfaces/ConversationsRouterParams.md",90374],d9cc7f9d:[()=>n.e(1264).then(n.bind(n,88514)),"@site/docs/reference/evaluation/interfaces/ConversationTestCase.md",88514],db7843ef:[()=>n.e(2287).then(n.t.bind(n,21294,19)),"/Users/ben.p/projects/chatbot/docs/.docusaurus/docusaurus-plugin-redoc/plugin-redoc-0/redocApiLayoutV1-plugin-redoc-0.json",21294],dd24b439:[()=>n.e(7676).then(n.bind(n,10734)),"@site/docs/server/rag/index.md",10734],dd2e5366:[()=>n.e(8723).then(n.bind(n,84841)),"@site/docs/ingest/configure.md",84841],dd6b762f:[()=>n.e(2834).then(n.bind(n,12442)),"@site/docs/reference/evaluation/interfaces/GeneratedDataStore.md",12442],e3aa8d31:[()=>n.e(3965).then(n.bind(n,48130)),"@site/docs/reference/core/index.md",48130],e6673042:[()=>n.e(6816).then(n.bind(n,98207)),"@site/docs/reference/server/interfaces/MakeOpenAiChatLlmParams.md",98207],e6f5f3ec:[()=>n.e(7804).then(n.bind(n,22474)),"@site/docs/reference/ingest/index.md",22474],f0ad3fbb:[()=>Promise.all([n.e(532),n.e(5679),n.e(8612)]).then(n.bind(n,25679)),"@theme/ApiDoc",25679],f23362bf:[()=>n.e(2327).then(n.bind(n,70938)),"@site/docs/reference/eval/interfaces/ReportStore.md",70938],f29d94b6:[()=>n.e(4098).then(n.bind(n,35413)),"@site/docs/reference/server/interfaces/OpenAiChatMessage.md",35413],f4e3b7a1:[()=>n.e(2264).then(n.bind(n,63418)),"@site/docs/reference/server/interfaces/ConversationsService.md",63418],f5902fb6:[()=>n.e(4218).then(n.bind(n,99457)),"@site/docs/reference/server/interfaces/AzureOpenAiServiceConfig.md",99457],f5f59c64:[()=>n.e(6516).then(n.bind(n,24124)),"@site/docs/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams.md",24124],f6c33020:[()=>n.e(6694).then(n.bind(n,14632)),"@site/docs/server/rag/retrieve.md",14632],f6f48b5e:[()=>n.e(8917).then(n.bind(n,181)),"@site/docs/reference/evaluation/interfaces/ConversationEvalData.md",181],f92a24d7:[()=>n.e(5397).then(n.bind(n,28699)),"@site/docs/server/user-message.md",28699],fa6a8f36:[()=>n.e(5818).then(n.bind(n,66783)),"@site/docs/server/tools.md",66783],fbabf8d9:[()=>n.e(2328).then(n.bind(n,31334)),"@site/docs/reference/core/interfaces/AzureOpenAiServiceConfig.md",31334],fd0471b8:[()=>n.e(9442).then(n.bind(n,75384)),"@site/docs/reference/eval/index.md",75384],fe605128:[()=>n.e(5324).then(n.bind(n,22609)),"@site/docs/reference/evaluation/interfaces/GenerateDataAndMetadataParams.md",22609],fef834fc:[()=>n.e(7435).then(n.bind(n,72479)),"@site/docs/reference/ingest/modules/embed.md",72479]};var s=n(85893);function l(e){let{error:t,retry:n,pastDelay:r}=e;return t?(0,s.jsxs)("div",{style:{textAlign:"center",color:"#fff",backgroundColor:"#fa383e",borderColor:"#fa383e",borderStyle:"solid",borderRadius:"0.25rem",borderWidth:"1px",boxSizing:"border-box",display:"block",padding:"1rem",flex:"0 0 50%",marginLeft:"25%",marginRight:"25%",marginTop:"5rem",maxWidth:"50%",width:"100%"},children:[(0,s.jsx)("p",{children:String(t)}),(0,s.jsx)("div",{children:(0,s.jsx)("button",{type:"button",onClick:n,children:"Retry"})})]}):r?(0,s.jsx)("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:(0,s.jsx)("svg",{id:"loader",style:{width:128,height:110,position:"absolute",top:"calc(100vh - 64%)"},viewBox:"0 0 45 45",xmlns:"http://www.w3.org/2000/svg",stroke:"#61dafb",children:(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)",strokeWidth:"2",children:[(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"1.5s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"1.5s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"1.5s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsxs)("circle",{cx:"22",cy:"22",r:"6",strokeOpacity:"0",children:[(0,s.jsx)("animate",{attributeName:"r",begin:"3s",dur:"3s",values:"6;22",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-opacity",begin:"3s",dur:"3s",values:"1;0",calcMode:"linear",repeatCount:"indefinite"}),(0,s.jsx)("animate",{attributeName:"stroke-width",begin:"3s",dur:"3s",values:"2;0",calcMode:"linear",repeatCount:"indefinite"})]}),(0,s.jsx)("circle",{cx:"22",cy:"22",r:"8",children:(0,s.jsx)("animate",{attributeName:"r",begin:"0s",dur:"1.5s",values:"6;1;2;3;4;5;6",calcMode:"linear",repeatCount:"indefinite"})})]})})}):null}var c=n(99670),u=n(30226);function d(e,t){if("*"===e)return a()({loading:l,loader:()=>n.e(1772).then(n.bind(n,51772)),modules:["@theme/NotFound"],webpack:()=>[51772],render(e,t){const n=e.default;return(0,s.jsx)(u.z,{value:{plugin:{name:"native",id:"default"}},children:(0,s.jsx)(n,{...t})})}});const r=o[`${e}-${t}`],d={},f=[],p=[],m=(0,c.Z)(r);return Object.entries(m).forEach((e=>{let[t,n]=e;const r=i[n];r&&(d[t]=r[0],f.push(r[1]),p.push(r[2]))})),a().Map({loading:l,loader:d,modules:f,webpack:()=>p,render(t,n){const a=JSON.parse(JSON.stringify(r));Object.entries(t).forEach((t=>{let[n,r]=t;const o=r.default;if(!o)throw new Error(`The page component at ${e} doesn't have a default export. This makes it impossible to render anything. Consider default-exporting a React component.`);"object"!=typeof o&&"function"!=typeof o||Object.keys(r).filter((e=>"default"!==e)).forEach((e=>{o[e]=r[e]}));let i=a;const s=n.split(".");s.slice(0,-1).forEach((e=>{i=i[e]})),i[s[s.length-1]]=o}));const o=a.__comp;delete a.__comp;const i=a.__context;return delete a.__context,(0,s.jsx)(u.z,{value:i,children:(0,s.jsx)(o,{...a,...n})})}})}const f=[{path:"/chatbot/server/openapi/",component:d("/chatbot/server/openapi/","649"),exact:!0},{path:"/chatbot/",component:d("/chatbot/","2e8"),routes:[{path:"/chatbot/",component:d("/chatbot/","38f"),routes:[{path:"/chatbot/",component:d("/chatbot/","0b2"),routes:[{path:"/chatbot/evaluation/",component:d("/chatbot/evaluation/","c82"),exact:!0,sidebar:"main"},{path:"/chatbot/evaluation/command-reference",component:d("/chatbot/evaluation/command-reference","cd7"),exact:!0,sidebar:"main"},{path:"/chatbot/evaluation/configuration-reference",component:d("/chatbot/evaluation/configuration-reference","83a"),exact:!0,sidebar:"main"},{path:"/chatbot/evaluation/pipeline",component:d("/chatbot/evaluation/pipeline","ab8"),exact:!0,sidebar:"main"},{path:"/chatbot/ingest/command-reference",component:d("/chatbot/ingest/command-reference","bb8"),exact:!0,sidebar:"main"},{path:"/chatbot/ingest/configuration-reference",component:d("/chatbot/ingest/configuration-reference","5b8"),exact:!0,sidebar:"main"},{path:"/chatbot/ingest/configure",component:d("/chatbot/ingest/configure","92e"),exact:!0,sidebar:"main"},{path:"/chatbot/ingest/data-sources",component:d("/chatbot/ingest/data-sources","770"),exact:!0,sidebar:"main"},{path:"/chatbot/ingest/optimize",component:d("/chatbot/ingest/optimize","52b"),exact:!0,sidebar:"main"},{path:"/chatbot/mongodb",component:d("/chatbot/mongodb","da1"),exact:!0,sidebar:"main"},{path:"/chatbot/quick-start",component:d("/chatbot/quick-start","c0d"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/",component:d("/chatbot/reference/","9a2"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/core/",component:d("/chatbot/reference/core/","d29"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig",component:d("/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig","73d"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/core/interfaces/EmbeddedContent",component:d("/chatbot/reference/core/interfaces/EmbeddedContent","4e8"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/core/modules",component:d("/chatbot/reference/core/modules","82d"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/eval/",component:d("/chatbot/reference/eval/","6d3"),exact:!0},{path:"/chatbot/reference/eval/interfaces/BaseGeneratedData",component:d("/chatbot/reference/eval/interfaces/BaseGeneratedData","4ed"),exact:!0},{path:"/chatbot/reference/eval/interfaces/BaseTestCase",component:d("/chatbot/reference/eval/interfaces/BaseTestCase","b60"),exact:!0},{path:"/chatbot/reference/eval/interfaces/CheckResponseQuality",component:d("/chatbot/reference/eval/interfaces/CheckResponseQuality","26d"),exact:!0},{path:"/chatbot/reference/eval/interfaces/CheckResponseQualityParams",component:d("/chatbot/reference/eval/interfaces/CheckResponseQualityParams","b92"),exact:!0},{path:"/chatbot/reference/eval/interfaces/CommandMetadataStore",component:d("/chatbot/reference/eval/interfaces/CommandMetadataStore","636"),exact:!0},{path:"/chatbot/reference/eval/interfaces/CommandRunMetadata",component:d("/chatbot/reference/eval/interfaces/CommandRunMetadata","b70"),exact:!0},{path:"/chatbot/reference/eval/interfaces/ConversationEvalData",component:d("/chatbot/reference/eval/interfaces/ConversationEvalData","800"),exact:!0},{path:"/chatbot/reference/eval/interfaces/ConversationGeneratedData",component:d("/chatbot/reference/eval/interfaces/ConversationGeneratedData","0e9"),exact:!0},{path:"/chatbot/reference/eval/interfaces/ConversationTestCase",component:d("/chatbot/reference/eval/interfaces/ConversationTestCase","458"),exact:!0},{path:"/chatbot/reference/eval/interfaces/EvalConfig",component:d("/chatbot/reference/eval/interfaces/EvalConfig","d33"),exact:!0},{path:"/chatbot/reference/eval/interfaces/EvalResult",component:d("/chatbot/reference/eval/interfaces/EvalResult","7ef"),exact:!0},{path:"/chatbot/reference/eval/interfaces/EvaluateConversationQualityParams",component:d("/chatbot/reference/eval/interfaces/EvaluateConversationQualityParams","850"),exact:!0},{path:"/chatbot/reference/eval/interfaces/EvaluationStore",component:d("/chatbot/reference/eval/interfaces/EvaluationStore","04c"),exact:!0},{path:"/chatbot/reference/eval/interfaces/GenerateDataAndMetadataParams",component:d("/chatbot/reference/eval/interfaces/GenerateDataAndMetadataParams","b79"),exact:!0},{path:"/chatbot/reference/eval/interfaces/GenerateDataFuncParams",component:d("/chatbot/reference/eval/interfaces/GenerateDataFuncParams","f85"),exact:!0},{path:"/chatbot/reference/eval/interfaces/GeneratedDataStore",component:d("/chatbot/reference/eval/interfaces/GeneratedDataStore","322"),exact:!0},{path:"/chatbot/reference/eval/interfaces/MakeGenerateConversationDataParams",component:d("/chatbot/reference/eval/interfaces/MakeGenerateConversationDataParams","245"),exact:!0},{path:"/chatbot/reference/eval/interfaces/MakeMongoDbCommandMetadataStoreParams",component:d("/chatbot/reference/eval/interfaces/MakeMongoDbCommandMetadataStoreParams","762"),exact:!0},{path:"/chatbot/reference/eval/interfaces/MakeMongoDbEvaluationStoreParams",component:d("/chatbot/reference/eval/interfaces/MakeMongoDbEvaluationStoreParams","4ab"),exact:!0},{path:"/chatbot/reference/eval/interfaces/MakeMongoDbGeneratedDataStoreParams",component:d("/chatbot/reference/eval/interfaces/MakeMongoDbGeneratedDataStoreParams","754"),exact:!0},{path:"/chatbot/reference/eval/interfaces/MakeMongoDbReportStoreParams",component:d("/chatbot/reference/eval/interfaces/MakeMongoDbReportStoreParams","e77"),exact:!0},{path:"/chatbot/reference/eval/interfaces/MongoDbEvaluationStore",component:d("/chatbot/reference/eval/interfaces/MongoDbEvaluationStore","d54"),exact:!0},{path:"/chatbot/reference/eval/interfaces/MongoDbGeneratedDataStore",component:d("/chatbot/reference/eval/interfaces/MongoDbGeneratedDataStore","8cc"),exact:!0},{path:"/chatbot/reference/eval/interfaces/MongoDbReportStore",component:d("/chatbot/reference/eval/interfaces/MongoDbReportStore","b31"),exact:!0},{path:"/chatbot/reference/eval/interfaces/Report",component:d("/chatbot/reference/eval/interfaces/Report","1a0"),exact:!0},{path:"/chatbot/reference/eval/interfaces/ReportStore",component:d("/chatbot/reference/eval/interfaces/ReportStore","bc0"),exact:!0},{path:"/chatbot/reference/eval/interfaces/ResponseQualityExample",component:d("/chatbot/reference/eval/interfaces/ResponseQualityExample","2ad"),exact:!0},{path:"/chatbot/reference/eval/modules",component:d("/chatbot/reference/eval/modules","01a"),exact:!0},{path:"/chatbot/reference/evaluation/",component:d("/chatbot/reference/evaluation/","eb3"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/BaseGeneratedData",component:d("/chatbot/reference/evaluation/interfaces/BaseGeneratedData","953"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/BaseTestCase",component:d("/chatbot/reference/evaluation/interfaces/BaseTestCase","9a0"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/CheckResponseQuality",component:d("/chatbot/reference/evaluation/interfaces/CheckResponseQuality","81a"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams",component:d("/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams","b75"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/CommandMetadataStore",component:d("/chatbot/reference/evaluation/interfaces/CommandMetadataStore","d40"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/CommandRunMetadata",component:d("/chatbot/reference/evaluation/interfaces/CommandRunMetadata","87c"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/ConversationEvalData",component:d("/chatbot/reference/evaluation/interfaces/ConversationEvalData","c32"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData",component:d("/chatbot/reference/evaluation/interfaces/ConversationGeneratedData","35a"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/ConversationTestCase",component:d("/chatbot/reference/evaluation/interfaces/ConversationTestCase","da1"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/EvalConfig",component:d("/chatbot/reference/evaluation/interfaces/EvalConfig","489"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/EvalResult",component:d("/chatbot/reference/evaluation/interfaces/EvalResult","8bf"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams",component:d("/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams","38a"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/EvaluationStore",component:d("/chatbot/reference/evaluation/interfaces/EvaluationStore","4cb"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/ExpectedLinks",component:d("/chatbot/reference/evaluation/interfaces/ExpectedLinks","9dc"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams",component:d("/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams","b69"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams",component:d("/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams","bb0"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/GeneratedDataStore",component:d("/chatbot/reference/evaluation/interfaces/GeneratedDataStore","d42"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams",component:d("/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams","a17"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams",component:d("/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams","25b"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams",component:d("/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams","78b"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams",component:d("/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams","6f5"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams",component:d("/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams","a2f"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams",component:d("/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams","b1b"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore",component:d("/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore","06e"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore",component:d("/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore","995"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/MongoDbReportStore",component:d("/chatbot/reference/evaluation/interfaces/MongoDbReportStore","82b"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/Report",component:d("/chatbot/reference/evaluation/interfaces/Report","5d1"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams",component:d("/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams","3ce"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/ReportStore",component:d("/chatbot/reference/evaluation/interfaces/ReportStore","577"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/interfaces/ResponseQualityExample",component:d("/chatbot/reference/evaluation/interfaces/ResponseQualityExample","32d"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/evaluation/modules",component:d("/chatbot/reference/evaluation/modules","d89"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/",component:d("/chatbot/reference/ingest/","e98"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/interfaces/sources.Branch",component:d("/chatbot/reference/ingest/interfaces/sources.Branch","ac1"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag",component:d("/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag","1db"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams",component:d("/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams","b87"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams",component:d("/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams","fba"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams",component:d("/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams","057"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/interfaces/sources.ProjectBase",component:d("/chatbot/reference/ingest/interfaces/sources.ProjectBase","0b2"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/interfaces/sources.SnootyProject",component:d("/chatbot/reference/ingest/interfaces/sources.SnootyProject","094"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/modules",component:d("/chatbot/reference/ingest/modules","9e8"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/modules/",component:d("/chatbot/reference/ingest/modules/","fad"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/modules/embed",component:d("/chatbot/reference/ingest/modules/embed","45a"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/ingest/modules/sources",component:d("/chatbot/reference/ingest/modules/sources","e78"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/",component:d("/chatbot/reference/server/","4b5"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/AppConfig",component:d("/chatbot/reference/server/interfaces/AppConfig","d0c"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig",component:d("/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig","69c"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/CallToolResponse",component:d("/chatbot/reference/server/interfaces/CallToolResponse","e81"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/ChatLlm",component:d("/chatbot/reference/server/interfaces/ChatLlm","a0f"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/CommentMessageParams",component:d("/chatbot/reference/server/interfaces/CommentMessageParams","c03"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/Conversation",component:d("/chatbot/reference/server/interfaces/Conversation","7bd"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/ConversationConstants",component:d("/chatbot/reference/server/interfaces/ConversationConstants","ea8"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig",component:d("/chatbot/reference/server/interfaces/ConversationsRateLimitConfig","6f4"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/ConversationsRouterLocals",component:d("/chatbot/reference/server/interfaces/ConversationsRouterLocals","586"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/ConversationsRouterParams",component:d("/chatbot/reference/server/interfaces/ConversationsRouterParams","21c"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/ConversationsService",component:d("/chatbot/reference/server/interfaces/ConversationsService","8f4"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/DataStreamer",component:d("/chatbot/reference/server/interfaces/DataStreamer","f6d"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/EmbeddedContent",component:d("/chatbot/reference/server/interfaces/EmbeddedContent","c9f"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/FindByIdParams",component:d("/chatbot/reference/server/interfaces/FindByIdParams","923"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue",component:d("/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue","ed5"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams",component:d("/chatbot/reference/server/interfaces/LlmAnswerQuestionParams","90d"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/LlmCallToolParams",component:d("/chatbot/reference/server/interfaces/LlmCallToolParams","313"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps",component:d("/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps","919"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams",component:d("/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams","d1b"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams",component:d("/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams","38c"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams",component:d("/chatbot/reference/server/interfaces/MakeUserMessageFuncParams","b8b"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams",component:d("/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams","41c"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/OpenAiChatMessage",component:d("/chatbot/reference/server/interfaces/OpenAiChatMessage","7bf"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/RateMessageParams",component:d("/chatbot/reference/server/interfaces/RateMessageParams","aa2"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/SearchBooster",component:d("/chatbot/reference/server/interfaces/SearchBooster","391"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/Tool",component:d("/chatbot/reference/server/interfaces/Tool","1a4"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/interfaces/ToolCallParams",component:d("/chatbot/reference/server/interfaces/ToolCallParams","319"),exact:!0,sidebar:"main"},{path:"/chatbot/reference/server/modules",component:d("/chatbot/reference/server/modules","f67"),exact:!0,sidebar:"main"},{path:"/chatbot/server/configure",component:d("/chatbot/server/configure","d8d"),exact:!0,sidebar:"main"},{path:"/chatbot/server/conversations",component:d("/chatbot/server/conversations","22b"),exact:!0,sidebar:"main"},{path:"/chatbot/server/custom-logic",component:d("/chatbot/server/custom-logic","6ae"),exact:!0,sidebar:"main"},{path:"/chatbot/server/evaluate",component:d("/chatbot/server/evaluate","58a"),exact:!0,sidebar:"main"},{path:"/chatbot/server/llm",component:d("/chatbot/server/llm","7c6"),exact:!0,sidebar:"main"},{path:"/chatbot/server/persist",component:d("/chatbot/server/persist","4e5"),exact:!0,sidebar:"main"},{path:"/chatbot/server/rag/",component:d("/chatbot/server/rag/","89c"),exact:!0,sidebar:"main"},{path:"/chatbot/server/rag/preprocess",component:d("/chatbot/server/rag/preprocess","0ed"),exact:!0,sidebar:"main"},{path:"/chatbot/server/rag/references",component:d("/chatbot/server/rag/references","33d"),exact:!0,sidebar:"main"},{path:"/chatbot/server/rag/retrieve",component:d("/chatbot/server/rag/retrieve","fbe"),exact:!0,sidebar:"main"},{path:"/chatbot/server/tools",component:d("/chatbot/server/tools","d38"),exact:!0,sidebar:"main"},{path:"/chatbot/server/user-message",component:d("/chatbot/server/user-message","c91"),exact:!0,sidebar:"main"},{path:"/chatbot/ui",component:d("/chatbot/ui","b12"),exact:!0,sidebar:"main"},{path:"/chatbot/",component:d("/chatbot/","277"),exact:!0,sidebar:"main"}]}]}]},{path:"*",component:d("*")}]},98934:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,t:()=>i});var r=n(67294),a=n(85893);const o=r.createContext(!1);function i(e){let{children:t}=e;const[n,i]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{i(!0)}),[]),(0,a.jsx)(o.Provider,{value:n,children:t})}},97221:(e,t,n)=>{"use strict";var r=n(67294),a=n(20745),o=n(73727),i=n(70405),s=n(10412);const l=[n(32497),n(3310),n(18320),n(52295),n(41304),n(4750)];var c=n(723),u=n(16550),d=n(18790),f=n(85893);function p(e){let{children:t}=e;return(0,f.jsx)(f.Fragment,{children:t})}var m=n(35742),h=n(52263),g=n(44996),b=n(86668),v=n(1944),y=n(94711),w=n(19727),k=n(43320),x=n(18780),S=n(90197);function C(){const{i18n:{currentLocale:e,defaultLocale:t,localeConfigs:n}}=(0,h.Z)(),r=(0,y.l)(),a=n[e].htmlLang,o=e=>e.replace("-","_");return(0,f.jsxs)(m.Z,{children:[Object.entries(n).map((e=>{let[t,{htmlLang:n}]=e;return(0,f.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:n},t)})),(0,f.jsx)("link",{rel:"alternate",href:r.createUrl({locale:t,fullyQualified:!0}),hrefLang:"x-default"}),(0,f.jsx)("meta",{property:"og:locale",content:o(a)}),Object.values(n).filter((e=>a!==e.htmlLang)).map((e=>(0,f.jsx)("meta",{property:"og:locale:alternate",content:o(e.htmlLang)},`meta-og-${e.htmlLang}`)))]})}function E(e){let{permalink:t}=e;const{siteConfig:{url:n}}=(0,h.Z)(),r=function(){const{siteConfig:{url:e,baseUrl:t,trailingSlash:n}}=(0,h.Z)(),{pathname:r}=(0,u.TH)();return e+(0,x.applyTrailingSlash)((0,g.Z)(r),{trailingSlash:n,baseUrl:t})}(),a=t?`${n}${t}`:r;return(0,f.jsxs)(m.Z,{children:[(0,f.jsx)("meta",{property:"og:url",content:a}),(0,f.jsx)("link",{rel:"canonical",href:a})]})}function _(){const{i18n:{currentLocale:e}}=(0,h.Z)(),{metadata:t,image:n}=(0,b.L)();return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsxs)(m.Z,{children:[(0,f.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,f.jsx)("body",{className:w.h})]}),n&&(0,f.jsx)(v.d,{image:n}),(0,f.jsx)(E,{}),(0,f.jsx)(C,{}),(0,f.jsx)(S.Z,{tag:k.HX,locale:e}),(0,f.jsx)(m.Z,{children:t.map(((e,t)=>(0,f.jsx)("meta",{...e},t)))})]})}const T=new Map;function P(e){if(T.has(e.pathname))return{...e,pathname:T.get(e.pathname)};if((0,d.f)(c.Z,e.pathname).some((e=>{let{route:t}=e;return!0===t.exact})))return T.set(e.pathname,e.pathname),e;const t=e.pathname.trim().replace(/(?:\/index)?\.html$/,"")||"/";return T.set(e.pathname,t),{...e,pathname:t}}var R=n(98934),D=n(58940),M=n(20469);function A(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{const r=t.default?.[e]??t[e];return r?.(...n)}));return()=>a.forEach((e=>e?.()))}const L=function(e){let{children:t,location:n,previousLocation:r}=e;return(0,M.Z)((()=>{r!==n&&(!function(e){let{location:t,previousLocation:n}=e;if(!n)return;const r=t.pathname===n.pathname,a=t.hash===n.hash,o=t.search===n.search;if(r&&a&&!o)return;const{hash:i}=t;if(i){const e=decodeURIComponent(i.substring(1)),t=document.getElementById(e);t?.scrollIntoView()}else window.scrollTo(0,0)}({location:n,previousLocation:r}),A("onRouteDidUpdate",{previousLocation:r,location:n}))}),[r,n]),t};function j(e){const t=Array.from(new Set([e,decodeURI(e)])).map((e=>(0,d.f)(c.Z,e))).flat();return Promise.all(t.map((e=>e.route.component.preload?.())))}class N extends r.Component{previousLocation;routeUpdateCleanupCb;constructor(e){super(e),this.previousLocation=null,this.routeUpdateCleanupCb=s.default.canUseDOM?A("onRouteUpdate",{previousLocation:null,location:this.props.location}):()=>{},this.state={nextRouteHasLoaded:!0}}shouldComponentUpdate(e,t){if(e.location===this.props.location)return t.nextRouteHasLoaded;const n=e.location;return this.previousLocation=this.props.location,this.setState({nextRouteHasLoaded:!1}),this.routeUpdateCleanupCb=A("onRouteUpdate",{previousLocation:this.previousLocation,location:n}),j(n.pathname).then((()=>{this.routeUpdateCleanupCb(),this.setState({nextRouteHasLoaded:!0})})).catch((e=>{console.warn(e),window.location.reload()})),!1}render(){const{children:e,location:t}=this.props;return(0,f.jsx)(L,{previousLocation:this.previousLocation,location:t,children:(0,f.jsx)(u.AW,{location:t,render:()=>e})})}}const O=N,I="__docusaurus-base-url-issue-banner-container",F="__docusaurus-base-url-issue-banner",B="__docusaurus-base-url-issue-banner-suggestion-container";function z(e){return`\ndocument.addEventListener('DOMContentLoaded', function maybeInsertBanner() {\n var shouldInsert = typeof window['docusaurus'] === 'undefined';\n shouldInsert && insertBanner();\n});\n\nfunction insertBanner() {\n var bannerContainer = document.createElement('div');\n bannerContainer.id = '${I}';\n var bannerHtml = ${JSON.stringify(function(e){return`\n
\n

Your Docusaurus site did not load properly.

\n

A very common reason is a wrong site baseUrl configuration.

\n

Current configured baseUrl = ${e} ${"/"===e?" (default value)":""}

\n

We suggest trying baseUrl =

\n
\n`}(e)).replace(/{if("undefined"==typeof document)return void n();const r=document.createElement("link");r.setAttribute("rel","prefetch"),r.setAttribute("href",e),r.onload=()=>t(),r.onerror=()=>n();const a=document.getElementsByTagName("head")[0]??document.getElementsByName("script")[0]?.parentNode;a?.appendChild(r)}))}:function(e){return new Promise(((t,n)=>{const r=new XMLHttpRequest;r.open("GET",e,!0),r.withCredentials=!0,r.onload=()=>{200===r.status?t():n()},r.send(null)}))};var Y=n(99670);const K=new Set,X=new Set,J=()=>navigator.connection?.effectiveType.includes("2g")||navigator.connection?.saveData,ee={prefetch(e){if(!(e=>!J()&&!X.has(e)&&!K.has(e))(e))return!1;K.add(e);const t=(0,d.f)(c.Z,e).flatMap((e=>{return t=e.route.path,Object.entries(W).filter((e=>{let[n]=e;return n.replace(/-[^-]+$/,"")===t})).flatMap((e=>{let[,t]=e;return Object.values((0,Y.Z)(t))}));var t}));return Promise.all(t.map((e=>{const t=n.gca(e);return t&&!t.includes("undefined")?Q(t).catch((()=>{})):Promise.resolve()})))},preload:e=>!!(e=>!J()&&!X.has(e))(e)&&(X.add(e),j(e))},te=Object.freeze(ee),ne=Boolean(!0);if(s.default.canUseDOM){window.docusaurus=te;const e=document.getElementById("__docusaurus"),t=(0,f.jsx)(i.B6,{children:(0,f.jsx)(o.VK,{children:(0,f.jsx)(V,{})})}),n=(e,t)=>{console.error("Docusaurus React Root onRecoverableError:",e,t)},s=()=>{if(ne)r.startTransition((()=>{a.hydrateRoot(e,t,{onRecoverableError:n})}));else{const o=a.createRoot(e,{onRecoverableError:n});r.startTransition((()=>{o.render(t)}))}};j(window.location.pathname).then(s)}},58940:(e,t,n)=>{"use strict";n.d(t,{_:()=>d,M:()=>f});var r=n(67294),a=n(36809);const o=JSON.parse('{"docusaurus-theme-redoc":{"theme-redoc":{"lightTheme":{"typography":{"fontFamily":"var(--ifm-font-family-base)","fontSize":"var(--ifm-font-size-base)","lineHeight":"var(--ifm-line-height-base)","fontWeightLight":"var(--ifm-font-weight-light)","fontWeightRegular":"var(--ifm-font-weight-base)","fontWeightBold":"var(--ifm-font-weight-bold)","headings":{"fontFamily":"var(--ifm-heading-font-family)","fontWeight":"var(--ifm-heading-font-weight)","lineHeight":"var(--ifm-heading-line-height)"},"code":{"fontFamily":"var(--ifm-font-family-monospace)","lineHeight":"var(--ifm-pre-line-height)"}},"sidebar":{"width":"300px","backgroundColor":"#ffffff"},"rightPanel":{"backgroundColor":"#303846"},"colors":{"primary":{"main":"#1890ff"}},"theme":{"prism":{"additionalLanguages":["scala"]}}},"darkTheme":{"typography":{"fontFamily":"var(--ifm-font-family-base)","fontSize":"var(--ifm-font-size-base)","lineHeight":"var(--ifm-line-height-base)","fontWeightLight":"var(--ifm-font-weight-light)","fontWeightRegular":"var(--ifm-font-weight-base)","fontWeightBold":"var(--ifm-font-weight-bold)","headings":{"fontFamily":"var(--ifm-heading-font-family)","fontWeight":"var(--ifm-heading-font-weight)","lineHeight":"var(--ifm-heading-line-height)"},"code":{"fontFamily":"var(--ifm-font-family-monospace)","lineHeight":"var(--ifm-pre-line-height)"}},"sidebar":{"width":"300px","backgroundColor":"rgb(24, 25, 26)","textColor":"#f5f6f7","arrow":{"color":"#f5f6f7"}},"colors":{"text":{"primary":"#f5f6f7","secondary":"rgba(255, 255, 255, 1)"},"gray":{"50":"#FAFAFA","100":"#F5F5F5"},"border":{"dark":"#ffffff","light":"rgba(0,0,0, 0.1)"},"primary":{"main":"#1890ff"}},"schema":{"nestedBackground":"rgb(24, 25, 26)","typeNameColor":"rgba(255, 255, 255, 1)","typeTitleColor":"rgba(255, 255, 255, 1)"},"theme":{"prism":{"additionalLanguages":["scala"]}}},"options":{"scrollYOffset":"nav.navbar","expandSingleSchemaField":true,"menuToggle":true,"suppressWarnings":true}}},"docusaurus-plugin-redoc":{"plugin-redoc-0":{"url":"redocusaurus/plugin-redoc-0.yaml","themeId":"theme-redoc","isSpecFile":true,"spec":{"openapi":"3.1.0","info":{"title":"MongoDB RAG Server API","version":"1.0.0","license":{"name":"Apache 2.0","url":"https://github.com/mongodb/chatbot/blob/main/LICENSE"},"description":"The MongoDB RAG Server API is a RESTful API that allows you to\\ncreate and manage conversations.\\nThe API is designed to be used by the MongoDB RAG UI frontend,\\nbut can also be used by other clients.\\n\\n**NOTE:** The default configuration requires capturing user IP address\\nand a header `Origin: some_string`. You can override this.\\nRefer to the server configuration documentation for more information.\\n"},"servers":[{"url":"http:///api/v1"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/conversations":{"post":{"operationId":"createConversation","summary":"Start new conversation","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/conversations/{conversationId}/messages":{"post":{"operationId":"addMessage","summary":"Add message to the conversation","description":"Add a message to the conversation and get a response back from chatbot.","parameters":[{"$ref":"#/components/parameters/conversationId"},{"name":"stream","in":"query","required":false,"schema":{"type":"boolean","default":false},"description":"If `true`, the response will be streamed to the client. This is useful for long-running conversations.\\n"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","format":"markdown","description":"Markdown-formatted message from the user.\\n"}}}}}},"responses":{"200":{"x-summary":"OK","description":"If you set the query parameter `?stream=false`, the server responds with `application/json`.\\n\\nIf you set the query parameter `?stream=true`, the server responds with `text/event-stream`. The server returns a [server-sent event](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#event_stream_format) stream.\\n(Note that the server does not use [named events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#named_events).)\\nThe below schema for `text/event-stream` corresponds to contents of the event\'s `data` field. For example:\\n\\n```txt\\ndata: {\\"type\\": \\"processing\\", \\"data\\": \\"Calling tool to get information...\\"}\\n\\ndata: {\\"type\\": \\"delta\\", \\"data\\": \\"Starting \\"}\\n\\ndata: {\\"type\\": \\"delta\\", \\"data\\": \\"to \\"}\\n\\ndata: {\\"type\\": \\"delta\\", \\"data\\": \\"stream \\"}\\n\\ndata: {\\"type\\": \\"references\\", \\"data\\": [{\\"url\\": \\"https://mongodb.com/docs/atlas/getting-started\\", \\"title\\": \\"Get Started with MongoDB Atlas\\"}]}\\n\\ndata: {\\"type\\": \\"finished\\", \\"data\\": \\"someMessageId\\"}\\n```\\n","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}},"text/event-stream":{"schema":{"allOf":[{"$ref":"#/components/schemas/MessageResponseStreamEvent"}],"examples":[{"summary":"Example of a StreamEventDelta","value":{"type":"delta","data":"Updated event information or specific content changes."}}]}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/conversations/{conversationId}":{"get":{"operationId":"getConversation","summary":"Get a conversation","parameters":[{"$ref":"#/components/parameters/conversationId"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/conversations/{conversationId}/messages/{messageId}/rating":{"post":{"operationId":"rateMessage","summary":"Rate message","parameters":[{"$ref":"#/components/parameters/conversationId"},{"$ref":"#/components/parameters/messageId"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageRating"}}}},"responses":{"204":{"description":"Rating Saved"},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}}}},"/conversations/{conversationId}/messages/{messageId}/comment":{"post":{"operationId":"commentMessage","summary":"Add comment to assistant message","description":"Add a comment to an assistant message that clarifies a thumbs up/down rating.\\n\\nYou can only rate an an assistant message that has a thumbs up/down rating. You can only rate a message once. The server returns a `400` error response if the message is not from the assistant, is not rated, or has already been rated.\\n","parameters":[{"$ref":"#/components/parameters/conversationId"},{"$ref":"#/components/parameters/messageId"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageComment"}}}},"responses":{"204":{"description":"Comment Saved"},"400":{"$ref":"#/components/responses/BadRequest"},"404":{"$ref":"#/components/responses/NotFound"},"500":{"$ref":"#/components/responses/InternalServerError"}}}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-KEY"}},"responses":{"BadRequest":{"description":"Bad Request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"NotFound":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"InternalServerError":{"description":"Internal Server Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"schemas":{"Conversation":{"type":"object","required":["_id","messages","createdAt"],"properties":{"_id":{"type":"string","description":"The unique identifier for a conversation."},"messages":{"type":"array","items":{"$ref":"#/components/schemas/Message"}},"createdAt":{"type":"integer","description":"Unix timestamp for when the conversation was created."}}},"Message":{"type":"object","required":["id","role","content","createdAt"],"properties":{"id":{"type":"string","description":"The unique identifier for a message."},"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string","format":"markdown","description":"Markdown-formatted response to user\'s chat message in the context\\nof the conversation.\\n"},"rating":{"type":"boolean","description":"Set to `true` if the user liked the response, `false` if the user didn\'t like the response.\\nNo value if user didn\'t rate the response.\\n\\nNote that only messages with `role: \\"assistant\\"` can be rated.\\n"},"userComment":{"type":"string","description":"Comment from the user clarifying why they liked or disliked\\nthe message. No value if user didn\'t comment on the response.\\n\\nNote that only messages with `role: \\"assistant\\"` can be commented on.\\n"},"createdAt":{"type":"integer","description":"Unix timestamp for when the message was sent.\\n"},"references":{"$ref":"#/components/schemas/References"}}},"References":{"type":"array","description":"List of references to external resources that are relevant\\nto the message. For example, if the message is a response to\\na user\'s question about how to connect, the list of\\nreferences could include links to the documentation, dev\\ncenter articles, or a video lesson on MongoDB University.\\n","items":{"type":"object","required":["title","url"],"properties":{"title":{"type":"string","description":"Title of the reference. This is what shows up in\\nrendered links. For example, \\"How to connect to\\nMongoDB Atlas\\".\\n"},"url":{"type":"string","format":"uri","description":"URL to the reference. For example, \\"https://mongodb.com/docs/atlas/getting-started\\".\\n"}}}},"MessageResponseStreamEvent":{"oneOf":[{"$ref":"#/components/schemas/StreamEventDelta"},{"$ref":"#/components/schemas/StreamEventMetadata"},{"$ref":"#/components/schemas/StreamEventProcessing"},{"$ref":"#/components/schemas/StreamEventReferences"},{"$ref":"#/components/schemas/StreamEventFinished"}],"description":"A server-sent event data payload for a streaming message."},"StreamEventDelta":{"description":"Assistant response text.","type":"object","properties":{"type":{"type":"string","enum":["delta"]},"data":{"description":"Piece of content","type":"string"}}},"StreamEventProcessing":{"description":"Message to send while processing a user request.\\nFor example, you could send a processing message during a long running tool\\ncall to update the user of what is occurring.\\n","type":"object","properties":{"type":{"type":"string","enum":["processing"]},"data":{"description":"Information about processing event.","type":"string"}}},"StreamEventReferences":{"description":"References to include with the answer.","type":"object","properties":{"type":{"type":"string","enum":["references"]},"data":{"$ref":"#/components/schemas/References"}}},"StreamEventMetadata":{"description":"Any additional metadata with the answer.","type":"object","properties":{"type":{"type":"string","enum":["metadata"]},"data":{"type":"object","additionalProperties":true}}},"StreamEventFinished":{"description":"Last message when streaming has finished.","type":"object","properties":{"type":{"type":"string","enum":["finished"]},"data":{"description":"Message ID.","type":"string"}}},"MessageComment":{"type":"object","properties":{"comment":{"type":"string","description":"Comment from the user clarifying why they liked or disliked\\nthe message.\\n"}}},"MessageRating":{"type":"object","properties":{"rating":{"type":"boolean","description":"Set to `true` if the user liked the message, `false` if the user didn\'t like the message.\\n"}}},"ErrorResponse":{"type":"object"}},"parameters":{"conversationId":{"name":"conversationId","required":true,"in":"path","schema":{"type":"string"},"description":"The unique identifier for a conversation."},"messageId":{"name":"messageId","required":true,"in":"path","schema":{"type":"string"},"description":"The unique identifier for a message."}}}}}},"docusaurus-plugin-content-docs":{"default":{"path":"/chatbot/","versions":[{"name":"current","label":"Next","isLast":true,"path":"/chatbot/","mainDocId":"index","docs":[{"id":"evaluation/command-reference","path":"/chatbot/evaluation/command-reference","sidebar":"main"},{"id":"evaluation/configuration-reference","path":"/chatbot/evaluation/configuration-reference","sidebar":"main"},{"id":"evaluation/index","path":"/chatbot/evaluation/","sidebar":"main"},{"id":"evaluation/pipeline","path":"/chatbot/evaluation/pipeline","sidebar":"main"},{"id":"index","path":"/chatbot/","sidebar":"main"},{"id":"ingest/command-reference","path":"/chatbot/ingest/command-reference","sidebar":"main"},{"id":"ingest/configuration-reference","path":"/chatbot/ingest/configuration-reference","sidebar":"main"},{"id":"ingest/configure","path":"/chatbot/ingest/configure","sidebar":"main"},{"id":"ingest/data-sources","path":"/chatbot/ingest/data-sources","sidebar":"main"},{"id":"ingest/optimize","path":"/chatbot/ingest/optimize","sidebar":"main"},{"id":"mongodb","path":"/chatbot/mongodb","sidebar":"main"},{"id":"quick-start","path":"/chatbot/quick-start","sidebar":"main"},{"id":"reference/core/index","path":"/chatbot/reference/core/","sidebar":"main"},{"id":"reference/core/interfaces/AzureOpenAiServiceConfig","path":"/chatbot/reference/core/interfaces/AzureOpenAiServiceConfig","sidebar":"main"},{"id":"reference/core/interfaces/EmbeddedContent","path":"/chatbot/reference/core/interfaces/EmbeddedContent","sidebar":"main"},{"id":"reference/core/modules","path":"/chatbot/reference/core/modules","sidebar":"main"},{"id":"reference/eval/index","path":"/chatbot/reference/eval/"},{"id":"reference/eval/interfaces/BaseGeneratedData","path":"/chatbot/reference/eval/interfaces/BaseGeneratedData"},{"id":"reference/eval/interfaces/BaseTestCase","path":"/chatbot/reference/eval/interfaces/BaseTestCase"},{"id":"reference/eval/interfaces/CheckResponseQuality","path":"/chatbot/reference/eval/interfaces/CheckResponseQuality"},{"id":"reference/eval/interfaces/CheckResponseQualityParams","path":"/chatbot/reference/eval/interfaces/CheckResponseQualityParams"},{"id":"reference/eval/interfaces/CommandMetadataStore","path":"/chatbot/reference/eval/interfaces/CommandMetadataStore"},{"id":"reference/eval/interfaces/CommandRunMetadata","path":"/chatbot/reference/eval/interfaces/CommandRunMetadata"},{"id":"reference/eval/interfaces/ConversationEvalData","path":"/chatbot/reference/eval/interfaces/ConversationEvalData"},{"id":"reference/eval/interfaces/ConversationGeneratedData","path":"/chatbot/reference/eval/interfaces/ConversationGeneratedData"},{"id":"reference/eval/interfaces/ConversationTestCase","path":"/chatbot/reference/eval/interfaces/ConversationTestCase"},{"id":"reference/eval/interfaces/EvalConfig","path":"/chatbot/reference/eval/interfaces/EvalConfig"},{"id":"reference/eval/interfaces/EvalResult","path":"/chatbot/reference/eval/interfaces/EvalResult"},{"id":"reference/eval/interfaces/EvaluateConversationQualityParams","path":"/chatbot/reference/eval/interfaces/EvaluateConversationQualityParams"},{"id":"reference/eval/interfaces/EvaluationStore","path":"/chatbot/reference/eval/interfaces/EvaluationStore"},{"id":"reference/eval/interfaces/GenerateDataAndMetadataParams","path":"/chatbot/reference/eval/interfaces/GenerateDataAndMetadataParams"},{"id":"reference/eval/interfaces/GenerateDataFuncParams","path":"/chatbot/reference/eval/interfaces/GenerateDataFuncParams"},{"id":"reference/eval/interfaces/GeneratedDataStore","path":"/chatbot/reference/eval/interfaces/GeneratedDataStore"},{"id":"reference/eval/interfaces/MakeGenerateConversationDataParams","path":"/chatbot/reference/eval/interfaces/MakeGenerateConversationDataParams"},{"id":"reference/eval/interfaces/MakeMongoDbCommandMetadataStoreParams","path":"/chatbot/reference/eval/interfaces/MakeMongoDbCommandMetadataStoreParams"},{"id":"reference/eval/interfaces/MakeMongoDbEvaluationStoreParams","path":"/chatbot/reference/eval/interfaces/MakeMongoDbEvaluationStoreParams"},{"id":"reference/eval/interfaces/MakeMongoDbGeneratedDataStoreParams","path":"/chatbot/reference/eval/interfaces/MakeMongoDbGeneratedDataStoreParams"},{"id":"reference/eval/interfaces/MakeMongoDbReportStoreParams","path":"/chatbot/reference/eval/interfaces/MakeMongoDbReportStoreParams"},{"id":"reference/eval/interfaces/MongoDbEvaluationStore","path":"/chatbot/reference/eval/interfaces/MongoDbEvaluationStore"},{"id":"reference/eval/interfaces/MongoDbGeneratedDataStore","path":"/chatbot/reference/eval/interfaces/MongoDbGeneratedDataStore"},{"id":"reference/eval/interfaces/MongoDbReportStore","path":"/chatbot/reference/eval/interfaces/MongoDbReportStore"},{"id":"reference/eval/interfaces/Report","path":"/chatbot/reference/eval/interfaces/Report"},{"id":"reference/eval/interfaces/ReportStore","path":"/chatbot/reference/eval/interfaces/ReportStore"},{"id":"reference/eval/interfaces/ResponseQualityExample","path":"/chatbot/reference/eval/interfaces/ResponseQualityExample"},{"id":"reference/eval/modules","path":"/chatbot/reference/eval/modules"},{"id":"reference/evaluation/index","path":"/chatbot/reference/evaluation/","sidebar":"main"},{"id":"reference/evaluation/interfaces/BaseGeneratedData","path":"/chatbot/reference/evaluation/interfaces/BaseGeneratedData","sidebar":"main"},{"id":"reference/evaluation/interfaces/BaseTestCase","path":"/chatbot/reference/evaluation/interfaces/BaseTestCase","sidebar":"main"},{"id":"reference/evaluation/interfaces/CheckResponseQuality","path":"/chatbot/reference/evaluation/interfaces/CheckResponseQuality","sidebar":"main"},{"id":"reference/evaluation/interfaces/CheckResponseQualityParams","path":"/chatbot/reference/evaluation/interfaces/CheckResponseQualityParams","sidebar":"main"},{"id":"reference/evaluation/interfaces/CommandMetadataStore","path":"/chatbot/reference/evaluation/interfaces/CommandMetadataStore","sidebar":"main"},{"id":"reference/evaluation/interfaces/CommandRunMetadata","path":"/chatbot/reference/evaluation/interfaces/CommandRunMetadata","sidebar":"main"},{"id":"reference/evaluation/interfaces/ConversationEvalData","path":"/chatbot/reference/evaluation/interfaces/ConversationEvalData","sidebar":"main"},{"id":"reference/evaluation/interfaces/ConversationGeneratedData","path":"/chatbot/reference/evaluation/interfaces/ConversationGeneratedData","sidebar":"main"},{"id":"reference/evaluation/interfaces/ConversationTestCase","path":"/chatbot/reference/evaluation/interfaces/ConversationTestCase","sidebar":"main"},{"id":"reference/evaluation/interfaces/EvalConfig","path":"/chatbot/reference/evaluation/interfaces/EvalConfig","sidebar":"main"},{"id":"reference/evaluation/interfaces/EvalResult","path":"/chatbot/reference/evaluation/interfaces/EvalResult","sidebar":"main"},{"id":"reference/evaluation/interfaces/EvaluateConversationQualityParams","path":"/chatbot/reference/evaluation/interfaces/EvaluateConversationQualityParams","sidebar":"main"},{"id":"reference/evaluation/interfaces/EvaluationStore","path":"/chatbot/reference/evaluation/interfaces/EvaluationStore","sidebar":"main"},{"id":"reference/evaluation/interfaces/ExpectedLinks","path":"/chatbot/reference/evaluation/interfaces/ExpectedLinks","sidebar":"main"},{"id":"reference/evaluation/interfaces/GenerateDataAndMetadataParams","path":"/chatbot/reference/evaluation/interfaces/GenerateDataAndMetadataParams","sidebar":"main"},{"id":"reference/evaluation/interfaces/GenerateDataFuncParams","path":"/chatbot/reference/evaluation/interfaces/GenerateDataFuncParams","sidebar":"main"},{"id":"reference/evaluation/interfaces/GeneratedDataStore","path":"/chatbot/reference/evaluation/interfaces/GeneratedDataStore","sidebar":"main"},{"id":"reference/evaluation/interfaces/MakeGenerateConversationDataParams","path":"/chatbot/reference/evaluation/interfaces/MakeGenerateConversationDataParams","sidebar":"main"},{"id":"reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams","path":"/chatbot/reference/evaluation/interfaces/MakeGenerateLlmConversationDataParams","sidebar":"main"},{"id":"reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams","path":"/chatbot/reference/evaluation/interfaces/MakeMongoDbCommandMetadataStoreParams","sidebar":"main"},{"id":"reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams","path":"/chatbot/reference/evaluation/interfaces/MakeMongoDbEvaluationStoreParams","sidebar":"main"},{"id":"reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams","path":"/chatbot/reference/evaluation/interfaces/MakeMongoDbGeneratedDataStoreParams","sidebar":"main"},{"id":"reference/evaluation/interfaces/MakeMongoDbReportStoreParams","path":"/chatbot/reference/evaluation/interfaces/MakeMongoDbReportStoreParams","sidebar":"main"},{"id":"reference/evaluation/interfaces/MongoDbEvaluationStore","path":"/chatbot/reference/evaluation/interfaces/MongoDbEvaluationStore","sidebar":"main"},{"id":"reference/evaluation/interfaces/MongoDbGeneratedDataStore","path":"/chatbot/reference/evaluation/interfaces/MongoDbGeneratedDataStore","sidebar":"main"},{"id":"reference/evaluation/interfaces/MongoDbReportStore","path":"/chatbot/reference/evaluation/interfaces/MongoDbReportStore","sidebar":"main"},{"id":"reference/evaluation/interfaces/Report","path":"/chatbot/reference/evaluation/interfaces/Report","sidebar":"main"},{"id":"reference/evaluation/interfaces/ReportEvalFuncParams","path":"/chatbot/reference/evaluation/interfaces/ReportEvalFuncParams","sidebar":"main"},{"id":"reference/evaluation/interfaces/ReportStore","path":"/chatbot/reference/evaluation/interfaces/ReportStore","sidebar":"main"},{"id":"reference/evaluation/interfaces/ResponseQualityExample","path":"/chatbot/reference/evaluation/interfaces/ResponseQualityExample","sidebar":"main"},{"id":"reference/evaluation/modules","path":"/chatbot/reference/evaluation/modules","sidebar":"main"},{"id":"reference/ingest/index","path":"/chatbot/reference/ingest/","sidebar":"main"},{"id":"reference/ingest/interfaces/sources.Branch","path":"/chatbot/reference/ingest/interfaces/sources.Branch","sidebar":"main"},{"id":"reference/ingest/interfaces/sources.DevCenterEntryTag","path":"/chatbot/reference/ingest/interfaces/sources.DevCenterEntryTag","sidebar":"main"},{"id":"reference/ingest/interfaces/sources.MakeGitDataSourceParams","path":"/chatbot/reference/ingest/interfaces/sources.MakeGitDataSourceParams","sidebar":"main"},{"id":"reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams","path":"/chatbot/reference/ingest/interfaces/sources.MakeLangChainDocumentLoaderDataSourceParams","sidebar":"main"},{"id":"reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams","path":"/chatbot/reference/ingest/interfaces/sources.MakeMongoDbUniversityDataSourceParams","sidebar":"main"},{"id":"reference/ingest/interfaces/sources.ProjectBase","path":"/chatbot/reference/ingest/interfaces/sources.ProjectBase","sidebar":"main"},{"id":"reference/ingest/interfaces/sources.SnootyProject","path":"/chatbot/reference/ingest/interfaces/sources.SnootyProject","sidebar":"main"},{"id":"reference/ingest/modules","path":"/chatbot/reference/ingest/modules","sidebar":"main"},{"id":"reference/ingest/modules/embed","path":"/chatbot/reference/ingest/modules/embed","sidebar":"main"},{"id":"reference/ingest/modules/index","path":"/chatbot/reference/ingest/modules/","sidebar":"main"},{"id":"reference/ingest/modules/sources","path":"/chatbot/reference/ingest/modules/sources","sidebar":"main"},{"id":"reference/server/index","path":"/chatbot/reference/server/","sidebar":"main"},{"id":"reference/server/interfaces/AppConfig","path":"/chatbot/reference/server/interfaces/AppConfig","sidebar":"main"},{"id":"reference/server/interfaces/AzureOpenAiServiceConfig","path":"/chatbot/reference/server/interfaces/AzureOpenAiServiceConfig","sidebar":"main"},{"id":"reference/server/interfaces/CallToolResponse","path":"/chatbot/reference/server/interfaces/CallToolResponse","sidebar":"main"},{"id":"reference/server/interfaces/ChatLlm","path":"/chatbot/reference/server/interfaces/ChatLlm","sidebar":"main"},{"id":"reference/server/interfaces/CommentMessageParams","path":"/chatbot/reference/server/interfaces/CommentMessageParams","sidebar":"main"},{"id":"reference/server/interfaces/Conversation","path":"/chatbot/reference/server/interfaces/Conversation","sidebar":"main"},{"id":"reference/server/interfaces/ConversationConstants","path":"/chatbot/reference/server/interfaces/ConversationConstants","sidebar":"main"},{"id":"reference/server/interfaces/ConversationsRateLimitConfig","path":"/chatbot/reference/server/interfaces/ConversationsRateLimitConfig","sidebar":"main"},{"id":"reference/server/interfaces/ConversationsRouterLocals","path":"/chatbot/reference/server/interfaces/ConversationsRouterLocals","sidebar":"main"},{"id":"reference/server/interfaces/ConversationsRouterParams","path":"/chatbot/reference/server/interfaces/ConversationsRouterParams","sidebar":"main"},{"id":"reference/server/interfaces/ConversationsService","path":"/chatbot/reference/server/interfaces/ConversationsService","sidebar":"main"},{"id":"reference/server/interfaces/DataStreamer","path":"/chatbot/reference/server/interfaces/DataStreamer","sidebar":"main"},{"id":"reference/server/interfaces/EmbeddedContent","path":"/chatbot/reference/server/interfaces/EmbeddedContent","sidebar":"main"},{"id":"reference/server/interfaces/FindByIdParams","path":"/chatbot/reference/server/interfaces/FindByIdParams","sidebar":"main"},{"id":"reference/server/interfaces/GenerateUserPromptFuncReturnValue","path":"/chatbot/reference/server/interfaces/GenerateUserPromptFuncReturnValue","sidebar":"main"},{"id":"reference/server/interfaces/LlmAnswerQuestionParams","path":"/chatbot/reference/server/interfaces/LlmAnswerQuestionParams","sidebar":"main"},{"id":"reference/server/interfaces/LlmCallToolParams","path":"/chatbot/reference/server/interfaces/LlmCallToolParams","sidebar":"main"},{"id":"reference/server/interfaces/MakeLangchainChatLlmProps","path":"/chatbot/reference/server/interfaces/MakeLangchainChatLlmProps","sidebar":"main"},{"id":"reference/server/interfaces/MakeOpenAiChatLlmParams","path":"/chatbot/reference/server/interfaces/MakeOpenAiChatLlmParams","sidebar":"main"},{"id":"reference/server/interfaces/MakeRagGenerateUserPromptParams","path":"/chatbot/reference/server/interfaces/MakeRagGenerateUserPromptParams","sidebar":"main"},{"id":"reference/server/interfaces/MakeUserMessageFuncParams","path":"/chatbot/reference/server/interfaces/MakeUserMessageFuncParams","sidebar":"main"},{"id":"reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams","path":"/chatbot/reference/server/interfaces/MakeVerifiedAnswerGenerateUserPromptParams","sidebar":"main"},{"id":"reference/server/interfaces/OpenAiChatMessage","path":"/chatbot/reference/server/interfaces/OpenAiChatMessage","sidebar":"main"},{"id":"reference/server/interfaces/RateMessageParams","path":"/chatbot/reference/server/interfaces/RateMessageParams","sidebar":"main"},{"id":"reference/server/interfaces/SearchBooster","path":"/chatbot/reference/server/interfaces/SearchBooster","sidebar":"main"},{"id":"reference/server/interfaces/Tool","path":"/chatbot/reference/server/interfaces/Tool","sidebar":"main"},{"id":"reference/server/interfaces/ToolCallParams","path":"/chatbot/reference/server/interfaces/ToolCallParams","sidebar":"main"},{"id":"reference/server/modules","path":"/chatbot/reference/server/modules","sidebar":"main"},{"id":"server/configure","path":"/chatbot/server/configure","sidebar":"main"},{"id":"server/conversations","path":"/chatbot/server/conversations","sidebar":"main"},{"id":"server/custom-logic","path":"/chatbot/server/custom-logic","sidebar":"main"},{"id":"server/evaluate","path":"/chatbot/server/evaluate","sidebar":"main"},{"id":"server/llm","path":"/chatbot/server/llm","sidebar":"main"},{"id":"server/persist","path":"/chatbot/server/persist","sidebar":"main"},{"id":"server/rag/index","path":"/chatbot/server/rag/","sidebar":"main"},{"id":"server/rag/preprocess","path":"/chatbot/server/rag/preprocess","sidebar":"main"},{"id":"server/rag/references","path":"/chatbot/server/rag/references","sidebar":"main"},{"id":"server/rag/retrieve","path":"/chatbot/server/rag/retrieve","sidebar":"main"},{"id":"server/tools","path":"/chatbot/server/tools","sidebar":"main"},{"id":"server/user-message","path":"/chatbot/server/user-message","sidebar":"main"},{"id":"ui","path":"/chatbot/ui","sidebar":"main"},{"id":"/reference/","path":"/chatbot/reference/","sidebar":"main"}],"draftIds":[],"sidebars":{"main":{"link":{"path":"/chatbot/","label":"index"}}}}],"breadcrumbs":true}}}'),i=JSON.parse('{"defaultLocale":"en","locales":["en"],"path":"i18n","currentLocale":"en","localeConfigs":{"en":{"label":"English","direction":"ltr","htmlLang":"en","calendar":"gregory","path":"en"}}}');var s=n(57529);const l=JSON.parse('{"docusaurusVersion":"3.0.0","siteVersion":"0.0.0","pluginVersions":{"docusaurus-plugin-content-docs":{"type":"package","name":"@docusaurus/plugin-content-docs","version":"3.0.0"},"docusaurus-plugin-content-blog":{"type":"package","name":"@docusaurus/plugin-content-blog","version":"3.0.0"},"docusaurus-plugin-content-pages":{"type":"package","name":"@docusaurus/plugin-content-pages","version":"3.0.0"},"docusaurus-plugin-sitemap":{"type":"package","name":"@docusaurus/plugin-sitemap","version":"3.0.0"},"docusaurus-plugin-redoc":{"type":"package","name":"docusaurus-plugin-redoc","version":"2.0.0"},"docusaurus-theme-classic":{"type":"package","name":"@docusaurus/theme-classic","version":"3.0.0"},"docusaurus-theme-redoc":{"type":"package","name":"docusaurus-theme-redoc","version":"2.0.0"},"docusaurus-plugin-typedoc":{"type":"package","name":"docusaurus-plugin-typedoc","version":"0.21.0"},"docusaurus-theme-mermaid":{"type":"package","name":"@docusaurus/theme-mermaid","version":"3.0.0"}}}');var c=n(85893);const u={siteConfig:a.default,siteMetadata:l,globalData:o,i18n:i,codeTranslations:s},d=r.createContext(u);function f(e){let{children:t}=e;return(0,c.jsx)(d.Provider,{value:u,children:t})}},44763:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(67294),a=n(10412),o=n(35742),i=n(18780),s=n(8867),l=n(85893);function c(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",minHeight:"100vh",width:"100%",maxWidth:"80ch",fontSize:"20px",margin:"0 auto",padding:"1rem"},children:[(0,l.jsx)("h1",{style:{fontSize:"3rem"},children:"This page crashed"}),(0,l.jsx)("button",{type:"button",onClick:n,style:{margin:"1rem 0",fontSize:"2rem",cursor:"pointer",borderRadius:20,padding:"1rem"},children:"Try again"}),(0,l.jsx)(u,{error:t})]})}function u(e){let{error:t}=e;const n=(0,i.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,l.jsx)("p",{style:{whiteSpace:"pre-wrap"},children:n})}function d(e){let{error:t,tryAgain:n}=e;return(0,l.jsxs)(p,{fallback:()=>(0,l.jsx)(c,{error:t,tryAgain:n}),children:[(0,l.jsx)(o.Z,{children:(0,l.jsx)("title",{children:"Page Error"})}),(0,l.jsx)(s.Z,{children:(0,l.jsx)(c,{error:t,tryAgain:n})})]})}const f=e=>(0,l.jsx)(d,{...e});class p extends r.Component{constructor(e){super(e),this.state={error:null}}componentDidCatch(e){a.default.canUseDOM&&this.setState({error:e})}render(){const{children:e}=this.props,{error:t}=this.state;if(t){const e={error:t,tryAgain:()=>this.setState({error:null})};return(this.props.fallback??f)(e)}return e??null}}},10412:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>a});const r="undefined"!=typeof window&&"document"in window&&"createElement"in window.document,a={canUseDOM:r,canUseEventListeners:r&&("addEventListener"in window||"attachEvent"in window),canUseIntersectionObserver:r&&"IntersectionObserver"in window,canUseViewport:r&&"screen"in window}},35742:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(67294);var r=n(70405),a=n(85893);function o(e){return(0,a.jsx)(r.ql,{...e})}},39960:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(67294),a=n(73727),o=n(18780),i=n(52263),s=n(13919),l=n(10412),c=n(85893);const u=r.createContext({collectLink:()=>{}});var d=n(44996);function f(e,t){let{isNavLink:n,to:f,href:p,activeClassName:m,isActive:h,"data-noBrokenLinkCheck":g,autoAddBaseUrl:b=!0,...v}=e;const{siteConfig:{trailingSlash:y,baseUrl:w}}=(0,i.Z)(),{withBaseUrl:k}=(0,d.C)(),x=(0,r.useContext)(u),S=(0,r.useRef)(null);(0,r.useImperativeHandle)(t,(()=>S.current));const C=f||p;const E=(0,s.Z)(C),_=C?.replace("pathname://","");let T=void 0!==_?(P=_,b&&(e=>e.startsWith("/"))(P)?k(P):P):void 0;var P;T&&E&&(T=(0,o.applyTrailingSlash)(T,{trailingSlash:y,baseUrl:w}));const R=(0,r.useRef)(!1),D=n?a.OL:a.rU,M=l.default.canUseIntersectionObserver,A=(0,r.useRef)(),L=()=>{R.current||null==T||(window.docusaurus.preload(T),R.current=!0)};(0,r.useEffect)((()=>(!M&&E&&null!=T&&window.docusaurus.prefetch(T),()=>{M&&A.current&&A.current.disconnect()})),[A,T,M,E]);const j=T?.startsWith("#")??!1,N=!T||!E||j;return N||g||x.collectLink(T),N?(0,c.jsx)("a",{ref:S,href:T,...C&&!E&&{target:"_blank",rel:"noopener noreferrer"},...v}):(0,c.jsx)(D,{...v,onMouseEnter:L,onTouchStart:L,innerRef:e=>{S.current=e,M&&e&&E&&(A.current=new window.IntersectionObserver((t=>{t.forEach((t=>{e===t.target&&(t.isIntersecting||t.intersectionRatio>0)&&(A.current.unobserve(e),A.current.disconnect(),null!=T&&window.docusaurus.prefetch(T))}))})),A.current.observe(e))},to:T,...n&&{isActive:h,activeClassName:m}})}const p=r.forwardRef(f)},95999:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c,I:()=>l});var r=n(67294),a=n(85893);function o(e,t){const n=e.split(/(\{\w+\})/).map(((e,n)=>{if(n%2==1){const n=t?.[e.slice(1,-1)];if(void 0!==n)return n}return e}));return n.some((e=>(0,r.isValidElement)(e)))?n.map(((e,t)=>(0,r.isValidElement)(e)?r.cloneElement(e,{key:t}):e)).filter((e=>""!==e)):n.join("")}var i=n(57529);function s(e){let{id:t,message:n}=e;if(void 0===t&&void 0===n)throw new Error("Docusaurus translation declarations must have at least a translation id or a default translation message");return i[t??n]??n??t}function l(e,t){let{message:n,id:r}=e;return o(s({message:n,id:r}),t)}function c(e){let{children:t,id:n,values:r}=e;if(t&&"string"!=typeof t)throw console.warn("Illegal children",t),new Error("The Docusaurus component only accept simple string values");const i=s({message:t,id:n});return(0,a.jsx)(a.Fragment,{children:o(i,r)})}},29935:(e,t,n)=>{"use strict";n.d(t,{m:()=>r});const r="default"},13919:(e,t,n)=>{"use strict";function r(e){return/^(?:\w*:|\/\/)/.test(e)}function a(e){return void 0!==e&&!r(e)}n.d(t,{Z:()=>a,b:()=>r})},44996:(e,t,n)=>{"use strict";n.d(t,{C:()=>i,Z:()=>s});var r=n(67294),a=n(52263),o=n(13919);function i(){const{siteConfig:{baseUrl:e,url:t}}=(0,a.Z)(),n=(0,r.useCallback)(((n,r)=>function(e,t,n,r){let{forcePrependBaseUrl:a=!1,absolute:i=!1}=void 0===r?{}:r;if(!n||n.startsWith("#")||(0,o.b)(n))return n;if(a)return t+n.replace(/^\//,"");if(n===t.replace(/\/$/,""))return t;const s=n.startsWith(t)?n:t+n.replace(/^\//,"");return i?e+s:s}(t,e,n,r)),[t,e]);return{withBaseUrl:n}}function s(e,t){void 0===t&&(t={});const{withBaseUrl:n}=i();return n(e,t)}},52263:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(67294),a=n(58940);function o(){return(0,r.useContext)(a._)}},28084:(e,t,n)=>{"use strict";n.d(t,{OD:()=>o,eZ:()=>i});var r=n(52263),a=n(29935);function o(e,t){void 0===t&&(t={});const n=function(){const{globalData:e}=(0,r.Z)();return e}()[e];if(!n&&t.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin.`);return n}function i(e,t,n){void 0===t&&(t=a.m),void 0===n&&(n={});const r=o(e),i=r?.[t];if(!i&&n.failfast)throw new Error(`Docusaurus plugin global data not found for "${e}" plugin with id "${t}".`);return i}},72389:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(67294),a=n(98934);function o(){return(0,r.useContext)(a._)}},20469:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(67294);const a=n(10412).default.canUseDOM?r.useLayoutEffect:r.useEffect},99670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=e=>"object"==typeof e&&!!e&&Object.keys(e).length>0;function a(e){const t={};return function e(n,a){Object.entries(n).forEach((n=>{let[o,i]=n;const s=a?`${a}.${o}`:o;r(i)?e(i,s):t[s]=i}))}(e),t}},30226:(e,t,n)=>{"use strict";n.d(t,{_:()=>o,z:()=>i});var r=n(67294),a=n(85893);const o=r.createContext(null);function i(e){let{children:t,value:n}=e;const i=r.useContext(o),s=(0,r.useMemo)((()=>function(e){let{parent:t,value:n}=e;if(!t){if(!n)throw new Error("Unexpected: no Docusaurus route context found");if(!("plugin"in n))throw new Error("Unexpected: Docusaurus topmost route context has no `plugin` attribute");return n}const r={...t.data,...n?.data};return{plugin:t.plugin,data:r}}({parent:i,value:n})),[i,n]);return(0,a.jsx)(o.Provider,{value:s,children:t})}},94104:(e,t,n)=>{"use strict";n.d(t,{Iw:()=>p,gA:()=>u,_r:()=>l,Jo:()=>m,zh:()=>c,yW:()=>f,gB:()=>d});var r=n(16550),a=n(28084);const o=e=>e.versions.find((e=>e.isLast));function i(e,t){const n=function(e,t){const n=o(e);return[...e.versions.filter((e=>e!==n)),n].find((e=>!!(0,r.LX)(t,{path:e.path,exact:!1,strict:!1})))}(e,t),a=n?.docs.find((e=>!!(0,r.LX)(t,{path:e.path,exact:!0,strict:!1})));return{activeVersion:n,activeDoc:a,alternateDocVersions:a?function(t){const n={};return e.versions.forEach((e=>{e.docs.forEach((r=>{r.id===t&&(n[e.name]=r)}))})),n}(a.id):{}}}const s={},l=()=>(0,a.OD)("docusaurus-plugin-content-docs")??s,c=e=>(0,a.eZ)("docusaurus-plugin-content-docs",e,{failfast:!0});function u(e){void 0===e&&(e={});const t=l(),{pathname:n}=(0,r.TH)();return function(e,t,n){void 0===n&&(n={});const a=Object.entries(e).sort(((e,t)=>t[1].path.localeCompare(e[1].path))).find((e=>{let[,n]=e;return!!(0,r.LX)(t,{path:n.path,exact:!1,strict:!1})})),o=a?{pluginId:a[0],pluginData:a[1]}:void 0;if(!o&&n.failfast)throw new Error(`Can't find active docs plugin for "${t}" pathname, while it was expected to be found. Maybe you tried to use a docs feature that can only be used on a docs-related page? Existing docs plugin paths are: ${Object.values(e).map((e=>e.path)).join(", ")}`);return o}(t,n,e)}function d(e){return c(e).versions}function f(e){const t=c(e);return o(t)}function p(e){const t=c(e),{pathname:n}=(0,r.TH)();return i(t,n)}function m(e){const t=c(e),{pathname:n}=(0,r.TH)();return function(e,t){const n=o(e);return{latestDocSuggestion:i(e,t).alternateDocVersions[n.name],latestVersionSuggestion:n}}(t,n)}},18320:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(74865),a=n.n(r);a().configure({showSpinner:!1});const o={onRouteUpdate(e){let{location:t,previousLocation:n}=e;if(n&&t.pathname!==n.pathname){const e=window.setTimeout((()=>{a().start()}),200);return()=>window.clearTimeout(e)}},onRouteDidUpdate(){a().done()}}},3310:(e,t,n)=>{"use strict";n.r(t);var r=n(14965),a=n(36809);!function(e){const{themeConfig:{prism:t}}=a.default,{additionalLanguages:r}=t;globalThis.Prism=e,r.forEach((e=>{"php"===e&&n(96854),n(6726)(`./prism-${e}`)})),delete globalThis.Prism}(r.p1)},92503:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});n(67294);var r=n(86010),a=n(95999),o=n(86668),i=n(39960);const s={anchorWithStickyNavbar:"anchorWithStickyNavbar_LWe7",anchorWithHideOnScrollNavbar:"anchorWithHideOnScrollNavbar_WYt5"};var l=n(85893);function c(e){let{as:t,id:n,...c}=e;const{navbar:{hideOnScroll:u}}=(0,o.L)();if("h1"===t||!n)return(0,l.jsx)(t,{...c,id:void 0});const d=(0,a.I)({id:"theme.common.headingLinkTitle",message:"Direct link to {heading}",description:"Title for link to heading"},{heading:"string"==typeof c.children?c.children:n});return(0,l.jsxs)(t,{...c,className:(0,r.Z)("anchor",u?s.anchorWithHideOnScrollNavbar:s.anchorWithStickyNavbar,c.className),id:n,children:[c.children,(0,l.jsx)(i.Z,{className:"hash-link",to:`#${n}`,"aria-label":d,title:d,children:"\u200b"})]})}},39471:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(67294);const r={iconExternalLink:"iconExternalLink_nPIU"};var a=n(85893);function o(e){let{width:t=13.5,height:n=13.5}=e;return(0,a.jsx)("svg",{width:t,height:n,"aria-hidden":"true",viewBox:"0 0 24 24",className:r.iconExternalLink,children:(0,a.jsx)("path",{fill:"currentColor",d:"M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"})})}},8867:(e,t,n)=>{"use strict";n.d(t,{Z:()=>lt});var r=n(67294),a=n(86010),o=n(44763),i=n(1944),s=n(16550),l=n(95999),c=n(85936),u=n(85893);const d="__docusaurus_skipToContent_fallback";function f(e){e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")}function p(){const e=(0,r.useRef)(null),{action:t}=(0,s.k6)(),n=(0,r.useCallback)((e=>{e.preventDefault();const t=document.querySelector("main:first-of-type")??document.getElementById(d);t&&f(t)}),[]);return(0,c.S)((n=>{let{location:r}=n;e.current&&!r.hash&&"PUSH"===t&&f(e.current)})),{containerRef:e,onClick:n}}const m=(0,l.I)({id:"theme.common.skipToMainContent",description:"The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation",message:"Skip to main content"});function h(e){const t=e.children??m,{containerRef:n,onClick:r}=p();return(0,u.jsx)("div",{ref:n,role:"region","aria-label":m,children:(0,u.jsx)("a",{...e,href:`#${d}`,onClick:r,children:t})})}var g=n(35281),b=n(19727);const v={skipToContent:"skipToContent_fXgn"};function y(){return(0,u.jsx)(h,{className:v.skipToContent})}var w=n(86668),k=n(59689);function x(e){let{width:t=21,height:n=21,color:r="currentColor",strokeWidth:a=1.2,className:o,...i}=e;return(0,u.jsx)("svg",{viewBox:"0 0 15 15",width:t,height:n,...i,children:(0,u.jsx)("g",{stroke:r,strokeWidth:a,children:(0,u.jsx)("path",{d:"M.75.75l13.5 13.5M14.25.75L.75 14.25"})})})}const S={closeButton:"closeButton_CVFx"};function C(e){return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.AnnouncementBar.closeButtonAriaLabel",message:"Close",description:"The ARIA label for close button of announcement bar"}),...e,className:(0,a.Z)("clean-btn close",S.closeButton,e.className),children:(0,u.jsx)(x,{width:14,height:14,strokeWidth:3.1})})}const E={content:"content_knG7"};function _(e){const{announcementBar:t}=(0,w.L)(),{content:n}=t;return(0,u.jsx)("div",{...e,className:(0,a.Z)(E.content,e.className),dangerouslySetInnerHTML:{__html:n}})}const T={announcementBar:"announcementBar_mb4j",announcementBarPlaceholder:"announcementBarPlaceholder_vyr4",announcementBarClose:"announcementBarClose_gvF7",announcementBarContent:"announcementBarContent_xLdY"};function P(){const{announcementBar:e}=(0,w.L)(),{isActive:t,close:n}=(0,k.nT)();if(!t)return null;const{backgroundColor:r,textColor:a,isCloseable:o}=e;return(0,u.jsxs)("div",{className:T.announcementBar,style:{backgroundColor:r,color:a},role:"banner",children:[o&&(0,u.jsx)("div",{className:T.announcementBarPlaceholder}),(0,u.jsx)(_,{className:T.announcementBarContent}),o&&(0,u.jsx)(C,{onClick:n,className:T.announcementBarClose})]})}var R=n(72961),D=n(12466);var M=n(902),A=n(13102);const L=r.createContext(null);function j(e){let{children:t}=e;const n=function(){const e=(0,R.e)(),t=(0,A.HY)(),[n,a]=(0,r.useState)(!1),o=null!==t.component,i=(0,M.D9)(o);return(0,r.useEffect)((()=>{o&&!i&&a(!0)}),[o,i]),(0,r.useEffect)((()=>{o?e.shown||a(!0):a(!1)}),[e.shown,o]),(0,r.useMemo)((()=>[n,a]),[n])}();return(0,u.jsx)(L.Provider,{value:n,children:t})}function N(e){if(e.component){const t=e.component;return(0,u.jsx)(t,{...e.props})}}function O(){const e=(0,r.useContext)(L);if(!e)throw new M.i6("NavbarSecondaryMenuDisplayProvider");const[t,n]=e,a=(0,r.useCallback)((()=>n(!1)),[n]),o=(0,A.HY)();return(0,r.useMemo)((()=>({shown:t,hide:a,content:N(o)})),[a,o,t])}function I(e){let{header:t,primaryMenu:n,secondaryMenu:r}=e;const{shown:o}=O();return(0,u.jsxs)("div",{className:"navbar-sidebar",children:[t,(0,u.jsxs)("div",{className:(0,a.Z)("navbar-sidebar__items",{"navbar-sidebar__items--show-secondary":o}),children:[(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:n}),(0,u.jsx)("div",{className:"navbar-sidebar__item menu",children:r})]})]})}var F=n(92949),B=n(72389);function z(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"})})}function U(e){return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:24,height:24,...e,children:(0,u.jsx)("path",{fill:"currentColor",d:"M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"})})}const $={toggle:"toggle_vylO",toggleButton:"toggleButton_gllP",darkToggleIcon:"darkToggleIcon_wfgR",lightToggleIcon:"lightToggleIcon_pyhR",toggleButtonDisabled:"toggleButtonDisabled_aARS"};function G(e){let{className:t,buttonClassName:n,value:r,onChange:o}=e;const i=(0,B.Z)(),s=(0,l.I)({message:"Switch between dark and light mode (currently {mode})",id:"theme.colorToggle.ariaLabel",description:"The ARIA label for the navbar color mode toggle"},{mode:"dark"===r?(0,l.I)({message:"dark mode",id:"theme.colorToggle.ariaLabel.mode.dark",description:"The name for the dark color mode"}):(0,l.I)({message:"light mode",id:"theme.colorToggle.ariaLabel.mode.light",description:"The name for the light color mode"})});return(0,u.jsx)("div",{className:(0,a.Z)($.toggle,t),children:(0,u.jsxs)("button",{className:(0,a.Z)("clean-btn",$.toggleButton,!i&&$.toggleButtonDisabled,n),type:"button",onClick:()=>o("dark"===r?"light":"dark"),disabled:!i,title:s,"aria-label":s,"aria-live":"polite",children:[(0,u.jsx)(z,{className:(0,a.Z)($.toggleIcon,$.lightToggleIcon)}),(0,u.jsx)(U,{className:(0,a.Z)($.toggleIcon,$.darkToggleIcon)})]})})}const q=r.memo(G),H={darkNavbarColorModeToggle:"darkNavbarColorModeToggle_X3D1"};function Z(e){let{className:t}=e;const n=(0,w.L)().navbar.style,r=(0,w.L)().colorMode.disableSwitch,{colorMode:a,setColorMode:o}=(0,F.I)();return r?null:(0,u.jsx)(q,{className:t,buttonClassName:"dark"===n?H.darkNavbarColorModeToggle:void 0,value:a,onChange:o})}var V=n(21327);function W(){return(0,u.jsx)(V.Z,{className:"navbar__brand",imageClassName:"navbar__logo",titleClassName:"navbar__title text--truncate"})}function Q(){const e=(0,R.e)();return(0,u.jsx)("button",{type:"button","aria-label":(0,l.I)({id:"theme.docs.sidebar.closeSidebarButtonAriaLabel",message:"Close navigation bar",description:"The ARIA label for close button of mobile sidebar"}),className:"clean-btn navbar-sidebar__close",onClick:()=>e.toggle(),children:(0,u.jsx)(x,{color:"var(--ifm-color-emphasis-600)"})})}function Y(){return(0,u.jsxs)("div",{className:"navbar-sidebar__brand",children:[(0,u.jsx)(W,{}),(0,u.jsx)(Z,{className:"margin-right--md"}),(0,u.jsx)(Q,{})]})}var K=n(39960),X=n(44996),J=n(13919);function ee(e,t){return void 0!==e&&void 0!==t&&new RegExp(e,"gi").test(t)}var te=n(39471);function ne(e){let{activeBasePath:t,activeBaseRegex:n,to:r,href:a,label:o,html:i,isDropdownLink:s,prependBaseUrlToHref:l,...c}=e;const d=(0,X.Z)(r),f=(0,X.Z)(t),p=(0,X.Z)(a,{forcePrependBaseUrl:!0}),m=o&&a&&!(0,J.Z)(a),h=i?{dangerouslySetInnerHTML:{__html:i}}:{children:(0,u.jsxs)(u.Fragment,{children:[o,m&&(0,u.jsx)(te.Z,{...s&&{width:12,height:12}})]})};return a?(0,u.jsx)(K.Z,{href:l?p:a,...c,...h}):(0,u.jsx)(K.Z,{to:d,isNavLink:!0,...(t||n)&&{isActive:(e,t)=>n?ee(n,t.pathname):t.pathname.startsWith(f)},...c,...h})}function re(e){let{className:t,isDropdownItem:n=!1,...r}=e;const o=(0,u.jsx)(ne,{className:(0,a.Z)(n?"dropdown__link":"navbar__item navbar__link",t),isDropdownLink:n,...r});return n?(0,u.jsx)("li",{children:o}):o}function ae(e){let{className:t,isDropdownItem:n,...r}=e;return(0,u.jsx)("li",{className:"menu__list-item",children:(0,u.jsx)(ne,{className:(0,a.Z)("menu__link",t),...r})})}function oe(e){let{mobile:t=!1,position:n,...r}=e;const a=t?ae:re;return(0,u.jsx)(a,{...r,activeClassName:r.activeClassName??(t?"menu__link--active":"navbar__link--active")})}var ie=n(86043),se=n(48596),le=n(52263);function ce(e,t){return e.some((e=>function(e,t){return!!(0,se.Mg)(e.to,t)||!!ee(e.activeBaseRegex,t)||!(!e.activeBasePath||!t.startsWith(e.activeBasePath))}(e,t)))}function ue(e){let{items:t,position:n,className:o,onClick:i,...s}=e;const l=(0,r.useRef)(null),[c,d]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{const e=e=>{l.current&&!l.current.contains(e.target)&&d(!1)};return document.addEventListener("mousedown",e),document.addEventListener("touchstart",e),document.addEventListener("focusin",e),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),document.removeEventListener("focusin",e)}}),[l]),(0,u.jsxs)("div",{ref:l,className:(0,a.Z)("navbar__item","dropdown","dropdown--hoverable",{"dropdown--right":"right"===n,"dropdown--show":c}),children:[(0,u.jsx)(ne,{"aria-haspopup":"true","aria-expanded":c,role:"button",href:s.to?void 0:"#",className:(0,a.Z)("navbar__link",o),...s,onClick:s.to?void 0:e=>e.preventDefault(),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),d(!c))},children:s.children??s.label}),(0,u.jsx)("ul",{className:"dropdown__menu",children:t.map(((e,t)=>(0,r.createElement)(Ce,{isDropdownItem:!0,activeClassName:"dropdown__link--active",...e,key:t})))})]})}function de(e){let{items:t,className:n,position:o,onClick:i,...l}=e;const c=function(){const{siteConfig:{baseUrl:e}}=(0,le.Z)(),{pathname:t}=(0,s.TH)();return t.replace(e,"/")}(),d=ce(t,c),{collapsed:f,toggleCollapsed:p,setCollapsed:m}=(0,ie.u)({initialState:()=>!d});return(0,r.useEffect)((()=>{d&&m(!d)}),[c,d,m]),(0,u.jsxs)("li",{className:(0,a.Z)("menu__list-item",{"menu__list-item--collapsed":f}),children:[(0,u.jsx)(ne,{role:"button",className:(0,a.Z)("menu__link menu__link--sublist menu__link--sublist-caret",n),...l,onClick:e=>{e.preventDefault(),p()},children:l.children??l.label}),(0,u.jsx)(ie.z,{lazy:!0,as:"ul",className:"menu__list",collapsed:f,children:t.map(((e,t)=>(0,r.createElement)(Ce,{mobile:!0,isDropdownItem:!0,onClick:i,activeClassName:"menu__link--active",...e,key:t})))})]})}function fe(e){let{mobile:t=!1,...n}=e;const r=t?de:ue;return(0,u.jsx)(r,{...n})}var pe=n(94711);function me(e){let{width:t=20,height:n=20,...r}=e;return(0,u.jsx)("svg",{viewBox:"0 0 24 24",width:t,height:n,"aria-hidden":!0,...r,children:(0,u.jsx)("path",{fill:"currentColor",d:"M12.87 15.07l-2.54-2.51.03-.03c1.74-1.94 2.98-4.17 3.71-6.53H17V4h-7V2H8v2H1v1.99h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"})})}const he="iconLanguage_nlXk";const ge=()=>null,be={navbarSearchContainer:"navbarSearchContainer_Bca1"};function ve(e){let{children:t,className:n}=e;return(0,u.jsx)("div",{className:(0,a.Z)(n,be.navbarSearchContainer),children:t})}var ye=n(94104),we=n(52802);var ke=n(60373);const xe=e=>e.docs.find((t=>t.id===e.mainDocId));const Se={default:oe,localeDropdown:function(e){let{mobile:t,dropdownItemsBefore:n,dropdownItemsAfter:r,queryString:a="",...o}=e;const{i18n:{currentLocale:i,locales:c,localeConfigs:d}}=(0,le.Z)(),f=(0,pe.l)(),{search:p,hash:m}=(0,s.TH)(),h=[...n,...c.map((e=>{const n=`${`pathname://${f.createUrl({locale:e,fullyQualified:!1})}`}${p}${m}${a}`;return{label:d[e].label,lang:d[e].htmlLang,to:n,target:"_self",autoAddBaseUrl:!1,className:e===i?t?"menu__link--active":"dropdown__link--active":""}})),...r],g=t?(0,l.I)({message:"Languages",id:"theme.navbar.mobileLanguageDropdown.label",description:"The label for the mobile language switcher dropdown"}):d[i].label;return(0,u.jsx)(fe,{...o,mobile:t,label:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(me,{className:he}),g]}),items:h})},search:function(e){let{mobile:t,className:n}=e;return t?null:(0,u.jsx)(ve,{className:n,children:(0,u.jsx)(ge,{})})},dropdown:fe,html:function(e){let{value:t,className:n,mobile:r=!1,isDropdownItem:o=!1}=e;const i=o?"li":"div";return(0,u.jsx)(i,{className:(0,a.Z)({navbar__item:!r&&!o,"menu__list-item":r},n),dangerouslySetInnerHTML:{__html:t}})},doc:function(e){let{docId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,ye.Iw)(r),i=(0,we.vY)(t,r),s=o?.path===i?.path;return null===i||i.unlisted&&!s?null:(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>s||!!o?.sidebar&&o.sidebar===i.sidebar,label:n??i.id,to:i.path})},docSidebar:function(e){let{sidebarId:t,label:n,docsPluginId:r,...a}=e;const{activeDoc:o}=(0,ye.Iw)(r),i=(0,we.oz)(t,r).link;if(!i)throw new Error(`DocSidebarNavbarItem: Sidebar with ID "${t}" doesn't have anything to be linked to.`);return(0,u.jsx)(oe,{exact:!0,...a,isActive:()=>o?.sidebar===t,label:n??i.label,to:i.path})},docsVersion:function(e){let{label:t,to:n,docsPluginId:r,...a}=e;const o=(0,we.lO)(r)[0],i=t??o.label,s=n??(e=>e.docs.find((t=>t.id===e.mainDocId)))(o).path;return(0,u.jsx)(oe,{...a,label:i,to:s})},docsVersionDropdown:function(e){let{mobile:t,docsPluginId:n,dropdownActiveClassDisabled:r,dropdownItemsBefore:a,dropdownItemsAfter:o,...i}=e;const{search:c,hash:d}=(0,s.TH)(),f=(0,ye.Iw)(n),p=(0,ye.gB)(n),{savePreferredVersionName:m}=(0,ke.J)(n),h=[...a,...p.map((e=>{const t=f.alternateDocVersions[e.name]??xe(e);return{label:e.label,to:`${t.path}${c}${d}`,isActive:()=>e===f.activeVersion,onClick:()=>m(e.name)}})),...o],g=(0,we.lO)(n)[0],b=t&&h.length>1?(0,l.I)({id:"theme.navbar.mobileVersionsDropdown.label",message:"Versions",description:"The label for the navbar versions dropdown on mobile view"}):g.label,v=t&&h.length>1?void 0:xe(g).path;return h.length<=1?(0,u.jsx)(oe,{...i,mobile:t,label:b,to:v,isActive:r?()=>!1:void 0}):(0,u.jsx)(fe,{...i,mobile:t,label:b,to:v,items:h,isActive:r?()=>!1:void 0})}};function Ce(e){let{type:t,...n}=e;const r=function(e,t){return e&&"default"!==e?e:"items"in t?"dropdown":"default"}(t,n),a=Se[r];if(!a)throw new Error(`No NavbarItem component found for type "${t}".`);return(0,u.jsx)(a,{...n})}function Ee(){const e=(0,R.e)(),t=(0,w.L)().navbar.items;return(0,u.jsx)("ul",{className:"menu__list",children:t.map(((t,n)=>(0,r.createElement)(Ce,{mobile:!0,...t,onClick:()=>e.toggle(),key:n})))})}function _e(e){return(0,u.jsx)("button",{...e,type:"button",className:"clean-btn navbar-sidebar__back",children:(0,u.jsx)(l.Z,{id:"theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel",description:"The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)",children:"\u2190 Back to main menu"})})}function Te(){const e=0===(0,w.L)().navbar.items.length,t=O();return(0,u.jsxs)(u.Fragment,{children:[!e&&(0,u.jsx)(_e,{onClick:()=>t.hide()}),t.content]})}function Pe(){const e=(0,R.e)();var t;return void 0===(t=e.shown)&&(t=!0),(0,r.useEffect)((()=>(document.body.style.overflow=t?"hidden":"visible",()=>{document.body.style.overflow="visible"})),[t]),e.shouldRender?(0,u.jsx)(I,{header:(0,u.jsx)(Y,{}),primaryMenu:(0,u.jsx)(Ee,{}),secondaryMenu:(0,u.jsx)(Te,{})}):null}const Re={navbarHideable:"navbarHideable_m1mJ",navbarHidden:"navbarHidden_jGov"};function De(e){return(0,u.jsx)("div",{role:"presentation",...e,className:(0,a.Z)("navbar-sidebar__backdrop",e.className)})}function Me(e){let{children:t}=e;const{navbar:{hideOnScroll:n,style:o}}=(0,w.L)(),i=(0,R.e)(),{navbarRef:s,isNavbarVisible:d}=function(e){const[t,n]=(0,r.useState)(e),a=(0,r.useRef)(!1),o=(0,r.useRef)(0),i=(0,r.useCallback)((e=>{null!==e&&(o.current=e.getBoundingClientRect().height)}),[]);return(0,D.RF)(((t,r)=>{let{scrollY:i}=t;if(!e)return;if(i=s?n(!1):i+c{if(!e)return;const r=t.location.hash;if(r?document.getElementById(r.substring(1)):void 0)return a.current=!0,void n(!1);n(!0)})),{navbarRef:i,isNavbarVisible:t}}(n);return(0,u.jsxs)("nav",{ref:s,"aria-label":(0,l.I)({id:"theme.NavBar.navAriaLabel",message:"Main",description:"The ARIA label for the main navigation"}),className:(0,a.Z)("navbar","navbar--fixed-top",n&&[Re.navbarHideable,!d&&Re.navbarHidden],{"navbar--dark":"dark"===o,"navbar--primary":"primary"===o,"navbar-sidebar--show":i.shown}),children:[t,(0,u.jsx)(De,{onClick:i.toggle}),(0,u.jsx)(Pe,{})]})}var Ae=n(69690);const Le="right";function je(e){let{width:t=30,height:n=30,className:r,...a}=e;return(0,u.jsx)("svg",{className:r,width:t,height:n,viewBox:"0 0 30 30","aria-hidden":"true",...a,children:(0,u.jsx)("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:"10",strokeWidth:"2",d:"M4 7h22M4 15h22M4 23h22"})})}function Ne(){const{toggle:e,shown:t}=(0,R.e)();return(0,u.jsx)("button",{onClick:e,"aria-label":(0,l.I)({id:"theme.docs.sidebar.toggleSidebarButtonAriaLabel",message:"Toggle navigation bar",description:"The ARIA label for hamburger menu button of mobile navigation"}),"aria-expanded":t,className:"navbar__toggle clean-btn",type:"button",children:(0,u.jsx)(je,{})})}const Oe={colorModeToggle:"colorModeToggle_DEke"};function Ie(e){let{items:t}=e;return(0,u.jsx)(u.Fragment,{children:t.map(((e,t)=>(0,u.jsx)(Ae.QW,{onError:t=>new Error(`A theme navbar item failed to render.\nPlease double-check the following navbar item (themeConfig.navbar.items) of your Docusaurus config:\n${JSON.stringify(e,null,2)}`,{cause:t}),children:(0,u.jsx)(Ce,{...e})},t)))})}function Fe(e){let{left:t,right:n}=e;return(0,u.jsxs)("div",{className:"navbar__inner",children:[(0,u.jsx)("div",{className:"navbar__items",children:t}),(0,u.jsx)("div",{className:"navbar__items navbar__items--right",children:n})]})}function Be(){const e=(0,R.e)(),t=(0,w.L)().navbar.items,[n,r]=function(e){function t(e){return"left"===(e.position??Le)}return[e.filter(t),e.filter((e=>!t(e)))]}(t),a=t.find((e=>"search"===e.type));return(0,u.jsx)(Fe,{left:(0,u.jsxs)(u.Fragment,{children:[!e.disabled&&(0,u.jsx)(Ne,{}),(0,u.jsx)(W,{}),(0,u.jsx)(Ie,{items:n})]}),right:(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)(Ie,{items:r}),(0,u.jsx)(Z,{className:Oe.colorModeToggle}),!a&&(0,u.jsx)(ve,{children:(0,u.jsx)(ge,{})})]})})}function ze(){return(0,u.jsx)(Me,{children:(0,u.jsx)(Be,{})})}function Ue(e){let{item:t}=e;const{to:n,href:r,label:a,prependBaseUrlToHref:o,...i}=t,s=(0,X.Z)(n),l=(0,X.Z)(r,{forcePrependBaseUrl:!0});return(0,u.jsxs)(K.Z,{className:"footer__link-item",...r?{href:o?l:r}:{to:s},...i,children:[a,r&&!(0,J.Z)(r)&&(0,u.jsx)(te.Z,{})]})}function $e(e){let{item:t}=e;return t.html?(0,u.jsx)("li",{className:"footer__item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)("li",{className:"footer__item",children:(0,u.jsx)(Ue,{item:t})},t.href??t.to)}function Ge(e){let{column:t}=e;return(0,u.jsxs)("div",{className:"col footer__col",children:[(0,u.jsx)("div",{className:"footer__title",children:t.title}),(0,u.jsx)("ul",{className:"footer__items clean-list",children:t.items.map(((e,t)=>(0,u.jsx)($e,{item:e},t)))})]})}function qe(e){let{columns:t}=e;return(0,u.jsx)("div",{className:"row footer__links",children:t.map(((e,t)=>(0,u.jsx)(Ge,{column:e},t)))})}function He(){return(0,u.jsx)("span",{className:"footer__link-separator",children:"\xb7"})}function Ze(e){let{item:t}=e;return t.html?(0,u.jsx)("span",{className:"footer__link-item",dangerouslySetInnerHTML:{__html:t.html}}):(0,u.jsx)(Ue,{item:t})}function Ve(e){let{links:t}=e;return(0,u.jsx)("div",{className:"footer__links text--center",children:(0,u.jsx)("div",{className:"footer__links",children:t.map(((e,n)=>(0,u.jsxs)(r.Fragment,{children:[(0,u.jsx)(Ze,{item:e}),t.length!==n+1&&(0,u.jsx)(He,{})]},n)))})})}function We(e){let{links:t}=e;return function(e){return"title"in e[0]}(t)?(0,u.jsx)(qe,{columns:t}):(0,u.jsx)(Ve,{links:t})}var Qe=n(19965);const Ye={footerLogoLink:"footerLogoLink_BH7S"};function Ke(e){let{logo:t}=e;const{withBaseUrl:n}=(0,X.C)(),r={light:n(t.src),dark:n(t.srcDark??t.src)};return(0,u.jsx)(Qe.Z,{className:(0,a.Z)("footer__logo",t.className),alt:t.alt,sources:r,width:t.width,height:t.height,style:t.style})}function Xe(e){let{logo:t}=e;return t.href?(0,u.jsx)(K.Z,{href:t.href,className:Ye.footerLogoLink,target:t.target,children:(0,u.jsx)(Ke,{logo:t})}):(0,u.jsx)(Ke,{logo:t})}function Je(e){let{copyright:t}=e;return(0,u.jsx)("div",{className:"footer__copyright",dangerouslySetInnerHTML:{__html:t}})}function et(e){let{style:t,links:n,logo:r,copyright:o}=e;return(0,u.jsx)("footer",{className:(0,a.Z)("footer",{"footer--dark":"dark"===t}),children:(0,u.jsxs)("div",{className:"container container-fluid",children:[n,(r||o)&&(0,u.jsxs)("div",{className:"footer__bottom text--center",children:[r&&(0,u.jsx)("div",{className:"margin-bottom--sm",children:r}),o]})]})})}function tt(){const{footer:e}=(0,w.L)();if(!e)return null;const{copyright:t,links:n,logo:r,style:a}=e;return(0,u.jsx)(et,{style:a,links:n&&n.length>0&&(0,u.jsx)(We,{links:n}),logo:r&&(0,u.jsx)(Xe,{logo:r}),copyright:t&&(0,u.jsx)(Je,{copyright:t})})}const nt=r.memo(tt),rt=(0,M.Qc)([F.S,k.pl,D.OC,ke.L5,i.VC,function(e){let{children:t}=e;return(0,u.jsx)(A.n2,{children:(0,u.jsx)(R.M,{children:(0,u.jsx)(j,{children:t})})})}]);function at(e){let{children:t}=e;return(0,u.jsx)(rt,{children:t})}var ot=n(92503);function it(e){let{error:t,tryAgain:n}=e;return(0,u.jsx)("main",{className:"container margin-vert--xl",children:(0,u.jsx)("div",{className:"row",children:(0,u.jsxs)("div",{className:"col col--6 col--offset-3",children:[(0,u.jsx)(ot.Z,{as:"h1",className:"hero__title",children:(0,u.jsx)(l.Z,{id:"theme.ErrorPageContent.title",description:"The title of the fallback page when the page crashed",children:"This page crashed."})}),(0,u.jsx)("div",{className:"margin-vert--lg",children:(0,u.jsx)(Ae.Cw,{onClick:n,className:"button button--primary shadow--lw"})}),(0,u.jsx)("hr",{}),(0,u.jsx)("div",{className:"margin-vert--md",children:(0,u.jsx)(Ae.aG,{error:t})})]})})})}const st={mainWrapper:"mainWrapper_z2l0"};function lt(e){const{children:t,noFooter:n,wrapperClassName:r,title:s,description:l}=e;return(0,b.t)(),(0,u.jsxs)(at,{children:[(0,u.jsx)(i.d,{title:s,description:l}),(0,u.jsx)(y,{}),(0,u.jsx)(P,{}),(0,u.jsx)(ze,{}),(0,u.jsx)("div",{id:d,className:(0,a.Z)(g.k.wrapper.main,st.mainWrapper,r),children:(0,u.jsx)(o.Z,{fallback:e=>(0,u.jsx)(it,{...e}),children:t})}),!n&&(0,u.jsx)(nt,{})]})}},21327:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});n(67294);var r=n(39960),a=n(44996),o=n(52263),i=n(86668),s=n(19965),l=n(85893);function c(e){let{logo:t,alt:n,imageClassName:r}=e;const o={light:(0,a.Z)(t.src),dark:(0,a.Z)(t.srcDark||t.src)},i=(0,l.jsx)(s.Z,{className:t.className,sources:o,height:t.height,width:t.width,alt:n,style:t.style});return r?(0,l.jsx)("div",{className:r,children:i}):i}function u(e){const{siteConfig:{title:t}}=(0,o.Z)(),{navbar:{title:n,logo:s}}=(0,i.L)(),{imageClassName:u,titleClassName:d,...f}=e,p=(0,a.Z)(s?.href||"/"),m=n?"":t,h=s?.alt??m;return(0,l.jsxs)(r.Z,{to:p,...f,...s?.target&&{target:s.target},children:[s&&(0,l.jsx)(c,{logo:s,alt:h,imageClassName:u}),null!=n&&(0,l.jsx)("b",{className:d,children:n})]})}},90197:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});n(67294);var r=n(35742),a=n(85893);function o(e){let{locale:t,version:n,tag:o}=e;const i=t;return(0,a.jsxs)(r.Z,{children:[t&&(0,a.jsx)("meta",{name:"docusaurus_locale",content:t}),n&&(0,a.jsx)("meta",{name:"docusaurus_version",content:n}),o&&(0,a.jsx)("meta",{name:"docusaurus_tag",content:o}),i&&(0,a.jsx)("meta",{name:"docsearch:language",content:i}),n&&(0,a.jsx)("meta",{name:"docsearch:version",content:n}),o&&(0,a.jsx)("meta",{name:"docsearch:docusaurus_tag",content:o})]})}},19965:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(67294),a=n(86010),o=n(72389),i=n(92949);const s={themedComponent:"themedComponent_mlkZ","themedComponent--light":"themedComponent--light_NVdE","themedComponent--dark":"themedComponent--dark_xIcU"};var l=n(85893);function c(e){let{className:t,children:n}=e;const c=(0,o.Z)(),{colorMode:u}=(0,i.I)();return(0,l.jsx)(l.Fragment,{children:(c?"dark"===u?["dark"]:["light"]:["light","dark"]).map((e=>{const o=n({theme:e,className:(0,a.Z)(t,s.themedComponent,s[`themedComponent--${e}`])});return(0,l.jsx)(r.Fragment,{children:o},e)}))})}function u(e){const{sources:t,className:n,alt:r,...a}=e;return(0,l.jsx)(c,{className:n,children:e=>{let{theme:n,className:o}=e;return(0,l.jsx)("img",{src:t[n],alt:r,className:o,...a})}})}},86043:(e,t,n)=>{"use strict";n.d(t,{u:()=>c,z:()=>b});var r=n(67294),a=n(10412),o=n(20469),i=n(91442),s=n(85893);const l="ease-in-out";function c(e){let{initialState:t}=e;const[n,a]=(0,r.useState)(t??!1),o=(0,r.useCallback)((()=>{a((e=>!e))}),[]);return{collapsed:n,setCollapsed:a,toggleCollapsed:o}}const u={display:"none",overflow:"hidden",height:"0px"},d={display:"block",overflow:"visible",height:"auto"};function f(e,t){const n=t?u:d;e.style.display=n.display,e.style.overflow=n.overflow,e.style.height=n.height}function p(e){let{collapsibleRef:t,collapsed:n,animation:a}=e;const o=(0,r.useRef)(!1);(0,r.useEffect)((()=>{const e=t.current;function r(){const t=e.scrollHeight,n=a?.duration??function(e){if((0,i.n)())return 1;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}(t);return{transition:`height ${n}ms ${a?.easing??l}`,height:`${t}px`}}function s(){const t=r();e.style.transition=t.transition,e.style.height=t.height}if(!o.current)return f(e,n),void(o.current=!0);return e.style.willChange="height",function(){const t=requestAnimationFrame((()=>{n?(s(),requestAnimationFrame((()=>{e.style.height=u.height,e.style.overflow=u.overflow}))):(e.style.display="block",requestAnimationFrame((()=>{s()})))}));return()=>cancelAnimationFrame(t)}()}),[t,n,a])}function m(e){if(!a.default.canUseDOM)return e?u:d}function h(e){let{as:t="div",collapsed:n,children:a,animation:o,onCollapseTransitionEnd:i,className:l,disableSSRStyle:c}=e;const u=(0,r.useRef)(null);return p({collapsibleRef:u,collapsed:n,animation:o}),(0,s.jsx)(t,{ref:u,style:c?void 0:m(n),onTransitionEnd:e=>{"height"===e.propertyName&&(f(u.current,n),i?.(n))},className:l,children:a})}function g(e){let{collapsed:t,...n}=e;const[a,i]=(0,r.useState)(!t),[l,c]=(0,r.useState)(t);return(0,o.Z)((()=>{t||i(!0)}),[t]),(0,o.Z)((()=>{a&&c(t)}),[a,t]),a?(0,s.jsx)(h,{...n,collapsed:l}):null}function b(e){let{lazy:t,...n}=e;const r=t?g:h;return(0,s.jsx)(r,{...n})}},59689:(e,t,n)=>{"use strict";n.d(t,{nT:()=>h,pl:()=>m});var r=n(67294),a=n(72389),o=n(50012),i=n(902),s=n(86668),l=n(85893);const c=(0,o.WA)("docusaurus.announcement.dismiss"),u=(0,o.WA)("docusaurus.announcement.id"),d=()=>"true"===c.get(),f=e=>c.set(String(e)),p=r.createContext(null);function m(e){let{children:t}=e;const n=function(){const{announcementBar:e}=(0,s.L)(),t=(0,a.Z)(),[n,o]=(0,r.useState)((()=>!!t&&d()));(0,r.useEffect)((()=>{o(d())}),[]);const i=(0,r.useCallback)((()=>{f(!0),o(!0)}),[]);return(0,r.useEffect)((()=>{if(!e)return;const{id:t}=e;let n=u.get();"annoucement-bar"===n&&(n="announcement-bar");const r=t!==n;u.set(t),r&&f(!1),!r&&d()||o(!1)}),[e]),(0,r.useMemo)((()=>({isActive:!!e&&!n,close:i})),[e,n,i])}();return(0,l.jsx)(p.Provider,{value:n,children:t})}function h(){const e=(0,r.useContext)(p);if(!e)throw new i.i6("AnnouncementBarProvider");return e}},92949:(e,t,n)=>{"use strict";n.d(t,{I:()=>b,S:()=>g});var r=n(67294),a=n(10412),o=n(902),i=n(50012),s=n(86668),l=n(85893);const c=r.createContext(void 0),u="theme",d=(0,i.WA)(u),f={light:"light",dark:"dark"},p=e=>e===f.dark?f.dark:f.light,m=e=>a.default.canUseDOM?p(document.documentElement.getAttribute("data-theme")):p(e),h=e=>{d.set(p(e))};function g(e){let{children:t}=e;const n=function(){const{colorMode:{defaultMode:e,disableSwitch:t,respectPrefersColorScheme:n}}=(0,s.L)(),[a,o]=(0,r.useState)(m(e));(0,r.useEffect)((()=>{t&&d.del()}),[t]);const i=(0,r.useCallback)((function(t,r){void 0===r&&(r={});const{persist:a=!0}=r;t?(o(t),a&&h(t)):(o(n?window.matchMedia("(prefers-color-scheme: dark)").matches?f.dark:f.light:e),d.del())}),[n,e]);(0,r.useEffect)((()=>{document.documentElement.setAttribute("data-theme",p(a))}),[a]),(0,r.useEffect)((()=>{if(t)return;const e=e=>{if(e.key!==u)return;const t=d.get();null!==t&&i(p(t))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)}),[t,i]);const l=(0,r.useRef)(!1);return(0,r.useEffect)((()=>{if(t&&!n)return;const e=window.matchMedia("(prefers-color-scheme: dark)"),r=()=>{window.matchMedia("print").matches||l.current?l.current=window.matchMedia("print").matches:i(null)};return e.addListener(r),()=>e.removeListener(r)}),[i,t,n]),(0,r.useMemo)((()=>({colorMode:a,setColorMode:i,get isDarkTheme(){return a===f.dark},setLightTheme(){i(f.light)},setDarkTheme(){i(f.dark)}})),[a,i])}();return(0,l.jsx)(c.Provider,{value:n,children:t})}function b(){const e=(0,r.useContext)(c);if(null==e)throw new o.i6("ColorModeProvider","Please see https://docusaurus.io/docs/api/themes/configuration#use-color-mode.");return e}},60373:(e,t,n)=>{"use strict";n.d(t,{J:()=>y,L5:()=>b});var r=n(67294),a=n(94104),o=n(29935),i=n(86668),s=n(52802),l=n(902),c=n(50012),u=n(85893);const d=e=>`docs-preferred-version-${e}`,f={save:(e,t,n)=>{(0,c.WA)(d(e),{persistence:t}).set(n)},read:(e,t)=>(0,c.WA)(d(e),{persistence:t}).get(),clear:(e,t)=>{(0,c.WA)(d(e),{persistence:t}).del()}},p=e=>Object.fromEntries(e.map((e=>[e,{preferredVersionName:null}])));const m=r.createContext(null);function h(){const e=(0,a._r)(),t=(0,i.L)().docs.versionPersistence,n=(0,r.useMemo)((()=>Object.keys(e)),[e]),[o,s]=(0,r.useState)((()=>p(n)));(0,r.useEffect)((()=>{s(function(e){let{pluginIds:t,versionPersistence:n,allDocsData:r}=e;function a(e){const t=f.read(e,n);return r[e].versions.some((e=>e.name===t))?{preferredVersionName:t}:(f.clear(e,n),{preferredVersionName:null})}return Object.fromEntries(t.map((e=>[e,a(e)])))}({allDocsData:e,versionPersistence:t,pluginIds:n}))}),[e,t,n]);return[o,(0,r.useMemo)((()=>({savePreferredVersion:function(e,n){f.save(e,t,n),s((t=>({...t,[e]:{preferredVersionName:n}})))}})),[t])]}function g(e){let{children:t}=e;const n=h();return(0,u.jsx)(m.Provider,{value:n,children:t})}function b(e){let{children:t}=e;return s.cE?(0,u.jsx)(g,{children:t}):(0,u.jsx)(u.Fragment,{children:t})}function v(){const e=(0,r.useContext)(m);if(!e)throw new l.i6("DocsPreferredVersionContextProvider");return e}function y(e){void 0===e&&(e=o.m);const t=(0,a.zh)(e),[n,i]=v(),{preferredVersionName:s}=n[e];return{preferredVersion:t.versions.find((e=>e.name===s))??null,savePreferredVersionName:(0,r.useCallback)((t=>{i.savePreferredVersion(e,t)}),[i,e])}}},1116:(e,t,n)=>{"use strict";n.d(t,{V:()=>c,b:()=>l});var r=n(67294),a=n(902),o=n(85893);const i=Symbol("EmptyContext"),s=r.createContext(i);function l(e){let{children:t,name:n,items:a}=e;const i=(0,r.useMemo)((()=>n&&a?{name:n,items:a}:null),[n,a]);return(0,o.jsx)(s.Provider,{value:i,children:t})}function c(){const e=(0,r.useContext)(s);if(e===i)throw new a.i6("DocsSidebarProvider");return e}},74477:(e,t,n)=>{"use strict";n.d(t,{E:()=>l,q:()=>s});var r=n(67294),a=n(902),o=n(85893);const i=r.createContext(null);function s(e){let{children:t,version:n}=e;return(0,o.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(null===e)throw new a.i6("DocsVersionProvider");return e}},72961:(e,t,n)=>{"use strict";n.d(t,{M:()=>p,e:()=>m});var r=n(67294),a=n(13102),o=n(87524),i=n(16550),s=n(902);function l(e){!function(e){const t=(0,i.k6)(),n=(0,s.zX)(e);(0,r.useEffect)((()=>t.block(((e,t)=>n(e,t)))),[t,n])}(((t,n)=>{if("POP"===n)return e(t,n)}))}var c=n(86668),u=n(85893);const d=r.createContext(void 0);function f(){const e=function(){const e=(0,a.HY)(),{items:t}=(0,c.L)().navbar;return 0===t.length&&!e.component}(),t=(0,o.i)(),n=!e&&"mobile"===t,[i,s]=(0,r.useState)(!1);l((()=>{if(i)return s(!1),!1}));const u=(0,r.useCallback)((()=>{s((e=>!e))}),[]);return(0,r.useEffect)((()=>{"desktop"===t&&s(!1)}),[t]),(0,r.useMemo)((()=>({disabled:e,shouldRender:n,toggle:u,shown:i})),[e,n,u,i])}function p(e){let{children:t}=e;const n=f();return(0,u.jsx)(d.Provider,{value:n,children:t})}function m(){const e=r.useContext(d);if(void 0===e)throw new s.i6("NavbarMobileSidebarProvider");return e}},13102:(e,t,n)=>{"use strict";n.d(t,{HY:()=>l,Zo:()=>c,n2:()=>s});var r=n(67294),a=n(902),o=n(85893);const i=r.createContext(null);function s(e){let{children:t}=e;const n=(0,r.useState)({component:null,props:null});return(0,o.jsx)(i.Provider,{value:n,children:t})}function l(){const e=(0,r.useContext)(i);if(!e)throw new a.i6("NavbarSecondaryMenuContentProvider");return e[0]}function c(e){let{component:t,props:n}=e;const o=(0,r.useContext)(i);if(!o)throw new a.i6("NavbarSecondaryMenuContentProvider");const[,s]=o,l=(0,a.Ql)(n);return(0,r.useEffect)((()=>{s({component:t,props:l})}),[s,t,l]),(0,r.useEffect)((()=>()=>s({component:null,props:null})),[s]),null}},19727:(e,t,n)=>{"use strict";n.d(t,{h:()=>a,t:()=>o});var r=n(67294);const a="navigation-with-keyboard";function o(){(0,r.useEffect)((()=>{function e(e){"keydown"===e.type&&"Tab"===e.key&&document.body.classList.add(a),"mousedown"===e.type&&document.body.classList.remove(a)}return document.addEventListener("keydown",e),document.addEventListener("mousedown",e),()=>{document.body.classList.remove(a),document.removeEventListener("keydown",e),document.removeEventListener("mousedown",e)}}),[])}},87524:(e,t,n)=>{"use strict";n.d(t,{i:()=>s});var r=n(67294),a=n(10412);const o={desktop:"desktop",mobile:"mobile",ssr:"ssr"},i=996;function s(){const[e,t]=(0,r.useState)((()=>"ssr"));return(0,r.useEffect)((()=>{function e(){t(function(){if(!a.default.canUseDOM)throw new Error("getWindowSize() should only be called after React hydration");return window.innerWidth>i?o.desktop:o.mobile}())}return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[]),e}},35281:(e,t,n)=>{"use strict";n.d(t,{k:()=>r});const r={page:{blogListPage:"blog-list-page",blogPostPage:"blog-post-page",blogTagsListPage:"blog-tags-list-page",blogTagPostListPage:"blog-tags-post-list-page",docsDocPage:"docs-doc-page",docsTagsListPage:"docs-tags-list-page",docsTagDocListPage:"docs-tags-doc-list-page",mdxPage:"mdx-page"},wrapper:{main:"main-wrapper",blogPages:"blog-wrapper",docsPages:"docs-wrapper",mdxPages:"mdx-wrapper"},common:{editThisPage:"theme-edit-this-page",lastUpdated:"theme-last-updated",backToTopButton:"theme-back-to-top-button",codeBlock:"theme-code-block",admonition:"theme-admonition",unlistedBanner:"theme-unlisted-banner",admonitionType:e=>`theme-admonition-${e}`},layout:{},docs:{docVersionBanner:"theme-doc-version-banner",docVersionBadge:"theme-doc-version-badge",docBreadcrumbs:"theme-doc-breadcrumbs",docMarkdown:"theme-doc-markdown",docTocMobile:"theme-doc-toc-mobile",docTocDesktop:"theme-doc-toc-desktop",docFooter:"theme-doc-footer",docFooterTagsRow:"theme-doc-footer-tags-row",docFooterEditMetaRow:"theme-doc-footer-edit-meta-row",docSidebarContainer:"theme-doc-sidebar-container",docSidebarMenu:"theme-doc-sidebar-menu",docSidebarItemCategory:"theme-doc-sidebar-item-category",docSidebarItemLink:"theme-doc-sidebar-item-link",docSidebarItemCategoryLevel:e=>`theme-doc-sidebar-item-category-level-${e}`,docSidebarItemLinkLevel:e=>`theme-doc-sidebar-item-link-level-${e}`},blog:{}}},91442:(e,t,n)=>{"use strict";function r(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}n.d(t,{n:()=>r})},52802:(e,t,n)=>{"use strict";n.d(t,{MN:()=>T,LM:()=>m,_F:()=>v,cE:()=>f,jA:()=>h,xz:()=>p,SN:()=>_,lO:()=>S,vY:()=>E,oz:()=>C,s1:()=>x,f:()=>w});var r=n(67294),a=n(16550),o=n(18790),i=n(94104),s=n(60373),l=n(74477),c=n(1116);function u(e){return Array.from(new Set(e))}var d=n(48596);const f=!!i._r;function p(e){const t=(0,l.E)();if(!e)return;const n=t.docs[e];if(!n)throw new Error(`no version doc found by id=${e}`);return n}function m(e){return"link"!==e.type||e.unlisted?"category"===e.type?function(e){if(e.href&&!e.linkUnlisted)return e.href;for(const t of e.items){const e=m(t);if(e)return e}}(e):void 0:e.href}function h(){const{pathname:e}=(0,a.TH)(),t=(0,c.V)();if(!t)throw new Error("Unexpected: cant find current sidebar in context");const n=k({sidebarItems:t.items,pathname:e,onlyCategories:!0}).slice(-1)[0];if(!n)throw new Error(`${e} is not associated with a category. useCurrentSidebarCategory() should only be used on category index pages.`);return n}const g=(e,t)=>void 0!==e&&(0,d.Mg)(e,t),b=(e,t)=>e.some((e=>v(e,t)));function v(e,t){return"link"===e.type?g(e.href,t):"category"===e.type&&(g(e.href,t)||b(e.items,t))}function y(e,t){switch(e.type){case"category":return v(e,t)||e.items.some((e=>y(e,t)));case"link":return!e.unlisted||v(e,t);default:return!1}}function w(e,t){return(0,r.useMemo)((()=>e.filter((e=>y(e,t)))),[e,t])}function k(e){let{sidebarItems:t,pathname:n,onlyCategories:r=!1}=e;const a=[];return function e(t){for(const o of t)if("category"===o.type&&((0,d.Mg)(o.href,n)||e(o.items))||"link"===o.type&&(0,d.Mg)(o.href,n)){return r&&"category"!==o.type||a.unshift(o),!0}return!1}(t),a}function x(){const e=(0,c.V)(),{pathname:t}=(0,a.TH)(),n=(0,i.gA)()?.pluginData.breadcrumbs;return!1!==n&&e?k({sidebarItems:e.items,pathname:t}):null}function S(e){const{activeVersion:t}=(0,i.Iw)(e),{preferredVersion:n}=(0,s.J)(e),a=(0,i.yW)(e);return(0,r.useMemo)((()=>u([t,n,a].filter(Boolean))),[t,n,a])}function C(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.sidebars?Object.entries(e.sidebars):[])),r=t.find((t=>t[0]===e));if(!r)throw new Error(`Can't find any sidebar with id "${e}" in version${n.length>1?"s":""} ${n.map((e=>e.name)).join(", ")}".\nAvailable sidebar ids are:\n- ${t.map((e=>e[0])).join("\n- ")}`);return r[1]}),[e,n])}function E(e,t){const n=S(t);return(0,r.useMemo)((()=>{const t=n.flatMap((e=>e.docs)),r=t.find((t=>t.id===e));if(!r){if(n.flatMap((e=>e.draftIds)).includes(e))return null;throw new Error(`Couldn't find any doc with id "${e}" in version${n.length>1?"s":""} "${n.map((e=>e.name)).join(", ")}".\nAvailable doc ids are:\n- ${u(t.map((e=>e.id))).join("\n- ")}`)}return r}),[e,n])}function _(e){let{route:t}=e;const n=(0,a.TH)(),r=(0,l.E)(),i=t.routes,s=i.find((e=>(0,a.LX)(n.pathname,e)));if(!s)return null;const c=s.sidebar,u=c?r.docsSidebars[c]:void 0;return{docElement:(0,o.H)(i),sidebarName:c,sidebarItems:u}}function T(e){return e.filter((e=>!("category"===e.type||"link"===e.type)||!!m(e)))}},69690:(e,t,n)=>{"use strict";n.d(t,{aG:()=>u,Ac:()=>c,Cw:()=>l,QW:()=>d});var r=n(67294),a=n(95999),o=n(18780);const i={errorBoundaryError:"errorBoundaryError_a6uf",errorBoundaryFallback:"errorBoundaryFallback_VBag"};var s=n(85893);function l(e){return(0,s.jsx)("button",{type:"button",...e,children:(0,s.jsx)(a.Z,{id:"theme.ErrorPageContent.tryAgain",description:"The label of the button to try again rendering when the React error boundary captures an error",children:"Try again"})})}function c(e){let{error:t,tryAgain:n}=e;return(0,s.jsxs)("div",{className:i.errorBoundaryFallback,children:[(0,s.jsx)("p",{children:t.message}),(0,s.jsx)(l,{onClick:n})]})}function u(e){let{error:t}=e;const n=(0,o.getErrorCausalChain)(t).map((e=>e.message)).join("\n\nCause:\n");return(0,s.jsx)("p",{className:i.errorBoundaryError,children:n})}class d extends r.Component{componentDidCatch(e,t){throw this.props.onError(e,t)}render(){return this.props.children}}},1944:(e,t,n)=>{"use strict";n.d(t,{FG:()=>p,d:()=>d,VC:()=>m});var r=n(67294),a=n(86010),o=n(35742),i=n(30226);function s(){const e=r.useContext(i._);if(!e)throw new Error("Unexpected: no Docusaurus route context found");return e}var l=n(44996),c=n(52263);var u=n(85893);function d(e){let{title:t,description:n,keywords:r,image:a,children:i}=e;const s=function(e){const{siteConfig:t}=(0,c.Z)(),{title:n,titleDelimiter:r}=t;return e?.trim().length?`${e.trim()} ${r} ${n}`:n}(t),{withBaseUrl:d}=(0,l.C)(),f=a?d(a,{absolute:!0}):void 0;return(0,u.jsxs)(o.Z,{children:[t&&(0,u.jsx)("title",{children:s}),t&&(0,u.jsx)("meta",{property:"og:title",content:s}),n&&(0,u.jsx)("meta",{name:"description",content:n}),n&&(0,u.jsx)("meta",{property:"og:description",content:n}),r&&(0,u.jsx)("meta",{name:"keywords",content:Array.isArray(r)?r.join(","):r}),f&&(0,u.jsx)("meta",{property:"og:image",content:f}),f&&(0,u.jsx)("meta",{name:"twitter:image",content:f}),i]})}const f=r.createContext(void 0);function p(e){let{className:t,children:n}=e;const i=r.useContext(f),s=(0,a.Z)(i,t);return(0,u.jsxs)(f.Provider,{value:s,children:[(0,u.jsx)(o.Z,{children:(0,u.jsx)("html",{className:s})}),n]})}function m(e){let{children:t}=e;const n=s(),r=`plugin-${n.plugin.name.replace(/docusaurus-(?:plugin|theme)-(?:content-)?/gi,"")}`;const o=`plugin-id-${n.plugin.id}`;return(0,u.jsx)(p,{className:(0,a.Z)(r,o),children:t})}},902:(e,t,n)=>{"use strict";n.d(t,{D9:()=>s,Qc:()=>u,Ql:()=>c,i6:()=>l,zX:()=>i});var r=n(67294),a=n(20469),o=n(85893);function i(e){const t=(0,r.useRef)(e);return(0,a.Z)((()=>{t.current=e}),[e]),(0,r.useCallback)((function(){return t.current(...arguments)}),[])}function s(e){const t=(0,r.useRef)();return(0,a.Z)((()=>{t.current=e})),t.current}class l extends Error{constructor(e,t){super(),this.name="ReactContextError",this.message=`Hook ${this.stack?.split("\n")[1]?.match(/at (?:\w+\.)?(?\w+)/)?.groups.name??""} is called outside the <${e}>. ${t??""}`}}function c(e){const t=Object.entries(e);return t.sort(((e,t)=>e[0].localeCompare(t[0]))),(0,r.useMemo)((()=>e),t.flat())}function u(e){return t=>{let{children:n}=t;return(0,o.jsx)(o.Fragment,{children:e.reduceRight(((e,t)=>(0,o.jsx)(t,{children:e})),n)})}}},48596:(e,t,n)=>{"use strict";n.d(t,{Mg:()=>i,Ns:()=>s});var r=n(67294),a=n(723),o=n(52263);function i(e,t){const n=e=>(!e||e.endsWith("/")?e:`${e}/`)?.toLowerCase();return n(e)===n(t)}function s(){const{baseUrl:e}=(0,o.Z)().siteConfig;return(0,r.useMemo)((()=>function(e){let{baseUrl:t,routes:n}=e;function r(e){return e.path===t&&!0===e.exact}function a(e){return e.path===t&&!e.exact}return function e(t){if(0===t.length)return;return t.find(r)||e(t.filter(a).flatMap((e=>e.routes??[])))}(n)}({routes:a.Z,baseUrl:e})),[e])}},12466:(e,t,n)=>{"use strict";n.d(t,{Ct:()=>p,OC:()=>c,RF:()=>f});var r=n(67294),a=n(10412),o=n(72389),i=(n(20469),n(902)),s=n(85893);const l=r.createContext(void 0);function c(e){let{children:t}=e;const n=function(){const e=(0,r.useRef)(!0);return(0,r.useMemo)((()=>({scrollEventsEnabledRef:e,enableScrollEvents:()=>{e.current=!0},disableScrollEvents:()=>{e.current=!1}})),[])}();return(0,s.jsx)(l.Provider,{value:n,children:t})}function u(){const e=(0,r.useContext)(l);if(null==e)throw new i.i6("ScrollControllerProvider");return e}const d=()=>a.default.canUseDOM?{scrollX:window.pageXOffset,scrollY:window.pageYOffset}:null;function f(e,t){void 0===t&&(t=[]);const{scrollEventsEnabledRef:n}=u(),a=(0,r.useRef)(d()),o=(0,i.zX)(e);(0,r.useEffect)((()=>{const e=()=>{if(!n.current)return;const e=d();o(e,a.current),a.current=e},t={passive:!0};return e(),window.addEventListener("scroll",e,t),()=>window.removeEventListener("scroll",e,t)}),[o,n,...t])}function p(){const e=(0,r.useRef)(null),t=(0,o.Z)()&&"smooth"===getComputedStyle(document.documentElement).scrollBehavior;return{startScroll:n=>{e.current=t?function(e){return window.scrollTo({top:e,behavior:"smooth"}),()=>{}}(n):function(e){let t=null;const n=document.documentElement.scrollTop>e;return function r(){const a=document.documentElement.scrollTop;(n&&a>e||!n&&at&&cancelAnimationFrame(t)}(n)},cancelScroll:()=>e.current?.()}}},43320:(e,t,n)=>{"use strict";n.d(t,{HX:()=>r,os:()=>a});n(52263);const r="default";function a(e,t){return`docs-${e}-${t}`}},50012:(e,t,n)=>{"use strict";n.d(t,{WA:()=>l});n(67294);const r="localStorage";function a(e){let{key:t,oldValue:n,newValue:r,storage:a}=e;if(n===r)return;const o=document.createEvent("StorageEvent");o.initStorageEvent("storage",!1,!1,t,n,r,window.location.href,a),window.dispatchEvent(o)}function o(e){if(void 0===e&&(e=r),"undefined"==typeof window)throw new Error("Browser storage is not available on Node.js/Docusaurus SSR process.");if("none"===e)return null;try{return window[e]}catch(n){return t=n,i||(console.warn("Docusaurus browser storage is not available.\nPossible reasons: running Docusaurus in an iframe, in an incognito browser session, or using too strict browser privacy settings.",t),i=!0),null}var t}let i=!1;const s={get:()=>null,set:()=>{},del:()=>{},listen:()=>()=>{}};function l(e,t){if("undefined"==typeof window)return function(e){function t(){throw new Error(`Illegal storage API usage for storage key "${e}".\nDocusaurus storage APIs are not supposed to be called on the server-rendering process.\nPlease only call storage APIs in effects and event handlers.`)}return{get:t,set:t,del:t,listen:t}}(e);const n=o(t?.persistence);return null===n?s:{get:()=>{try{return n.getItem(e)}catch(t){return console.error(`Docusaurus storage error, can't get key=${e}`,t),null}},set:t=>{try{const r=n.getItem(e);n.setItem(e,t),a({key:e,oldValue:r,newValue:t,storage:n})}catch(r){console.error(`Docusaurus storage error, can't set ${e}=${t}`,r)}},del:()=>{try{const t=n.getItem(e);n.removeItem(e),a({key:e,oldValue:t,newValue:null,storage:n})}catch(t){console.error(`Docusaurus storage error, can't delete key=${e}`,t)}},listen:t=>{try{const r=r=>{r.storageArea===n&&r.key===e&&t(r)};return window.addEventListener("storage",r),()=>window.removeEventListener("storage",r)}catch(r){return console.error(`Docusaurus storage error, can't listen for changes of key=${e}`,r),()=>{}}}}}},94711:(e,t,n)=>{"use strict";n.d(t,{l:()=>i});var r=n(52263),a=n(16550),o=n(18780);function i(){const{siteConfig:{baseUrl:e,url:t,trailingSlash:n},i18n:{defaultLocale:i,currentLocale:s}}=(0,r.Z)(),{pathname:l}=(0,a.TH)(),c=(0,o.applyTrailingSlash)(l,{trailingSlash:n,baseUrl:e}),u=s===i?e:e.replace(`/${s}/`,"/"),d=c.replace(e,"");return{createUrl:function(e){let{locale:n,fullyQualified:r}=e;return`${r?t:""}${function(e){return e===i?`${u}`:`${u}${e}/`}(n)}${d}`}}}},85936:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(67294),a=n(16550),o=n(902);function i(e){const t=(0,a.TH)(),n=(0,o.D9)(t),i=(0,o.zX)(e);(0,r.useEffect)((()=>{n&&t!==n&&i({location:t,previousLocation:n})}),[i,t,n])}},86668:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(52263);function a(){return(0,r.Z)().siteConfig.themeConfig}},8802:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const{trailingSlash:n,baseUrl:r}=t;if(e.startsWith("#"))return e;if(void 0===n)return e;const[a]=e.split(/[#?]/),o="/"===a||a===r?a:(i=a,n?function(e){return e.endsWith("/")?e:`${e}/`}(i):function(e){return e.endsWith("/")?e.slice(0,-1):e}(i));var i;return e.replace(a,o)}},54143:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=void 0,t.getErrorCausalChain=function e(t){return t.cause?[t,...e(t.cause)]:[t]}},18780:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCausalChain=t.applyTrailingSlash=t.blogPostContainerID=void 0,t.blogPostContainerID="__blog-post-container";var a=n(8802);Object.defineProperty(t,"applyTrailingSlash",{enumerable:!0,get:function(){return r(a).default}});var o=n(54143);Object.defineProperty(t,"getErrorCausalChain",{enumerable:!0,get:function(){return o.getErrorCausalChain}})},4750:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});r(n(10412)).default.canUseDOM&&(window.Prism=window.Prism||{},window.Prism.manual=!0)},86010:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;ta});const a=function(){for(var e,t,n=0,a="";n{"use strict";n.d(t,{lX:()=>w,q_:()=>_,ob:()=>p,PP:()=>P,Ep:()=>f});var r=n(87462);function a(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,a=e.length;r=0;f--){var p=i[f];"."===p?o(i,f):".."===p?(o(i,f),d++):d&&(o(i,f),d--)}if(!c)for(;d--;d)i.unshift("..");!c||""===i[0]||i[0]&&a(i[0])||i.unshift("");var m=i.join("/");return n&&"/"!==m.substr(-1)&&(m+="/"),m};var s=n(38776);function l(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function u(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function f(e){var t=e.pathname,n=e.search,r=e.hash,a=t||"/";return n&&"?"!==n&&(a+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(a+="#"===r.charAt(0)?r:"#"+r),a}function p(e,t,n,a){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",a=t.indexOf("#");-1!==a&&(r=t.substr(a),t=t.substr(0,a));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),a?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=i(o.pathname,a.pathname)):o.pathname=a.pathname:o.pathname||(o.pathname="/"),o}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,a){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,a):a(!0):a(!1!==o)}else a(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,a):n.push(a),d({action:r,location:a,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",a=p(e,t,h(),w.location);u.confirmTransitionTo(a,r,n,(function(e){e&&(w.entries[w.index]=a,d({action:r,location:a}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=w.index+e;return t>=0&&t{"use strict";var r=n(59864),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var a=p(n);a&&a!==m&&e(t,a,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),h=l(n),g=0;g{"use strict";e.exports=function(e,t,n,r,a,o,i,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,o,i,s],u=0;(l=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},5826:e=>{e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},41304:(e,t,n)=>{"use strict";n.r(t)},32497:(e,t,n)=>{"use strict";n.r(t)},52295:(e,t,n)=>{"use strict";n.r(t)},74865:function(e,t,n){var r,a;r=function(){var e,t,n={version:"0.2.0"},r=n.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function a(e,t,n){return en?n:e}function o(e){return 100*(-1+e)}function i(e,t,n){var a;return(a="translate3d"===r.positionUsing?{transform:"translate3d("+o(e)+"%,0,0)"}:"translate"===r.positionUsing?{transform:"translate("+o(e)+"%,0)"}:{"margin-left":o(e)+"%"}).transition="all "+t+"ms "+n,a}n.configure=function(e){var t,n;for(t in e)void 0!==(n=e[t])&&e.hasOwnProperty(t)&&(r[t]=n);return this},n.status=null,n.set=function(e){var t=n.isStarted();e=a(e,r.minimum,1),n.status=1===e?null:e;var o=n.render(!t),c=o.querySelector(r.barSelector),u=r.speed,d=r.easing;return o.offsetWidth,s((function(t){""===r.positionUsing&&(r.positionUsing=n.getPositioningCSS()),l(c,i(e,u,d)),1===e?(l(o,{transition:"none",opacity:1}),o.offsetWidth,setTimeout((function(){l(o,{transition:"all "+u+"ms linear",opacity:0}),setTimeout((function(){n.remove(),t()}),u)}),u)):setTimeout(t,u)})),this},n.isStarted=function(){return"number"==typeof n.status},n.start=function(){n.status||n.set(0);var e=function(){setTimeout((function(){n.status&&(n.trickle(),e())}),r.trickleSpeed)};return r.trickle&&e(),this},n.done=function(e){return e||n.status?n.inc(.3+.5*Math.random()).set(1):this},n.inc=function(e){var t=n.status;return t?("number"!=typeof e&&(e=(1-t)*a(Math.random()*t,.1,.95)),t=a(t+e,0,.994),n.set(t)):n.start()},n.trickle=function(){return n.inc(Math.random()*r.trickleRate)},e=0,t=0,n.promise=function(r){return r&&"resolved"!==r.state()?(0===t&&n.start(),e++,t++,r.always((function(){0==--t?(e=0,n.done()):n.set((e-t)/e)})),this):this},n.render=function(e){if(n.isRendered())return document.getElementById("nprogress");u(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=r.template;var a,i=t.querySelector(r.barSelector),s=e?"-100":o(n.status||0),c=document.querySelector(r.parent);return l(i,{transition:"all 0 linear",transform:"translate3d("+s+"%,0,0)"}),r.showSpinner||(a=t.querySelector(r.spinnerSelector))&&p(a),c!=document.body&&u(c,"nprogress-custom-parent"),c.appendChild(t),t},n.remove=function(){d(document.documentElement,"nprogress-busy"),d(document.querySelector(r.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},n.isRendered=function(){return!!document.getElementById("nprogress")},n.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var s=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),l=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;for(var r,a=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);a--;)if((r=e[a]+o)in n)return r;return t}function a(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=a(t),e.style[t]=n}return function(e,t){var n,r,a=arguments;if(2==a.length)for(n in t)void 0!==(r=t[n])&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,a[1],a[2])}}();function c(e,t){return("string"==typeof e?e:f(e)).indexOf(" "+t+" ")>=0}function u(e,t){var n=f(e),r=n+t;c(n,t)||(e.className=r.substring(1))}function d(e,t){var n,r=f(e);c(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function f(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return n},void 0===(a="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=a)},14779:(e,t,n)=>{var r=n(5826);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=f;var a=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,i=0,s="",u=t&&t.delimiter||"/";null!=(n=a.exec(e));){var d=n[0],f=n[1],p=n.index;if(s+=e.slice(i,p),i=p+d.length,f)s+=f[1];else{var m=e[i],h=n[2],g=n[3],b=n[4],v=n[5],y=n[6],w=n[7];s&&(r.push(s),s="");var k=null!=h&&null!=m&&m!==h,x="+"===y||"*"===y,S="?"===y||"*"===y,C=n[2]||u,E=b||v;r.push({name:g||o++,prefix:h||"",delimiter:C,optional:S,repeat:x,partial:k,asterisk:!!w,pattern:E?c(E):w?".*":"[^"+l(C)+"]+?"})}}return i{e.exports&&(e.exports={core:{meta:{path:"components/prism-core.js",option:"mandatory"},core:"Core"},themes:{meta:{path:"themes/{id}.css",link:"index.html?theme={id}",exclusive:!0},prism:{title:"Default",option:"default"},"prism-dark":"Dark","prism-funky":"Funky","prism-okaidia":{title:"Okaidia",owner:"ocodia"},"prism-twilight":{title:"Twilight",owner:"remybach"},"prism-coy":{title:"Coy",owner:"tshedor"},"prism-solarizedlight":{title:"Solarized Light",owner:"hectormatos2011 "},"prism-tomorrow":{title:"Tomorrow Night",owner:"Rosey"}},languages:{meta:{path:"components/prism-{id}",noCSS:!0,examplesPath:"examples/prism-{id}",addCheckAll:!0},markup:{title:"Markup",alias:["html","xml","svg","mathml","ssml","atom","rss"],aliasTitles:{html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",ssml:"SSML",atom:"Atom",rss:"RSS"},option:"default"},css:{title:"CSS",option:"default",modify:"markup"},clike:{title:"C-like",option:"default"},javascript:{title:"JavaScript",require:"clike",modify:"markup",optional:"regex",alias:"js",option:"default"},abap:{title:"ABAP",owner:"dellagustin"},abnf:{title:"ABNF",owner:"RunDevelopment"},actionscript:{title:"ActionScript",require:"javascript",modify:"markup",owner:"Golmote"},ada:{title:"Ada",owner:"Lucretia"},agda:{title:"Agda",owner:"xy-ren"},al:{title:"AL",owner:"RunDevelopment"},antlr4:{title:"ANTLR4",alias:"g4",owner:"RunDevelopment"},apacheconf:{title:"Apache Configuration",owner:"GuiTeK"},apex:{title:"Apex",require:["clike","sql"],owner:"RunDevelopment"},apl:{title:"APL",owner:"ngn"},applescript:{title:"AppleScript",owner:"Golmote"},aql:{title:"AQL",owner:"RunDevelopment"},arduino:{title:"Arduino",require:"cpp",alias:"ino",owner:"dkern"},arff:{title:"ARFF",owner:"Golmote"},armasm:{title:"ARM Assembly",alias:"arm-asm",owner:"RunDevelopment"},arturo:{title:"Arturo",alias:"art",optional:["bash","css","javascript","markup","markdown","sql"],owner:"drkameleon"},asciidoc:{alias:"adoc",title:"AsciiDoc",owner:"Golmote"},aspnet:{title:"ASP.NET (C#)",require:["markup","csharp"],owner:"nauzilus"},asm6502:{title:"6502 Assembly",owner:"kzurawel"},asmatmel:{title:"Atmel AVR Assembly",owner:"cerkit"},autohotkey:{title:"AutoHotkey",owner:"aviaryan"},autoit:{title:"AutoIt",owner:"Golmote"},avisynth:{title:"AviSynth",alias:"avs",owner:"Zinfidel"},"avro-idl":{title:"Avro IDL",alias:"avdl",owner:"RunDevelopment"},awk:{title:"AWK",alias:"gawk",aliasTitles:{gawk:"GAWK"},owner:"RunDevelopment"},bash:{title:"Bash",alias:["sh","shell"],aliasTitles:{sh:"Shell",shell:"Shell"},owner:"zeitgeist87"},basic:{title:"BASIC",owner:"Golmote"},batch:{title:"Batch",owner:"Golmote"},bbcode:{title:"BBcode",alias:"shortcode",aliasTitles:{shortcode:"Shortcode"},owner:"RunDevelopment"},bbj:{title:"BBj",owner:"hyyan"},bicep:{title:"Bicep",owner:"johnnyreilly"},birb:{title:"Birb",require:"clike",owner:"Calamity210"},bison:{title:"Bison",require:"c",owner:"Golmote"},bnf:{title:"BNF",alias:"rbnf",aliasTitles:{rbnf:"RBNF"},owner:"RunDevelopment"},bqn:{title:"BQN",owner:"yewscion"},brainfuck:{title:"Brainfuck",owner:"Golmote"},brightscript:{title:"BrightScript",owner:"RunDevelopment"},bro:{title:"Bro",owner:"wayward710"},bsl:{title:"BSL (1C:Enterprise)",alias:"oscript",aliasTitles:{oscript:"OneScript"},owner:"Diversus23"},c:{title:"C",require:"clike",owner:"zeitgeist87"},csharp:{title:"C#",require:"clike",alias:["cs","dotnet"],owner:"mvalipour"},cpp:{title:"C++",require:"c",owner:"zeitgeist87"},cfscript:{title:"CFScript",require:"clike",alias:"cfc",owner:"mjclemente"},chaiscript:{title:"ChaiScript",require:["clike","cpp"],owner:"RunDevelopment"},cil:{title:"CIL",owner:"sbrl"},cilkc:{title:"Cilk/C",require:"c",alias:"cilk-c",owner:"OpenCilk"},cilkcpp:{title:"Cilk/C++",require:"cpp",alias:["cilk-cpp","cilk"],owner:"OpenCilk"},clojure:{title:"Clojure",owner:"troglotit"},cmake:{title:"CMake",owner:"mjrogozinski"},cobol:{title:"COBOL",owner:"RunDevelopment"},coffeescript:{title:"CoffeeScript",require:"javascript",alias:"coffee",owner:"R-osey"},concurnas:{title:"Concurnas",alias:"conc",owner:"jasontatton"},csp:{title:"Content-Security-Policy",owner:"ScottHelme"},cooklang:{title:"Cooklang",owner:"ahue"},coq:{title:"Coq",owner:"RunDevelopment"},crystal:{title:"Crystal",require:"ruby",owner:"MakeNowJust"},"css-extras":{title:"CSS Extras",require:"css",modify:"css",owner:"milesj"},csv:{title:"CSV",owner:"RunDevelopment"},cue:{title:"CUE",owner:"RunDevelopment"},cypher:{title:"Cypher",owner:"RunDevelopment"},d:{title:"D",require:"clike",owner:"Golmote"},dart:{title:"Dart",require:"clike",owner:"Golmote"},dataweave:{title:"DataWeave",owner:"machaval"},dax:{title:"DAX",owner:"peterbud"},dhall:{title:"Dhall",owner:"RunDevelopment"},diff:{title:"Diff",owner:"uranusjr"},django:{title:"Django/Jinja2",require:"markup-templating",alias:"jinja2",owner:"romanvm"},"dns-zone-file":{title:"DNS zone file",owner:"RunDevelopment",alias:"dns-zone"},docker:{title:"Docker",alias:"dockerfile",owner:"JustinBeckwith"},dot:{title:"DOT (Graphviz)",alias:"gv",optional:"markup",owner:"RunDevelopment"},ebnf:{title:"EBNF",owner:"RunDevelopment"},editorconfig:{title:"EditorConfig",owner:"osipxd"},eiffel:{title:"Eiffel",owner:"Conaclos"},ejs:{title:"EJS",require:["javascript","markup-templating"],owner:"RunDevelopment",alias:"eta",aliasTitles:{eta:"Eta"}},elixir:{title:"Elixir",owner:"Golmote"},elm:{title:"Elm",owner:"zwilias"},etlua:{title:"Embedded Lua templating",require:["lua","markup-templating"],owner:"RunDevelopment"},erb:{title:"ERB",require:["ruby","markup-templating"],owner:"Golmote"},erlang:{title:"Erlang",owner:"Golmote"},"excel-formula":{title:"Excel Formula",alias:["xlsx","xls"],owner:"RunDevelopment"},fsharp:{title:"F#",require:"clike",owner:"simonreynolds7"},factor:{title:"Factor",owner:"catb0t"},false:{title:"False",owner:"edukisto"},"firestore-security-rules":{title:"Firestore security rules",require:"clike",owner:"RunDevelopment"},flow:{title:"Flow",require:"javascript",owner:"Golmote"},fortran:{title:"Fortran",owner:"Golmote"},ftl:{title:"FreeMarker Template Language",require:"markup-templating",owner:"RunDevelopment"},gml:{title:"GameMaker Language",alias:"gamemakerlanguage",require:"clike",owner:"LiarOnce"},gap:{title:"GAP (CAS)",owner:"RunDevelopment"},gcode:{title:"G-code",owner:"RunDevelopment"},gdscript:{title:"GDScript",owner:"RunDevelopment"},gedcom:{title:"GEDCOM",owner:"Golmote"},gettext:{title:"gettext",alias:"po",owner:"RunDevelopment"},gherkin:{title:"Gherkin",owner:"hason"},git:{title:"Git",owner:"lgiraudel"},glsl:{title:"GLSL",require:"c",owner:"Golmote"},gn:{title:"GN",alias:"gni",owner:"RunDevelopment"},"linker-script":{title:"GNU Linker Script",alias:"ld",owner:"RunDevelopment"},go:{title:"Go",require:"clike",owner:"arnehormann"},"go-module":{title:"Go module",alias:"go-mod",owner:"RunDevelopment"},gradle:{title:"Gradle",require:"clike",owner:"zeabdelkhalek-badido18"},graphql:{title:"GraphQL",optional:"markdown",owner:"Golmote"},groovy:{title:"Groovy",require:"clike",owner:"robfletcher"},haml:{title:"Haml",require:"ruby",optional:["css","css-extras","coffeescript","erb","javascript","less","markdown","scss","textile"],owner:"Golmote"},handlebars:{title:"Handlebars",require:"markup-templating",alias:["hbs","mustache"],aliasTitles:{mustache:"Mustache"},owner:"Golmote"},haskell:{title:"Haskell",alias:"hs",owner:"bholst"},haxe:{title:"Haxe",require:"clike",optional:"regex",owner:"Golmote"},hcl:{title:"HCL",owner:"outsideris"},hlsl:{title:"HLSL",require:"c",owner:"RunDevelopment"},hoon:{title:"Hoon",owner:"matildepark"},http:{title:"HTTP",optional:["csp","css","hpkp","hsts","javascript","json","markup","uri"],owner:"danielgtaylor"},hpkp:{title:"HTTP Public-Key-Pins",owner:"ScottHelme"},hsts:{title:"HTTP Strict-Transport-Security",owner:"ScottHelme"},ichigojam:{title:"IchigoJam",owner:"BlueCocoa"},icon:{title:"Icon",owner:"Golmote"},"icu-message-format":{title:"ICU Message Format",owner:"RunDevelopment"},idris:{title:"Idris",alias:"idr",owner:"KeenS",require:"haskell"},ignore:{title:".ignore",owner:"osipxd",alias:["gitignore","hgignore","npmignore"],aliasTitles:{gitignore:".gitignore",hgignore:".hgignore",npmignore:".npmignore"}},inform7:{title:"Inform 7",owner:"Golmote"},ini:{title:"Ini",owner:"aviaryan"},io:{title:"Io",owner:"AlesTsurko"},j:{title:"J",owner:"Golmote"},java:{title:"Java",require:"clike",owner:"sherblot"},javadoc:{title:"JavaDoc",require:["markup","java","javadoclike"],modify:"java",optional:"scala",owner:"RunDevelopment"},javadoclike:{title:"JavaDoc-like",modify:["java","javascript","php"],owner:"RunDevelopment"},javastacktrace:{title:"Java stack trace",owner:"RunDevelopment"},jexl:{title:"Jexl",owner:"czosel"},jolie:{title:"Jolie",require:"clike",owner:"thesave"},jq:{title:"JQ",owner:"RunDevelopment"},jsdoc:{title:"JSDoc",require:["javascript","javadoclike","typescript"],modify:"javascript",optional:["actionscript","coffeescript"],owner:"RunDevelopment"},"js-extras":{title:"JS Extras",require:"javascript",modify:"javascript",optional:["actionscript","coffeescript","flow","n4js","typescript"],owner:"RunDevelopment"},json:{title:"JSON",alias:"webmanifest",aliasTitles:{webmanifest:"Web App Manifest"},owner:"CupOfTea696"},json5:{title:"JSON5",require:"json",owner:"RunDevelopment"},jsonp:{title:"JSONP",require:"json",owner:"RunDevelopment"},jsstacktrace:{title:"JS stack trace",owner:"sbrl"},"js-templates":{title:"JS Templates",require:"javascript",modify:"javascript",optional:["css","css-extras","graphql","markdown","markup","sql"],owner:"RunDevelopment"},julia:{title:"Julia",owner:"cdagnino"},keepalived:{title:"Keepalived Configure",owner:"dev-itsheng"},keyman:{title:"Keyman",owner:"mcdurdin"},kotlin:{title:"Kotlin",alias:["kt","kts"],aliasTitles:{kts:"Kotlin Script"},require:"clike",owner:"Golmote"},kumir:{title:"KuMir (\u041a\u0443\u041c\u0438\u0440)",alias:"kum",owner:"edukisto"},kusto:{title:"Kusto",owner:"RunDevelopment"},latex:{title:"LaTeX",alias:["tex","context"],aliasTitles:{tex:"TeX",context:"ConTeXt"},owner:"japborst"},latte:{title:"Latte",require:["clike","markup-templating","php"],owner:"nette"},less:{title:"Less",require:"css",optional:"css-extras",owner:"Golmote"},lilypond:{title:"LilyPond",require:"scheme",alias:"ly",owner:"RunDevelopment"},liquid:{title:"Liquid",require:"markup-templating",owner:"cinhtau"},lisp:{title:"Lisp",alias:["emacs","elisp","emacs-lisp"],owner:"JuanCaicedo"},livescript:{title:"LiveScript",owner:"Golmote"},llvm:{title:"LLVM IR",owner:"porglezomp"},log:{title:"Log file",optional:"javastacktrace",owner:"RunDevelopment"},lolcode:{title:"LOLCODE",owner:"Golmote"},lua:{title:"Lua",owner:"Golmote"},magma:{title:"Magma (CAS)",owner:"RunDevelopment"},makefile:{title:"Makefile",owner:"Golmote"},markdown:{title:"Markdown",require:"markup",optional:"yaml",alias:"md",owner:"Golmote"},"markup-templating":{title:"Markup templating",require:"markup",owner:"Golmote"},mata:{title:"Mata",owner:"RunDevelopment"},matlab:{title:"MATLAB",owner:"Golmote"},maxscript:{title:"MAXScript",owner:"RunDevelopment"},mel:{title:"MEL",owner:"Golmote"},mermaid:{title:"Mermaid",owner:"RunDevelopment"},metafont:{title:"METAFONT",owner:"LaeriExNihilo"},mizar:{title:"Mizar",owner:"Golmote"},mongodb:{title:"MongoDB",owner:"airs0urce",require:"javascript"},monkey:{title:"Monkey",owner:"Golmote"},moonscript:{title:"MoonScript",alias:"moon",owner:"RunDevelopment"},n1ql:{title:"N1QL",owner:"TMWilds"},n4js:{title:"N4JS",require:"javascript",optional:"jsdoc",alias:"n4jsd",owner:"bsmith-n4"},"nand2tetris-hdl":{title:"Nand To Tetris HDL",owner:"stephanmax"},naniscript:{title:"Naninovel Script",owner:"Elringus",alias:"nani"},nasm:{title:"NASM",owner:"rbmj"},neon:{title:"NEON",owner:"nette"},nevod:{title:"Nevod",owner:"nezaboodka"},nginx:{title:"nginx",owner:"volado"},nim:{title:"Nim",owner:"Golmote"},nix:{title:"Nix",owner:"Golmote"},nsis:{title:"NSIS",owner:"idleberg"},objectivec:{title:"Objective-C",require:"c",alias:"objc",owner:"uranusjr"},ocaml:{title:"OCaml",owner:"Golmote"},odin:{title:"Odin",owner:"edukisto"},opencl:{title:"OpenCL",require:"c",modify:["c","cpp"],owner:"Milania1"},openqasm:{title:"OpenQasm",alias:"qasm",owner:"RunDevelopment"},oz:{title:"Oz",owner:"Golmote"},parigp:{title:"PARI/GP",owner:"Golmote"},parser:{title:"Parser",require:"markup",owner:"Golmote"},pascal:{title:"Pascal",alias:"objectpascal",aliasTitles:{objectpascal:"Object Pascal"},owner:"Golmote"},pascaligo:{title:"Pascaligo",owner:"DefinitelyNotAGoat"},psl:{title:"PATROL Scripting Language",owner:"bertysentry"},pcaxis:{title:"PC-Axis",alias:"px",owner:"RunDevelopment"},peoplecode:{title:"PeopleCode",alias:"pcode",owner:"RunDevelopment"},perl:{title:"Perl",owner:"Golmote"},php:{title:"PHP",require:"markup-templating",owner:"milesj"},phpdoc:{title:"PHPDoc",require:["php","javadoclike"],modify:"php",owner:"RunDevelopment"},"php-extras":{title:"PHP Extras",require:"php",modify:"php",owner:"milesj"},"plant-uml":{title:"PlantUML",alias:"plantuml",owner:"RunDevelopment"},plsql:{title:"PL/SQL",require:"sql",owner:"Golmote"},powerquery:{title:"PowerQuery",alias:["pq","mscript"],owner:"peterbud"},powershell:{title:"PowerShell",owner:"nauzilus"},processing:{title:"Processing",require:"clike",owner:"Golmote"},prolog:{title:"Prolog",owner:"Golmote"},promql:{title:"PromQL",owner:"arendjr"},properties:{title:".properties",owner:"Golmote"},protobuf:{title:"Protocol Buffers",require:"clike",owner:"just-boris"},pug:{title:"Pug",require:["markup","javascript"],optional:["coffeescript","ejs","handlebars","less","livescript","markdown","scss","stylus","twig"],owner:"Golmote"},puppet:{title:"Puppet",owner:"Golmote"},pure:{title:"Pure",optional:["c","cpp","fortran"],owner:"Golmote"},purebasic:{title:"PureBasic",require:"clike",alias:"pbfasm",owner:"HeX0R101"},purescript:{title:"PureScript",require:"haskell",alias:"purs",owner:"sriharshachilakapati"},python:{title:"Python",alias:"py",owner:"multipetros"},qsharp:{title:"Q#",require:"clike",alias:"qs",owner:"fedonman"},q:{title:"Q (kdb+ database)",owner:"Golmote"},qml:{title:"QML",require:"javascript",owner:"RunDevelopment"},qore:{title:"Qore",require:"clike",owner:"temnroegg"},r:{title:"R",owner:"Golmote"},racket:{title:"Racket",require:"scheme",alias:"rkt",owner:"RunDevelopment"},cshtml:{title:"Razor C#",alias:"razor",require:["markup","csharp"],optional:["css","css-extras","javascript","js-extras"],owner:"RunDevelopment"},jsx:{title:"React JSX",require:["markup","javascript"],optional:["jsdoc","js-extras","js-templates"],owner:"vkbansal"},tsx:{title:"React TSX",require:["jsx","typescript"]},reason:{title:"Reason",require:"clike",owner:"Golmote"},regex:{title:"Regex",owner:"RunDevelopment"},rego:{title:"Rego",owner:"JordanSh"},renpy:{title:"Ren'py",alias:"rpy",owner:"HyuchiaDiego"},rescript:{title:"ReScript",alias:"res",owner:"vmarcosp"},rest:{title:"reST (reStructuredText)",owner:"Golmote"},rip:{title:"Rip",owner:"ravinggenius"},roboconf:{title:"Roboconf",owner:"Golmote"},robotframework:{title:"Robot Framework",alias:"robot",owner:"RunDevelopment"},ruby:{title:"Ruby",require:"clike",alias:"rb",owner:"samflores"},rust:{title:"Rust",owner:"Golmote"},sas:{title:"SAS",optional:["groovy","lua","sql"],owner:"Golmote"},sass:{title:"Sass (Sass)",require:"css",optional:"css-extras",owner:"Golmote"},scss:{title:"Sass (SCSS)",require:"css",optional:"css-extras",owner:"MoOx"},scala:{title:"Scala",require:"java",owner:"jozic"},scheme:{title:"Scheme",owner:"bacchus123"},"shell-session":{title:"Shell session",require:"bash",alias:["sh-session","shellsession"],owner:"RunDevelopment"},smali:{title:"Smali",owner:"RunDevelopment"},smalltalk:{title:"Smalltalk",owner:"Golmote"},smarty:{title:"Smarty",require:"markup-templating",optional:"php",owner:"Golmote"},sml:{title:"SML",alias:"smlnj",aliasTitles:{smlnj:"SML/NJ"},owner:"RunDevelopment"},solidity:{title:"Solidity (Ethereum)",alias:"sol",require:"clike",owner:"glachaud"},"solution-file":{title:"Solution file",alias:"sln",owner:"RunDevelopment"},soy:{title:"Soy (Closure Template)",require:"markup-templating",owner:"Golmote"},sparql:{title:"SPARQL",require:"turtle",owner:"Triply-Dev",alias:"rq"},"splunk-spl":{title:"Splunk SPL",owner:"RunDevelopment"},sqf:{title:"SQF: Status Quo Function (Arma 3)",require:"clike",owner:"RunDevelopment"},sql:{title:"SQL",owner:"multipetros"},squirrel:{title:"Squirrel",require:"clike",owner:"RunDevelopment"},stan:{title:"Stan",owner:"RunDevelopment"},stata:{title:"Stata Ado",require:["mata","java","python"],owner:"RunDevelopment"},iecst:{title:"Structured Text (IEC 61131-3)",owner:"serhioromano"},stylus:{title:"Stylus",owner:"vkbansal"},supercollider:{title:"SuperCollider",alias:"sclang",owner:"RunDevelopment"},swift:{title:"Swift",owner:"chrischares"},systemd:{title:"Systemd configuration file",owner:"RunDevelopment"},"t4-templating":{title:"T4 templating",owner:"RunDevelopment"},"t4-cs":{title:"T4 Text Templates (C#)",require:["t4-templating","csharp"],alias:"t4",owner:"RunDevelopment"},"t4-vb":{title:"T4 Text Templates (VB)",require:["t4-templating","vbnet"],owner:"RunDevelopment"},tap:{title:"TAP",owner:"isaacs",require:"yaml"},tcl:{title:"Tcl",owner:"PeterChaplin"},tt2:{title:"Template Toolkit 2",require:["clike","markup-templating"],owner:"gflohr"},textile:{title:"Textile",require:"markup",optional:"css",owner:"Golmote"},toml:{title:"TOML",owner:"RunDevelopment"},tremor:{title:"Tremor",alias:["trickle","troy"],owner:"darach",aliasTitles:{trickle:"trickle",troy:"troy"}},turtle:{title:"Turtle",alias:"trig",aliasTitles:{trig:"TriG"},owner:"jakubklimek"},twig:{title:"Twig",require:"markup-templating",owner:"brandonkelly"},typescript:{title:"TypeScript",require:"javascript",optional:"js-templates",alias:"ts",owner:"vkbansal"},typoscript:{title:"TypoScript",alias:"tsconfig",aliasTitles:{tsconfig:"TSConfig"},owner:"dkern"},unrealscript:{title:"UnrealScript",alias:["uscript","uc"],owner:"RunDevelopment"},uorazor:{title:"UO Razor Script",owner:"jaseowns"},uri:{title:"URI",alias:"url",aliasTitles:{url:"URL"},owner:"RunDevelopment"},v:{title:"V",require:"clike",owner:"taggon"},vala:{title:"Vala",require:"clike",optional:"regex",owner:"TemplarVolk"},vbnet:{title:"VB.Net",require:"basic",owner:"Bigsby"},velocity:{title:"Velocity",require:"markup",owner:"Golmote"},verilog:{title:"Verilog",owner:"a-rey"},vhdl:{title:"VHDL",owner:"a-rey"},vim:{title:"vim",owner:"westonganger"},"visual-basic":{title:"Visual Basic",alias:["vb","vba"],aliasTitles:{vba:"VBA"},owner:"Golmote"},warpscript:{title:"WarpScript",owner:"RunDevelopment"},wasm:{title:"WebAssembly",owner:"Golmote"},"web-idl":{title:"Web IDL",alias:"webidl",owner:"RunDevelopment"},wgsl:{title:"WGSL",owner:"Dr4gonthree"},wiki:{title:"Wiki markup",require:"markup",owner:"Golmote"},wolfram:{title:"Wolfram language",alias:["mathematica","nb","wl"],aliasTitles:{mathematica:"Mathematica",nb:"Mathematica Notebook"},owner:"msollami"},wren:{title:"Wren",owner:"clsource"},xeora:{title:"Xeora",require:"markup",alias:"xeoracube",aliasTitles:{xeoracube:"XeoraCube"},owner:"freakmaxi"},"xml-doc":{title:"XML doc (.net)",require:"markup",modify:["csharp","fsharp","vbnet"],owner:"RunDevelopment"},xojo:{title:"Xojo (REALbasic)",owner:"Golmote"},xquery:{title:"XQuery",require:"markup",owner:"Golmote"},yaml:{title:"YAML",alias:"yml",owner:"hason"},yang:{title:"YANG",owner:"RunDevelopment"},zig:{title:"Zig",owner:"RunDevelopment"}},plugins:{meta:{path:"plugins/{id}/prism-{id}",link:"plugins/{id}/"},"line-highlight":{title:"Line Highlight",description:"Highlights specific lines and/or line ranges."},"line-numbers":{title:"Line Numbers",description:"Line number at the beginning of code lines.",owner:"kuba-kubula"},"show-invisibles":{title:"Show Invisibles",description:"Show hidden characters such as tabs and line breaks.",optional:["autolinker","data-uri-highlight"]},autolinker:{title:"Autolinker",description:"Converts URLs and emails in code to clickable links. Parses Markdown links in comments."},wpd:{title:"WebPlatform Docs",description:'Makes tokens link to WebPlatform.org documentation. The links open in a new tab.'},"custom-class":{title:"Custom Class",description:"This plugin allows you to prefix Prism's default classes (.comment can become .namespace--comment) or replace them with your defined ones (like .editor__comment). You can even add new classes.",owner:"dvkndn",noCSS:!0},"file-highlight":{title:"File Highlight",description:"Fetch external files and highlight them with Prism. Used on the Prism website itself.",noCSS:!0},"show-language":{title:"Show Language",description:"Display the highlighted language in code blocks (inline code does not show the label).",owner:"nauzilus",noCSS:!0,require:"toolbar"},"jsonp-highlight":{title:"JSONP Highlight",description:"Fetch content with JSONP and highlight some interesting content (e.g. GitHub/Gists or Bitbucket API).",noCSS:!0,owner:"nauzilus"},"highlight-keywords":{title:"Highlight Keywords",description:"Adds special CSS classes for each keyword for fine-grained highlighting.",owner:"vkbansal",noCSS:!0},"remove-initial-line-feed":{title:"Remove initial line feed",description:"Removes the initial line feed in code blocks.",owner:"Golmote",noCSS:!0},"inline-color":{title:"Inline color",description:"Adds a small inline preview for colors in style sheets.",require:"css-extras",owner:"RunDevelopment"},previewers:{title:"Previewers",description:"Previewers for angles, colors, gradients, easing and time.",require:"css-extras",owner:"Golmote"},autoloader:{title:"Autoloader",description:"Automatically loads the needed languages to highlight the code blocks.",owner:"Golmote",noCSS:!0},"keep-markup":{title:"Keep Markup",description:"Prevents custom markup from being dropped out during highlighting.",owner:"Golmote",optional:"normalize-whitespace",noCSS:!0},"command-line":{title:"Command Line",description:"Display a command line with a prompt and, optionally, the output/response from the commands.",owner:"chriswells0"},"unescaped-markup":{title:"Unescaped Markup",description:"Write markup without having to escape anything."},"normalize-whitespace":{title:"Normalize Whitespace",description:"Supports multiple operations to normalize whitespace in code blocks.",owner:"zeitgeist87",optional:"unescaped-markup",noCSS:!0},"data-uri-highlight":{title:"Data-URI Highlight",description:"Highlights data-URI contents.",owner:"Golmote",noCSS:!0},toolbar:{title:"Toolbar",description:"Attach a toolbar for plugins to easily register buttons on the top of a code block.",owner:"mAAdhaTTah"},"copy-to-clipboard":{title:"Copy to Clipboard Button",description:"Add a button that copies the code block to the clipboard when clicked.",owner:"mAAdhaTTah",require:"toolbar",noCSS:!0},"download-button":{title:"Download Button",description:"A button in the toolbar of a code block adding a convenient way to download a code file.",owner:"Golmote",require:"toolbar",noCSS:!0},"match-braces":{title:"Match braces",description:"Highlights matching braces.",owner:"RunDevelopment"},"diff-highlight":{title:"Diff Highlight",description:"Highlights the code inside diff blocks.",owner:"RunDevelopment",require:"diff"},"filter-highlight-all":{title:"Filter highlightAll",description:"Filters the elements the highlightAll and highlightAllUnder methods actually highlight.",owner:"RunDevelopment",noCSS:!0},treeview:{title:"Treeview",description:"A language with special styles to highlight file system tree structures.",owner:"Golmote"}}})},2885:(e,t,n)=>{const r=n(29901),a=n(39642),o=new Set;function i(e){void 0===e?e=Object.keys(r.languages).filter((e=>"meta"!=e)):Array.isArray(e)||(e=[e]);const t=[...o,...Object.keys(Prism.languages)];a(r,e,t).load((e=>{if(!(e in r.languages))return void(i.silent||console.warn("Language does not exist: "+e));const t="./prism-"+e;delete n.c[n(16500).resolve(t)],delete Prism.languages[e],n(16500)(t),o.add(e)}))}i.silent=!1,e.exports=i},96854:()=>{!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,a,o){if(n.language===r){var i=n.tokenStack=[];n.code=n.code.replace(a,(function(e){if("function"==typeof o&&!o(e))return e;for(var a,s=i.length;-1!==n.code.indexOf(a=t(r,s));)++s;return i[s]=e,a})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var a=0,o=Object.keys(n.tokenStack);!function i(s){for(var l=0;l=o.length);l++){var c=s[l];if("string"==typeof c||c.content&&"string"==typeof c.content){var u=o[a],d=n.tokenStack[u],f="string"==typeof c?c:c.content,p=t(r,u),m=f.indexOf(p);if(m>-1){++a;var h=f.substring(0,m),g=new e.Token(r,e.tokenize(d,n.grammar),"language-"+r,d),b=f.substring(m+p.length),v=[];h&&v.push.apply(v,i([h])),v.push(g),b&&v.push.apply(v,i([b])),"string"==typeof c?s.splice.apply(s,[l,1].concat(v)):c.content=v}}else c.content&&i(c.content)}return s}(n.tokens)}}}})}(Prism)},6726:(e,t,n)=>{var r={"./":2885};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=6726},16500:(e,t,n)=>{var r={"./":2885};function a(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}a.keys=function(){return Object.keys(r)},a.resolve=o,e.exports=a,a.id=16500},39642:e=>{"use strict";var t=function(){var e=function(){};function t(e,t){Array.isArray(e)?e.forEach(t):null!=e&&t(e,0)}function n(e){for(var t={},n=0,r=e.length;n "));var s={},l=e[r];if(l){function c(t){if(!(t in e))throw new Error(r+" depends on an unknown component "+t);if(!(t in s))for(var i in a(t,o),s[t]=!0,n[t])s[i]=!0}t(l.require,c),t(l.optional,c),t(l.modify,c)}n[r]=s,o.pop()}}return function(e){var t=n[e];return t||(a(e,r),t=n[e]),t}}function a(e){for(var t in e)return!0;return!1}return function(o,i,s){var l=function(e){var t={};for(var n in e){var r=e[n];for(var a in r)if("meta"!=a){var o=r[a];t[a]="string"==typeof o?{title:o}:o}}return t}(o),c=function(e){var n;return function(r){if(r in e)return r;if(!n)for(var a in n={},e){var o=e[a];t(o&&o.alias,(function(t){if(t in n)throw new Error(t+" cannot be alias for both "+a+" and "+n[t]);if(t in e)throw new Error(t+" cannot be alias of "+a+" because it is a component.");n[t]=a}))}return n[r]||r}}(l);i=i.map(c),s=(s||[]).map(c);var u=n(i),d=n(s);i.forEach((function e(n){var r=l[n];t(r&&r.require,(function(t){t in d||(u[t]=!0,e(t))}))}));for(var f,p=r(l),m=u;a(m);){for(var h in f={},m){var g=l[h];t(g&&g.modify,(function(e){e in d&&(f[e]=!0)}))}for(var b in d)if(!(b in u))for(var v in p(b))if(v in u){f[b]=!0;break}for(var y in m=f)u[y]=!0}var w={getIds:function(){var e=[];return w.load((function(t){e.push(t)})),e},load:function(t,n){return function(t,n,r,a){var o=a?a.series:void 0,i=a?a.parallel:e,s={},l={};function c(e){if(e in s)return s[e];l[e]=!0;var a,u=[];for(var d in t(e))d in n&&u.push(d);if(0===u.length)a=r(e);else{var f=i(u.map((function(e){var t=c(e);return delete l[e],t})));o?a=o(f,(function(){return r(e)})):r(e)}return s[e]=a}for(var u in n)c(u);var d=[];for(var f in l)d.push(s[f]);return i(d)}(p,u,t,n)}};return w}}();e.exports=t},92703:(e,t,n)=>{"use strict";var r=n(50414);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},45697:(e,t,n)=>{e.exports=n(92703)()},50414:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},64448:(e,t,n)=>{"use strict";var r=n(67294),a=n(63840);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n