Skip to main content
Home

Built and signed on GitHub Actions

This package works with Cloudflare Workers, Node.js, Deno, Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
23%
Published
a year ago (0.4.0)
class QdrantVectorStore

Qdrant vector store.

Constructors

new
QdrantVectorStore(unnamed 0: QdrantParams)

Creates a new QdrantVectorStore.

Properties

Methods

add(embeddingResults: BaseNode[]): Promise<string[]>

Adds the given nodes to the vector store.

buildPoints(nodes: BaseNode[]): Promise<{ points: PointStruct[]; ids: string[]; }>

Builds a list of points from the given nodes.

Qdrant filter builder

Returns the Qdrant client.

Checks if the collection exists in Qdrant and creates it if not.

createCollection(
collectionName: string,
vectorSize: number,
): Promise<void>

Creates a collection in Qdrant.

delete(refDocId: string): Promise<void>

Deletes the given nodes from the vector store.

Initializes the collection in Qdrant.

private
parseToQueryResult(response: Array<QuerySearchResult>): VectorStoreQueryResult

Converts the result of a query to a VectorStoreQueryResult.

Queries the vector store for the closest matching data to the query embeddings.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@llamaindex/llamaindex

Import symbol

import { QdrantVectorStore } from "@llamaindex/llamaindex";
or

Import directly with a jsr specifier

import { QdrantVectorStore } from "jsr:@llamaindex/llamaindex";

Add Package

pnpm i jsr:@llamaindex/llamaindex
or (using pnpm 10.8 or older)
pnpm dlx jsr add @llamaindex/llamaindex

Import symbol

import { QdrantVectorStore } from "@llamaindex/llamaindex";

Add Package

yarn add jsr:@llamaindex/llamaindex
or (using Yarn 4.8 or older)
yarn dlx jsr add @llamaindex/llamaindex

Import symbol

import { QdrantVectorStore } from "@llamaindex/llamaindex";

Add Package

vlt install jsr:@llamaindex/llamaindex

Import symbol

import { QdrantVectorStore } from "@llamaindex/llamaindex";

Add Package

npx jsr add @llamaindex/llamaindex

Import symbol

import { QdrantVectorStore } from "@llamaindex/llamaindex";

Add Package

bunx jsr add @llamaindex/llamaindex

Import symbol

import { QdrantVectorStore } from "@llamaindex/llamaindex";