import { Chunk } from "../types.js"; import { BaseHandshake, BaseHandshakeOptions, HandshakeSearchResult } from "./base.js"; //#region src/handshakes/milvus.d.ts interface MilvusHandshakeOptions extends BaseHandshakeOptions { /** Pre-initialized Milvus client. */ client: MilvusClient; /** Collection name in Milvus. */ collectionName: string; } interface MilvusClient { insert(params: { collection_name: string; data: Array>; }): Promise<{ insert_cnt: number; }>; search(params: { collection_name: string; vectors: number[][]; limit: number; output_fields?: string[]; }): Promise<{ results: Array<{ id: string | number; score: number; [key: string]: unknown; }>; }>; getCollectionStatistics(params: { collection_name: string; }): Promise<{ data: { row_count: number; }; }>; } declare class MilvusHandshake extends BaseHandshake { private client; private collectionName; constructor(options: MilvusHandshakeOptions); write(chunks: Chunk | Chunk[]): Promise; search(query: string, options?: { limit?: number; }): Promise; searchByVector(embedding: number[], options?: { limit?: number; }): Promise; count(): Promise; } //#endregion export { MilvusClient, MilvusHandshake, MilvusHandshakeOptions }; //# sourceMappingURL=milvus.d.ts.map