import { Chunk } from "../types.js"; import { BaseHandshake, BaseHandshakeOptions, HandshakeSearchResult } from "./base.js"; //#region src/handshakes/chroma.d.ts interface ChromaHandshakeOptions extends BaseHandshakeOptions { /** Pre-initialized ChromaDB collection. Must use cosine distance (hnsw:space = "cosine"). */ collection: ChromaCollection; } interface ChromaCollection { add(params: { ids: string[]; embeddings: number[][]; metadatas: Record[]; documents: string[]; }): Promise; query(params: { queryEmbeddings: number[][]; nResults?: number; }): Promise<{ ids: string[][]; distances: number[][] | null; metadatas: (Record | null)[][] | null; documents: (string | null)[][] | null; }>; count(): Promise; } declare class ChromaHandshake extends BaseHandshake { private collection; constructor(options: ChromaHandshakeOptions); write(chunks: Chunk | Chunk[]): Promise; search(query: string, options?: { limit?: number; }): Promise; searchByVector(embedding: number[], options?: { limit?: number; }): Promise; count(): Promise; } //#endregion export { ChromaCollection, ChromaHandshake, ChromaHandshakeOptions }; //# sourceMappingURL=chroma.d.ts.map