@gravityai-dev/pinecone
Version:
Pinecone vector database nodes for GravityWorkflow - knowledge management and vector operations
38 lines • 1.33 kB
TypeScript
import { CredentialContext } from "../../../credentials";
interface VectorData {
id: string;
values?: number[];
metadata?: any;
}
interface SaveVectorsOptions {
indexName: string;
namespace?: string;
vectors: VectorData[];
workflowId: string;
executionId: string;
deleteExisting?: boolean;
}
/**
* Save vectors with embeddings to Pinecone with context
*/
export declare function saveVectorsWithEmbeddingsWithContext(options: SaveVectorsOptions, context: CredentialContext): Promise<{
success: boolean;
vectorCount: number;
}>;
/**
* Save vectors with embeddings to Pinecone (legacy without context)
*/
export declare function saveVectorsWithEmbeddings(apiKey: string, indexName: string, namespace: string, vectors: VectorData[], workflowId: string, executionId: string, deleteExisting?: boolean): Promise<{
success: boolean;
vectorCount: number;
}>;
/**
* Load vectors for editing with context
*/
export declare function loadVectorsForEditingWithContext(indexName: string, namespace: string, context: CredentialContext): Promise<VectorData[]>;
/**
* Load vectors for editing (legacy without context)
*/
export declare function loadVectorsForEditing(apiKey: string, indexName: string, namespace: string): Promise<VectorData[]>;
export {};
//# sourceMappingURL=vectors.d.ts.map