Create and manage collections of document embeddings for semantic search
POST /v1/vector_stores
application/json
Request Body:
name
: Name of the vector store (required)metadata
: Custom metadata for the vector store (optional)GET /v1/vector_stores
Query Parameters:
limit
: Maximum number of vector stores to return (default: 20, range: 1-100)after
: Return vector stores after this ID for pagination (optional)GET /v1/vector_stores/{vector_store_id}
Path Parameters:
vector_store_id
: The ID of the vector store to retrieve (required)PATCH /v1/vector_stores/{vector_store_id}
application/json
Path Parameters:
vector_store_id
: The ID of the vector store to update (required)name
: New name for the vector store (optional)metadata
: New custom metadata for the vector store (optional)DELETE /v1/vector_stores/{vector_store_id}
Path Parameters:
vector_store_id
: The ID of the vector store to delete (required)POST /v1/vector_stores/{vector_store_id}/files
application/json
Path Parameters:
vector_store_id
: The ID of the vector store to add the file to (required)file_id
: ID of the file to add (required)chunking_strategy
: Strategy for dividing the document (optional)attributes
: Custom attributes for filtering (optional)GET /v1/vector_stores/{vector_store_id}/files
Path Parameters:
vector_store_id
: The ID of the vector store to list files from (required)limit
: Maximum number of files to return (default: 20, range: 1-100)after
: Return files after this ID for pagination (optional)GET /v1/vector_stores/{vector_store_id}/files/{file_id}
Path Parameters:
vector_store_id
: The ID of the vector store (required)file_id
: The ID of the file to retrieve (required)DELETE /v1/vector_stores/{vector_store_id}/files/{file_id}
Path Parameters:
vector_store_id
: The ID of the vector store (required)file_id
: The ID of the file to remove (required)Create separate vector stores for different domains
Use meaningful names and descriptions
Leverage metadata for additional context
Use consistent attribute schemes
Include version information
Update attributes as files change
Technical documentation
Narrative content
Tabular/structured data
Include overlap between chunks