The JavaScript SDK provides a TypeScript-firstDocumentation 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.
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
Add the SDK to your project.Verify installation
Save the following ashealth.ts and run it with npx tsx health.ts.
Project setup
Create a TypeScript project and install the SDK.Configure the client
Use constructor options or environment variables for connection settings.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.