VectorAI DB uses standard transport status codes and the Python SDK maps them to typed exceptions. Catch specific exceptions when you can, and useDocumentation Index
Fetch the complete documentation index at: https://docs.vectoraidb.actian.com/llms.txt
Use this file to discover all available pages before exploring further.
VectorAIError as the application-level catch-all.
| SDK exceptions | actian_vectorai.exceptions module |
| Base exception | VectorAIError |
| Retry helpers | is_retryable(error), get_retry_delay(error) |
Python SDK exceptions
The current Python SDK exposes these exception classes for common application handling.| Exception class | Typical cause | Useful fields |
|---|---|---|
CollectionNotFoundError | A collection does not exist | collection_name, code, message |
CollectionExistsError | Creating a collection that already exists | collection_name, code, message |
ConnectionError | Server is unavailable or the channel failed | code, message, details |
ConnectionTimeoutError | Connection attempt timed out | address, timeout, code, message |
RateLimitError | Server rate limit or quota exceeded | retry_after, code, message |
TimeoutError | RPC deadline exceeded | timeout, operation, code, message |
UnimplementedError | The server does not implement the operation | operation, code, message |
VectorAIError | Base class for SDK errors | code, message, details, operation |
Catch specific exceptions
Use the namespaced SDK APIs in examples and production code. Collections live underclient.collections, and vector search lives under client.points.
Create a collection idempotently
CatchCollectionExistsError to skip creation when a collection is already present.
Retry transient failures
Use exponential backoff for retryable errors. The helper functions understand SDK exception types, includingConnectionError, RateLimitError, and TimeoutError.
Inspect error details
Every SDK exception exposesmessage, code, details, and operation where available. Use these fields for logging and custom handling.
Common error messages
Collection not found
Collection not found
Cause: The collection name is misspelled, or the collection was deleted.Fix: Call
client.collections.list() to verify the collection exists before operating on it.Wrong vector dimensions
Wrong vector dimensions
Cause: The query vector or inserted vector has a different number of dimensions than the collection configuration.Fix: Confirm the embedding model and collection dimensions match.
Authentication failure
Authentication failure
Cause: The server has authentication enabled but the client did not supply a valid access token.Fix: Pass the configured token to
VectorAIClient or set ACTIAN_VECTORAI_ACCESS_TOKEN.Server unavailable
Server unavailable
Next steps
Troubleshooting
Diagnose connection, search, and startup issues.
Python SDK
Get started with the Python SDK.