@n8n/n8n-nodes-langchain
Version:

40 lines (35 loc) • 1.29 kB
text/typescript
/**
* Pinecone Vector Store Node - Version 1
* Discriminator: mode=insert
*/
interface Credentials {
pineconeApi: CredentialReference;
}
/** Insert documents into vector store */
export type LcVectorStorePineconeV1InsertParams = {
mode: 'insert';
pineconeIndex?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
/**
* 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 LcVectorStorePineconeV1InsertSubnodeConfig {
embedding: EmbeddingInstance | EmbeddingInstance[];
documentLoader: DocumentLoaderInstance | DocumentLoaderInstance[];
}
export type LcVectorStorePineconeV1InsertNode = {
type: '@n8n/n8n-nodes-langchain.vectorStorePinecone';
version: 1;
credentials?: Credentials;
config: NodeConfig<LcVectorStorePineconeV1InsertParams> & { subnodes: LcVectorStorePineconeV1InsertSubnodeConfig };
};