Upload pre-computed embeddings for advanced similarity search.
This endpoint accepts vector embeddings that you’ve generated externally,
allowing you to integrate with custom embedding models or existing vector databases.
The embeddings represent chunks of your content as numerical vectors.
The system stores these embeddings and makes them available for semantic search and similarity matching.
Use this when you want to leverage specialized embedding models or have existing vector representations.
When upsert=True, existing embeddings with the same chunk_id will be updated.
POST
/
embeddings
/
insert-raw-embeddings
Error
A valid request URL is required to generate request examples
Hit the Try it button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.
# Async usage is similar, just use async_client and awaitresult = client.upload.upload_embeddings( tenant_id="tenant_1234", sub_tenant_id="sub_tenant_4567", embeddings=[ [0.123413, 0.655367, 0.987654, 0.123456, 0.789012], [0.123413, 0.655367, 0.987654, 0.123456, 0.789012] ], file_id="CortexDoc1234")
Upload pre-computed embedding vectors directly to your tenant’s knowledge base. This is useful when you have your own embedding model or want to use embeddings from external sources.
Dimensional consistency validation across the tenant
Vector range and format validation
Database storage verification
Processing Time: Pre-computed embeddings are typically processed and searchable within 30 seconds to 2 minutes. Large embedding batches (1000+ vectors) may take up to 5 minutes. You can check processing status using the document ID returned in the response.
Default Sub-Tenant Behavior: If you don’t specify a sub_tenant_id, the embeddings will be uploaded to the default sub-tenant created when your tenant was set up. This is perfect for organization-wide embeddings that should be accessible across all departments.
Maximum dimensions: 2000 rows × 3024 columns; i.e, 2000 chunks with the dimensions, not more than 3024
Format: 2D array of numeric values (int or float)
Consistency: All embedding vectors must have the same dimension
Content: Embeddings array cannot be empty
Processing: Generates unique chunk IDs in format {batch_id}_{index} for each row.
Consider them as references of that particular embeddings vector. You will get back these chunk_ids, when you query something.
In the example on your right, the reference to [0.1, 0.2, 0.3, 0.4, 0.5] is CortexEmbeddings123_0
You can use these chunk IDs to link the original text which is being embedded
Dimensional consistency per tenant: All embedding vectors within a tenant must have identical dimensions. Different dimensional vectors require separate tenants
File ID Management: When you provide a file_id as a key in the document_metadata object, that specific ID will be used to identify your content. If no file_id is provided in the document_metadata, the system will automatically generate a unique identifier for you. This allows you to maintain consistent references to your content across your application while ensuring every piece of content has a unique identifier.
When you upload embeddings with a file_id that already exists in your tenant:
Overwrite Behavior: The existing embeddings with the same file_id will be completely replaced with the new embeddings
Processing: The new embeddings will go through validation and direct indexing (no embedding generation needed)
Search Results: Previous search results and vector data from the old embeddings will be replaced with the new embeddings
Idempotency: Uploading the same embeddings with the same file_id multiple times is safe and will result in the same final state
Important: When overwriting existing embeddings, all previous vector data, chunk IDs, and search indexes associated with that file_id will be permanently removed and replaced. This action cannot be undone.
Example Success Response for Duplicate File ID:
{ "message": "Embeddings uploaded successfully. Existing embeddings with file_id 'emb_123456' have been overwritten.", "file_id": "emb_123456", "status": "success"}
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cortex SDK","colors":{"primary":"#7C3AED","light":"#A78BFA","dark":"#5B21B6"},"logo":{"light":"https://mintcdn.com/cortex-ad5578da/93r4PO4gUrI78Ocp/logo/light.svg?fit=max\u0026auto=format\u0026n=93r4PO4gUrI78Ocp\u0026q=85\u0026s=714ff10a4ad07c6395ce3055058ad6b0","dark":"https://mintcdn.com/cortex-ad5578da/93r4PO4gUrI78Ocp/logo/dark.svg?fit=max\u0026auto=format\u0026n=93r4PO4gUrI78Ocp\u0026q=85\u0026s=60bcfb5d423a574bd4d5d9e215e9c9ab"},"favicon":"/favicon.svg","navbar":{"links":[{"label":"Support","href":"mailto:founders@usecortex.ai"}],"primary":{"type":"button","label":"Website","href":"https://www.usecortex.ai"}},"contextual":{"options":["copy","chatgpt","claude","perplexity"]},"styling":{"latex":false},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cortex-ad5578da","hasAudioNarration":false,"actualSubdomain":"cortex-ad5578da","customDomains":[],"gitSource":{"type":"github","owner":"usefindr","repo":"mintlify-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e71991916e8ce404fe66","collectionId":"5eb66c18-0ef1-4b97-af07-5d10c6c0b9a1","schemaVersion":"v2"},"entitlements":{},"buildId":"6ae929af9035b3471a2599bb:success","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"default","tag":"API Reference","count":24},{"language":"default","tag":"Guides","count":19},{"language":"default","tag":"Essentials","count":11},{"language":"default","tag":"Embeddings","count":5},{"language":"default","tag":"Knowledge Management","count":5},{"language":"default","tag":"Use Cases","count":5},{"language":"default","tag":"Knowledge Ingestion","count":4},{"language":"default","tag":"Query \u0026 Retrieval","count":3},{"language":"default","tag":"API Documentation","count":3},{"language":"default","tag":"Get Started","count":3}]},"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":"rbac-expansion","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":"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":"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":"editor-metadata","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},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"*,*::before,*::after{box-sizing:border-box}#content-side-layout div.code-group{display:none}.panel.w-full.xl\\:w-\\[28rem\\].mb-6.relative.max-h-\\[calc\\(100\\%-32px\\)\\].overflow-y-auto:has(#table-of-contents-custom){max-height:none!important;overflow:visible!important}:where(.mt-8.lg\\:mt-0.flex.flex-col.gap-6.xl\\:hidden.max-h-\\[30rem\\]),:where([class*=\"mt-8\"][class*=\"lg:mt-0\"][class*=\"flex\"][class*=\"flex-col\"][class*=\"gap-6\"][class*=\"xl:hidden\"][class*=\"max-h-[30rem]\"]){display:none!important;visibility:hidden!important;opacity:0!important;height:0!important;width:0!important;padding:0!important;margin:0!important;position:absolute!important;clip:rect(0, 0, 0, 0)!important;overflow:hidden!important}#content-side-layout{max-width:18rem!important}#content-area{width:calc(100% - 20rem)!important}#chat-assistant-sheet{display:none!important}#navbar{position:fixed}@media (min-width: 1024px){#header.relative{margin-top:7rem}}"}],"page":{"pagePath":"api-reference/endpoint/insert-raw-embeddings","slug":"/api-reference/endpoint/insert-raw-embeddings","pageMetadata":{"title":"Upload Embeddings","openapi":"POST /embeddings/insert-raw-embeddings","description":"Upload pre-computed embeddings for advanced similarity search.\n\nThis endpoint accepts vector embeddings that you’ve generated externally,\n allowing you to integrate with custom embedding models or existing vector databases.\n The embeddings represent chunks of your content as numerical vectors.\n\nThe system stores these embeddings and makes them available for semantic search and similarity matching.\n Use this when you want to leverage specialized embedding models or have existing vector representations.\nWhen upsert=True, existing embeddings with the same chunk_id will be updated.","href":"/api-reference/endpoint/insert-raw-embeddings"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Upload pre-computed embeddings for advanced similarity search.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"This endpoint accepts vector embeddings that you’ve generated externally,\\nallowing you to integrate with custom embedding models or existing vector databases.\\nThe embeddings represent chunks of your content as numerical vectors.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"The system stores these embeddings and makes them available for semantic search and similarity matching.\\nUse this when you want to leverage specialized embedding models or have existing vector representations.\\nWhen upsert=True, existing embeddings with the same chunk_id will be updated.\"\n })]\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];const TableOfContents=({title=`On this page`,items,minHeadingLevel=2,maxHeadingLevel=3,className=``,activeClassName=`text-primary dark:text-primary-light border-primary dark:border-primary-light hover:border-primary dark:hover:border-primary-light`,inactiveClassName=`hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300`})=>{const _components={a:`a`,..._provideComponents()};const[toc,setToc]=useState(items??[]);const[activeId,setActiveId]=useState(``);useEffect(()=>{if(items\u0026\u0026items.length)return;if(typeof document===`undefined`)return;const selectors=[];for(let lvl=minHeadingLevel;lvl\u003c=maxHeadingLevel;lvl++){selectors.push(`h${lvl}`)}const nodes=Array.from(document.querySelectorAll(selectors.join(`,`))).filter(el=>el.id);const built=[];let currentTop=null;nodes.forEach(el=>{const level=Number(el.tagName.slice(1));const node={id:el.id,label:el.textContent.trim(),href:`#${el.id}`,children:[]};if(level===minHeadingLevel){built.push(node);currentTop=node}else if(level>minHeadingLevel\u0026\u0026currentTop){currentTop.children.push(node)}else{built.push(node)}});setToc(built)},[items,minHeadingLevel,maxHeadingLevel]);useEffect(()=>{if(typeof document===`undefined`)return;const applyHash=()=>{const h=window.location.hash.replace(`#`,``);if(h)setActiveId(h)};applyHash();const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){setActiveId(entry.target.id)}})},{rootMargin:`0px 0px -70% 0px`,threshold:.1});const ids=toc.flatMap(i=>[i,...i.children??[]]).map(i=>i.id);ids.forEach(id=>{const el=document.getElementById(id);if(el)observer.observe(el)});window.addEventListener(`hashchange`,applyHash);return()=>{window.removeEventListener(`hashchange`,applyHash);observer.disconnect()}},[toc]);const Item=({node,depth=0})=>{const isActive=activeId===node.id;return _jsxs(`li`,{className:`toc-item mint-relative mint-ml-6`,\"data-depth\":depth,children:[_jsx(_components.a,{href:node.href,className:`mint-py-1 mint-block mint-font-medium ${isActive?activeClassName:inactiveClassName}`,style:depth>0?{marginLeft:`${depth}rem`}:{},onClick:()=>setActiveId(node.id),children:node.label}),node.children\u0026\u0026node.children.length>0\u0026\u0026_jsx(_Fragment,{children:node.children.map(child=>_jsx(Item,{node:child,depth:depth+1},child.href))})]})};const data=toc\u0026\u0026toc.length?toc:items||[];return _jsx(`div`,{className:`mint-text-gray-600 mint-text-sm mint-leading-6 mint-w-[18rem] mint-pb-4 mint--mt-10 mint-pt-10 mint-hidden xl:mint-block ${className}`,id:`table-of-contents-custom`,children:_jsxs(`ul`,{id:`table-of-contents-custom-content`,className:`toc`,children:[_jsx(`li`,{className:`toc-item mint-relative`,children:_jsxs(`div`,{className:`mint-text-gray-700 dark:mint-text-gray-300 mint-font-medium mint-flex mint-items-center mint-space-x-2 mint-py-1`,children:[_jsxs(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,xmlns:`http://www.w3.org/2000/svg`,className:`mint-h-3 mint-w-3`,children:[_jsx(`path`,{d:`M2.44434 12.6665H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 3.3335H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 8H7.33323`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),_jsx(`span`,{children:title})]})}),data.map(node=>_jsx(Item,{node},node.href))]})})};function _createMdxContent(props){const _components={a:`a`,blockquote:`blockquote`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Tab,Tabs,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(Tip,{children:[` Hit the `,_jsx(_components.code,{children:`Try it`}),` button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.`]}),`\n`,_jsx(Heading,{level:`3`,id:`examples`,children:`Examples`}),`\n`,_jsxs(Tabs,{children:[_jsx(Tab,{title:`API Request`,id:`api-request`,children:_jsx(CodeBlock,{filename:``,expandable:`true`,numberOfLines:`27`,language:`shellscript`,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:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`27`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'https://api.usecortex.ai/embeddings/insert-raw-embeddings'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'accept: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-H `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`-d `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tenant_id\": \"string\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_tenant_id\": \"\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"embeddings\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`{`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tenant_id\": \"string\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sub_tenant_id\": \"string\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"source_id\": \"string\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"metadata\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"additionalProp1\": {}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"embeddings\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"chunk_id\": \"string\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"embedding\": [`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 0`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"upsert\": false`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`}'`})}),`\n`]})})})}),_jsx(Tab,{title:`TypeScript`,id:`typescript`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`9`,language:`typescript`,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:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`9`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` client`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`upload`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`uploadEmbeddings`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` tenant_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"tenant_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sub_tenant_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"sub_tenant_4567\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` embeddings:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.123413`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.655367`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.987654`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.123456`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.789012`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.123413`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.655367`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.987654`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.123456`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.789012`}),_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:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` file_id:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"CortexDoc1234\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`]})})})}),_jsx(Tab,{title:`Python (Sync)`,id:`python-sync`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`python`,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:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`10`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Async usage is similar, just use async_client and await`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` client.upload.upload_embeddings(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` tenant_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"tenant_1234\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` sub_tenant_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sub_tenant_4567\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` embeddings`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.123413`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.655367`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.987654`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.123456`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.789012`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.123413`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.655367`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.987654`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.123456`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.789012`}),_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:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` file_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CortexDoc1234\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`]})})})})]}),`\n`,_jsx(_components.p,{children:`Upload pre-computed embedding vectors directly to your tenant’s knowledge base. This is useful when you have your own embedding model or want to use embeddings from external sources.`}),`\n`,_jsx(Heading,{level:`2`,id:`embedding-processing-pipeline`,children:`Embedding Processing Pipeline`}),`\n`,_jsx(_components.p,{children:`When you upload pre-computed embeddings, they go through a streamlined processing pipeline optimized for vector data:`}),`\n`,_jsxs(Heading,{level:`3`,id:`1-immediate-upload-\u0026-validation`,children:[`1. `,_jsx(_components.strong,{children:`Immediate Upload \u0026 Validation`})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Your embedding vectors are immediately accepted and validated`}),`\n`,_jsx(_components.li,{children:`Dimensional consistency is checked across all vectors`}),`\n`,_jsx(_components.li,{children:`Format validation ensures proper numeric array structure`}),`\n`,_jsxs(_components.li,{children:[`You receive a confirmation response with a `,_jsx(_components.code,{children:`file_id`}),` for tracking`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`2-vector-processing-phase`,children:[`2. `,_jsx(_components.strong,{children:`Vector Processing Phase`})]}),`\n`,_jsx(_components.p,{children:`Our system automatically handles:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Dimensional Validation`}),`: Ensuring all vectors have consistent dimensions`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Data Type Normalization`}),`: Converting to optimal numeric formats`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Vector Quality Assessment`}),`: Checking for valid numeric ranges and patterns`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Batch ID Generation`}),`: Creating unique chunk IDs for each embedding vector`]}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`3-chunk-id-assignment`,children:[`3. `,_jsx(_components.strong,{children:`Chunk ID Assignment`})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Each embedding vector receives a unique chunk ID in format `,_jsx(_components.code,{children:`{batch_id}_{index}`})]}),`\n`,_jsx(_components.li,{children:`These IDs serve as references for retrieval and linking to original content`}),`\n`,_jsxs(_components.li,{children:[`Example: `,_jsx(_components.code,{children:`[0.1, 0.2, 0.3, 0.4, 0.5]`}),` becomes `,_jsx(_components.code,{children:`CortexEmbeddings123_0`})]}),`\n`,_jsx(_components.li,{children:`You can use these chunk IDs to link back to your original text content`}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`4-direct-indexing`,children:[`4. `,_jsx(_components.strong,{children:`Direct Indexing`})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Embeddings are directly stored in our vector database (no embedding generation needed)`}),`\n`,_jsx(_components.li,{children:`Full-text search indexes are created for associated metadata`}),`\n`,_jsx(_components.li,{children:`Metadata is indexed for filtering and faceted search`}),`\n`,_jsx(_components.li,{children:`Cross-references are established for related embedding batches`}),`\n`]}),`\n`,_jsxs(Heading,{level:`3`,id:`5-quality-assurance`,children:[`5. `,_jsx(_components.strong,{children:`Quality Assurance`})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Automated quality checks ensure vector integrity`}),`\n`,_jsx(_components.li,{children:`Dimensional consistency validation across the tenant`}),`\n`,_jsx(_components.li,{children:`Vector range and format validation`}),`\n`,_jsx(_components.li,{children:`Database storage verification`}),`\n`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Processing Time`}),`: Pre-computed embeddings are typically processed and searchable within 30 seconds to 2 minutes. Large embedding batches (1000+ vectors) may take up to 5 minutes. You can check processing status using the document ID returned in the response.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Default Sub-Tenant Behavior`}),`: If you don’t specify a `,_jsx(_components.code,{children:`sub_tenant_id`}),`, the embeddings will be uploaded to the default sub-tenant created when your tenant was set up. This is perfect for organization-wide embeddings that should be accessible across all departments.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`requirements`,children:`Requirements`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Maximum dimensions`}),`: 2000 rows × 3024 columns; i.e, 2000 chunks with the dimensions, not more than 3024`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Format`}),`: 2D array of numeric values (int or float)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Consistency`}),`: All embedding vectors must have the same dimension`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Content`}),`: Embeddings array cannot be empty`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Processing`}),`: Generates unique chunk IDs in format `,_jsx(_components.code,{children:`{batch_id}_{index} for each row`}),`.`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Consider them as references of that particular embeddings vector. You will get back these `,_jsx(_components.code,{children:`chunk_ids`}),`, when you query something.`]}),`\n`,_jsxs(_components.li,{children:[`In the example on your right, the reference to `,_jsx(_components.code,{children:`[0.1, 0.2, 0.3, 0.4, 0.5]`}),` is `,_jsx(_components.code,{children:`CortexEmbeddings123_0`})]}),`\n`,_jsx(_components.li,{children:`You can use these chunk IDs to link the original text which is being embedded`}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Dimensional consistency per tenant`}),`: All embedding vectors within a tenant must have identical dimensions. Different dimensional vectors require separate tenants`]}),`\n`]}),`\n`,_jsxs(_components.blockquote,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`File ID Management`}),`: When you provide a `,_jsx(_components.code,{children:`file_id`}),` as a key in the `,_jsx(_components.code,{children:`document_metadata`}),` object, that specific ID will be used to identify your content. If no `,_jsx(_components.code,{children:`file_id`}),` is provided in the `,_jsx(_components.code,{children:`document_metadata`}),`, the system will automatically generate a unique identifier for you. This allows you to maintain consistent references to your content across your application while ensuring every piece of content has a unique identifier.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`duplicate-file-id-behavior`,children:_jsx(_components.strong,{children:`Duplicate File ID Behavior`})}),`\n`,_jsxs(_components.p,{children:[`When you upload embeddings with a `,_jsx(_components.code,{children:`file_id`}),` that already exists in your tenant:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Overwrite Behavior`}),`: The existing embeddings with the same `,_jsx(_components.code,{children:`file_id`}),` will be `,_jsx(_components.strong,{children:`completely replaced`}),` with the new embeddings`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Processing`}),`: The new embeddings will go through validation and direct indexing (no embedding generation needed)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Search Results`}),`: Previous search results and vector data from the old embeddings will be replaced with the new embeddings`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Idempotency`}),`: Uploading the same embeddings with the same `,_jsx(_components.code,{children:`file_id`}),` multiple times is safe and will result in the same final state`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Important`}),`: When overwriting existing embeddings, all previous vector data, chunk IDs, and search indexes associated with that `,_jsx(_components.code,{children:`file_id`}),` will be permanently removed and replaced. This action cannot be undone.`]})}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Example Success Response for Duplicate File ID:`})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,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:`5`,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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Embeddings uploaded successfully. Existing embeddings with file_id 'emb_123456' have been overwritten.\"`}),_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:` \"file_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"emb_123456\"`}),_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:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"success\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsxs(_components.p,{children:[`All endpoints return consistent error responses following the standard format. For detailed error information, see our `,_jsx(_components.a,{href:`/api-reference/error-responses`,children:`Error Responses`}),` documentation.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{TableOfContents,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":"Upload Embeddings","openapi":"POST /embeddings/insert-raw-embeddings","description":"Upload pre-computed embeddings for advanced similarity search.\n\nThis endpoint accepts vector embeddings that you’ve generated externally,\n allowing you to integrate with custom embedding models or existing vector databases.\n The embeddings represent chunks of your content as numerical vectors.\n\nThe system stores these embeddings and makes them available for semantic search and similarity matching.\n Use this when you want to leverage specialized embedding models or have existing vector representations.\nWhen upsert=True, existing embeddings with the same chunk_id will be updated.","href":"/api-reference/endpoint/insert-raw-embeddings"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[151,3472,")=>null;function _cr"]]},"panelMdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const TableOfContents=({title=`On this page`,items,minHeadingLevel=2,maxHeadingLevel=3,className=``,activeClassName=`text-primary dark:text-primary-light border-primary dark:border-primary-light hover:border-primary dark:hover:border-primary-light`,inactiveClassName=`hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300`})=>{const _components={a:`a`,..._provideComponents()};const[toc,setToc]=useState(items??[]);const[activeId,setActiveId]=useState(``);useEffect(()=>{if(items\u0026\u0026items.length)return;if(typeof document===`undefined`)return;const selectors=[];for(let lvl=minHeadingLevel;lvl\u003c=maxHeadingLevel;lvl++){selectors.push(`h${lvl}`)}const nodes=Array.from(document.querySelectorAll(selectors.join(`,`))).filter(el=>el.id);const built=[];let currentTop=null;nodes.forEach(el=>{const level=Number(el.tagName.slice(1));const node={id:el.id,label:el.textContent.trim(),href:`#${el.id}`,children:[]};if(level===minHeadingLevel){built.push(node);currentTop=node}else if(level>minHeadingLevel\u0026\u0026currentTop){currentTop.children.push(node)}else{built.push(node)}});setToc(built)},[items,minHeadingLevel,maxHeadingLevel]);useEffect(()=>{if(typeof document===`undefined`)return;const applyHash=()=>{const h=window.location.hash.replace(`#`,``);if(h)setActiveId(h)};applyHash();const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){setActiveId(entry.target.id)}})},{rootMargin:`0px 0px -70% 0px`,threshold:.1});const ids=toc.flatMap(i=>[i,...i.children??[]]).map(i=>i.id);ids.forEach(id=>{const el=document.getElementById(id);if(el)observer.observe(el)});window.addEventListener(`hashchange`,applyHash);return()=>{window.removeEventListener(`hashchange`,applyHash);observer.disconnect()}},[toc]);const Item=({node,depth=0})=>{const isActive=activeId===node.id;return _jsxs(`li`,{className:`toc-item mint-relative mint-ml-6`,\"data-depth\":depth,children:[_jsx(_components.a,{href:node.href,className:`mint-py-1 mint-block mint-font-medium ${isActive?activeClassName:inactiveClassName}`,style:depth>0?{marginLeft:`${depth}rem`}:{},onClick:()=>setActiveId(node.id),children:node.label}),node.children\u0026\u0026node.children.length>0\u0026\u0026_jsx(_Fragment,{children:node.children.map(child=>_jsx(Item,{node:child,depth:depth+1},child.href))})]})};const data=toc\u0026\u0026toc.length?toc:items||[];return _jsx(`div`,{className:`mint-text-gray-600 mint-text-sm mint-leading-6 mint-w-[18rem] mint-pb-4 mint--mt-10 mint-pt-10 mint-hidden xl:mint-block ${className}`,id:`table-of-contents-custom`,children:_jsxs(`ul`,{id:`table-of-contents-custom-content`,className:`toc`,children:[_jsx(`li`,{className:`toc-item mint-relative`,children:_jsxs(`div`,{className:`mint-text-gray-700 dark:mint-text-gray-300 mint-font-medium mint-flex mint-items-center mint-space-x-2 mint-py-1`,children:[_jsxs(`svg`,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`none`,stroke:`currentColor`,strokeWidth:`2`,xmlns:`http://www.w3.org/2000/svg`,className:`mint-h-3 mint-w-3`,children:[_jsx(`path`,{d:`M2.44434 12.6665H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 3.3335H13.5554`,strokeLinecap:`round`,strokeLinejoin:`round`}),_jsx(`path`,{d:`M2.44434 8H7.33323`,strokeLinecap:`round`,strokeLinejoin:`round`})]}),_jsx(`span`,{children:title})]})}),data.map(node=>_jsx(Item,{node},node.href))]})})};function _createMdxContent(props){const{_MdxComponentBoundary}={..._provideComponents(),...props.components};if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsx(_MdxComponentBoundary,{name:`TableOfContents`,children:_jsx(TableOfContents,{})})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{TableOfContents,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":"Upload Embeddings","openapi":"POST /embeddings/insert-raw-embeddings","description":"Upload pre-computed embeddings for advanced similarity search.\n\nThis endpoint accepts vector embeddings that you’ve generated externally,\n allowing you to integrate with custom embedding models or existing vector databases.\n The embeddings represent chunks of your content as numerical vectors.\n\nThe system stores these embeddings and makes them available for semantic search and similarity matching.\n Use this when you want to leverage specialized embedding models or have existing vector representations.\nWhen upsert=True, existing embeddings with the same chunk_id will be updated.","href":"/api-reference/endpoint/insert-raw-embeddings"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[19,69,"jsx:_jsx}=arguments["],[151,3472,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[{"title":"Examples","slug":"examples","depth":3,"children":[]},{"title":"Embedding Processing Pipeline","slug":"embedding-processing-pipeline","depth":2,"children":[{"title":"1. Immediate Upload \u0026 Validation","slug":"1-immediate-upload-\u0026-validation","depth":3,"children":[]},{"title":"2. Vector Processing Phase","slug":"2-vector-processing-phase","depth":3,"children":[]},{"title":"3. Chunk ID Assignment","slug":"3-chunk-id-assignment","depth":3,"children":[]},{"title":"4. Direct Indexing","slug":"4-direct-indexing","depth":3,"children":[]},{"title":"5. Quality Assurance","slug":"5-quality-assurance","depth":3,"children":[]},{"title":"Requirements","slug":"requirements","depth":3,"children":[]},{"title":"Duplicate File ID Behavior","slug":"duplicate-file-id-behavior","depth":3,"children":[]}]},{"title":"Error Responses","slug":"error-responses","depth":2,"children":[]}],"panel":{"content":"export const TableOfContents = ({title = 'On this page', items, minHeadingLevel = 2, maxHeadingLevel = 3, className = '', activeClassName = 'text-primary dark:text-primary-light border-primary dark:border-primary-light hover:border-primary dark:hover:border-primary-light', inactiveClassName = 'hover:text-gray-900 dark:text-gray-400 dark:hover:text-gray-300'}) => {\n const [toc, setToc] = useState(items ?? []);\n const [activeId, setActiveId] = useState('');\n useEffect(() => {\n if (items \u0026\u0026 items.length) return;\n if (typeof document === 'undefined') return;\n const selectors = [];\n for (let lvl = minHeadingLevel; lvl \u003c= maxHeadingLevel; lvl++) {\n selectors.push(`h${lvl}`);\n }\n const nodes = Array.from(document.querySelectorAll(selectors.join(','))).filter(el => el.id);\n const built = [];\n let currentTop = null;\n nodes.forEach(el => {\n const level = Number(el.tagName.slice(1));\n const node = {\n id: el.id,\n label: el.textContent.trim(),\n href: `#${el.id}`,\n children: []\n };\n if (level === minHeadingLevel) {\n built.push(node);\n currentTop = node;\n } else if (level > minHeadingLevel \u0026\u0026 currentTop) {\n currentTop.children.push(node);\n } else {\n built.push(node);\n }\n });\n setToc(built);\n }, [items, minHeadingLevel, maxHeadingLevel]);\n useEffect(() => {\n if (typeof document === 'undefined') return;\n const applyHash = () => {\n const h = window.location.hash.replace('#', '');\n if (h) setActiveId(h);\n };\n applyHash();\n const observer = new IntersectionObserver(entries => {\n entries.forEach(entry => {\n if (entry.isIntersecting) {\n setActiveId(entry.target.id);\n }\n });\n }, {\n rootMargin: '0px 0px -70% 0px',\n threshold: 0.1\n });\n const ids = toc.flatMap(i => [i, ...i.children ?? []]).map(i => i.id);\n ids.forEach(id => {\n const el = document.getElementById(id);\n if (el) observer.observe(el);\n });\n window.addEventListener('hashchange', applyHash);\n return () => {\n window.removeEventListener('hashchange', applyHash);\n observer.disconnect();\n };\n }, [toc]);\n const Item = ({node, depth = 0}) => {\n const isActive = activeId === node.id;\n return \u003cli className=\"toc-item relative ml-6\" data-depth={depth}>\n \u003ca href={node.href} className={`py-1 block font-medium ${isActive ? activeClassName : inactiveClassName}`} style={depth > 0 ? {\n marginLeft: `${depth}rem`\n } : {}} onClick={() => setActiveId(node.id)}>\n {node.label}\n \u003c/a>\n {node.children \u0026\u0026 node.children.length > 0 \u0026\u0026 \u003c>\n {node.children.map(child => \u003cItem node={child} depth={depth + 1} key={child.href} />)}\n \u003c/>}\n \u003c/li>;\n };\n const data = toc \u0026\u0026 toc.length ? toc : items || [];\n return \u003cdiv className={`text-gray-600 text-sm leading-6 w-[18rem] pb-4 -mt-10 pt-10 hidden xl:block ${className}`} id=\"table-of-contents-custom\">\n \u003cul id=\"table-of-contents-custom-content\" className=\"toc\">\n \u003cli className=\"toc-item relative\">\n \u003cdiv className=\"text-gray-700 dark:text-gray-300 font-medium flex items-center space-x-2 py-1\">\n \u003csvg width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" xmlns=\"http://www.w3.org/2000/svg\" className=\"h-3 w-3\">\n \u003cpath d=\"M2.44434 12.6665H13.5554\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\u003c/path>\n \u003cpath d=\"M2.44434 3.3335H13.5554\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\u003c/path>\n \u003cpath d=\"M2.44434 8H7.33323\" strokeLinecap=\"round\" strokeLinejoin=\"round\">\u003c/path>\n \u003c/svg>\n \u003cspan>{title}\u003c/span>\n \u003c/div>\n \u003c/li>\n {data.map(node => \u003cItem node={node} key={node.href} />)}\n \u003c/ul>\n \u003c/div>;\n};\n\n\u003cTableOfContents />\n"},"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-relative {\n position: relative\n}\n.mint--mt-10 {\n margin-top: -2.5rem\n}\n.mint-ml-6 {\n margin-left: 1.5rem\n}\n.mint-block {\n display: block\n}\n.mint-flex {\n display: flex\n}\n.mint-hidden {\n display: none\n}\n.mint-h-3 {\n height: 0.75rem\n}\n.mint-w-3 {\n width: 0.75rem\n}\n.mint-w-\\[18rem\\] {\n width: 18rem\n}\n.mint-items-center {\n align-items: center\n}\n.mint-space-x-2 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(0.5rem * var(--tw-space-x-reverse));\n margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)))\n}\n.mint-py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem\n}\n.mint-pb-4 {\n padding-bottom: 1rem\n}\n.mint-pt-10 {\n padding-top: 2.5rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-font-medium {\n font-weight: 500\n}\n.mint-leading-6 {\n line-height: 1.5rem\n}\n.mint-text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity, 1))\n}\n.mint-text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity, 1))\n}\n.dark\\:mint-text-gray-300:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity, 1))\n}\n@media (min-width: 1280px) {\n .xl\\:mint-block {\n display: block\n }\n}","openApiReferenceData":{"operation":{"tags":["embeddings"],"summary":"Insert Raw Embeddings Endpoint","description":"Upload pre-computed embeddings for advanced similarity search.\n\nThis endpoint accepts vector embeddings that you’ve generated externally,\n allowing you to integrate with custom embedding models or existing vector databases.\n The embeddings represent chunks of your content as numerical vectors.\n\nThe system stores these embeddings and makes them available for semantic search and similarity matching.\n Use this when you want to leverage specialized embedding models or have existing vector representations.\nWhen upsert=True, existing embeddings with the same chunk_id will be updated.","operationId":"insert_raw_embeddings_endpoint_embeddings_insert_raw_embeddings_post","requestBody":"b90b3e73-07a5-4773-bb1b-bcb79f27db17","responses":{"200":"ba7ec4c0-9540-4a58-a33e-5091f51346af","400":"7ba0d7f0-fce7-4e0e-bf80-fcd6c5ca43d1","401":"876e20f3-9b93-4aba-bbff-24c08da56287","403":"5d34ace6-c3b2-4afc-b239-493ee9f5d19c","404":"e5793401-e655-45d1-ae06-a68e94f8f632","422":"b806cc26-1e83-49b1-bf1b-e2f3fe50e6f0","500":"beed20ca-1555-40b5-b631-cdfab4dce644","503":"dd81b716-9bcf-4a3a-b731-66a31f556806"},"security":["dd6ec154-af46-44be-8320-8e1df5822420"],"method":"post","type":"path","servers":["27177c36-ced5-48ec-934a-74f1d3c21f2f","ec4a38bd-f056-41fa-92b7-9e831f0c977f","c80917a8-4b03-45cd-ba80-6a4329afc4a3"],"path":"/embeddings/insert-raw-embeddings","baseUrlOptions":["/","https://api.usecortex.ai","https://preprod.usecortex.ai"],"title":"Insert Raw Embeddings Endpoint","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"properties":{"tenant_id":{"type":"string","title":"Tenant Id","description":"Unique identifier for the tenant/organization","example":"tenant_1234","isRequired":true,"uniqueKey":"tenant_id","typeLabel":"string"},"embeddings":{"items":{"properties":{"source_id":{"type":"string","title":"Source Id","description":"Source identifier for the embedding","example":"CortexDoc1234","isRequired":true,"uniqueKey":"embeddings.items.[INDEX].source_id","typeLabel":"string"},"embeddings":{"items":{"properties":{"chunk_id":{"type":"string","title":"Chunk Id","description":"Primary key / chunk identifier","example":"\u003cchunk_id>","isRequired":true,"uniqueKey":"embeddings.items.[INDEX].embeddings.items.[INDEX].chunk_id","typeLabel":"string"},"embedding":{"items":{"type":"number","uniqueKey":"embeddings.items.[INDEX].embeddings.items.[INDEX].embedding.items.[INDEX]","typeLabel":"number"},"type":"array","title":"Embedding","description":"Embedding vector","example":[],"isRequired":true,"uniqueKey":"embeddings.items.[INDEX].embeddings.items.[INDEX].embedding","typeLabel":"number[]"}},"type":"object","required":["chunk_id","embedding"],"title":"RawEmbeddingVector","description":"Embedding payload containing the chunk identifier and vector.","uniqueKey":"embeddings.items.[INDEX].embeddings.items.[INDEX]","typeLabel":"RawEmbeddingVector · object"},"type":"array","title":"Embeddings","description":"Embedding payloads containing ids and vectors","example":[[0.123413,0.655367,0.987654,0.123456,0.789012],[0.123413,0.655367,0.987654,0.123456,0.789012]],"isRequired":true,"uniqueKey":"embeddings.items.[INDEX].embeddings","typeLabel":"RawEmbeddingVector · object[]"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata","description":"Metadata to store","uniqueKey":"embeddings.items.[INDEX].metadata","typeLabel":"Metadata · object"}},"type":"object","required":["source_id","embeddings"],"title":"RawEmbeddingDocument","description":"A raw embedding document for direct insert/upsert operations.","uniqueKey":"embeddings.items.[INDEX]","typeLabel":"RawEmbeddingDocument · object"},"type":"array","title":"Embeddings","description":"List of raw embedding documents to insert","example":[[0.123413,0.655367,0.987654,0.123456,0.789012],[0.123413,0.655367,0.987654,0.123456,0.789012]],"isRequired":true,"uniqueKey":"embeddings","typeLabel":"RawEmbeddingDocument · object[]"},"sub_tenant_id":{"type":"string","title":"Sub Tenant Id","description":"Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.","default":"","example":"sub_tenant_4567","uniqueKey":"sub_tenant_id","typeLabel":"string"},"upsert":{"type":"boolean","title":"Upsert","description":"If True, update existing embeddings; if False, insert only","default":false,"example":true,"uniqueKey":"upsert","typeLabel":"boolean"}},"type":"object","required":["tenant_id","embeddings"],"title":"Body_insert_raw_embeddings_endpoint_embeddings_insert_raw_embeddings_post","uniqueKey":"","typeLabel":"Body_insert_raw_embeddings_endpoint_embeddings_insert_raw_embeddings_post · object"},"examples":{"Example":{"title":"Example","value":{"tenant_id":"tenant_1234","embeddings":[[0.123413,0.655367,0.987654,0.123456,0.789012],[0.123413,0.655367,0.987654,0.123456,0.789012]],"sub_tenant_id":"sub_tenant_4567","upsert":true}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"ba7ec4c0-9540-4a58-a33e-5091f51346af":{"description":"Successful Response","content":{"application/json":{"schema":{"properties":{"insert_count":{"type":"integer","title":"Insert Count","description":"Number of entities inserted","example":1,"isRequired":true,"uniqueKey":"insert_count","typeLabel":"integer"},"ids":{"items":{"type":"string","uniqueKey":"ids.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Ids","description":"Inserted entity IDs","example":[],"uniqueKey":"ids","typeLabel":"string[]"},"success":{"type":"boolean","title":"Success","description":"Whether insert succeeded","default":true,"example":true,"uniqueKey":"success","typeLabel":"boolean"},"error":{"oneOf":[{"type":"string","title":"Error","description":"Error message if failed","uniqueKey":"error.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error","description":"Error message if failed","uniqueKey":"error.oneOf.1","typeLabel":"null"}],"uniqueKey":"error","typeLabel":"string | null"}},"type":"object","required":["insert_count"],"title":"InsertResult","description":"Result of an insert operation.","uniqueKey":"","typeLabel":"InsertResult · object"},"examples":{"Example":{"title":"Example","value":{"insert_count":1,"ids":[],"success":true,"error":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"7ba0d7f0-fce7-4e0e-bf80-fcd6c5ca43d1":{"description":"Bad Request - Invalid input parameters","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"876e20f3-9b93-4aba-bbff-24c08da56287":{"description":"Unauthorized - Authentication required","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"5d34ace6-c3b2-4afc-b239-493ee9f5d19c":{"description":"Forbidden - Access denied","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"e5793401-e655-45d1-ae06-a68e94f8f632":{"description":"Not Found - Resource does not exist","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"b806cc26-1e83-49b1-bf1b-e2f3fe50e6f0":{"description":"Unprocessable Entity - Validation failed","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"beed20ca-1555-40b5-b631-cdfab4dce644":{"description":"Internal Server Error","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"},"dd81b716-9bcf-4a3a-b731-66a31f556806":{"description":"Service Unavailable","content":{"application/json":{"schema":{"properties":{"detail":{"properties":{"success":{"type":"boolean","title":"Success","default":false,"example":true,"uniqueKey":"detail.success","typeLabel":"boolean"},"message":{"type":"string","title":"Message","default":"Error occurred","uniqueKey":"detail.message","typeLabel":"string"},"error_code":{"oneOf":[{"type":"string","title":"Error Code","uniqueKey":"detail.error_code.oneOf.0","typeLabel":"string"},{"type":"null","title":"Error Code","uniqueKey":"detail.error_code.oneOf.1","typeLabel":"null"}],"uniqueKey":"detail.error_code","typeLabel":"string | null"}},"type":"object","title":"ErrorResponse","isRequired":true,"uniqueKey":"detail","typeLabel":"ErrorResponse · object"}},"type":"object","required":["detail"],"title":"ActualErrorResponse","uniqueKey":"","typeLabel":"ActualErrorResponse · object"},"examples":{"Example":{"title":"Example","value":{"detail":{"success":true,"message":"Error occurred","error_code":"\u003cstring>"}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"dd6ec154-af46-44be-8320-8e1df5822420":{"HTTPBearer":{"type":"http","scheme":"bearer","scopes":[]}}},"servers":{"27177c36-ced5-48ec-934a-74f1d3c21f2f":{"url":"/","description":"Local","x-fern-server-name":"cortex-backend-local"},"ec4a38bd-f056-41fa-92b7-9e831f0c977f":{"url":"https://api.usecortex.ai","description":"Production","x-fern-server-name":"cortex-prod","x-fern-audiences":["public"]},"c80917a8-4b03-45cd-ba80-6a4329afc4a3":{"url":"https://preprod.usecortex.ai","description":"Staging","x-fern-server-name":"cortex-staging"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[]},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"cortex-ad5578da","siteName":"Cortex SDK","title":"Upload Embeddings - Cortex SDK","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/endpoint/insert-raw-embeddings.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=\"Upload pre-computed embeddings for advanced similarity search. This endpoint accepts vector embeddings that you’ve generated externally, allowing you to integrate with custom embedding models or existing vector databases. The embeddings represent chunks of your content as numerical vectors. The system stores these embeddings and makes them available for semantic search and similarity matching. Use this when you want to leverage specialized embedding models or have existing vector representations. When upsert=True, existing embeddings with the same chunk_id will be updated.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cortex SDK\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_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/cortex-ad5578da/ALVAenBL80cTIEFP/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upload Embeddings - Cortex SDK\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload pre-computed embeddings for advanced similarity search. This endpoint accepts vector embeddings that you’ve generated externally, allowing you to integrate with custom embedding models or existing vector databases. The embeddings represent chunks of your content as numerical vectors. The system stores these embeddings and makes them available for semantic search and similarity matching. Use this when you want to leverage specialized embedding models or have existing vector representations. When upsert=True, existing embeddings with the same chunk_id will be updated.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cortex SDK\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/insert-raw-embeddings\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cortex-ad5578da.mintlify.site/_mintlify/api/og/v2?division=Embeddings\u0026amp;title=Upload+Embeddings\u0026amp;description=Upload+pre-computed+embeddings+for+advanced+similarity+search.%0A%0AThis+endpoint+accepts+vector+embeddings+that+you%E2%80%99ve+generated+externally%2C%0A+allowing+you+to+integ\u0026amp;theme=cb97804abd2d20d4ce133d0c\u0026amp;signature=ada89d1073ddff6771053bcddd0981d2977dba55bf0451f1748befa4f1589a0e\">\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=\"Upload Embeddings - Cortex SDK\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload pre-computed embeddings for advanced similarity search. This endpoint accepts vector embeddings that you’ve generated externally, allowing you to integrate with custom embedding models or existing vector databases. The embeddings represent chunks of your content as numerical vectors. The system stores these embeddings and makes them available for semantic search and similarity matching. Use this when you want to leverage specialized embedding models or have existing vector representations. When upsert=True, existing embeddings with the same chunk_id will be updated.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cortex-ad5578da.mintlify.site/_mintlify/api/og/v2?division=Embeddings\u0026amp;title=Upload+Embeddings\u0026amp;description=Upload+pre-computed+embeddings+for+advanced+similarity+search.%0A%0AThis+endpoint+accepts+vector+embeddings+that+you%E2%80%99ve+generated+externally%2C%0A+allowing+you+to+integ\u0026amp;theme=cb97804abd2d20d4ce133d0c\u0026amp;signature=ada89d1073ddff6771053bcddd0981d2977dba55bf0451f1748befa4f1589a0e\">\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/cortex-ad5578da/ALVAenBL80cTIEFP/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cortex SDK\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7C3AED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/insert-raw-embeddings\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/insert-raw-embeddings.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://cortex-ad5578da.mintlify.app/#organization\",\"name\":\"Cortex SDK\",\"url\":\"https://cortex-ad5578da.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cortex-ad5578da/93r4PO4gUrI78Ocp/logo/light.svg?fit=max\u0026auto=format\u0026n=93r4PO4gUrI78Ocp\u0026q=85\u0026s=714ff10a4ad07c6395ce3055058ad6b0\"}},{\"@type\":\"WebSite\",\"@id\":\"https://cortex-ad5578da.mintlify.app#website\",\"name\":\"Cortex SDK\",\"url\":\"https://cortex-ad5578da.mintlify.app\",\"publisher\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/insert-raw-embeddings#webpage\",\"url\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/insert-raw-embeddings\",\"name\":\"Upload Embeddings\",\"description\":\"Upload pre-computed embeddings for advanced similarity search. This endpoint accepts vector embeddings that you’ve generated externally, allowing you to integrate with custom embedding models or existing vector databases. The embeddings represent chunks of your content as numerical vectors. The system stores these embeddings and makes them available for semantic search and similarity matching. Use this when you want to leverage specialized embedding models or have existing vector representations. When upsert=True, existing embeddings with the same chunk_id will be updated.\",\"isPartOf\":{\"@id\":\"https://cortex-ad5578da.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/insert-raw-embeddings#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/insert-raw-embeddings#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Embeddings\",\"item\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/create-embeddings-tenant\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upload Embeddings\",\"item\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/insert-raw-embeddings\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/insert-raw-embeddings#apireference\",\"headline\":\"Upload Embeddings\",\"name\":\"Upload Embeddings\",\"description\":\"Upload pre-computed embeddings for advanced similarity search. This endpoint accepts vector embeddings that you’ve generated externally, allowing you to integrate with custom embedding models or existing vector databases. The embeddings represent chunks of your content as numerical vectors. The system stores these embeddings and makes them available for semantic search and similarity matching. Use this when you want to leverage specialized embedding models or have existing vector representations. When upsert=True, existing embeddings with the same chunk_id will be updated.\",\"url\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/insert-raw-embeddings\",\"mainEntityOfPage\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/api-reference/endpoint/insert-raw-embeddings#webpage\"},\"publisher\":{\"@id\":\"https://cortex-ad5578da.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://cortex-ad5578da.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cortex SDK\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Cortex SDK","nav":{"global":{},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Error Responses","href":"/api-reference/error-responses"},{"title":"SDKs - Node and Python","href":"/api-reference/sdks"}]},{"group":"Tenant Management","pages":[{"title":"Create Tenant","openapi":"POST /tenants/create","href":"/api-reference/endpoint/create-tenant"},{"title":"Get Tenant Stats","openapi":"GET /tenants/stats","href":"/api-reference/endpoint/tenant-stats"}]},{"group":"Knowledge Ingestion","pages":[{"title":"Upload Document","openapi":"POST /ingestion/upload-document","href":"/api-reference/endpoint/upload-document"},{"title":"Upload Content","openapi":"POST /ingestion/upload-content","href":"/api-reference/endpoint/upload-content"},{"title":"Upload App Sources","openapi":"POST /upload/upload_app_sources","href":"/api-reference/endpoint/upload-app"},{"title":"Verify Processing","openapi":"POST /ingestion/verify-processing","href":"/api-reference/endpoint/verify-processing"}]},{"group":"Query \u0026 Retrieval","pages":[{"title":"Hybrid Search","openapi":"POST /search/hybrid-search","href":"/api-reference/endpoint/hybrid-search"},{"title":"Full Text Search","openapi":"POST /search/full-text-search","href":"/api-reference/endpoint/full-text-search"},{"title":"QnA","openapi":"POST /search/qna","tag":"DEPRECATING","href":"/api-reference/endpoint/qna"}]},{"group":"Knowledge Management","pages":[{"title":"List Sources","openapi":"GET /list/list-sources","href":"/api-reference/endpoint/list-sources"},{"title":"List Sources By ID","openapi":"POST /list/list-sources-by-id","href":"/api-reference/endpoint/list-sources-by-id"},{"title":"Fetch Content","openapi":"POST /fetch/fetch-source-content","href":"/api-reference/endpoint/fetch-source-content"},{"title":"Delete Sources","openapi":"DELETE /delete/delete-sources","href":"/api-reference/endpoint/delete-sources"},{"title":"Graph Relations By Source Id","openapi":"GET /list/graph-relations-by-id","href":"/api-reference/endpoint/graph-relations"}]},{"group":"Embeddings","pages":[{"title":"Create Embeddings Tenant","openapi":"POST /embeddings/create_tenant","description":null,"href":"/api-reference/endpoint/create-embeddings-tenant"},{"title":"Upload Embeddings","openapi":"POST /embeddings/insert-raw-embeddings","href":"/api-reference/endpoint/insert-raw-embeddings"},{"title":"Search Embeddings","openapi":"POST /embeddings/search-raw-embeddings","description":"Find similar chunks using an embedding vector.\n\nUse this to retrieve the most similar chunk IDs to a single query embedding.\n\nExpected outcome:\n- You receive the closest chunk IDs with optional similarity scores.","href":"/api-reference/endpoint/search-raw-embeddings"},{"title":"Filter Raw Embeddings","openapi":"POST /embeddings/filter-raw-embeddings","href":"/api-reference/endpoint/filter-raw-embeddings"},{"title":"Delete Embeddings","openapi":"DELETE /embeddings/delete-raw-embeddings","href":"/api-reference/endpoint/delete-raw-embeddings"}]},{"group":"User Memories","pages":[{"title":"Add User Memory","openapi":"POST /memories/add-memories","href":"/api-reference/endpoint/add-memories"},{"title":"Delete User Memory","openapi":"DELETE /memories/delete-memory","href":"/api-reference/endpoint/delete-memory"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Upload Embeddings - Cortex SDK","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}