UNPKG

@n8n/n8n-nodes-langchain

Version:

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

44 lines (39 loc) 1.29 kB
/** * Chroma Vector Store Node - Version 1.2 * Discriminator: mode=insert */ interface Credentials { chromaSelfHostedApi: CredentialReference; chromaCloudApi: CredentialReference; } /** Insert documents into vector store */ export type LcVectorStoreChromaDBV12InsertParams = { mode: 'insert'; authentication?: 'chromaSelfHostedApi' | 'chromaCloudApi' | Expression<string>; chromaCollection?: { __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 collection before inserting new data * @default false */ clearCollection?: boolean | Expression<boolean>; }; }; export interface LcVectorStoreChromaDBV12InsertSubnodeConfig { embedding: EmbeddingInstance | EmbeddingInstance[]; documentLoader: DocumentLoaderInstance | DocumentLoaderInstance[]; } export type LcVectorStoreChromaDBV12InsertNode = { type: '@n8n/n8n-nodes-langchain.vectorStoreChromaDB'; version: 1.2; credentials?: Credentials; config: NodeConfig<LcVectorStoreChromaDBV12InsertParams> & { subnodes: LcVectorStoreChromaDBV12InsertSubnodeConfig }; };