qdrant-local
v0.0.0-alpha.10
Published
Qdrant client extension with local support
Downloads
7
Readme
Installation
npm i qdrant-local
The above step also downloads a Qdrant binary specific to your platform.
Usage
This library exports a QdrantExtended
class that subclasses the Qdrant client library. Essentially everything except new QdrantExtended(":local:")
is the same as the original.
import { QdrantExtended } from "qdrant-local";
const qdrant = new QdrantExtended(":local:");
// const qdrant = new QdrantExtended({host: '127.0.0.1', port: 6333}); // Still supported
await qdrant.createCollection("test", {
vectors: {
size: 768,
distance: "Manhattan"
}
});
console.log(await qdrant.getCollections())
The binary downloader/runner is based on https://github.com/Anush008/qdrant-npm.