List files in a vector store batch
Returns a list of vector store files in a batch.
Request
GET
https://ai.api.cloud.yandex.net/v1/vector_stores/{vector_store_id}/file_batches/{batch_id}/files
Path parameters
|
Name |
Description |
|
batch_id |
Type: string The ID of the file batch that the files belong to. Example: `` |
|
vector_store_id |
Type: string The ID of the vector store that the files belong to. Example: `` |
Query parameters
|
Name |
Description |
|
after |
Type: string A cursor for use in pagination. Example: `` |
|
before |
Type: string A cursor for use in pagination. Example: `` |
|
filter |
Type: string Filter by file status. One of Enum: |
|
limit |
Type: integer A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. Default: |
|
order |
Type: string Sort order by the Default: Enum: |
Responses
200 OK
OK
Body
application/json
{
"object": "list",
"data": [
{
"id": "example",
"object": "vector_store.file",
"usage_bytes": 0,
"created_at": 0,
"vector_store_id": "example",
"status": "in_progress",
"last_error": null
}
],
"first_id": "example",
"last_id": "example",
"has_more": false
}
|
Name |
Description |
|
data |
Type: VectorStoreFileObject[] Example
|
|
first_id |
Type: string Example: |
|
has_more |
Type: boolean |
|
last_id |
Type: string Example: |
|
object |
Type: string Example: |
VectorStoreFileObject
A list of files attached to a vector store.
|
Name |
Description |
||||
|
created_at |
Type: integer The Unix timestamp (in seconds) for when the vector store file was created. |
||||
|
id |
Type: string The identifier, which can be referenced in API endpoints. Example: |
||||
|
last_error |
Any of 2 types
Default: |
||||
|
object |
Type: string The object type, which is always Const: Example: |
||||
|
status |
Type: string The status of the vector store file, which can be either Enum: |
||||
|
usage_bytes |
Type: integer The total vector store usage in bytes. Note that this may be different from the original file size. |
||||
|
vector_store_id |
Type: string The ID of the vector store that the File is attached to. Example: |
Example
{
"id": "example",
"object": "vector_store.file",
"usage_bytes": 0,
"created_at": 0,
"vector_store_id": "example",
"status": "in_progress",
"last_error": null
}