actian-vectorai-client; import APIs from actian_vectorai.
Clients
UseVectorAIClient for synchronous code and AsyncVectorAIClient for async applications.
| Namespace | Purpose |
|---|---|
client.collections | Create, list, inspect, update, delete, recreate, and get-or-create collections. |
client.points | Upsert, retrieve, delete, update vectors and payloads, search, query, count, and scroll points. |
client.vde | Open and close collections, inspect state and stats, rebuild indexes, optimize, compact, flush, and import datasets. |
| Auth helpers | Manage access tokens and API keys through REST-backed admin operations. |
Configuration
The SDK loads.env files and ACTIAN_VECTORAI_* environment variables automatically. Constructor arguments override environment values.
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.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.