UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

45 lines (40 loc) 1.42 kB
/** * Pinecone Vector Store Node - Version 1.2 * Discriminator: mode=insert */ interface Credentials { pineconeApi: CredentialReference; } /** Insert documents into vector store */ export type LcVectorStorePineconeV12InsertParams = { mode: 'insert'; pineconeIndex?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; /** * Number of documents to embed in a single batch * @default 200 */ embeddingBatchSize?: number | Expression<number>; /** * Options * @default {} */ options?: { /** Whether to clear the namespace before inserting new data * @default false */ clearNamespace?: boolean | Expression<boolean>; /** Partition the records in an index into namespaces. Queries and other operations are then limited to one namespace, so different requests can search different subsets of your index. */ pineconeNamespace?: string | Expression<string> | PlaceholderValue; }; }; export interface LcVectorStorePineconeV12InsertSubnodeConfig { embedding: EmbeddingInstance | EmbeddingInstance[]; documentLoader: DocumentLoaderInstance | DocumentLoaderInstance[]; } export type LcVectorStorePineconeV12InsertNode = { type: '@n8n/n8n-nodes-langchain.vectorStorePinecone'; version: 1.2; credentials?: Credentials; config: NodeConfig<LcVectorStorePineconeV12InsertParams> & { subnodes: LcVectorStorePineconeV12InsertSubnodeConfig }; };