Access Qdrant API from Node.js
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'});
node ./index.js
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