REST: List vector store files
Returns a list of vector store files.
HTTP request
GET https://ai.api.cloud.yandex.net/v1/vector_stores/{vector_store_id}/files
Path parameters
|
Field |
Description |
|
vector_store_id |
string Required field. The ID of the vector store that the files belong to. |
Query parameters
|
Field |
Description |
|
limit |
integer A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. |
|
order |
enum Sort order by the
|
|
after |
string A cursor for use in pagination. |
|
before |
string A cursor for use in pagination. |
|
filter |
enum Filter by file status. One of
|
Response
HTTP Code: 200
OK
Response schema: application/json
{
"object": "string",
"data": [
{
"id": "string",
"object": "string",
"usage_bytes": "integer",
"created_at": "integer",
"vector_store_id": "string",
"status": "string",
"last_error": "unknown",
"chunking_strategy": {
"<anyOf>": [
{
"type": "string",
"static": {
"max_chunk_size_tokens": "integer",
"chunk_overlap_tokens": "integer"
}
},
{
"type": "string"
}
]
},
"attributes": "unknown"
}
],
"first_id": "string",
"last_id": "string",
"has_more": "boolean"
}
|
Field |
Description |
|
object |
string Required field. |
|
data[] |
Required field. A list of files attached to a vector store. |
|
first_id |
string Required field. |
|
last_id |
string Required field. |
|
has_more |
boolean Required field. |
VectorStoreFileObject
A list of files attached to a vector store.
|
Field |
Description |
|
id |
string Required field. The identifier, which can be referenced in API endpoints. |
|
object |
enum Required field. The object type, which is always
|
|
usage_bytes |
integer Required field. The total vector store usage in bytes. Note that this may be different from the original file size. |
|
created_at |
integer Required field. The Unix timestamp (in seconds) for when the vector store file was created. |
|
vector_store_id |
string Required field. The ID of the vector store that the file is attached to. |
|
status |
enum Required field. The status of the vector store file, which can be either
|
|
last_error |
Any of LastError0 | null |
|
chunking_strategy |
Any of StaticChunkingStrategyResponseParam | OtherChunkingStrategyResponseParam |
|
attributes |
Any of object (map<string, string>) | null |
LastError0
The last error associated with this vector store file. Will be null if there are no errors.
|
Field |
Description |
|
code |
enum Required field. One of
|
|
message |
string Required field. A human-readable description of the error. |
StaticChunkingStrategyResponseParam
|
Field |
Description |
|
type |
enum Required field. Always
|
|
static |
Required field. |
StaticChunkingStrategy
|
Field |
Description |
|
max_chunk_size_tokens |
integer Required field. The maximum number of tokens in each chunk. The default value is |
|
chunk_overlap_tokens |
integer Required field. The number of tokens that overlap between chunks. The default value is |
OtherChunkingStrategyResponseParam
This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the chunking_strategy concept was introduced in the API.
|
Field |
Description |
|
type |
enum Required field. Always
|