Upload a file to S3 bucket attached to your dataset. You can select between a naive chunking strategy where the text is extracted with Apache Tika and split into segments with a target number of segments per chunk OR you can use a vision LLM to convert the file to markdown and create chunks per page. You must specifically use a base64url encoding. Auth’ed user must be an admin or owner of the dataset’s organization to upload a file.
Create chunks is a boolean which determines whether or not to create chunks from the file. If false, you can manually chunk the file and send the chunks to the create_chunk endpoint with the file_id to associate chunks with the file. Meant mostly for advanced users.
Description is an optional convience field so you do not have to remember what the file contains or is about. It will be included on the group resulting from the file which will hold its chunk.
Group tracking id is an optional field which allows you to specify the tracking id of the group that is created from the file. Chunks created will be created with the tracking id of group_tracking_id|<index of chunk>
Link to the file. This can also be any string. This can be used to filter when searching for the file's resulting chunks. The link value will not affect embedding creation.
Metadata is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata. Will be passed down to the file's chunks.
We plan to deprecate pdf2md in favor of chunkr.ai. This is a legacy option for using a vision LLM to convert a given file into markdown and then ingest it.
Rebalance chunks is an optional field which allows you to specify whether or not to rebalance the chunks created from the file. If not specified, the default true is used. If true, Trieve will evenly distribute remainder splits across chunks such that 66 splits with a target_splits_per_chunk of 20 will result in 3 chunks with 22 splits each.
Split average will automatically split your file into multiple chunks and average all of the resulting vectors into a single output chunk. Default is false. Explicitly enabling this will cause each file to only produce a single chunk.
Split delimiters is an optional field which allows you to specify the delimiters to use when splitting the file before chunking the text. If not specified, the default [.!?\n] are used to split into sentences. However, you may want to use spaces or other delimiters.
Tag set is a comma separated list of tags which will be passed down to the chunks made from the file. Tags are used to filter chunks when searching. HNSW indices are created for each tag such that there is no performance loss when filtering on them.
Target splits per chunk. This is an optional field which allows you to specify the number of splits you want per chunk. If not specified, the default 20 is used. However, you may want to use a different number.
Time stamp should be an ISO 8601 combined date and time without timezone. Time_stamp is used for time window filtering and recency-biasing search results. Will be passed down to the file's chunks.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Trieve","colors":{"primary":"#a33eb5","light":"#a33eb5","dark":"#a33eb5"},"favicon":"/icons/android-chrome-512x512-new.png","logo":{"light":"https://mintlify.s3.us-west-1.amazonaws.com/trieve/icons/trieve-logo.png","dark":"https://mintlify.s3.us-west-1.amazonaws.com/trieve/icons/trieve-logo.png","href":"https://trieve.ai"},"api":{"openapi":"https://beta-api.trieve.ai/api-docs/openapi.json"},"navbar":{"links":[{"label":"Support","href":"mailto:humans@trieve.ai"},{"label":"Dashboard","href":"https://dashboard.trieve.ai"}],"primary":{"type":"github","href":"https://github.com/devflowinc/trieve"}},"footer":{"socials":{"x":"https://x.com/trieveai","discord":"https://discord.gg/eBJXXZDB8z","github":"https://github.com/devflowinc","linkedin":"https://www.linkedin.com/company/trieveai","website":"https://trieve.ai"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"TypeScript SDK","href":"https://ts-sdk.trieve.ai","icon":"js"},{"anchor":"Github","href":"https://github.com/devflowinc/trieve","icon":"github"},{"anchor":"Community","href":"https://discord.com/invite/E9sPRZqpDT","icon":"users"},{"anchor":"Blog","href":"https://trieve.ai/blog","icon":"newspaper"},{"anchor":"System Status","href":"https://status.trieve.ai","icon":"satellite-dish"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"trieve","hasAudioNarration":false,"actualSubdomain":"trieve","customDomains":["docs.trieve.ai"],"gitSource":{"type":"github","owner":"devflowinc","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21f60f74bd683e723c3ad0","collectionId":"94bd8055-ab4f-4535-9548-a3032b69bedc","schemaVersion":"v2"},"feedback":{"issues":true,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae290ee419382350a86cdb0:success","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API Reference","count":139},{"language":"default","tag":"Documentation","count":23},{"language":"default","tag":"Chunk","count":18},{"language":"default","tag":"Dataset","count":18},{"language":"default","tag":"Chunk Group","count":17},{"language":"default","tag":"Guides","count":17},{"language":"default","tag":"Vector Inference","count":16},{"language":"default","tag":"Analytics","count":14},{"language":"default","tag":"Get Started","count":11},{"language":"default","tag":"File","count":10}]},"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":"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":"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}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"img{border-radius:.25rem}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.25rem}"}],"page":{"pagePath":"api-reference/file/upload-file","slug":"/api-reference/file/upload-file","pageMetadata":{"openapi":"post /api/file","title":"Upload File","description":"Upload a file to S3 bucket attached to your dataset. You can select between a naive chunking strategy where the text is extracted with Apache Tika and split into segments with a target number of segments per chunk OR you can use a vision LLM to convert the file to markdown and create chunks per page. You must specifically use a base64url encoding. Auth'ed user must be an admin or owner of the dataset's organization to upload a file.","href":"/api-reference/file/upload-file","hidden":false},"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: \"Upload a file to S3 bucket attached to your dataset. You can select between a naive chunking strategy where the text is extracted with Apache Tika and split into segments with a target number of segments per chunk OR you can use a vision LLM to convert the file to markdown and create chunks per page. You must specifically use a base64url encoding. Auth’ed user must be an admin or owner of the dataset’s organization to upload a file.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"openapi":"post /api/file","title":"Upload File","description":"Upload a file to S3 bucket attached to your dataset. You can select between a naive chunking strategy where the text is extracted with Apache Tika and split into segments with a target number of segments per chunk OR you can use a vision LLM to convert the file to markdown and create chunks per page. You must specifically use a base64url encoding. Auth'ed user must be an admin or owner of the dataset's organization to upload a file.","href":"/api-reference/file/upload-file","hidden":false}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["File"],"summary":"Upload File","description":"Upload a file to S3 bucket attached to your dataset. You can select between a naive chunking strategy where the text is extracted with Apache Tika and split into segments with a target number of segments per chunk OR you can use a vision LLM to convert the file to markdown and create chunks per page. You must specifically use a base64url encoding. Auth'ed user must be an admin or owner of the dataset's organization to upload a file.","operationId":"upload_file_handler","parameters":["35c13bbc-b5cc-4b77-a25f-6dd15394e45a"],"requestBody":"94253b11-13b2-41f4-a57e-5e46abeefd6f","responses":{"200":"8123f8a3-5a83-437b-93f8-c81b46af62ca","400":"74a9ef84-9922-46f5-80bf-5486aac521e7"},"security":["9cc65842-558c-482a-a72b-f0c5c3d6a12b"],"method":"post","type":"path","servers":["2f9b8af5-1d01-4863-b9c9-46a5af77efd6","f8cd735f-4869-4d97-9c1c-3f5db410bca0"],"path":"/api/file","baseUrlOptions":["https://api.trieve.ai","http://localhost:8090"],"title":"Upload File","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"35c13bbc-b5cc-4b77-a25f-6dd15394e45a":{"name":"TR-Dataset","in":"header","description":"The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.","required":true,"schema":{"type":"string","format":"uuid","isRequired":true,"description":"The dataset id or tracking_id to use for the request. We assume you intend to use an id if the value is a valid uuid.","uniqueKey":"","typeLabel":"string\u003cuuid>"}}},"requestBody":{"description":"JSON request payload to upload a file","content":{"application/json":{"schema":{"type":"object","required":["base64_file","file_name"],"properties":{"base64_file":{"type":"string","description":"Base64 encoded file.","isRequired":true,"uniqueKey":"base64_file","typeLabel":"string"},"file_name":{"type":"string","description":"Name of the file being uploaded, including the extension.","isRequired":true,"uniqueKey":"file_name","typeLabel":"string"},"chunkr_create_task_req_payload":{"oneOf":[{"type":"object","description":"Will use [chunkr.ai](https://chunkr.ai) to process the file when this object is defined. See [docs.chunkr.ai/api-references/task/create-task](https://docs.chunkr.ai/api-references/task/create-task) for detailed information about what each field on this request payload does.","properties":{"chunk_processing":{"oneOf":[{"type":"object","description":"Controls the setting for the chunking and post-processing of each chunk.","properties":{"ignore_headers_and_footers":{"type":"boolean","description":"Whether to ignore headers and footers in the chunking process.\nThis is recommended as headers and footers break reading order across pages.","default":true,"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.chunk_processing.oneOf.0.ignore_headers_and_footers","typeLabel":"boolean"},"target_length":{"type":"integer","format":"int32","description":"The target number of words in each chunk. If 0, each chunk will contain a single segment.","default":512,"minimum":0,"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.chunk_processing.oneOf.0.target_length","typeLabel":"integer\u003cint32>"},"tokenizer":{"oneOf":[{"type":"object","description":"Specifies which tokenizer to use for the chunking process.\n\nThis type supports two ways of specifying a tokenizer:\n1. Using a predefined tokenizer from the `Tokenizer` enum\n2. Using any Hugging Face tokenizer by providing its model ID as a string\n(e.g. \"facebook/bart-large\", \"Qwen/Qwen-tokenizer\", etc.)\n\nWhen using a string, any valid Hugging Face tokenizer ID can be specified,\nwhich will be loaded using the Hugging Face tokenizers library.","default":"Word","required":["Enum"],"properties":{"Enum":{"type":"string","description":"Common tokenizers used for text processing.\n\nThese values represent standard tokenization approaches and popular pre-trained\ntokenizers from the Hugging Face ecosystem.","enum":["Word","Cl100kBase","XlmRobertaBase","BertBaseUncased"],"isRequired":true,"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.chunk_processing.oneOf.0.tokenizer.oneOf.0.Enum","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.chunk_processing.oneOf.0.tokenizer.oneOf.0","typeLabel":"object"},{"type":"object","description":"Specifies which tokenizer to use for the chunking process.\n\nThis type supports two ways of specifying a tokenizer:\n1. Using a predefined tokenizer from the `Tokenizer` enum\n2. Using any Hugging Face tokenizer by providing its model ID as a string\n(e.g. \"facebook/bart-large\", \"Qwen/Qwen-tokenizer\", etc.)\n\nWhen using a string, any valid Hugging Face tokenizer ID can be specified,\nwhich will be loaded using the Hugging Face tokenizers library.","default":"Word","required":["String"],"properties":{"String":{"type":"string","description":"Use any Hugging Face tokenizer by specifying its model ID\nExamples: \"Qwen/Qwen-tokenizer\", \"facebook/bart-large\"","isRequired":true,"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.chunk_processing.oneOf.0.tokenizer.oneOf.1.String","typeLabel":"string"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.chunk_processing.oneOf.0.tokenizer.oneOf.1","typeLabel":"object"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.chunk_processing.oneOf.0.tokenizer","typeLabel":"object"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.chunk_processing.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.chunk_processing.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.chunk_processing","typeLabel":"object | null"},"error_handling":{"oneOf":[{"type":"string","description":"Controls how errors are handled during processing:\n- `Fail`: Stops processing and fails the task when any error occurs\n- `Continue`: Attempts to continue processing despite non-critical errors (eg. LLM refusals etc.)","enum":["Fail","Continue"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.error_handling.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.error_handling.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.error_handling","typeLabel":"enum\u003cstring> | null"},"expires_in":{"oneOf":[{"type":"integer","format":"int32","description":"The number of seconds until task is deleted.\nExpried tasks can **not** be updated, polled or accessed via web interface.","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.expires_in.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","description":"The number of seconds until task is deleted.\nExpried tasks can **not** be updated, polled or accessed via web interface.","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.expires_in.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.expires_in","typeLabel":"integer\u003cint32> | null"},"high_resolution":{"oneOf":[{"type":"boolean","description":"Whether to use high-resolution images for cropping and post-processing. (Latency penalty: ~7 seconds per page)","default":false,"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.high_resolution.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Whether to use high-resolution images for cropping and post-processing. (Latency penalty: ~7 seconds per page)","default":false,"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.high_resolution.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.high_resolution","typeLabel":"boolean | null"},"llm_processing":{"oneOf":[{"type":"object","description":"Controls the LLM used for the task.","properties":{"fallback_strategy":{"oneOf":[{"type":"string","description":"Specifies the fallback strategy for LLM processing\n\nThis can be:\n1. None - No fallback will be used\n2. Default - The system default fallback model will be used\n3. Model - A specific model ID will be used as fallback (check the documentation for the models.)","enum":["None"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.fallback_strategy.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"string","description":"Specifies the fallback strategy for LLM processing\n\nThis can be:\n1. None - No fallback will be used\n2. Default - The system default fallback model will be used\n3. Model - A specific model ID will be used as fallback (check the documentation for the models.)","enum":["Default"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.fallback_strategy.oneOf.1","typeLabel":"enum\u003cstring>"},{"type":"object","description":"Specifies the fallback strategy for LLM processing\n\nThis can be:\n1. None - No fallback will be used\n2. Default - The system default fallback model will be used\n3. Model - A specific model ID will be used as fallback (check the documentation for the models.)","required":["Model"],"properties":{"Model":{"type":"string","description":"Use a specific model as fallback","isRequired":true,"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.fallback_strategy.oneOf.2.Model","typeLabel":"string"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.fallback_strategy.oneOf.2","typeLabel":"object"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.fallback_strategy","typeLabel":"enum\u003cstring> · enum\u003cstring> · object"},"max_completion_tokens":{"oneOf":[{"type":"integer","format":"int32","description":"The maximum number of tokens to generate.","minimum":0,"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.max_completion_tokens.oneOf.0","typeLabel":"integer\u003cint32>"},{"type":"null","format":"int32","description":"The maximum number of tokens to generate.","minimum":0,"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.max_completion_tokens.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.max_completion_tokens","typeLabel":"integer\u003cint32> | null"},"model_id":{"oneOf":[{"type":"string","description":"The ID of the model to use for the task. If not provided, the default model will be used.\nPlease check the documentation for the model you want to use.","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.model_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The ID of the model to use for the task. If not provided, the default model will be used.\nPlease check the documentation for the model you want to use.","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.model_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.model_id","typeLabel":"string | null"},"temperature":{"type":"number","format":"float","description":"The temperature to use for the LLM.","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0.temperature","typeLabel":"number\u003cfloat>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.llm_processing","typeLabel":"object | null"},"ocr_strategy":{"oneOf":[{"type":"string","description":"Controls the Optical Character Recognition (OCR) strategy.\n- `All`: Processes all pages with OCR. (Latency penalty: ~0.5 seconds per page)\n- `Auto`: Selectively applies OCR only to pages with missing or low-quality text. When text layer is present the bounding boxes from the text layer are used.","default":"All","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.ocr_strategy.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.ocr_strategy.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.ocr_strategy","typeLabel":"enum\u003cstring> | null"},"pipeline":{"oneOf":[{"type":"string","default":"Azure","enum":["Azure","Chunkr"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.pipeline.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.pipeline.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.pipeline","typeLabel":"enum\u003cstring> | null"},"segment_processing":{"oneOf":[{"type":"object","description":"Controls the post-processing of each segment type.\n\nAllows you to generate HTML and Markdown from chunkr models for each segment type.\nBy default, the HTML and Markdown are generated manually using the segmentation information except for `Table`, `Formula` and `Picture`.\nYou can optionally configure custom LLM prompts and models to generate an additional `llm` field with LLM-processed content for each segment type.\n\nThe configuration of which content sources (HTML, Markdown, LLM, Content) of the segment\nshould be included in the chunk's `embed` field and counted towards the chunk length can be configured through the `embed_sources` setting.","properties":{"Caption":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"Auto","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Caption.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Caption.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Caption.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Caption.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Caption.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Caption.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Caption.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Caption.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Caption.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Caption.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Caption","typeLabel":"object | null"},"Footnote":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"Auto","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Footnote.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Footnote.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Footnote.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Footnote.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Footnote.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Footnote.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Footnote.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Footnote.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Footnote.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Footnote.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Footnote","typeLabel":"object | null"},"Formula":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"Auto","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Formula.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Formula.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Formula.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"LLM","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Formula.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM model","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Formula.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM model","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Formula.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Formula.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"LLM","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Formula.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Formula.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Formula.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Formula","typeLabel":"object | null"},"ListItem":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"Auto","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.ListItem.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.ListItem.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.ListItem.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.ListItem.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.ListItem.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.ListItem.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.ListItem.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.ListItem.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.ListItem.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.ListItem.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.ListItem","typeLabel":"object | null"},"Page":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"Auto","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Page.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Page.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Page.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"LLM","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Page.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM model","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Page.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM model","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Page.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Page.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"LLM","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Page.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Page.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Page.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Page","typeLabel":"object | null"},"PageFooter":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"Auto","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageFooter.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageFooter.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageFooter.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageFooter.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageFooter.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageFooter.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageFooter.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageFooter.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageFooter.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageFooter.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageFooter","typeLabel":"object | null"},"PageHeader":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"Auto","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageHeader.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageHeader.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageHeader.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageHeader.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageHeader.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageHeader.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageHeader.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageHeader.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageHeader.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageHeader.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.PageHeader","typeLabel":"object | null"},"Picture":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"All","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Picture.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Picture.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Picture.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"LLM","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Picture.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM model","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Picture.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM model","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Picture.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Picture.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"LLM","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Picture.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Picture.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Picture.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Picture","typeLabel":"object | null"},"SectionHeader":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"Auto","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.SectionHeader.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.SectionHeader.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.SectionHeader.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.SectionHeader.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.SectionHeader.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.SectionHeader.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.SectionHeader.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.SectionHeader.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.SectionHeader.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.SectionHeader.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.SectionHeader","typeLabel":"object | null"},"Table":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"Auto","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Table.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Table.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Table.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"LLM","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Table.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM model","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Table.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM model","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Table.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Table.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"LLM","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Table.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Table.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Table.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Table","typeLabel":"object | null"},"Text":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"Auto","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Text.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Text.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Text.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Text.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Text.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Text.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Text.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Text.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Text.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Text.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Text","typeLabel":"object | null"},"Title":{"oneOf":[{"type":"object","description":"Controls the processing and generation for the segment.\n- `crop_image` controls whether to crop the file's images to the segment's bounding box.\nThe cropped image will be stored in the segment's `image` field. Use `All` to always crop,\nor `Auto` to only crop when needed for post-processing.\n- `html` is the HTML output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `llm` is the LLM-generated output for the segment, this uses off-the-shelf models to generate a custom output for the segment\n- `markdown` is the Markdown output for the segment, generated either through huerstics (`Auto`) or using Chunkr fine-tuned models (`LLM`)\n- `embed_sources` defines which content sources will be included in the chunk's embed field and counted towards the chunk length.\nThe array's order determines the sequence in which content appears in the embed field (e.g., [Markdown, LLM] means Markdown content\nis followed by LLM content). This directly affects what content is available for embedding and retrieval.","properties":{"crop_image":{"type":"string","description":"Controls the cropping strategy for an item (e.g. segment, chunk, etc.)\n- `All` crops all images in the item\n- `Auto` crops images only if required for post-processing","default":"Auto","enum":["All","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Title.oneOf.0.crop_image","typeLabel":"enum\u003cstring>"},"embed_sources":{"type":"array","items":{"type":"string","enum":["HTML","Markdown","LLM","Content"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Title.oneOf.0.embed_sources.items.[INDEX]","typeLabel":"enum\u003cstring>"},"default":"[Markdown]","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Title.oneOf.0.embed_sources","typeLabel":"enum\u003cstring>[]"},"html":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Title.oneOf.0.html","typeLabel":"enum\u003cstring>"},"llm":{"oneOf":[{"type":"string","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Title.oneOf.0.llm.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt for the LLM mode","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Title.oneOf.0.llm.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Title.oneOf.0.llm","typeLabel":"string | null"},"markdown":{"type":"string","default":"Auto","enum":["LLM","Auto"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Title.oneOf.0.markdown","typeLabel":"enum\u003cstring>"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Title.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Title.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0.Title","typeLabel":"object | null"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segment_processing","typeLabel":"object | null"},"segmentation_strategy":{"oneOf":[{"type":"string","description":"Controls the segmentation strategy:\n- `LayoutAnalysis`: Analyzes pages for layout elements (e.g., `Table`, `Picture`, `Formula`, etc.) using bounding boxes. Provides fine-grained segmentation and better chunking. (Latency penalty: ~TBD seconds per page).\n- `Page`: Treats each page as a single segment. Faster processing, but without layout element detection and only simple chunking.","default":"LayoutAnalysis","enum":["LayoutAnalysis","Page"],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segmentation_strategy.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segmentation_strategy.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload.oneOf.0.segmentation_strategy","typeLabel":"enum\u003cstring> | null"}},"uniqueKey":"chunkr_create_task_req_payload.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"chunkr_create_task_req_payload.oneOf.1","typeLabel":"null"}],"uniqueKey":"chunkr_create_task_req_payload","typeLabel":"object | null"},"create_chunks":{"oneOf":[{"type":"boolean","description":"Create chunks is a boolean which determines whether or not to create chunks from the file. If false, you can manually chunk the file and send the chunks to the create_chunk endpoint with the file_id to associate chunks with the file. Meant mostly for advanced users.","uniqueKey":"create_chunks.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Create chunks is a boolean which determines whether or not to create chunks from the file. If false, you can manually chunk the file and send the chunks to the create_chunk endpoint with the file_id to associate chunks with the file. Meant mostly for advanced users.","uniqueKey":"create_chunks.oneOf.1","typeLabel":"null"}],"uniqueKey":"create_chunks","typeLabel":"boolean | null"},"description":{"oneOf":[{"type":"string","description":"Description is an optional convience field so you do not have to remember what the file contains or is about. It will be included on the group resulting from the file which will hold its chunk.","uniqueKey":"description.oneOf.0","typeLabel":"string"},{"type":"null","description":"Description is an optional convience field so you do not have to remember what the file contains or is about. It will be included on the group resulting from the file which will hold its chunk.","uniqueKey":"description.oneOf.1","typeLabel":"null"}],"uniqueKey":"description","typeLabel":"string | null"},"group_tracking_id":{"oneOf":[{"type":"string","description":"Group tracking id is an optional field which allows you to specify the tracking id of the group that is created from the file. Chunks created will be created with the tracking id of `group_tracking_id|\u003cindex of chunk>`","uniqueKey":"group_tracking_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"Group tracking id is an optional field which allows you to specify the tracking id of the group that is created from the file. Chunks created will be created with the tracking id of `group_tracking_id|\u003cindex of chunk>`","uniqueKey":"group_tracking_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"group_tracking_id","typeLabel":"string | null"},"link":{"oneOf":[{"type":"string","description":"Link to the file. This can also be any string. This can be used to filter when searching for the file's resulting chunks. The link value will not affect embedding creation.","uniqueKey":"link.oneOf.0","typeLabel":"string"},{"type":"null","description":"Link to the file. This can also be any string. This can be used to filter when searching for the file's resulting chunks. The link value will not affect embedding creation.","uniqueKey":"link.oneOf.1","typeLabel":"null"}],"uniqueKey":"link","typeLabel":"string | null"},"metadata":{"oneOf":[{"description":"Metadata is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata. Will be passed down to the file's chunks.","uniqueKey":"metadata.oneOf.0","typeLabel":"any"},{"description":"Metadata is a JSON object which can be used to filter chunks. This is useful for when you want to filter chunks by arbitrary metadata. Unlike with tag filtering, there is a performance hit for filtering on metadata. Will be passed down to the file's chunks.","type":"null","uniqueKey":"metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"metadata","typeLabel":"any | null"},"pdf2md_options":{"oneOf":[{"type":"object","description":"We plan to deprecate pdf2md in favor of chunkr.ai. This is a legacy option for using a vision LLM to convert a given file into markdown and then ingest it.","required":["use_pdf2md_ocr"],"properties":{"use_pdf2md_ocr":{"type":"boolean","description":"Parameter to use pdf2md_ocr. If true, the file will be converted to markdown using gpt-4o. Default is false.","isRequired":true,"uniqueKey":"pdf2md_options.oneOf.0.use_pdf2md_ocr","typeLabel":"boolean"},"split_headings":{"oneOf":[{"type":"boolean","description":"Split headings is an optional field which allows you to specify whether or not to split headings into separate chunks. Default is false.","uniqueKey":"pdf2md_options.oneOf.0.split_headings.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Split headings is an optional field which allows you to specify whether or not to split headings into separate chunks. Default is false.","uniqueKey":"pdf2md_options.oneOf.0.split_headings.oneOf.1","typeLabel":"null"}],"uniqueKey":"pdf2md_options.oneOf.0.split_headings","typeLabel":"boolean | null"},"system_prompt":{"oneOf":[{"type":"string","description":"Prompt to use for the gpt-4o model. Default is None.","uniqueKey":"pdf2md_options.oneOf.0.system_prompt.oneOf.0","typeLabel":"string"},{"type":"null","description":"Prompt to use for the gpt-4o model. Default is None.","uniqueKey":"pdf2md_options.oneOf.0.system_prompt.oneOf.1","typeLabel":"null"}],"uniqueKey":"pdf2md_options.oneOf.0.system_prompt","typeLabel":"string | null"}},"uniqueKey":"pdf2md_options.oneOf.0","typeLabel":"object"},{"type":"null","uniqueKey":"pdf2md_options.oneOf.1","typeLabel":"null"}],"uniqueKey":"pdf2md_options","typeLabel":"object | null"},"rebalance_chunks":{"oneOf":[{"type":"boolean","description":"Rebalance chunks is an optional field which allows you to specify whether or not to rebalance the chunks created from the file. If not specified, the default true is used. If true, Trieve will evenly distribute remainder splits across chunks such that 66 splits with a `target_splits_per_chunk` of 20 will result in 3 chunks with 22 splits each.","uniqueKey":"rebalance_chunks.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Rebalance chunks is an optional field which allows you to specify whether or not to rebalance the chunks created from the file. If not specified, the default true is used. If true, Trieve will evenly distribute remainder splits across chunks such that 66 splits with a `target_splits_per_chunk` of 20 will result in 3 chunks with 22 splits each.","uniqueKey":"rebalance_chunks.oneOf.1","typeLabel":"null"}],"uniqueKey":"rebalance_chunks","typeLabel":"boolean | null"},"split_avg":{"oneOf":[{"type":"boolean","description":"Split average will automatically split your file into multiple chunks and average all of the resulting vectors into a single output chunk. Default is false. Explicitly enabling this will cause each file to only produce a single chunk.","uniqueKey":"split_avg.oneOf.0","typeLabel":"boolean"},{"type":"null","description":"Split average will automatically split your file into multiple chunks and average all of the resulting vectors into a single output chunk. Default is false. Explicitly enabling this will cause each file to only produce a single chunk.","uniqueKey":"split_avg.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_avg","typeLabel":"boolean | null"},"split_delimiters":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"split_delimiters.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Split delimiters is an optional field which allows you to specify the delimiters to use when splitting the file before chunking the text. If not specified, the default [.!?\\n] are used to split into sentences. However, you may want to use spaces or other delimiters.","uniqueKey":"split_delimiters.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Split delimiters is an optional field which allows you to specify the delimiters to use when splitting the file before chunking the text. If not specified, the default [.!?\\n] are used to split into sentences. However, you may want to use spaces or other delimiters.","uniqueKey":"split_delimiters.oneOf.1","typeLabel":"null"}],"uniqueKey":"split_delimiters","typeLabel":"string[] | null"},"tag_set":{"oneOf":[{"type":"array","items":{"type":"string","uniqueKey":"tag_set.oneOf.0.items.[INDEX]","typeLabel":"string"},"description":"Tag set is a comma separated list of tags which will be passed down to the chunks made from the file. Tags are used to filter chunks when searching. HNSW indices are created for each tag such that there is no performance loss when filtering on them.","uniqueKey":"tag_set.oneOf.0","typeLabel":"string[]"},{"type":"null","items":{"type":"string"},"description":"Tag set is a comma separated list of tags which will be passed down to the chunks made from the file. Tags are used to filter chunks when searching. HNSW indices are created for each tag such that there is no performance loss when filtering on them.","uniqueKey":"tag_set.oneOf.1","typeLabel":"null"}],"uniqueKey":"tag_set","typeLabel":"string[] | null"},"target_splits_per_chunk":{"oneOf":[{"type":"integer","description":"Target splits per chunk. This is an optional field which allows you to specify the number of splits you want per chunk. If not specified, the default 20 is used. However, you may want to use a different number.","minimum":0,"uniqueKey":"target_splits_per_chunk.oneOf.0","typeLabel":"integer"},{"type":"null","description":"Target splits per chunk. This is an optional field which allows you to specify the number of splits you want per chunk. If not specified, the default 20 is used. However, you may want to use a different number.","minimum":0,"uniqueKey":"target_splits_per_chunk.oneOf.1","typeLabel":"null"}],"uniqueKey":"target_splits_per_chunk","typeLabel":"integer | null"},"time_stamp":{"oneOf":[{"type":"string","description":"Time stamp should be an ISO 8601 combined date and time without timezone. Time_stamp is used for time window filtering and recency-biasing search results. Will be passed down to the file's chunks.","uniqueKey":"time_stamp.oneOf.0","typeLabel":"string"},{"type":"null","description":"Time stamp should be an ISO 8601 combined date and time without timezone. Time_stamp is used for time window filtering and recency-biasing search results. Will be passed down to the file's chunks.","uniqueKey":"time_stamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"time_stamp","typeLabel":"string | null"},"webhook_url":{"oneOf":[{"type":"string","description":"Optional webhook URL to receive notifications for each page processed.","uniqueKey":"webhook_url.oneOf.0","typeLabel":"string"},{"type":"null","description":"Optional webhook URL to receive notifications for each page processed.","uniqueKey":"webhook_url.oneOf.1","typeLabel":"null"}],"uniqueKey":"webhook_url","typeLabel":"string | null"}},"example":{"base64_file":"\u003cbase64_encoded_file>","create_chunks":true,"description":"This is an example file","file_name":"example.pdf","link":"https://example.com","metadata":{"key1":"value1","key2":"value2"},"split_delimiters":[",",".","\n"],"tag_set":["tag1","tag2"],"target_splits_per_chunk":20,"time_stamp":"2021-01-01 00:00:00.000Z","use_pdf2md_ocr":false},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"base64_file":"\u003cbase64_encoded_file>","create_chunks":true,"description":"This is an example file","file_name":"example.pdf","link":"https://example.com","metadata":{"key1":"value1","key2":"value2"},"split_delimiters":[",",".","\n"],"tag_set":["tag1","tag2"],"target_splits_per_chunk":20,"time_stamp":"2021-01-01 00:00:00.000Z","use_pdf2md_ocr":false}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"8123f8a3-5a83-437b-93f8-c81b46af62ca":{"description":"Confirmation that the file is uploading","content":{"application/json":{"schema":{"type":"object","required":["file_metadata"],"properties":{"file_metadata":{"type":"object","required":["id","file_name","created_at","updated_at","dataset_id","size"],"properties":{"created_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"file_metadata.created_at","typeLabel":"string\u003cdate-time>"},"dataset_id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"file_metadata.dataset_id","typeLabel":"string\u003cuuid>"},"file_name":{"type":"string","isRequired":true,"uniqueKey":"file_metadata.file_name","typeLabel":"string"},"id":{"type":"string","format":"uuid","isRequired":true,"uniqueKey":"file_metadata.id","typeLabel":"string\u003cuuid>"},"size":{"type":"integer","format":"int64","isRequired":true,"uniqueKey":"file_metadata.size","typeLabel":"integer\u003cint64>"},"updated_at":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"file_metadata.updated_at","typeLabel":"string\u003cdate-time>"},"link":{"oneOf":[{"type":"string","uniqueKey":"file_metadata.link.oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"file_metadata.link.oneOf.1","typeLabel":"null"}],"uniqueKey":"file_metadata.link","typeLabel":"string | null"},"metadata":{"oneOf":[{},{"type":"null","uniqueKey":"file_metadata.metadata.oneOf.1","typeLabel":"null"}],"uniqueKey":"file_metadata.metadata","typeLabel":"null"},"tag_set":{"oneOf":[{"type":"array","items":{"oneOf":[{"type":"string","uniqueKey":"file_metadata.tag_set.oneOf.0.items.[INDEX].oneOf.0","typeLabel":"string"},{"type":"null","uniqueKey":"file_metadata.tag_set.oneOf.0.items.[INDEX].oneOf.1","typeLabel":"null"}],"uniqueKey":"file_metadata.tag_set.oneOf.0.items.[INDEX]","typeLabel":"string | null"},"uniqueKey":"file_metadata.tag_set.oneOf.0","typeLabel":"(string | null)[]"},{"type":"null","items":{"oneOf":[{"type":"string"},{"type":"null"}]},"uniqueKey":"file_metadata.tag_set.oneOf.1","typeLabel":"null"}],"uniqueKey":"file_metadata.tag_set","typeLabel":"(string | null)[] | null"},"time_stamp":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"file_metadata.time_stamp.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"file_metadata.time_stamp.oneOf.1","typeLabel":"null"}],"uniqueKey":"file_metadata.time_stamp","typeLabel":"string\u003cdate-time> | null"}},"example":{"created_at":"2021-01-01 00:00:00.000","dataset_id":"e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3","file_name":"file.txt","id":"e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3","link":"https://trieve.ai","metadata":{"key":"value"},"size":1000,"tag_set":"tag1,tag2","time_stamp":"2021-01-01 00:00:00.000","updated_at":"2021-01-01 00:00:00.000"},"isRequired":true,"uniqueKey":"file_metadata","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"file_metadata":{"created_at":"2021-01-01 00:00:00.000","dataset_id":"e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3","file_name":"file.txt","id":"e3e3e3e3-e3e3-e3e3-e3e3-e3e3e3e3e3e3","link":"https://trieve.ai","metadata":{"key":"value"},"size":1000,"tag_set":"tag1,tag2","time_stamp":"2021-01-01 00:00:00.000","updated_at":"2021-01-01 00:00:00.000"}}}},"exampleType":"generated"}},"exampleType":"generated"},"74a9ef84-9922-46f5-80bf-5486aac521e7":{"description":"Service error relating to uploading the file","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"example":{"message":"Bad Request"},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"message":"Bad Request"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"9cc65842-558c-482a-a72b-f0c5c3d6a12b":{"ApiKey":{"type":"apiKey","in":"header","name":"Authorization","scopes":["admin"]}}},"servers":{"2f9b8af5-1d01-4863-b9c9-46a5af77efd6":{"url":"https://api.trieve.ai","description":"Production server"},"f8cd735f-4869-4d97-9c1c-3f5db410bca0":{"url":"http://localhost:8090","description":"Local development server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","scopes":["admin"]},"schema":{"title":"Authorization","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKey","name":"Authorization"}],"title":"ApiKey"}]},"originalFileLocation":"https://beta-api.trieve.ai/api-docs/openapi.json"},"subdomain":"trieve","siteName":"Trieve","title":"Upload File - Trieve","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/file/upload-file.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 a file to S3 bucket attached to your dataset. You can select between a naive chunking strategy where the text is extracted with Apache Tika and split into segments with a target number of segments per chunk OR you can use a vision LLM to convert the file to markdown and create chunks per page. You must specifically use a base64url encoding. Auth\u0026#x27;ed user must be an admin or owner of the dataset\u0026#x27;s organization to upload a file.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Trieve\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/trieve/UgHWr4L5TQhL9HIO/_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/trieve/UgHWr4L5TQhL9HIO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/trieve/UgHWr4L5TQhL9HIO/_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/trieve/UgHWr4L5TQhL9HIO/_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/trieve/UgHWr4L5TQhL9HIO/_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/trieve/UgHWr4L5TQhL9HIO/_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/trieve/UgHWr4L5TQhL9HIO/_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/trieve/UgHWr4L5TQhL9HIO/_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/trieve/UgHWr4L5TQhL9HIO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Upload File - Trieve\">\u003cmeta data-mint-head property=\"og:description\" content=\"Upload a file to S3 bucket attached to your dataset. You can select between a naive chunking strategy where the text is extracted with Apache Tika and split into segments with a target number of segments per chunk OR you can use a vision LLM to convert the file to markdown and create chunks per page. You must specifically use a base64url encoding. Auth\u0026#x27;ed user must be an admin or owner of the dataset\u0026#x27;s organization to upload a file.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Trieve\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.trieve.ai/api-reference/file/upload-file\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://trieve.mintlify.app/_mintlify/api/og/v2?division=File\u0026amp;title=Upload+File\u0026amp;description=Upload+a+file+to+S3+bucket+attached+to+your+dataset.+You+can+select+between+a+naive+chunking+strategy+where+the+text+is+extracted+with+Apache+Tika+and+split+int\u0026amp;theme=5f46ca17884f21421b93e352\u0026amp;signature=174c8d876b2acae18e3a18698c4c9227ad7406377aff7ba8fa005c1176cbd1b4\">\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 File - Trieve\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Upload a file to S3 bucket attached to your dataset. You can select between a naive chunking strategy where the text is extracted with Apache Tika and split into segments with a target number of segments per chunk OR you can use a vision LLM to convert the file to markdown and create chunks per page. You must specifically use a base64url encoding. Auth\u0026#x27;ed user must be an admin or owner of the dataset\u0026#x27;s organization to upload a file.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://trieve.mintlify.app/_mintlify/api/og/v2?division=File\u0026amp;title=Upload+File\u0026amp;description=Upload+a+file+to+S3+bucket+attached+to+your+dataset.+You+can+select+between+a+naive+chunking+strategy+where+the+text+is+extracted+with+Apache+Tika+and+split+int\u0026amp;theme=5f46ca17884f21421b93e352\u0026amp;signature=174c8d876b2acae18e3a18698c4c9227ad7406377aff7ba8fa005c1176cbd1b4\">\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/trieve/UgHWr4L5TQhL9HIO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Trieve\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#a33eb5\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.trieve.ai/api-reference/file/upload-file\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/file/upload-file.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.trieve.ai/#organization\",\"name\":\"Trieve\",\"url\":\"https://docs.trieve.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintlify.s3.us-west-1.amazonaws.com/trieve/icons/trieve-logo.png\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.trieve.ai#website\",\"name\":\"Trieve\",\"url\":\"https://docs.trieve.ai\",\"publisher\":{\"@id\":\"https://docs.trieve.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.trieve.ai/api-reference/file/upload-file#webpage\",\"url\":\"https://docs.trieve.ai/api-reference/file/upload-file\",\"name\":\"Upload File\",\"description\":\"Upload a file to S3 bucket attached to your dataset. You can select between a naive chunking strategy where the text is extracted with Apache Tika and split into segments with a target number of segments per chunk OR you can use a vision LLM to convert the file to markdown and create chunks per page. You must specifically use a base64url encoding. Auth'ed user must be an admin or owner of the dataset's organization to upload a file.\",\"isPartOf\":{\"@id\":\"https://docs.trieve.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.trieve.ai/api-reference/file/upload-file#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.trieve.ai/api-reference/file/upload-file#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trieve\",\"item\":\"https://docs.trieve.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Upload File\",\"item\":\"https://docs.trieve.ai/api-reference/file/upload-file\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.trieve.ai/api-reference/file/upload-file#apireference\",\"headline\":\"Upload File\",\"name\":\"Upload File\",\"description\":\"Upload a file to S3 bucket attached to your dataset. You can select between a naive chunking strategy where the text is extracted with Apache Tika and split into segments with a target number of segments per chunk OR you can use a vision LLM to convert the file to markdown and create chunks per page. You must specifically use a base64url encoding. Auth'ed user must be an admin or owner of the dataset's organization to upload a file.\",\"url\":\"https://docs.trieve.ai/api-reference/file/upload-file\",\"mainEntityOfPage\":{\"@id\":\"https://docs.trieve.ai/api-reference/file/upload-file#webpage\"},\"publisher\":{\"@id\":\"https://docs.trieve.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.trieve.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Trieve\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Trieve","nav":{"global":{"anchors":[{"anchor":"TypeScript SDK","href":"https://ts-sdk.trieve.ai","icon":"js"},{"anchor":"Github","href":"https://github.com/devflowinc/trieve","icon":"github"},{"anchor":"Community","href":"https://discord.com/invite/E9sPRZqpDT","icon":"users"},{"anchor":"Blog","href":"https://trieve.ai/blog","icon":"newspaper"},{"anchor":"System Status","href":"https://status.trieve.ai","icon":"satellite-dish"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/getting-started/introduction"}]},{"tab":"API Reference","groups":[{"group":"Chunk","pages":[{"openapi":"post /api/chunk","title":"Create or Upsert Chunk or Chunks","href":"/api-reference/chunk/create-or-upsert-chunk-or-chunks"},{"openapi":"post /api/chunk/search","title":"Search","href":"/api-reference/chunk/search"},{"openapi":"post /api/chunk/autocomplete","title":"Autocomplete","href":"/api-reference/chunk/autocomplete"},{"openapi":"post /api/chunk/recommend","title":"Get Recommended Chunks","href":"/api-reference/chunk/get-recommended-chunks"},{"openapi":"post /api/chunks/scroll","title":"Scroll Chunks","href":"/api-reference/chunk/scroll-chunks"},{"openapi":"post /api/chunk/count","title":"Count chunks above threshold","href":"/api-reference/chunk/count-chunks-above-threshold"},{"openapi":"post /api/chunk/suggestions","title":"Generate suggested queries","href":"/api-reference/chunk/generate-suggested-queries"},{"openapi":"post /api/chunk/generate","title":"RAG on Specified Chunks","href":"/api-reference/chunk/rag-on-specified-chunks"},{"openapi":"put /api/chunk","title":"Update Chunk","href":"/api-reference/chunk/update-chunk"},{"openapi":"put /api/chunk/tracking_id/update","title":"Update Chunk By Tracking Id","href":"/api-reference/chunk/update-chunk-by-tracking-id"},{"openapi":"get /api/chunk/{chunk_id}","title":"Get Chunk By Id","href":"/api-reference/chunk/get-chunk-by-id"},{"openapi":"get /api/chunk/tracking_id/{tracking_id}","title":"Get Chunk By Tracking Id","href":"/api-reference/chunk/get-chunk-by-tracking-id"},{"openapi":"post /api/chunks/tracking","title":"Get Chunks By Tracking Ids","href":"/api-reference/chunk/get-chunks-by-tracking-ids"},{"openapi":"post /api/chunks","title":"Get Chunks By Ids","href":"/api-reference/chunk/get-chunks-by-ids"},{"openapi":"delete /api/chunk/{chunk_id}","title":"Delete Chunk","href":"/api-reference/chunk/delete-chunk"},{"openapi":"delete /api/chunk/tracking_id/{tracking_id}","title":"Delete Chunk By Tracking Id","href":"/api-reference/chunk/delete-chunk-by-tracking-id"},{"openapi":"delete /api/chunk","title":"Bulk Delete Chunks","href":"/api-reference/chunk/bulk-delete-chunk"},{"openapi":"post /api/chunk/split","title":"Split HTML Content into Chunks","href":"/api-reference/chunk/split-html-content-into-chunks"}]},{"group":"Chunk Group","pages":[{"openapi":"post /api/chunk_group","title":"Create or Upsert Group or Groups","href":"/api-reference/chunk-group/create-or-upsert-group-or-groups"},{"openapi":"post /api/chunk_group/group_oriented_search","title":"Search Over Groups","href":"/api-reference/chunk-group/search-over-groups"},{"openapi":"post /api/chunk_group/group_oriented_autocomplete","title":"Autocomplete Search Over Groups","href":"/api-reference/chunk-group/autocomplete-search-over-groups"},{"openapi":"post /api/chunk_group/search","title":"Search Within Group","href":"/api-reference/chunk-group/search-within-group"},{"openapi":"post /api/chunk_group/recommend","title":"Get Recommended Groups","href":"/api-reference/chunk-group/get-recommended-groups"},{"openapi":"post /api/chunk_group/chunk/{group_id}","title":"Add Chunk to Group","href":"/api-reference/chunk-group/add-chunk-to-group"},{"openapi":"post /api/chunk_group/tracking_id/{tracking_id}","title":"Add Chunk to Group by Tracking ID","href":"/api-reference/chunk-group/add-chunk-to-group-by-tracking-id"},{"openapi":"post /api/chunk_group/chunks","title":"Get Groups for Chunks","href":"/api-reference/chunk-group/get-groups-for-chunks"},{"openapi":"get /api/chunk_group/tracking_id/{group_tracking_id}/{page}","title":"Get Chunks in Group by Tracking ID","href":"/api-reference/chunk-group/get-chunks-in-group-by-tracking-id"},{"openapi":"get /api/chunk_group/tracking_id/{tracking_id}","title":"Get Group by Tracking ID","href":"/api-reference/chunk-group/get-group-by-tracking-id"},{"openapi":"put /api/chunk_group","title":"Update Group","href":"/api-reference/chunk-group/update-group"},{"openapi":"delete /api/chunk_group/chunk/{group_id}","title":"Remove Chunk from Group","href":"/api-reference/chunk-group/remove-chunk-from-group"},{"openapi":"delete /api/chunk_group/tracking_id/{tracking_id}","title":"Delete Group by Tracking ID","href":"/api-reference/chunk-group/delete-group-by-tracking-id"},{"openapi":"delete /api/chunk_group/{group_id}","title":"Delete Group","href":"/api-reference/chunk-group/delete-group"},{"openapi":"get /api/chunk_group/{group_id}","title":"Get Group","href":"/api-reference/chunk-group/get-group"},{"openapi":"get /api/chunk_group/{group_id}/{page}","title":"Get Chunks in Group","href":"/api-reference/chunk-group/get-chunks-in-group"},{"openapi":"get /api/dataset/groups/{dataset_id}/{page}","title":"Get Groups for Dataset","href":"/api-reference/chunk-group/get-groups-for-dataset"}]},{"group":"Topic","pages":[{"openapi":"post /api/topic","title":"Create Topic","href":"/api-reference/topic/create-topic"},{"openapi":"post /api/topic/clone","title":"Clone Topic","href":"/api-reference/topic/clone-topic"},{"openapi":"put /api/topic","title":"Update Topic","href":"/api-reference/topic/update-topic"},{"openapi":"get /api/topic/owner/{owner_id}","title":"Get All Topics for Owner ID","href":"/api-reference/topic/get-all-topics-for-owner-id"},{"openapi":"delete /api/topic/{topic_id}","title":"Delete Topic","href":"/api-reference/topic/delete-topic"}]},{"group":"Message","pages":[{"openapi":"post /api/message","title":"Create message","href":"/api-reference/message/create-message"},{"openapi":"put /api/message","title":"Edit message","href":"/api-reference/message/edit-message"},{"openapi":"patch /api/message","title":"Regenerate message","href":"/api-reference/message/regenerate-message-1"},{"openapi":"post /api/message/get_tool_function_params","title":"Get tool function parameters","href":"/api-reference/message/get-tool-function-parameters"},{"openapi":"get /api/message/{message_id}","title":"Get a message by its ID","href":"/api-reference/message/get-a-message-by-its-id"},{"openapi":"get /api/messages/{messages_topic_id}","title":"Get all messages for a given topic","href":"/api-reference/message/get-all-messages-for-a-given-topic"},{"openapi":"post /api/message/edit_image","title":"Edit Image","href":"/api-reference/message/edit-image"},{"openapi":"post /api/message/generate_message_completions","title":"Generate Message Completions","href":"/api-reference/message/generate-message-completions"},{"openapi":"post /api/message/transcribe_audio","title":"Transcribe Audio","href":"/api-reference/message/transcribe-audio"}]},{"group":"Crawl","pages":[{"openapi":"get /api/crawl","title":"Get all crawl requests for a dataset","href":"/api-reference/crawl/get-all-crawl-requests-for-a-dataset"},{"openapi":"put /api/crawl","title":"Update a crawl request","href":"/api-reference/crawl/update-a-crawl-request"},{"openapi":"post /api/crawl","title":"Create a new crawl request","href":"/api-reference/crawl/create-a-new-crawl-request"},{"openapi":"delete /api/crawl/{crawl_id}","title":"Delete a crawl request","description":"This endpoint is used to delete an existing crawl request for a dataset. The request payload should contain the crawl id to delete.","href":"/api-reference/crawl/delete-a-crawl-request"}]},{"group":"File","pages":[{"openapi":"post /api/file","title":"Upload File","href":"/api-reference/file/upload-file"},{"openapi":"post /api/file/csv_or_jsonl","title":"Create Presigned CSV/JSONL S3 PUT URL","description":"This route is useful for uploading very large CSV or JSONL files. Once you have completed the upload, chunks will be automatically created from the file for each line in the CSV or JSONL file. The chunks will be indexed and searchable. Auth'ed user must be an admin or owner of the dataset's organization to upload a file.","href":"/api-reference/file/create-presigned-url-for-csv-jsonl"},{"openapi":"post /api/file/html_page","title":"Upload HTML Page","href":"/api-reference/file/upload-html-page"},{"openapi":"get /api/dataset/files/{dataset_id}/{page}","title":"Get Files and Group IDs for Dataset","href":"/api-reference/file/get-files-for-dataset"},{"openapi":"get /api/dataset/scroll_files","title":"Scroll Files with Groups","href":"/api-reference/file/scroll-files"},{"openapi":"get /api/file/{file_id}","title":"Get File with Signed URL","href":"/api-reference/file/get-file"},{"openapi":"delete /api/file/{file_id}","title":"Delete File","href":"/api-reference/file/delete-file"},{"openapi":"get /api/file/{file_id}","title":"Get File with Signed URL","href":"/api-reference/file/get-file-with-signed-url"},{"openapi":"get /api/dataset/files/{dataset_id}/{page}","deprecated":true,"title":"Get Files and Group IDs for Dataset","href":"/api-reference/file/get-files-and-group-ids-for-dataset"},{"openapi":"get /api/dataset/scroll_files","title":"Scroll Files with Groups","href":"/api-reference/file/scroll-files-with-groups"}]},{"group":"Analytics","pages":[{"openapi":"post /api/analytics","title":"Get Analytics","href":"/api-reference/analytics/get-analytics"},{"openapi":"post /api/analytics/events/all","title":"Get All User Events","href":"/api-reference/analytics/get-all-user-events"},{"openapi":"post /api/analytics/events/ctr","title":"Get CTR Analytics","href":"/api-reference/analytics/get-ctr-analytics"},{"openapi":"post /api/analytics/rag","title":"Get RAG Analytics","href":"/api-reference/analytics/get-rag-analytics"},{"openapi":"post /api/analytics/recommendations","title":"Get Recommendation Analytics","href":"/api-reference/analytics/get-recommendation-analytics"},{"openapi":"post /api/analytics/search","title":"Get Search Analytics","href":"/api-reference/analytics/get-search-analytics"},{"openapi":"post /api/analytics/search/cluster","title":"Get Cluster Analytics","href":"/api-reference/analytics/get-cluster-analytics"},{"openapi":"post /api/analytics/events/component","title":"Get Component Analytics","href":"/api-reference/analytics/get-component-analytics"},{"openapi":"post /api/analytics/top","title":"Get Top Datasets","href":"/api-reference/analytics/get-top-datasets"},{"openapi":"put /api/analytics/events","title":"Send User Event Data","href":"/api-reference/analytics/send-user-event-data"},{"openapi":"put /api/analytics/ctr","title":"Send CTR Data","href":"/api-reference/analytics/send-ctr-data"},{"openapi":"put /api/analytics/rag","title":"Rate RAG","href":"/api-reference/analytics/rate-rag"},{"openapi":"put /api/analytics/search","title":"Rate Search","href":"/api-reference/analytics/rate-search"},{"openapi":"get /api/analytics/events/{event_id}","title":"Get User Event By ID","href":"/api-reference/analytics/get-user-event-by-id"}]},{"group":"Experiments","pages":[{"openapi":"post /api/experiment","title":"Create Experiment","href":"/api-reference/experiment/create-experiment"},{"openapi":"post /api/experiment/ab-test","title":"Ab Test","href":"/api-reference/experiment/ab-test"},{"openapi":"put /api/experiment","title":"Update Experiment","href":"/api-reference/experiment/update-experiment"},{"openapi":"delete /api/experiment/{experiment_id}","title":"Delete Experiment","href":"/api-reference/experiment/delete-experiment"},{"title":"Get experiment","href":"/api-reference/experiment/get-experiment"}]},{"group":"Dataset","pages":[{"openapi":"post /api/dataset","title":"Create Dataset","href":"/api-reference/dataset/create-dataset"},{"openapi":"post /api/dataset/batch_create_datasets","title":"Batch Create Datasets","href":"/api-reference/dataset/batch-create-datasets"},{"openapi":"post /api/dataset/get_all_tags","title":"Get All Tags","href":"/api-reference/dataset/get-all-tags"},{"openapi":"post /api/dataset/events","title":"Get events for the dataset","href":"/api-reference/dataset/get-events-for-the-dataset"},{"openapi":"put /api/dataset","title":"Update Dataset by ID or Tracking ID","href":"/api-reference/dataset/update-dataset-by-id-or-tracking-id"},{"openapi":"put /api/dataset/clear/{dataset_id}","title":"Clear Dataset","href":"/api-reference/dataset/clear-dataset"},{"openapi":"get /api/dataset/{dataset_id}","title":"Get Dataset By ID","href":"/api-reference/dataset/get-dataset-by-id"},{"openapi":"get /api/dataset/tracking_id/{tracking_id}","title":"Get Dataset by Tracking ID","href":"/api-reference/dataset/get-dataset-by-tracking-id"},{"openapi":"get /api/dataset/organization/{organization_id}","title":"Get Datasets from Organization","href":"/api-reference/dataset/get-datasets-from-organization"},{"openapi":"post /api/etl/create_job","title":"Create ETL Job","href":"/api-reference/dataset/create-etl-job"},{"openapi":"put /api/dataset/pagefind","title":"Create Pagefind Index for Dataset","href":"/api-reference/dataset/create-pagefind-index-for-dataset"},{"openapi":"get /api/dataset/pagefind","title":"Get Pagefind Index Url for Dataset","href":"/api-reference/dataset/get-pagefind-index-url-for-dataset"},{"openapi":"get /api/dataset/usage/{dataset_id}","title":"Get Usage By Dataset ID","href":"/api-reference/dataset/get-usage-by-dataset-id"},{"openapi":"get /api/dataset/crawl_options/{dataset_id}","title":null,"href":"/api-reference/dataset/get-dataset-crawl-options"},{"openapi":"delete /api/dataset/{dataset_id}","title":"Delete Dataset","href":"/api-reference/dataset/delete-dataset"},{"openapi":"delete /api/dataset/tracking_id/{tracking_id}","title":"Delete Dataset by Tracking ID","href":"/api-reference/dataset/delete-dataset-by-tracking-id"},{"openapi":"post /api/dataset/clone","title":"Clone Dataset","href":"/api-reference/dataset/clone-dataset"},{"openapi":"get /api/dataset/get_dataset_queue_lengths","title":"Get file and chunk creation queue lengths","href":"/api-reference/dataset/get-file-and-chunk-creation-queue-lengths"}]},{"group":"Organization","pages":[{"openapi":"post /api/organization","title":"Create Organization","href":"/api-reference/organization/create-organization"},{"openapi":"post /api/organization/api_key","title":"Create Organization Api Key","href":"/api-reference/organization/create-organization-api-key"},{"openapi":"post /api/organization/update_dataset_configs","title":"Update All Dataset Configurations","href":"/api-reference/organization/update-all-dataset-configurations"},{"openapi":"put /api/organization","title":"Update Organization","href":"/api-reference/organization/update-organization"},{"openapi":"get /api/organization/api_key","title":"Get Organization Api Keys","href":"/api-reference/organization/get-organization-api-keys"},{"openapi":"get /api/organization/usage/{organization_id}","title":null,"href":"/api-reference/organization/get-organization-usage"},{"openapi":"get /api/organization/users/{organization_id}","title":"Get Organization Users","href":"/api-reference/organization/get-organization-users"},{"openapi":"get /api/organization/{organization_id}","title":"Get Organization","href":"/api-reference/organization/get-organization"},{"openapi":"delete /api/organization/{organization_id}","title":"Delete Organization","href":"/api-reference/organization/delete-organization"},{"openapi":"delete /api/organization/api_key/{api_key_id}","title":"Delete Organization Api Key","href":"/api-reference/organization/delete-organization-api-key"}]},{"group":"User","pages":[{"openapi":"put /api/user","title":"Update User Org Role","href":"/api-reference/user/update-user-org-role"},{"openapi":"get /api/user/api_key","title":"Get User Api Keys","href":"/api-reference/user/get-user-api-keys"},{"openapi":"delete /api/user/api_key/{api_key_id}","title":"Delete User Api Key","href":"/api-reference/user/delete-user-api-key"}]},{"group":"Auth","pages":[{"openapi":"get /api/auth","title":"Login","href":"/api-reference/auth/login"},{"openapi":"get /api/auth/callback","title":"OpenID Connect callback","href":"/api-reference/auth/openid-connect-callback"},{"openapi":"get /api/auth/me","title":"Get Me","href":"/api-reference/auth/get-me"},{"openapi":"delete /api/auth","title":"Logout","href":"/api-reference/auth/logout"},{"openapi":"post /api/auth/create_api_only_user","title":null,"href":"/api-reference/auth/post-apiauthcreate_api_only_user"}]},{"group":"Health","pages":[{"openapi":"get /api/health","title":"Health Check","href":"/api-reference/health/health-check"}]},{"group":"Invitation","pages":[{"openapi":"post /api/invitation","title":"Send Invitation","href":"/api-reference/invitation/send-invitation"},{"openapi":"get /api/invitations/{organization_id}","title":"Get Invitations","href":"/api-reference/invitation/get-invitations"},{"openapi":"delete /api/invitation/{invitation_id}","title":"Delete Invitation","href":"/api-reference/invitation/delete-invitation"}]},{"group":"Stripe","pages":[{"openapi":"post /api/stripe/checkout/setup/{organization_id}","title":"Update Payment Method","href":"/api-reference/stripe/create-checkout-session-setup"},{"openapi":"patch /api/stripe/subscription_plan/{subscription_id}/{plan_id}","title":"Update Subscription Plan","href":"/api-reference/stripe/update-subscription-plan"},{"openapi":"get /api/stripe/invoices/{organization_id}","title":"Get All Invoices","href":"/api-reference/stripe/get-all-invoices"},{"openapi":"get /api/stripe/payment_link/{plan_id}/{organization_id}","title":"Checkout","href":"/api-reference/stripe/checkout"},{"openapi":"get /api/stripe/plans","title":"Get All Plans","href":"/api-reference/stripe/get-all-plans"},{"openapi":"delete /api/stripe/subscription/{subscription_id}","title":"Cancel Subscription","href":"/api-reference/stripe/cancel-subscription"},{"openapi":"get /api/stripe/estimate_bill/{plan_id}","title":"Estimate Bill From Range","href":"/api-reference/stripe/estimate-bill-from-range"},{"openapi":"get /api/stripe/usage_plans","title":"Get All Usage Plans","href":"/api-reference/stripe/get-all-usage-plans"},{"openapi":"post /api/stripe/checkout/setup/{organization_id}","title":"Update Payment Method","href":"/api-reference/stripe/update-payment-method"}]},{"group":"Metrics","pages":[{"openapi":"post /metrics","title":"Get Prometheus Metrics","href":"/api-reference/metrics/get-prometheus-metrics"}]},{"group":"Public","pages":[{"openapi":"get /api/public_page/{dataset_id}","title":null,"href":"/api-reference/public/get-apipublic_page"},{"openapi":"post /api/shopify/user_event","title":"Send a Shopify user event","href":"/api-reference/public/send-a-shopify-user-event"}]}]},{"tab":"Vector Inference","pages":[{"title":"Vector Inference","href":"/vector-inference/introduction"}]},{"tab":"SiteSearch AI","pages":[{"title":"SiteSearch AI","href":"/site-search/introduction"}]}]},"title":"Upload File - Trieve","buildId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","deploymentId":"dpl_EnxDqhjaNc9a8MVa833TGULPd9uJ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-26-lDe7V.js","utils-CWQmgYtH.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-4-Aw3rSD.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-C2zjXYA5.js","snippetPresets-DFmpFA7C.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-FJpQavWq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-D_GvPF7k.js","shallow-Bs2ZB0NO.js","getApiPlaygroundDisplay-DCcqJJk-.js","CodeSnippet-DzDxawVe.js","CodeSnippets-aUr7fU-7.js","Page-CT9uE8Ip.js","getPastedJson-Y1fKsj_I.js","icon-DI4zTsDr.js","MethodPill-C0nDlmSQ.js","DuplicateIcon-NUXbx2nQ.js","createIcon-BdTHrPAi.js","DynamicMarkdown-CtpgKJwj.js","SectionHeading-B3x35tOt.js","axios-vUo_bRtp.js","Markdown-3OmurJMP.js","clsx-DMKzROTp.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-1ms6tsT-.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Ke9xIMFx.js"]}