v4
OpenAPI 3.1.02026-08-01166346466.7 KBstores
Upload file via form to store
Upload a file via form to a store.
Args: store_identifier: The ID or name of the store. config: The config for the file. metadata: The metadata for the file. file: The file to upload.
Returns: VectorStoreFile: The uploaded file details.
post/v1/stores/{store_identifier}/files/upload
Path parameters
The ID or name of the store
Response
The uploaded store file details
Example response
{
"version": 1,
"usage_bytes": 51200,
"usage_tokens": 51200,
"chunks": [
{
"mime_type": "text/plain",
"model": "text-embedding-ada-002",
"context": "This chunk is from an SEC filing on ACME corp's Q2 2023 performance.",
"summary": "A short overview of ACME's Q2 2023 performance."
}
]
}