Get collection metadata
The following example retrieves collection configuration and properties.config.params.collection_name: The name of the collection.config.params.vectors_config: Vector configuration including size and distance metric.status: Current collection state (Ready, Loading, Closed, Error).points_count: Total number of points in the collection.optimizer_status: Status of the indexing optimizer.
Get collection statistics
The following example monitors collection size, index status, and resource usage.points_count: Total number of points stored in the collection.status: Current collection state (Ready, Loading, Closed, Error).optimizer_status: Current status of the indexing optimizer.
Get collection state
Collections exist in one of four states that indicate their availability for operations:- Ready. Collection is loaded into memory and available for operations.
- Loading. Collection is currently loading into memory.
- Closed. Collection exists on disk but is not loaded into memory.
- Error. Collection encountered an issue.
get_info() and reading the status field.
status field, which contains the current state of the collection.
Run a health check
The health check monitors database connectivity and uptime at the instance level, not for individual collections. Use it to verify that the VectorAI DB server is running and to retrieve version information.title: Name of the VectorAI DB service.version: Current version of the VectorAI DB server.
List all collections
Retrieve a list of all collections in your VectorAI DB instance. This returns information about all collections including their names, vector counts, and basic configuration. Use this to discover available collections or to monitor your database state.collections: List of collection names (strings).- For each collection via
get_info():points_count: Number of vectors in the collection.status: Collection state.config: Collection configuration details.