Interface QdrantVectorStoreConfig

Base configuration for any vector store provider. Specific provider configurations (e.g., for Pinecone, Weaviate) should extend this.

Interface

VectorStoreProviderConfig

interface QdrantVectorStoreConfig {
    id: string;
    customProps?: Record<string, any>;
    type: "qdrant";
    url: string;
    apiKey?: string;
    timeoutMs?: number;
    denseVectorName?: string;
    bm25VectorName?: string;
    enableBm25?: boolean;
    fetch?: {
        (input, init?): Promise<Response>;
        (input, init?): Promise<Response>;
    };
}

Hierarchy (view full)

Properties

id: string

A unique identifier for this specific provider instance (e.g., "pinecone-main-prod", "weaviate-dev-local"). This ID is used by the VectorStoreManager to retrieve this provider.

customProps?: Record<string, any>

Any other custom properties or configurations specific to this provider instance not covered by standard fields.

type: "qdrant"

The type of the vector store provider (e.g., "pinecone", "weaviate", "in_memory", "lancedb"). This helps in selecting the correct implementation.

url: string

Base URL, e.g. http://localhost:6333 or Qdrant Cloud endpoint.

apiKey?: string

Optional API key for Qdrant Cloud or secured self-host deployments.

timeoutMs?: number

Request timeout in milliseconds. Default: 15_000.

denseVectorName?: string

Named dense vector field. Default: dense.

bm25VectorName?: string

Named BM25 sparse vector field. Default: bm25.

enableBm25?: boolean

Store BM25 sparse vectors and enable hybridSearch(). Default: true.

fetch?: {
    (input, init?): Promise<Response>;
    (input, init?): Promise<Response>;
}

Optional custom fetch implementation (testing/edge). Defaults to global fetch.

Type declaration

    • (input, init?): Promise<Response>
    • Parameters

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>

    • (input, init?): Promise<Response>
    • Parameters

      • input: string | Request | URL
      • Optional init: RequestInit

      Returns Promise<Response>