List vector stores
Returns a list of vector stores.
Request
GET
https://ai.api.cloud.yandex.net/v1/vector_stores
Query parameters
|
Name |
Description |
|
after |
Type: string A cursor for use in pagination. Example: `` |
|
before |
Type: string A cursor for use in pagination. Example: `` |
|
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",
"created_at": 0,
"name": "example",
"usage_bytes": 0,
"file_counts": {
"in_progress": 0,
"completed": 0,
"failed": 0,
"cancelled": 0,
"total": 0
},
"status": "expired",
"expires_after": {
"anchor": "last_active_at",
"days": 1
},
"expires_at": 0,
"last_active_at": 0,
"metadata": {}
}
],
"first_id": "example",
"last_id": "example",
"has_more": false
}
|
Name |
Description |
|
data |
Type: VectorStoreObject[] Example
|
|
first_id |
Type: string Example: |
|
has_more |
Type: boolean |
|
last_id |
Type: string Example: |
|
object |
Type: string Example: |
VectorStoreExpirationAfter
The expiration policy for a vector store.
|
Name |
Description |
|
anchor |
Type: string Anchor timestamp after which the expiration policy applies. Supported anchors: Const: Example: |
|
days |
Type: integer The number of days after the anchor time that the vector store will expire. Min value: Max value: |
Example
{
"anchor": "last_active_at",
"days": 1
}
Metadata
Any of 2 types
-
Type: object
[additional]
Type: string
Example:
exampleSet of key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Example
{} -
Type: null
Example:
null
Example
{}
VectorStoreObject
A vector store is a collection of processed files can be used by the file_search tool.
|
Name |
Description |
||||||||||
|
created_at |
Type: integer The Unix timestamp (in seconds) for when the vector store was created. |
||||||||||
|
file_counts |
Type: object
Example
|
||||||||||
|
id |
Type: string The identifier, which can be referenced in API endpoints. Example: |
||||||||||
|
last_active_at |
Any of 2 types
Example: |
||||||||||
|
metadata |
Type: Metadata Example
|
||||||||||
|
name |
Type: string The name of the vector store. Example: |
||||||||||
|
object |
Type: string The object type, which is always Const: Example: |
||||||||||
|
status |
Type: string The status of the vector store, which can be either Enum: |
||||||||||
|
usage_bytes |
Type: integer The total number of bytes used by the files in the vector store. |
||||||||||
|
expires_after |
Type: VectorStoreExpirationAfter The expiration policy for a vector store. Example
|
||||||||||
|
expires_at |
Any of 2 types
Example: |
Example
{
"id": "example",
"object": "vector_store",
"created_at": 0,
"name": "example",
"usage_bytes": 0,
"file_counts": {
"in_progress": 0,
"completed": 0,
"failed": 0,
"cancelled": 0,
"total": 0
},
"status": "expired",
"expires_after": {
"anchor": "last_active_at",
"days": 1
},
"expires_at": 0,
"last_active_at": 0,
"metadata": {}
}