Skip to main content

Installation

Install via npm:
Or with yarn:

Quick Start

Repository

GitHub Repository

Official JavaScript client: qdrant/qdrant-js

Client Initialization

Basic Connection

With Custom Options

TypeScript Support

The client has full TypeScript definitions:

Collection Management

Create Collection

Create with HNSW Config

Get Collection Info

List Collections

Update Collection

Delete Collection

Point Operations

Upsert Points

Batch Upsert

Get Points

Delete Points

Search Operations

Search with Filtering

Search with Parameters

Recommendations

Basic Recommendations

Recommend with Strategy

Batch Recommendations

Query API (Universal)

Payload Operations

Set Payload

Overwrite Payload

Delete Payload Keys

Clear Payload

Scroll (Pagination)

Payload Indexing

Snapshots

Create Snapshot

List Snapshots

Recover from Snapshot

Error Handling

Usage with Node.js

Usage with Browser

Advanced Filtering

Best Practices

Performance tips:
  • Use batch operations for multiple points
  • Set wait: false for faster upserts
  • Create payload indexes before filtering
  • Use appropriate batch sizes (100-1000 points)
Common issues:
  • Always handle errors with try-catch
  • Ensure vector dimensions match collection config
  • Use UUID strings or integers for point IDs
  • Handle pagination when scrolling large datasets

Next Steps

Python Client

Python client documentation

Rust Client

Rust client library