Vector Stores
List Vector Stores
client.vectorStores.list(VectorStoreListParams { ending_before, limit, sort_by, 2 more } query?, RequestOptionsoptions?): CursorPageByName<VectorStore { id, created_at, embedding_dimensions, 4 more } >
GET/v5/vector-stores
Create Vector Store
client.vectorStores.create(VectorStoreCreateParams { name, dimensions, embedding_config, 2 more } body, RequestOptionsoptions?): VectorStore { id, created_at, embedding_dimensions, 4 more }
POST/v5/vector-stores/create
Get Vector Store
client.vectorStores.retrieve(stringvectorStoreName, RequestOptionsoptions?): VectorStore { id, created_at, embedding_dimensions, 4 more }
GET/v5/vector-stores/{vector_store_name}
Configure Vector Store
client.vectorStores.configure(stringvectorStoreName, VectorStoreConfigureParams { indexed_metadata_fields } body, RequestOptionsoptions?): VectorStore { id, created_at, embedding_dimensions, 4 more }
POST/v5/vector-stores/{vector_store_name}/configure
Drop Vector Store
client.vectorStores.drop(stringvectorStoreName, RequestOptionsoptions?): VectorStoreDropResponse { name }
POST/v5/vector-stores/{vector_store_name}/drop
Upsert Vectors
client.vectorStores.upsert(stringvectorStoreName, VectorStoreUpsertParams { vectors } body, RequestOptionsoptions?): VectorStoreUpsertResponse { failure_count, success_count, failed, succeeded }
POST/v5/vector-stores/{vector_store_name}/upsert
Delete Vectors
client.vectorStores.delete(stringvectorStoreName, VectorStoreDeleteParams { filter, ids } body, RequestOptionsoptions?): VectorStoreDeleteResponse { deleted_count }
POST/v5/vector-stores/{vector_store_name}/delete
Count Vectors
client.vectorStores.count(stringvectorStoreName, VectorStoreCountParams { filter } body?, RequestOptionsoptions?): VectorStoreCountResponse { count }
POST/v5/vector-stores/{vector_store_name}/count
Query Vectors
client.vectorStores.query(stringvectorStoreName, VectorStoreQueryParams { content, filter, include_vectors, 7 more } body, RequestOptionsoptions?): VectorStoreQueryResponse { metadata, vectors }
POST/v5/vector-stores/{vector_store_name}/query
Vector StoresVectors
List Vectors
client.vectorStores.vectors.list(stringvectorStoreName, VectorListParams { cursor, ending_before, filter, 5 more } query?, RequestOptionsoptions?): CursorPageVectors<VectorDocument { id, content, metadata, vector } >
GET/v5/vector-stores/{vector_store_name}/vectors
Get Vector
client.vectorStores.vectors.retrieve(stringvectorID, VectorRetrieveParams { vector_store_name, include_vectors } params, RequestOptionsoptions?): VectorDocument { id, content, metadata, vector }
GET/v5/vector-stores/{vector_store_name}/vectors/{vector_id}