Skip to content

Latest commit

 

History

History
 
 

node-js-basic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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