Runnable examples for the @actian/vectorai-client package.
- Node.js 18 or newer
- A running Actian VectorAI server, typically at
localhost:6574 - For authentication examples, the REST auth endpoint, typically
http://localhost:6573
npm installList all examples:
npm run examples:listRun the full example suite against the default server:
npm run examples:runRun the suite against a custom gRPC address:
npm run examples:run -- localhost:6574Run one example:
npm run example:helloYou can also run any example directly:
npx tsx examples/04_vector_search.ts localhost:6574Some examples also read:
ACTIAN_VECTORAI_URL=localhost:6574
ACTIAN_VECTORAI_REST_URL=http://localhost:6573
ACTIAN_VECTORAI_ACCESS_TOKEN=...
ADMIN_PASS=Example-Admin-P@ss1- Examples create temporary collections and attempt to clean them up before exiting.
- Server-version-sensitive examples may report unsupported operations if the connected server does not implement that feature.
- Authentication and TLS examples require matching server configuration.
Copyright (c) 2026 Actian Corporation SPDX-License-Identifier: MIT