VectorAIClient for VectorAI DB over gRPC, plus REST-based auth/admin helpers.
Prerequisites
| Requirement | Version |
|---|---|
| Node.js | 18 or higher |
| npm | 9 or higher |
| VectorAI DB | Running at localhost:6574 by default |
Install the SDK
Verify installation
Requires VectorAI DB running locally. See the Docker setup guide if you haven’t done that yet. Save the following ashealth.ts and run it with npx tsx health.ts.
Project setup
Create a TypeScript project and install the SDK.Troubleshooting
| Issue | Solution |
|---|---|
MODULE_NOT_FOUND | Verify the SDK is installed with npm ls @actian/vectorai-client. |
| gRPC connection errors | Confirm VectorAI DB is reachable at localhost:6574. |
| Node.js version mismatch | Run node --version; the SDK requires Node.js 18 or later. |
| TypeScript module errors | Use an ESM-compatible setup and run examples with tsx. |
Next steps
Quickstart
Create a collection, insert vectors, and run a search.
JavaScript reference
Review namespaces, client options, filters, auth, batching, and errors.