UNPKG

antarys

Version:

High-performance Node.js client for Antarys vector database with HTTP/2, connection pooling, and intelligent caching

43 lines 1.72 kB
import { EventEmitter } from 'events'; import { ClientConfig, VectorRecord, CreateCollectionParams, ApiResponse, UpsertResponse, HealthResponse, InfoResponse, RequestOptions } from '../shared/types'; import { VectorOperations } from "./vector_ops"; export declare class Client extends EventEmitter { private readonly host; private readonly config; private readonly logger; private readonly queryCache; private readonly bufferPool; private readonly collectionCache; private requestCount; private requestTimes; private readonly startTime; private cleanupInterval?; private isDestroyed; private pendingRequests; constructor(host: string, config?: ClientConfig); createCollection(params: CreateCollectionParams): Promise<ApiResponse>; private getCollectionDimensions; private validateVectorDimensions; upsert(collectionName: string, records: VectorRecord[], options?: { batchSize?: number; showProgress?: boolean; parallelism?: number; validateDimensions?: boolean; }): Promise<UpsertResponse>; vectorOperations(collectionName?: string): VectorOperations; vector_operations(collectionName?: string): VectorOperations; commit(): Promise<ApiResponse>; health(): Promise<HealthResponse>; info(): Promise<InfoResponse>; clearCache(): Promise<{ success: boolean; message: string; }>; request<T = any>(options: RequestOptions): Promise<T>; private performRequest; private cleanup; getStats(): Record<string, any>; close(): Promise<void>; } export declare function createClient(host: string, config?: ClientConfig): Client; //# sourceMappingURL=client.d.ts.map