Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 631 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 631 Bytes

Node.js Example

Access Qdrant API from Node.js

How to

Install dependencies

npm install --save @qdrant/js-client-rest

Import client

import {QdrantClient} from '@qdrant/js-client-rest';

Initialize client

const client = new QdrantClient({url: 'http://127.0.0.1:6333'});

Run example

node ./index.js

Connect to Qdrant Cloud

const client = new QdrantClient({
    url: 'https://xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.us-east-0-1.aws.cloud.qdrant.io',
    apiKey: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
});

Obtain API key from Qdrant Cloud