/** * Pinecone Adapter * * Vector database adapter for Pinecone. * https://www.pinecone.io/ */ import { VectorDBType, VectorFeature, IVectorConnectionResult, IUpsertVectorsOptions, IUpsertVectorsResult, IQueryVectorsOptions, IQueryVectorsResult, IFetchVectorsOptions, IFetchVectorsResult, IUpdateVectorOptions, IUpdateVectorResult, IDeleteVectorsOptions, IDeleteVectorsResult, IListVectorsOptions, IListVectorsResult, IListNamespacesResult, IVectorIndexInfo, ICreateIndexOptions, ICreateIndexResult, IDeleteIndexOptions, IDeleteIndexResult, IVectorIndexStats } from '../types'; import { BaseVectorAdapter, IAdapterConnectionOptions } from './base.adapter'; /** * Pinecone adapter implementation */ export declare class PineconeAdapter extends BaseVectorAdapter { readonly type = VectorDBType.PINECONE; private apiKey; private indexHost; private controllerHost; private timeout; connect(options: IAdapterConnectionOptions): Promise; disconnect(): Promise; testConnection(): Promise; upsert(options: IUpsertVectorsOptions): Promise; query(options: IQueryVectorsOptions): Promise; fetch(options: IFetchVectorsOptions): Promise; update(options: IUpdateVectorOptions): Promise; delete(options: IDeleteVectorsOptions): Promise; list(options: IListVectorsOptions): Promise; listNamespaces(): Promise; deleteNamespace(namespace: string): Promise; describeIndex(): Promise; getIndexStats(): Promise; createIndex(options: ICreateIndexOptions): Promise; deleteIndex(options: IDeleteIndexOptions): Promise; listIndexes(): Promise; supportsFeature(feature: VectorFeature): boolean; /** * Make a request to the index host */ private request; /** * Make a request to the controller host (for index management) */ private controllerRequest; /** * Convert Ductape filter to Pinecone format */ private convertFilter; /** * Map Pinecone metric name to our enum */ private mapPineconeMetric; } export default PineconeAdapter;