Skip to main content
The Python SDK package is actian-vectorai-client; import APIs from actian_vectorai.

Clients

Use VectorAIClient for synchronous code and AsyncVectorAIClient for async applications.
Both clients expose the same primary namespaces.

Configuration

The SDK loads .env files and ACTIAN_VECTORAI_* environment variables automatically. Constructor arguments override environment values.
Use ACTIAN_VECTORAI_ACCESS_TOKEN or VectorAIClient(access_token="...") for Bearer authentication.

Collections and points

Filters

Use the Filter DSL for payload predicates.

Hybrid search and batching

The SDK includes client-side reciprocal rank fusion, distribution-based score fusion, and smart batching.
Use client.upload_points(...) for simple bulk upload or SmartBatcher when you need automatic flushing and batch sizing controls.

Embeddings and telemetry

Install optional extras when needed:
OpenAIEmbedder provides OpenAI embedding helpers, and telemetry extras enable structured observability integrations.

Errors and transport

The SDK maps gRPC and REST failures to typed exceptions such as validation, authentication, connection, collection, point, timeout, and server errors. Configure TLS, retries, timeouts, and connection pool size through constructor options or environment variables.