Give your Agent persistent knowledge that stays available throughout every session
The Knowledge Base section in the Agent tab is where you attach persistent knowledge directly to your Agent. This is different from the Query Knowledge Base tool — the Knowledge Base section defines the Agent’s own background knowledge that is always available, while the Query Knowledge Base tool is a tool the Agent calls on-demand to search specific documents.Think of it this way: the Knowledge Base section is like giving an employee a reference manual they always have on their desk, while the Query Knowledge Base tool is like sending them to search through filing cabinets when a specific question comes up.
Knowledge attached through this section is persisted for the entire Agent session. The Agent can draw on this knowledge at any time without needing to call a tool. This makes it ideal for:
Static reference knowledge — product catalogs, company policies, FAQs, brand guidelines, or any information the Agent should always know.
Accumulated session knowledge — information the Agent gathers and stores during a conversation that should persist across messages.
For example, an Agent can have three Query Knowledge Base tools configured to search different document collections on demand, and also have a static global Knowledge Base attached through this section that provides foundational context the Agent always has access to — even if no tool is called.
In the Knowledge Base section of the Agent tab, click to attach an existing Knowledge Base or create a new one.
Select one or more Knowledge Bases from the dropdown.
Create your Knowledge Bases from the Knowledge Base section in the main sidebar before building your Agent. Upload your documents and wait for each file to show a green checkmark confirming it has been indexed. Then come back to the Agent builder and attach it here.
Click Configure Metadata to add metadata to your Knowledge Base documents. Metadata helps the Agent filter and prioritize information — for example, tagging documents by department, date, or document type.
Click Settings to adjust how the Knowledge Base behaves within your Agent. These settings control retrieval behavior like chunk size, overlap, and relevance scoring.
Attaches persistent knowledge the Agent always has access to
A tool the Agent calls on-demand to search specific documents
When it’s used
Always available — no tool call needed
Only when the Agent decides to search (or is prompted to)
Best for
Static reference material, global context, accumulated knowledge
Searching large document collections, querying specific data
Example
Company brand guidelines the Agent should always follow
Searching a collection of quarterly earnings reports for a specific metric
Use the Knowledge Base section for information your Agent should always know. Use the Query Knowledge Base tool when the Agent needs to search through large or varied document collections on demand. You can use both together — for example, attach a company overview as persistent knowledge and add Query KB tools for searching detailed financial records.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"VectorShift","colors":{"primary":"#6366f1","light":"#818cf8","dark":"#4f46e5"},"logo":{"light":"https://mintcdn.com/vectorshift/ko1lD3nuBSgpmLV4/logo/vectorshift-logo.png?fit=max\u0026auto=format\u0026n=ko1lD3nuBSgpmLV4\u0026q=85\u0026s=0b909e21221badbcd2332ad0c7b06a8e","dark":"https://mintcdn.com/vectorshift/ko1lD3nuBSgpmLV4/logo/vectorshift-logo.png?fit=max\u0026auto=format\u0026n=ko1lD3nuBSgpmLV4\u0026q=85\u0026s=0b909e21221badbcd2332ad0c7b06a8e"},"favicon":"https://mintcdn.com/vectorshift/PSG1OGMwi51Mi0EL/android-chrome-512x512.png?fit=max\u0026auto=format\u0026n=PSG1OGMwi51Mi0EL\u0026q=85\u0026s=1a5016324923f89a576a8696462ef07e","appearance":{"default":"system","strict":false},"navbar":{"links":[{"href":"/support","label":"Support"},{"href":"https://app.vectorshift.ai/account/api-keys","label":"API Keys"}],"primary":{"type":"button","label":"Platform","href":"https://app.vectorshift.ai"}},"footer":{"socials":{"x":"https://x.com/vectorshiftai","linkedin":"https://linkedin.com/company/vectorshift"}},"search":{"prompt":"Search the SDK, API, and platform docs…"},"seo":{"metatags":{"og:image":"/logo/vectorshift-logo.png"},"indexing":"navigable"},"icons":{"library":"lucide"},"styling":{"codeblocks":{"languages":{}},"latex":true},"contextual":{"options":["copy","view","chatgpt","claude","aistudio","perplexity"],"display":"header"},"navigation":{"global":{"anchors":[{"anchor":"Book a Demo","icon":"calendar","href":"https://calendly.com/albert_mao/vectorshift-intro-chat"},{"anchor":"Changelog","icon":"history","href":"https://vectorshift.ai/blog?tag=changelog"},{"anchor":"Blog","icon":"newspaper","href":"https://vectorshift.ai/blog"},{"anchor":"Tutorials","icon":"youtube","href":"https://www.youtube.com/@VectorShiftAI"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"vectorshift","hasAudioNarration":false,"actualSubdomain":"vectorshift","customDomains":["docs.vectorshift.ai"],"gitSource":{"type":"github","owner":"vectorshift","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a4fe02b59f45c534f1a9960","collectionId":"f85b947e-62c3-492f-9432-347ee09473da","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6a58eb7c7bfe054002014416:success","clientVersion":"0.0.4044","searchFilterCounts":[{"language":"default","tag":"SDK","count":136},{"language":"default","tag":"Documentation","count":124},{"language":"default","tag":"Examples","count":84},{"language":"default","tag":"Nodes","count":65},{"language":"default","tag":"Platform","count":61},{"language":"default","tag":"Pipeline","count":38},{"language":"default","tag":"API Reference","count":30},{"language":"default","tag":"Agent","count":27},{"language":"default","tag":"Knowledge Base","count":24},{"language":"default","tag":"Interfaces","count":20}]},"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":[{"filePath":"style.css","content":"@media (min-width:1024px){.hidden.xl\\:flex{display:flex!important}div.z-10.hidden:has(>div.xl\\:flex){display:block!important}}"}],"page":{"pagePath":"platform/agents/knowledge-base","slug":"/platform/agents/knowledge-base","pageMetadata":{"title":"Knowledge Base","description":"Give your Agent persistent knowledge that stays available throughout every session","href":"/platform/agents/knowledge-base"},"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: \"Give your Agent persistent knowledge that stays available throughout every session\"\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={em:`em`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,OptimizedImage,Table,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Knowledge Base`}),` section in the Agent tab is where you attach persistent knowledge directly to your Agent. This is different from the `,_jsx(_components.strong,{children:`Query Knowledge Base`}),` tool — the Knowledge Base section defines the Agent’s own background knowledge that is always available, while the Query Knowledge Base tool is a tool the Agent calls on-demand to search specific documents.`]}),`\n`,_jsx(_components.p,{children:`Think of it this way: the Knowledge Base section is like giving an employee a reference manual they always have on their desk, while the Query Knowledge Base tool is like sending them to search through filing cabinets when a specific question comes up.`}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/knowledge-base-section.png?fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=f5318a13fbedcdc9bc82800501f374ab`,alt:`Knowledge Base section in the Agent builder`,\"data-og-width\":`1100`,width:`1100`,\"data-og-height\":`480`,height:`480`,\"data-path\":`images/platform/agents/knowledge-base-section.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/knowledge-base-section.png?w=280\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=3801185010df70b1cf5c6c9ccb5a040d 280w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/knowledge-base-section.png?w=560\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=f00b67809a2f83f3a2b6ed3d0ce4ebe1 560w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/knowledge-base-section.png?w=840\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=3b15cd9c1c2c7fa5cfec2417ea1de5d0 840w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/knowledge-base-section.png?w=1100\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=c7e1e02c004d01fb8c3dc65a39a0f294 1100w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/knowledge-base-section.png?w=1650\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=9e91e22eafc09d418c410f8479573ebd 1650w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/knowledge-base-section.png?w=2500\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=c3d632fb69ee47d0c08c7a650cdf6080 2500w`}),`\n`,_jsx(Heading,{level:`2`,id:`how-it-works`,children:`How it works`}),`\n`,_jsx(_components.p,{children:`Knowledge attached through this section is persisted for the entire Agent session. The Agent can draw on this knowledge at any time without needing to call a tool. This makes it ideal for:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Static reference knowledge`}),` — product catalogs, company policies, FAQs, brand guidelines, or any information the Agent should always know.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Accumulated session knowledge`}),` — information the Agent gathers and stores during a conversation that should persist across messages.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`For example, an Agent can have three `,_jsx(_components.strong,{children:`Query Knowledge Base`}),` tools configured to search different document collections on demand, and `,_jsx(_components.em,{children:`also`}),` have a static global Knowledge Base attached through this section that provides foundational context the Agent always has access to — even if no tool is called.`]}),`\n`,_jsx(Heading,{level:`2`,id:`adding-a-knowledge-base`,children:`Adding a Knowledge Base`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`In the `,_jsx(_components.strong,{children:`Knowledge Base`}),` section of the Agent tab, click to attach an existing Knowledge Base or create a new one.`]}),`\n`,_jsx(_components.li,{children:`Select one or more Knowledge Bases from the dropdown.`}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Create your Knowledge Bases from the `,_jsx(_components.strong,{children:`Knowledge Base`}),` section in the main sidebar before building your Agent. Upload your documents and wait for each file to show a green checkmark confirming it has been indexed. Then come back to the Agent builder and attach it here.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`configure-metadata`,children:`Configure Metadata`}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Configure Metadata`}),` to add metadata to your Knowledge Base documents. Metadata helps the Agent filter and prioritize information — for example, tagging documents by department, date, or document type.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/configure-metadata.png?fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=c1f881ba6cd379d556cde21cb6abde06`,alt:`Configure Metadata settings`,\"data-og-width\":`1100`,width:`1100`,\"data-og-height\":`480`,height:`480`,\"data-path\":`images/platform/agents/configure-metadata.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/configure-metadata.png?w=280\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=31c35dfcbdc35248daef5caf4b85464e 280w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/configure-metadata.png?w=560\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=180bd784ec6e900d8b17543c8ab28742 560w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/configure-metadata.png?w=840\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=602bd8d1728e99cd2c6ca2714ec39964 840w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/configure-metadata.png?w=1100\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=59a7e8e56a45237a971152e8ee1dca31 1100w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/configure-metadata.png?w=1650\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=fb0dea18dcd4fddb5eba00c00d9d4f01 1650w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/configure-metadata.png?w=2500\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=d9b2b7e24d3cc1fdadb4e0aebad3bde1 2500w`}),`\n`,_jsx(Heading,{level:`2`,id:`settings`,children:`Settings`}),`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Settings`}),` to adjust how the Knowledge Base behaves within your Agent. These settings control retrieval behavior like chunk size, overlap, and relevance scoring.`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/kb-settings.png?fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=df4f5de6c0b0087fd83581c024d8e2c4`,alt:`Knowledge Base settings panel`,\"data-og-width\":`1100`,width:`1100`,\"data-og-height\":`480`,height:`480`,\"data-path\":`images/platform/agents/kb-settings.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/kb-settings.png?w=280\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=b0de074ea859eb69f415933c889382e8 280w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/kb-settings.png?w=560\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=8fb4402b75c40180f5f5291ef46dca5c 560w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/kb-settings.png?w=840\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=03170f897b122df8cf6eea76859552c2 840w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/kb-settings.png?w=1100\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=4da4382409f56668eae44c9dbef01acf 1100w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/kb-settings.png?w=1650\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=72e15bc752b483693c730f939e9ea6af 1650w, https://mintcdn.com/vectorshift/1xkNpYr5adROGL-v/images/platform/agents/kb-settings.png?w=2500\u0026fit=max\u0026auto=format\u0026n=1xkNpYr5adROGL-v\u0026q=85\u0026s=8f8d7355d971f031bde37aecc8a6acd9 2500w`}),`\n`,_jsx(Heading,{level:`2`,id:`knowledge-base-vs-query-knowledge-base-tool`,children:`Knowledge Base vs. Query Knowledge Base tool`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:`Knowledge Base section`}),_jsx(_components.th,{children:`Query Knowledge Base tool`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`What it does`})}),_jsx(_components.td,{children:`Attaches persistent knowledge the Agent always has access to`}),_jsx(_components.td,{children:`A tool the Agent calls on-demand to search specific documents`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`When it’s used`})}),_jsx(_components.td,{children:`Always available — no tool call needed`}),_jsx(_components.td,{children:`Only when the Agent decides to search (or is prompted to)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Best for`})}),_jsx(_components.td,{children:`Static reference material, global context, accumulated knowledge`}),_jsx(_components.td,{children:`Searching large document collections, querying specific data`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Example`})}),_jsx(_components.td,{children:`Company brand guidelines the Agent should always follow`}),_jsx(_components.td,{children:`Searching a collection of quarterly earnings reports for a specific metric`})]})]})]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Use the Knowledge Base section for information your Agent should always know. Use the Query Knowledge Base tool when the Agent needs to search through large or varied document collections on demand. You can use both together — for example, attach a company overview as persistent knowledge and add Query KB tools for searching detailed financial records.`})})]})}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":{"codeStyling":{"languages":{}},"config":{},"pageMetadata":{"title":"Knowledge Base","description":"Give your Agent persistent knowledge that stays available throughout every session","href":"/platform/agents/knowledge-base"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"How it works","slug":"how-it-works","depth":2,"children":[]},{"title":"Adding a Knowledge Base","slug":"adding-a-knowledge-base","depth":2,"children":[]},{"title":"Configure Metadata","slug":"configure-metadata","depth":2,"children":[]},{"title":"Settings","slug":"settings","depth":2,"children":[]},{"title":"Knowledge Base vs. Query Knowledge Base tool","slug":"knowledge-base-vs-query-knowledge-base-tool","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"vectorshift","siteName":"VectorShift","title":"Knowledge Base - VectorShift","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-07T12:17:17.696Z","originalFileLocation":"platform/agents/knowledge-base.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=\"Give your Agent persistent knowledge that stays available throughout every session\">\u003cmeta data-mint-head name=\"application-name\" content=\"VectorShift\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_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/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Knowledge Base - VectorShift\">\u003cmeta data-mint-head property=\"og:description\" content=\"Give your Agent persistent knowledge that stays available throughout every session\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"VectorShift\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.vectorshift.ai/platform/agents/knowledge-base\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://vectorshift.mintlify.app/logo/vectorshift-logo.png\">\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=\"Knowledge Base - VectorShift\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Give your Agent persistent knowledge that stays available throughout every session\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://vectorshift.mintlify.app/logo/vectorshift-logo.png\">\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/vectorshift/TwRU3RaBNwnTjf5H/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"VectorShift\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6366f1\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.vectorshift.ai/platform/agents/knowledge-base\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/platform/agents/knowledge-base.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.vectorshift.ai/#organization\",\"name\":\"VectorShift\",\"url\":\"https://docs.vectorshift.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/vectorshift/ko1lD3nuBSgpmLV4/logo/vectorshift-logo.png?fit=max\u0026auto=format\u0026n=ko1lD3nuBSgpmLV4\u0026q=85\u0026s=0b909e21221badbcd2332ad0c7b06a8e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.vectorshift.ai#website\",\"name\":\"VectorShift\",\"url\":\"https://docs.vectorshift.ai\",\"publisher\":{\"@id\":\"https://docs.vectorshift.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.vectorshift.ai/platform/agents/knowledge-base#webpage\",\"url\":\"https://docs.vectorshift.ai/platform/agents/knowledge-base\",\"name\":\"Knowledge Base\",\"description\":\"Give your Agent persistent knowledge that stays available throughout every session\",\"dateModified\":\"2026-04-07T12:17:17.696Z\",\"isPartOf\":{\"@id\":\"https://docs.vectorshift.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.vectorshift.ai/platform/agents/knowledge-base#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.vectorshift.ai/platform/agents/knowledge-base#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Platform\",\"item\":\"https://docs.vectorshift.ai/platform/pipelines/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agents\",\"item\":\"https://docs.vectorshift.ai/platform/agents/introduction\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Agent Tab\",\"item\":\"https://docs.vectorshift.ai/platform/agents/agent-instructions\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Knowledge Base\",\"item\":\"https://docs.vectorshift.ai/platform/agents/knowledge-base\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.vectorshift.ai/platform/agents/knowledge-base#article\",\"headline\":\"Knowledge Base\",\"name\":\"Knowledge Base\",\"description\":\"Give your Agent persistent knowledge that stays available throughout every session\",\"url\":\"https://docs.vectorshift.ai/platform/agents/knowledge-base\",\"mainEntityOfPage\":{\"@id\":\"https://docs.vectorshift.ai/platform/agents/knowledge-base#webpage\"},\"image\":\"https://docs.vectorshift.ai/logo/vectorshift-logo.png\",\"dateModified\":\"2026-04-07T12:17:17.696Z\",\"publisher\":{\"@id\":\"https://docs.vectorshift.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.vectorshift.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"VectorShift\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"VectorShift","nav":{"global":{"anchors":[{"anchor":"Book a Demo","icon":"calendar","href":"https://calendly.com/albert_mao/vectorshift-intro-chat"},{"anchor":"Changelog","icon":"history","href":"https://vectorshift.ai/blog?tag=changelog"},{"anchor":"Blog","icon":"newspaper","href":"https://vectorshift.ai/blog"},{"anchor":"Tutorials","icon":"youtube","href":"https://www.youtube.com/@VectorShiftAI"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"},{"title":"Support","href":"/support"},{"title":"Sub-processors","href":"/sub-processors"}]},{"group":"Platform","pages":[{"group":"Workflows","pages":[{"title":"Overview","href":"/platform/pipelines/overview"},{"group":"Workflow Mechanics","pages":[{"title":"Variables","href":"/platform/pipelines/variables"},{"title":"Data Types","href":"/platform/pipelines/data-types"},{"title":"Dependencies","href":"/platform/pipelines/dependencies"}]}]},{"group":"Agents","pages":[{"title":"Agents","href":"/platform/agents/introduction"},{"title":"Build an Agent","href":"/platform/agents/build-an-agent"},{"group":"Agent Tab","pages":[{"title":"Agent Instructions","href":"/platform/agents/agent-instructions"},{"title":"AI Model","href":"/platform/agents/ai-model"},{"title":"Agent Tools","description":"Add, configure, and manage the tools your Agent can use","href":"/platform/agents/agent-tools"},{"title":"Knowledge Base","href":"/platform/agents/knowledge-base"},{"title":"Session Memory","description":"Control whether your Agent retains context across a conversation","href":"/platform/agents/session-memory"},{"title":"@ Tag References","href":"/platform/agents/at-tag-references"}]},{"title":"Customize Your Agent","href":"/platform/agents/interface-tab"},{"title":"Monitor Your Agent","href":"/platform/agents/manager-tab"},{"title":"Test and Deploy","href":"/platform/agents/chat-preview"},{"title":"Save and Version","href":"/platform/agents/saving-and-versioning"},{"title":"Share with Teammates","href":"/platform/agents/sharing"},{"title":"Tips and Best Practices","href":"/platform/agents/tips"}]},{"group":"Knowledge Base","pages":[{"title":"Overview","href":"/platform/knowledge/overview"},{"title":"Creating a New Knowledge Base","href":"/platform/knowledge/creating"},{"title":"Adding Data to Your Knowledge Base","href":"/platform/knowledge/adding-data"},{"title":"Managing Documents","href":"/platform/knowledge/managing-documents"},{"title":"Knowledge Base Settings","href":"/platform/knowledge/settings"},{"title":"Configuring Metadata on an Existing Knowledge Base","href":"/platform/knowledge/configure-metadata"},{"title":"Setting Up the Search Interface","href":"/platform/knowledge/search-interface"},{"title":"Using the Search Experience","href":"/platform/knowledge/search-experience"},{"title":"Monitoring Usage with the Manager Tab","href":"/platform/knowledge/manager-tab"},{"title":"Sharing a Knowledge Base","href":"/platform/knowledge/sharing"},{"title":"Accessing the API","href":"/platform/knowledge/api"},{"title":"Reference","href":"/platform/knowledge/reference"}]},{"group":"Interfaces","pages":[{"title":"Overview","href":"/platform/interfaces/overview"},{"group":"Chatbots","pages":[{"title":"Overview","href":"/platform/interfaces/chatbots/overview"},{"title":"Agentic Chatbot","href":"/platform/interfaces/chatbots/agentic"},{"title":"Workflow chatbot","href":"/platform/interfaces/chatbots/workflow"},{"title":"Chat Assistant vs Website Chatbot","href":"/platform/interfaces/chatbots/assistant-vs-website"},{"title":"Chat Assistant","href":"/platform/interfaces/chatbots/assistant"},{"title":"Website Chatbot","href":"/platform/interfaces/chatbots/website"},{"title":"Deploy to Slack","href":"/platform/interfaces/chatbots/slack"},{"title":"Deploy via WhatsApp and SMS","href":"/platform/interfaces/chatbots/whatsapp"},{"title":"Chat via API","href":"/platform/interfaces/chatbots/api"},{"title":"Chat analytics","href":"/platform/interfaces/chatbots/analytics"}]},{"title":"Search","href":"/platform/interfaces/search"},{"group":"Forms","pages":[{"title":"Overview","href":"/platform/interfaces/forms/overview"},{"title":"Building Your First Form","href":"/platform/interfaces/forms/building"},{"title":"Personalizing Your Form","href":"/platform/interfaces/forms/personalizing"},{"title":"Sharing Your Form","href":"/platform/interfaces/forms/sharing"},{"title":"Additional Features","href":"/platform/interfaces/forms/additional-features"},{"title":"Tracking Performance","href":"/platform/interfaces/forms/analytics"},{"title":"Reviewing Submissions","href":"/platform/interfaces/forms/submissions"}]},{"title":"Voicebots","href":"/platform/interfaces/voicebots"}]},{"group":"Portals","pages":[{"title":"Overview","href":"/platform/portals/overview"},{"title":"Creating a Portal","href":"/platform/portals/creating-a-portal"},{"title":"The Portal User Experience","href":"/platform/portals/portal-user-experience"},{"title":"Configuring a Portal","href":"/platform/portals/configuring-a-portal"},{"title":"Workspace","href":"/platform/portals/workspace"},{"title":"Deploying and Sharing a Portal","href":"/platform/portals/deploying-and-sharing"}]},{"group":"Marketplaces","pages":[{"title":"Overview","href":"/platform/marketplaces/overview"},{"title":"Publish to Marketplace","href":"/platform/marketplaces/publish"},{"title":"Ready-to-use templates","href":"/platform/marketplaces/templates"}]},{"title":"Transformations","href":"/platform/transformations"},{"title":"Files","href":"/platform/files"}]},{"group":"Nodes","pages":[{"group":"Start","pages":[{"title":"Input","href":"/nodes/input/overview"},{"title":"Output","href":"/nodes/output/overview"},{"title":"Start","href":"/nodes/start-node/overview"},{"title":"Trigger","href":"/nodes/trigger/overview"},{"title":"Browser Extension","href":"/nodes/browser-extension/overview"},{"title":"Note","href":"/nodes/note/overview"}]},{"group":"VectorShift","pages":[{"title":"Workflow Node","href":"/nodes/workflow/overview"},{"title":"Agent Node","href":"/nodes/agent/overview"}]},{"group":"Knowledge","pages":[{"title":"Knowledge Base Reader","href":"/nodes/knowledge-base-v3/overview"},{"title":"Create Knowledge Base","href":"/nodes/create-knowledge-base/overview"},{"title":"Knowledge Base Fetch Items","href":"/nodes/knowledge-base-fetch-items/overview"},{"title":"Knowledge Base Fetch Document Content","href":"/nodes/knowledge-base-fetch-document-content/overview"},{"title":"Knowledge Base Loader","href":"/nodes/knowledge-base-loader/overview"},{"title":"Sync Knowledge Base","href":"/nodes/sync-knowledge-base/overview"},{"title":"Knowledge Base Agent","href":"/nodes/knowledge-base-agent/overview"},{"title":"Semantic Search","href":"/nodes/semantic-search/overview"},{"title":"File","href":"/nodes/file/overview"},{"title":"File Save","href":"/nodes/file-save/overview"},{"title":"Create Workspace","href":"/nodes/create-workspace/overview"}]},{"group":"AI","pages":[{"title":"OpenAI LLM","href":"/nodes/openai/overview"},{"title":"Anthropic LLM","href":"/nodes/anthropic/overview"},{"title":"Google LLM","href":"/nodes/google/overview"},{"title":"Cohere LLM","href":"/nodes/cohere/overview"},{"title":"Custom LLM","href":"/nodes/custom/overview"},{"title":"Open Source LLM","href":"/nodes/open-source/overview"},{"title":"AWS Bedrock LLM","href":"/nodes/aws-bedrock/overview"},{"title":"xAI LLM","href":"/nodes/xai/overview"},{"title":"Perplexity LLM","href":"/nodes/perplexity/overview"},{"title":"Deep Research","href":"/nodes/deep-research/overview"},{"title":"Image to Image","href":"/nodes/image-to-image/overview"},{"title":"Text to Image","href":"/nodes/text-to-image/overview"},{"title":"Image to Text","href":"/nodes/image-to-text/overview"},{"title":"Speech to Text","href":"/nodes/speech-to-text/overview"},{"title":"Text to Speech","href":"/nodes/text-to-speech/overview"}]},{"group":"Logic","pages":[{"title":"Condition","href":"/nodes/condition/overview"},{"title":"AI Routing","href":"/nodes/ai-routing/overview"},{"title":"Merge - Pick First","href":"/nodes/merge-pick-first/overview"},{"title":"Merge - Join All","href":"/nodes/merge-join-all/overview"},{"title":"Set Variable","href":"/nodes/set-variable/overview"},{"title":"Code","href":"/nodes/code/overview"}]},{"group":"Chat","pages":[{"title":"Chat File Reader","href":"/nodes/chat-file-reader/overview"},{"title":"Chat Memory","href":"/nodes/chat-memory/overview"},{"title":"Create Session","href":"/nodes/create-session/overview"},{"title":"Data Collector","href":"/nodes/data-collector/overview"},{"title":"Listen — Button","href":"/nodes/listen-button/overview"},{"title":"Listen — Capture","href":"/nodes/listen-capture/overview"},{"title":"Post Message","href":"/nodes/post-message/overview"},{"title":"Talk — Message","href":"/nodes/talk-message/overview"},{"title":"Talk — Image","href":"/nodes/talk-image/overview"},{"title":"Talk — Card","href":"/nodes/talk-card/overview"},{"title":"Talk — Carousel","href":"/nodes/talk-carousel/overview"},{"title":"Read Session Messages","href":"/nodes/read-session-messages/overview"},{"title":"Get Run Data","href":"/nodes/get-run-data/overview"}]}]},{"group":"Account","pages":[{"title":"Profile","href":"/account/profile"},{"group":"Organizations","pages":[{"title":"Overview","href":"/account/organizations/overview"},{"title":"Enterprise Connections","href":"/account/organizations/enterprise-connections"}]},{"group":"Subscriptions","pages":[{"title":"Overview","href":"/account/subscriptions/overview"},{"title":"Personal Subscriptions","href":"/account/subscriptions/personal"},{"title":"Organization Subscriptions","href":"/account/subscriptions/organization"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"tab":"SDK","pages":[{"title":"SDK","href":"/sdk"}]}]},"basePath":"","title":"Knowledge Base - VectorShift","buildId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","deploymentId":"dpl_DeHjVRGfFnhYQwHnfC2pjeXXv8h9","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-BG6oD64b.js","lightbox-handle-r17bVUz3.js"]}