Share via


Vector Stores - Get Vector Store

Returns the vector store object matching the specified ID.

GET {endpoint}/vector_stores/{vectorStoreId}?api-version=v1

URI Parameters

Name In Required Type Description
endpoint
path True

string (uri)

Project endpoint in the form of: https://<aiservices-id>.services.ai.azure.com/api/projects/<project-name>

vectorStoreId
path True

string

Identifier of the vector store.

api-version
query True

string

minLength: 1

The API version to use for this operation.

Responses

Name Type Description
200 OK

VectorStore

The request has succeeded.

Other Status Codes

AgentV1Error

An unexpected error response.

Security

OAuth2Auth

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/v2.0/authorize

Scopes

Name Description
https://ai.azure.com/.default

Examples

VectorStores_GetVectorStore_MaximumSet
VectorStores_GetVectorStore_MinimumSet

VectorStores_GetVectorStore_MaximumSet

Sample request

GET {endpoint}/vector_stores/xwdexmgihxptwjnfw?api-version=v1

Sample response

{
  "id": "bxcw",
  "object": "vector_store",
  "created_at": 6,
  "name": "nhjsetafmqp",
  "usage_bytes": 9,
  "file_counts": {
    "in_progress": 14,
    "completed": 21,
    "failed": 12,
    "cancelled": 1,
    "total": 25
  },
  "status": "expired",
  "expires_after": {
    "anchor": "last_active_at",
    "days": 102
  },
  "expires_at": 22,
  "last_active_at": 14,
  "metadata": {
    "key1986": "qlxm"
  }
}

VectorStores_GetVectorStore_MinimumSet

Sample request

GET {endpoint}/vector_stores/czppwfnseyduvnoyls?api-version=v1

Sample response

{
  "id": "bxcw",
  "object": "vector_store",
  "created_at": 6,
  "name": "nhjsetafmqp",
  "usage_bytes": 9,
  "file_counts": {
    "in_progress": 14,
    "completed": 21,
    "failed": 12,
    "cancelled": 1,
    "total": 25
  },
  "status": "expired",
  "last_active_at": 14,
  "metadata": {}
}

Definitions

Name Description
AgentErrorDetail

Describes the error information returned by the agents API.

AgentV1Error

Error payload returned by the agents API.

VectorStore

A vector store is a collection of processed files can be used by the file_search tool.

VectorStoreExpirationPolicy

The expiration policy for a vector store.

VectorStoreExpirationPolicyAnchor

Describes the relationship between the days and the expiration of this vector store

VectorStoreFileCount

Counts of files processed or being processed by this vector store grouped by status.

VectorStoreStatus

Vector store possible status

AgentErrorDetail

Describes the error information returned by the agents API.

Name Type Description
code

string

Machine-readable error code.

message

string

Human-readable description of the error.

param

string

Name of the parameter that caused the error, if applicable.

type

string

Error type identifier (e.g. invalid_request_error).

AgentV1Error

Error payload returned by the agents API.

Name Type Description
error

AgentErrorDetail

Represents the error.

VectorStore

A vector store is a collection of processed files can be used by the file_search tool.

Name Type Description
created_at

integer (unixtime)

The Unix timestamp (in seconds) for when the vector store was created.

expires_after

VectorStoreExpirationPolicy

Details on when this vector store expires

expires_at

integer (unixtime)

The Unix timestamp (in seconds) for when the vector store will expire.

file_counts

VectorStoreFileCount

Files count grouped by status processed or being processed by this vector store.

id

string

The identifier, which can be referenced in API endpoints.

last_active_at

integer (unixtime)

The Unix timestamp (in seconds) for when the vector store was last active.

metadata

object

A set of up to 16 key/value pairs that can be attached to an object, used for storing additional information about that object in a structured format. Keys may be up to 64 characters in length and values may be up to 512 characters in length.

name

string

The name of the vector store.

object enum:

vector_store

The object type, which is always vector_store

status

VectorStoreStatus

The status of the vector store, which can be either expired, in_progress, or completed. A status of completed indicates that the vector store is ready for use.

usage_bytes

integer (int32)

The total number of bytes used by the files in the vector store.

VectorStoreExpirationPolicy

The expiration policy for a vector store.

Name Type Description
anchor

VectorStoreExpirationPolicyAnchor

Anchor timestamp after which the expiration policy applies. Supported anchors: last_active_at.

days

integer (int32)

minimum: 1
maximum: 365

The anchor timestamp after which the expiration policy applies.

VectorStoreExpirationPolicyAnchor

Describes the relationship between the days and the expiration of this vector store

Value Description
last_active_at

The expiration policy is based on the last time the vector store was active.

VectorStoreFileCount

Counts of files processed or being processed by this vector store grouped by status.

Name Type Description
cancelled

integer (int32)

The number of files that were cancelled.

completed

integer (int32)

The number of files that have been successfully processed.

failed

integer (int32)

The number of files that have failed to process.

in_progress

integer (int32)

The number of files that are currently being processed.

total

integer (int32)

The total number of files.

VectorStoreStatus

Vector store possible status

Value Description
expired

expired status indicates that this vector store has expired and is no longer available for use.

in_progress

in_progress status indicates that this vector store is still processing files.

completed

completed status indicates that this vector store is ready for use.