import { Chunk } from "../types.js"; import { BaseHandshake, BaseHandshakeOptions, HandshakeSearchResult } from "./base.js"; //#region src/handshakes/pinecone.d.ts interface PineconeHandshakeOptions extends BaseHandshakeOptions { /** Pre-initialized Pinecone index instance. */ index: PineconeIndex; /** Namespace within the index. */ namespace?: string; } interface PineconeIndex { namespace(ns: string): PineconeNamespace; describeIndexStats(): Promise<{ totalRecordCount?: number; namespaces?: Record; }>; } interface PineconeNamespace { upsert(vectors: Array<{ id: string; values: number[]; metadata?: Record; }>): Promise; query(params: { vector: number[]; topK: number; includeMetadata?: boolean; }): Promise<{ matches: Array<{ id: string; score?: number; metadata?: Record; }>; }>; } declare class PineconeHandshake extends BaseHandshake { private index; private namespace; private ns; constructor(options: PineconeHandshakeOptions); write(chunks: Chunk | Chunk[]): Promise; search(query: string, options?: { limit?: number; }): Promise; searchByVector(embedding: number[], options?: { limit?: number; }): Promise; count(): Promise; } //#endregion export { PineconeHandshake, PineconeHandshakeOptions, PineconeIndex, PineconeNamespace }; //# sourceMappingURL=pinecone.d.ts.map