// Intermediate messagesevent: messagedata: "Based on the available information, "event: messagedata: "the company's revenue in 2023 was "event: messagedata: "$1.2 billion, representing a 15% increase from 2022."// Final response with complete resultevent: donedata: {"id": "wf_abc123xyz789","name": "Revenue Analysis","query": "What were the company's revenue figures for 2023?","type": "query","knowledge_engine_id": "kng_abc123xyz789","status": "processed","response": "Based on the available information, the company's revenue in 2023 was $1.2 billion, representing a 15% increase from 2022.","citations": [{"text": "In fiscal year 2023, total revenue reached $1.2B, up 15% YoY","source": "Annual Report 2023","page": 45}],"created_at": 1679644800}
Context ID for maintaining conversation history in chat mode
Response
Streaming response using Server-Sent Events
The response is of type string.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Decisional API","colors":{"primary":"#0D9373","light":"#07C983","dark":"#0D9373"},"favicon":"https://mintcdn.com/decisionalai-3f1c6a08/tJiI-yC_ft_MF1uP/logo/dark.svg?fit=max\u0026auto=format\u0026n=tJiI-yC_ft_MF1uP\u0026q=85\u0026s=66b7999d98322c59b6b883137567c214","logo":{"light":"https://mintcdn.com/decisionalai-3f1c6a08/tJiI-yC_ft_MF1uP/logo/light.svg?fit=max\u0026auto=format\u0026n=tJiI-yC_ft_MF1uP\u0026q=85\u0026s=11eb2c3a6a678aaa84af3325dc2129fb","dark":"https://mintcdn.com/decisionalai-3f1c6a08/tJiI-yC_ft_MF1uP/logo/dark.svg?fit=max\u0026auto=format\u0026n=tJiI-yC_ft_MF1uP\u0026q=85\u0026s=66b7999d98322c59b6b883137567c214"},"api":{"playground":{"display":"interactive","proxy":false},"mdx":{"server":"https://api.getdecisional.ai/api/v1","auth":{"method":"basic","name":"API_KEY:API_SECRET"}}},"navbar":{"links":[{"label":"Support","href":"mailto:info@decisional.works"}],"primary":{"type":"button","label":"App","href":"https://app.decisional.com"}},"footer":{"socials":{"x":"https://x.com/getdecisional","github":"https://github.com/decisional","linkedin":"https://linkedin.com/company/decisional-ai"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"decisionalai-3f1c6a08","hasAudioNarration":false,"actualSubdomain":"decisionalai-3f1c6a08","customDomains":["docs.getdecisional.ai"],"gitSource":{"type":"github","owner":"decisional","repo":"nexus","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a665a609dba8666ae74f11b","collectionId":"cf249b1c-8c59-423b-ab92-950bd0a4f24a","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6a665a609dba8666ae74f11b"},"entitlements":{},"buildId":"6a665a609dba8666ae74f11b:success","clientVersion":"0.0.4045","searchFilterCounts":[{"language":"default","tag":"API Reference","count":19},{"language":"default","tag":"Knowledge Engines","count":8},{"language":"default","tag":"User Guide","count":8},{"language":"default","tag":"Data Sources","count":6},{"language":"default","tag":"Workflows","count":2},{"language":"default","tag":"Tool Runs","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/knowledge-engines/query","slug":"/api-reference/knowledge-engines/query","pageMetadata":{"title":"Query Knowledge Engine","openapi":"POST /api/v1/knowledge-engines/{id}/query","description":"Streams a response to a natural language query using Server-Sent Events","href":"/api-reference/knowledge-engines/query"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Streams a response to a natural language query using Server-Sent Events\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Note,ParamField,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`Query a knowledge engine with a natural language question. This endpoint uses Server-Sent Events (SSE) to stream the response back to the client.`}),`\n`,_jsx(Heading,{level:`3`,id:`request-format`,children:`Request Format`}),`\n`,_jsx(ParamField,{body:`query`,type:`string`,required:true,id:`param-query`,children:_jsx(_components.p,{children:`The natural language query to ask the knowledge engine`})}),`\n`,_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:_jsx(_components.p,{children:`A name for this query workflow`})}),`\n`,_jsx(ParamField,{body:`context_id`,type:`string`,id:`param-context-id`,children:_jsx(_components.p,{children:`Context ID used in case of thread mode for chat based workflows`})}),`\n`,_jsx(ParamField,{body:`advanced_reasoning`,type:`boolean`,id:`param-advanced-reasoning`,children:_jsx(_components.p,{children:`Flag to enable advanced reasoning for the query`})}),`\n`,_jsx(ParamField,{body:`model`,type:`string`,id:`param-model`,children:_jsx(_components.p,{children:`The model to use for the query`})}),`\n`,_jsx(Heading,{level:`3`,id:`example-request`,children:`Example Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"What were the company's revenue figures for 2023?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Revenue Analysis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"advanced_reasoning\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"llama-v3-70b\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`response-format`,children:`Response Format`}),`\n`,_jsx(_components.p,{children:`The response is streamed using Server-Sent Events (SSE) with the following event types:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`message`}),`: Contains intermediate response chunks as they are generated`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`error`}),`: Contains error messages if something goes wrong`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`done`}),`: Final event containing the complete response with metadata`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`example-response-stream`,children:`Example Response Stream`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`26`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`26`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Intermediate messages`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Based on the available information, \"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"the company's revenue in 2023 was \"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"$1.2 billion, representing a 15% increase from 2022.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Final response with complete result`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`event`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`done`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#C8C8C8`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"wf_abc123xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Revenue Analysis\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"What were the company's revenue figures for 2023?\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"knowledge_engine_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"kng_abc123xyz789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"processed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Based on the available information, the company's revenue in 2023 was $1.2 billion, representing a 15% increase from 2022.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"citations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"In fiscal year 2023, total revenue reached $1.2B, up 15% YoY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Annual Report 2023\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 45`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"created_at\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1679644800`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`The streaming response allows for real-time display of the AI’s response as it’s being generated`}),`\n`,_jsxs(_components.li,{children:[`The final `,_jsx(_components.code,{children:`done`}),` event includes the complete response along with metadata and citations`]}),`\n`,_jsxs(_components.li,{children:[`If an error occurs, the stream will emit an `,_jsx(_components.code,{children:`error`}),` event and close the connection`]}),`\n`,_jsxs(_components.li,{children:[`Clients should handle connection closure appropriately using the `,_jsx(_components.code,{children:`close`}),` event`]}),`\n`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`The streaming response requires a client that supports Server-Sent Events (SSE). Most modern browsers and HTTP clients support this feature.`})}),`\n`,_jsx(Heading,{level:`3`,id:`response-object`,children:`Response Object`}),`\n`,_jsx(ResponseField,{name:`id`,type:`string`,id:`param-id`,children:_jsx(_components.p,{children:`Unique identifier for the workflow`})}),`\n`,_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name-1`,children:_jsx(_components.p,{children:`Name of the workflow`})}),`\n`,_jsx(ResponseField,{name:`query`,type:`string`,id:`param-query-1`,children:_jsx(_components.p,{children:`The original query that was asked`})}),`\n`,_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsx(_components.p,{children:`Type of workflow (always “query”)`})}),`\n`,_jsx(ResponseField,{name:`knowledge_engine_id`,type:`string`,id:`param-knowledge-engine-id`,children:_jsx(_components.p,{children:`ID of the knowledge engine that was queried`})}),`\n`,_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsx(_components.p,{children:`Status of the workflow (“processed” when complete)`})}),`\n`,_jsx(ResponseField,{name:`response`,type:`string`,id:`param-response`,children:_jsx(_components.p,{children:`The complete response text`})}),`\n`,_jsxs(ResponseField,{name:`citations`,type:`array`,id:`param-citations`,children:[_jsx(_components.p,{children:`Array of citations supporting the response`}),_jsxs(Expandable,{title:`Citation Object`,children:[_jsx(ResponseField,{name:`text`,type:`string`,id:`param-text`,children:_jsx(_components.p,{children:`The relevant text from the source`})}),_jsx(ResponseField,{name:`source`,type:`string`,id:`param-source`,children:_jsx(_components.p,{children:`Name of the source document`})}),_jsx(ResponseField,{name:`page`,type:`number`,id:`param-page`,children:_jsx(_components.p,{children:`Page number in the source document`})})]})]}),`\n`,_jsx(ResponseField,{name:`created_at`,type:`number`,id:`param-created-at`,children:_jsx(_components.p,{children:`Unix timestamp when the workflow was created`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Query Knowledge Engine","openapi":"POST /api/v1/knowledge-engines/{id}/query","description":"Streams a response to a natural language query using Server-Sent Events","href":"/api-reference/knowledge-engines/query"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Request Format","slug":"request-format","depth":3,"children":[]},{"title":"Example Request","slug":"example-request","depth":3,"children":[]},{"title":"Response Format","slug":"response-format","depth":3,"children":[]},{"title":"Example Response Stream","slug":"example-response-stream","depth":3,"children":[]},{"title":"Notes","slug":"notes","depth":3,"children":[]},{"title":"Response Object","slug":"response-object","depth":3,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Query Knowledge Engine","description":"Streams a response to a natural language query using Server-Sent Events","parameters":["bb38fce2-f8ef-42b0-86b8-53a90c44c950"],"requestBody":"d6561182-ef01-4ff9-97eb-5b23b4e8812a","responses":{"200":"6133e135-5971-48bd-9aae-a95e32d83226","400":"c2f76da3-a645-42f5-8801-cf00026d374a","401":"4cb06a71-29e2-48c0-87e9-74d6c0514570"},"method":"post","type":"path","servers":["2d70aac7-6784-45d6-9b31-df23af8e6ae3"],"security":[],"path":"/api/v1/knowledge-engines/{id}/query","baseUrlOptions":["https://api.getdecisional.ai"],"title":"Query Knowledge Engine","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"bb38fce2-f8ef-42b0-86b8-53a90c44c950":{"name":"id","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"Knowledge engine ID","uniqueKey":"","typeLabel":"string"},"description":"Knowledge engine ID"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["query","name"],"properties":{"query":{"type":"string","description":"The natural language query","isRequired":true,"uniqueKey":"query","typeLabel":"string"},"name":{"type":"string","description":"Name of the workflow","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"advanced_reasoning":{"type":"boolean","description":"Enable advanced reasoning","uniqueKey":"advanced_reasoning","typeLabel":"boolean"},"model":{"type":"string","description":"LLM to use for the query","enum":["auto","claude-4.5-sonnet","llama-v3-70b","llama-4-scout","llama-4-maverick","gemini-2.5","gpt-5.4","claude-4.6-haiku","gpt-4.1"],"example":"llama-v3-70b","uniqueKey":"model","typeLabel":"enum\u003cstring>"},"context_id":{"type":"string","description":"Context ID for maintaining conversation history in chat mode","uniqueKey":"context_id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"query":"\u003cstring>","name":"\u003cstring>","advanced_reasoning":true,"model":"llama-v3-70b","context_id":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"6133e135-5971-48bd-9aae-a95e32d83226":{"description":"Streaming response using Server-Sent Events","content":{"text/event-stream":{"schema":{"type":"string","uniqueKey":"","typeLabel":"string"},"examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"},"c2f76da3-a645-42f5-8801-cf00026d374a":{"description":"Bad Request - Various validation and state errors","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message","example":"Invalid knowledge engine name: exceeds maximum length of 50 characters","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"invalid_knowledge_engine_id":{"title":"invalid_knowledge_engine_id","value":{"error":"Invalid knowledge engine ID"}},"knowledge_engine_not_ready":{"title":"knowledge_engine_not_ready","value":{"error":"knowledge engine is not ready, current status: processing"}},"no_active_data_sources":{"title":"no_active_data_sources","value":{"error":"knowledge engine has no active data sources"}},"invalid_model":{"title":"invalid_model","value":{"error":"Model unsupported-model not supported"}},"model_not_enabled":{"title":"model_not_enabled","value":{"error":"Model Claude 3.5 Sonnet is not enabled"}}},"exampleType":"examples"}},"exampleType":"examples"},"4cb06a71-29e2-48c0-87e9-74d6c0514570":{"description":"Unauthorized - Invalid or missing API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Error message","example":"Invalid knowledge engine name: exceeds maximum length of 50 characters","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Unauthorized"},"examples":{"Example":{"title":"Example","value":{"error":"Unauthorized"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"a92fa93d-714b-4bf8-80c7-b0455b195f8b":{"Authorization":{"type":"http","scheme":"basic","description":"Basic authentication header of the form `Basic \u003cencoded-value>`, where `\u003cencoded-value>` is the base64-encoded string `username:password`."}}},"servers":{"2d70aac7-6784-45d6-9b31-df23af8e6ae3":{"url":"https://api.getdecisional.ai"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"basic","description":"Basic authentication header of the form `Basic \u003cencoded-value>`, where `\u003cencoded-value>` is the base64-encoded string `username:password`."},"schema":{"title":"Basic Auth","type":"object","description":"Basic authentication header of the form `Basic \u003cencoded-value>`, where `\u003cencoded-value>` is the base64-encoded string `username:password`.","isRequired":true,"properties":{"username":{"type":"string","uniqueKey":"username","isRequired":true,"typeLabel":"string","deprecated":false},"password":{"type":"string","uniqueKey":"password","isRequired":true,"typeLabel":"string","deprecated":false}},"additionalProperties":false,"deprecated":false},"schemeName":"Authorization","name":"Authorization"}],"title":"Authorization"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"decisionalai-3f1c6a08","siteName":"Decisional API","title":"Query Knowledge Engine - Decisional API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2025-12-11T11:47:46.307Z","originalFileLocation":"api-reference/knowledge-engines/query.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Streams a response to a natural language query using Server-Sent Events\">\u003cmeta data-mint-head name=\"application-name\" content=\"Decisional API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/decisionalai-3f1c6a08/FXGFgvtUfkOW3C7n/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/decisionalai-3f1c6a08/FXGFgvtUfkOW3C7n/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/decisionalai-3f1c6a08/FXGFgvtUfkOW3C7n/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/decisionalai-3f1c6a08/FXGFgvtUfkOW3C7n/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/decisionalai-3f1c6a08/FXGFgvtUfkOW3C7n/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/decisionalai-3f1c6a08/FXGFgvtUfkOW3C7n/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/decisionalai-3f1c6a08/FXGFgvtUfkOW3C7n/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/decisionalai-3f1c6a08/FXGFgvtUfkOW3C7n/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/decisionalai-3f1c6a08/FXGFgvtUfkOW3C7n/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Query Knowledge Engine - Decisional API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Streams a response to a natural language query using Server-Sent Events\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Decisional API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.getdecisional.ai/api-reference/knowledge-engines/query\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://decisionalai-3f1c6a08.mintlify.app/_mintlify/api/og/v2?division=Knowledge+Engines\u0026amp;title=Query+Knowledge+Engine\u0026amp;description=Streams+a+response+to+a+natural+language+query+using+Server-Sent+Events\u0026amp;theme=3a7c3ab4ae328d71982e588b\u0026amp;signature=7fb670765fc9c084ef91cb3aec1a2a320d37f9ca130db31284daa60da828b12e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Query Knowledge Engine - Decisional API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Streams a response to a natural language query using Server-Sent Events\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://decisionalai-3f1c6a08.mintlify.app/_mintlify/api/og/v2?division=Knowledge+Engines\u0026amp;title=Query+Knowledge+Engine\u0026amp;description=Streams+a+response+to+a+natural+language+query+using+Server-Sent+Events\u0026amp;theme=3a7c3ab4ae328d71982e588b\u0026amp;signature=7fb670765fc9c084ef91cb3aec1a2a320d37f9ca130db31284daa60da828b12e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/decisionalai-3f1c6a08/FXGFgvtUfkOW3C7n/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Decisional API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0D9373\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.getdecisional.ai/api-reference/knowledge-engines/query\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/knowledge-engines/query.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.getdecisional.ai/#organization\",\"name\":\"Decisional API\",\"url\":\"https://docs.getdecisional.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/decisionalai-3f1c6a08/tJiI-yC_ft_MF1uP/logo/light.svg?fit=max\u0026auto=format\u0026n=tJiI-yC_ft_MF1uP\u0026q=85\u0026s=11eb2c3a6a678aaa84af3325dc2129fb\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.getdecisional.ai#website\",\"name\":\"Decisional API\",\"url\":\"https://docs.getdecisional.ai\",\"publisher\":{\"@id\":\"https://docs.getdecisional.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.getdecisional.ai/api-reference/knowledge-engines/query#webpage\",\"url\":\"https://docs.getdecisional.ai/api-reference/knowledge-engines/query\",\"name\":\"Query Knowledge Engine\",\"description\":\"Streams a response to a natural language query using Server-Sent Events\",\"dateModified\":\"2025-12-11T11:47:46.307Z\",\"isPartOf\":{\"@id\":\"https://docs.getdecisional.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.getdecisional.ai/api-reference/knowledge-engines/query#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.getdecisional.ai/api-reference/knowledge-engines/query#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Knowledge Engines\",\"item\":\"https://docs.getdecisional.ai/api-reference/knowledge-engines/create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Query Knowledge Engine\",\"item\":\"https://docs.getdecisional.ai/api-reference/knowledge-engines/query\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.getdecisional.ai/api-reference/knowledge-engines/query#apireference\",\"headline\":\"Query Knowledge Engine\",\"name\":\"Query Knowledge Engine\",\"description\":\"Streams a response to a natural language query using Server-Sent Events\",\"url\":\"https://docs.getdecisional.ai/api-reference/knowledge-engines/query\",\"mainEntityOfPage\":{\"@id\":\"https://docs.getdecisional.ai/api-reference/knowledge-engines/query#webpage\"},\"dateModified\":\"2025-12-11T11:47:46.307Z\",\"publisher\":{\"@id\":\"https://docs.getdecisional.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.getdecisional.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Decisional API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Decisional API","nav":{"global":null,"tabs":[{"tab":"User Guide","pages":[{"title":"User Guide","href":"/welcome/introduction"}]},{"tab":"API Reference","groups":[{"group":"","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Supported Models","href":"/api-reference/models"}]},{"group":"Knowledge Engines","pages":[{"title":"Create Knowledge Engine","openapi":"POST /api/v1/knowledge-engines","api":"POST /api/v1/knowledge-engines","href":"/api-reference/knowledge-engines/create"},{"title":"List Knowledge Engines","openapi":"GET /api/v1/knowledge-engines","href":"/api-reference/knowledge-engines/list"},{"title":"Get Knowledge Engine","openapi":"GET /api/v1/knowledge-engines/{id}","href":"/api-reference/knowledge-engines/get"},{"title":"Update Knowledge Engine","openapi":"PUT /api/v1/knowledge-engines/{id}","href":"/api-reference/knowledge-engines/update"},{"title":"Delete Knowledge Engine","openapi":"DELETE /api/v1/knowledge-engines/{id}","href":"/api-reference/knowledge-engines/delete"},{"title":"List Data Sources for Knowledge Engine","openapi":"GET /api/v1/knowledge-engines/{id}/data-sources","description":"Returns a list of all data sources associated with a knowledge engine","href":"/api-reference/knowledge-engines/list-data-sources"},{"title":"Query Knowledge Engine","openapi":"POST /api/v1/knowledge-engines/{id}/query","href":"/api-reference/knowledge-engines/query"},{"title":"Retrieve Chunks","openapi":"POST /api/v1/knowledge-engines/{id}/retrieve","description":"Returns raw retrieved chunks from a knowledge engine without streaming or workflow creation","href":"/api-reference/knowledge-engines/retrieve"}]},{"group":"Data Sources","pages":[{"title":"Create Data Source","openapi":"POST /api/v1/data-sources","href":"/api-reference/data-sources/create"},{"title":"Get Data Source","openapi":"GET /api/v1/data-sources/{id}","href":"/api-reference/data-sources/get"},{"title":"Delete Data Source","openapi":"DELETE /api/v1/data-sources/{id}","href":"/api-reference/data-sources/delete"},{"title":"Create Data Source Batch","openapi":"POST /api/v1/data-sources/batch","href":"/api-reference/data-sources/batch"},{"title":"Delete Data Sources Batch","openapi":"DELETE /api/v1/data-sources/batch","href":"/api-reference/data-sources/batch-delete"},{"title":"Get Presigned URL for Data Source","openapi":"GET /api/v1/data-sources/{id}/presigned-url","href":"/api-reference/data-sources/presigned-url"}]},{"group":"Workflows","pages":[{"title":"Create Workflow","openapi":"POST /api/v1/workflows","href":"/api-reference/workflows/create"},{"title":"Workflows Error Handling","icon":"triangle-exclamation","href":"/api-reference/workflows/error-handling"}]},{"group":"Tool Runs","pages":[{"title":"Create Tool Run","api":"POST /api/v1/tool-runs","href":"/api-reference/tool-runs/create"}]}]}]},"basePath":"","title":"Query Knowledge Engine - Decisional API","buildId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","deploymentId":"dpl_36EDyZCDfRuoUD9af5CH4M1bqY2h","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DCDCdBVX.js","utils-ME8dDnLe.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-0e84ACsd.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-wgRBj-ia.js","snippetPresets-C11Sgb-o.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-C0lapOpP.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ZeRQV8fF.js","shallow-BupWh095.js","getApiPlaygroundDisplay-BnYQO2Ss.js","CodeSnippet-RKKOc8c_.js","CodeSnippets-Drf_m8wS.js","Page-Bevw23-4.js","getPastedJson-u6QiPzNZ.js","icon-Bb-CBSxO.js","MethodPill-F7l5AI7V.js","DuplicateIcon-IiAXkdSg.js","createIcon-FliI8EBc.js","DynamicMarkdown-B62XqCSI.js","SectionHeading-Dj31pT03.js","axios-vUo_bRtp.js","Markdown-BOgQCTwD.js","clsx-BIWXJmsZ.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DKZWslLH.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-UDqbR6xh.js"]}