@karmaniverous/jeeves-watcher
    Preparing search index...

    Class VectorStoreClient

    Client wrapper for Qdrant vector store operations.

    Implements the VectorStore interface for dependency inversion.

    Implements

    Index

    Constructors

    • Create a new VectorStoreClient.

      Parameters

      • config: { apiKey?: string; collectionName: string; url: string }

        Vector store configuration.

        • OptionalapiKey?: string

          Qdrant API key.

        • collectionName: string

          Qdrant collection name.

        • url: string

          Qdrant server URL.

      • dimensions: number

        The embedding vector dimensions.

      • Optionallogger: Logger<never, boolean>

        Optional pino logger for retry warnings.

      Returns VectorStoreClient

    Methods

    • Delete points by their IDs.

      Uses a fresh QdrantClient per attempt to avoid stale keep-alive connections.

      Parameters

      • ids: string[]

        The point IDs to delete.

      Returns Promise<void>

    • Create a full-text payload index on the specified field. Idempotent — skips if the field already has a text index.

      Parameters

      • fieldName: string

        The payload field to index.

      Returns Promise<void>

    • Hybrid search combining dense vector and full-text match with RRF fusion.

      Parameters

      • vector: number[]

        The query vector.

      • queryText: string

        The raw query text for full-text matching.

      • limit: number

        Maximum results to return.

      • textWeight: number

        Weight for text results in RRF (0–1).

      • Optionalfilter: Record<string, unknown>

        Optional Qdrant filter.

      Returns Promise<SearchResult[]>

      An array of search results.

    • Search for similar vectors.

      Parameters

      • vector: number[]

        The query vector.

      • limit: number

        Maximum results to return.

      • Optionalfilter: Record<string, unknown>

        Optional Qdrant filter.

      • Optionaloffset: number

      Returns Promise<SearchResult[]>

      An array of search results.

    • Set payload fields for the specified point IDs.

      This merges the given payload object into each point's existing payload.

      Parameters

      • ids: string[]

        Point IDs to update.

      • payload: Record<string, unknown>

        Payload fields to set.

      Returns Promise<void>

    • Upsert points into the collection.

      Uses a fresh QdrantClient per attempt to avoid stale keep-alive connections. Between embedding calls and upserts, idle connections may be closed by the server, causing ECONNRESET on reuse.

      Parameters

      Returns Promise<void>