v4
OpenAPI 3.1.02026-08-01166346466.7 KBstores
Upload file to store
Upload a file to a store.
Args: store_identifier: The ID or name of the store. file_add_params: The file to add to the store.
Returns: VectorStoreFile: The uploaded file details.
post/v1/stores/{store_identifier}/files
Path parameters
The ID or name of the store
Request body
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."
}
]
}