Typed Node.js client
Full TypeScript definitions, async APIs, and coverage for collection, data, index, partition, user, and system operations.
Build fast vector search applications in TypeScript with the official Milvus Node.js SDK. Connect to Milvus or Zilliz Cloud, manage schemas and indexes, and ship search workflows from one typed client.
Typed Node.js client
Full TypeScript definitions, async APIs, and coverage for collection, data, index, partition, user, and system operations.
Production search workflows
Build vector search, hybrid search, bulk import, iterators, retry logic, and serverless-friendly HTTP integrations.
Milvus is an open-source vector database built to power embedding similarity search and AI applications. It provides:
The Milvus Node.js SDK offers:
The following table shows the recommended @zilliz/milvus2-sdk-node versions for different Milvus versions:
| Milvus version | Node SDK version | Installation |
|---|---|---|
| v3.0.0+ | v3.0.0+ / latest | yarn add @zilliz/milvus2-sdk-node@latest |
| v2.6.0+ | v2.6.x | yarn add @zilliz/milvus2-sdk-node@2.6.9 |
| v2.5.0+ | v2.5.x | yarn add @zilliz/milvus2-sdk-node@2.5.12 |
| v2.4.0+ | v2.4.9 | yarn add @zilliz/milvus2-sdk-node@2.4.9 |
| v2.3.0+ | v2.3.5 | yarn add @zilliz/milvus2-sdk-node@2.3.5 |
| v2.2.0+ | v2.3.5 | yarn add @zilliz/milvus2-sdk-node@2.3.5 |
Features that require a Milvus 3.0 server are marked with the Milvus 3.0 tag throughout this documentation. The Node SDK 3.x docs now cover:
field_ops.offset values from query/search results and group_by_field_values from grouped search results.See Migration & Compatibility for the detailed coverage matrix, including Milvus 3.0 proto additions that are not exposed as public SDK methods.
import { MilvusClient } from '@zilliz/milvus2-sdk-node';
const client = new MilvusClient({ address: 'localhost:19530',});
await client.connectPromise;
console.log('Connected to Milvus!');