/** * @module @nhtio/adk/batteries/vector/chroma */ import { BaseVectorStore } from "../contract"; import type { VectorFilter } from "../filters"; import type { SearchPlan, UpsertPlan, DeletePlan, CollectionSpec } from "../plan"; import type { VectorMatch, BaseVectorStoreOptions, VectorStoreCapabilities } from "../types"; export interface ChromaVectorStoreOptions extends BaseVectorStoreOptions { /** Connection and authentication parameters for the backend. */ connection?: { url?: string; host?: string; port?: number; ssl?: boolean; }; } /** Translate a neutral {@link VectorFilter} into Chroma's `where` filter object. */ export declare const translateChromaWhere: (filter?: VectorFilter) => Record | undefined; export declare class ChromaVectorStore extends BaseVectorStore { #private; readonly capabilities: VectorStoreCapabilities; /** Static availability probe: whether this adapter's runtime driver can load in the current environment. */ static isAvailable(): boolean; isAvailable(): boolean; connect(): Promise; close(): Promise; /** Resolve (and cache) the underlying Chroma collection handle for `name`. */ getCollection(name: string): Promise; createCollection(spec: CollectionSpec, ifNotExists: boolean): Promise; dropCollection(collection: string, ifExists: boolean): Promise; hasCollection(collection: string): Promise; renameCollection(from: string, to: string): Promise; executeUpsert(plan: UpsertPlan): Promise; executeSearch(plan: SearchPlan): Promise; executeDelete(plan: DeletePlan): Promise; }