UNPKG

@n8n/n8n-nodes-langchain

Version:

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

60 lines (55 loc) 1.56 kB
/** * Supabase Vector Store Node - Version 1.3 * Discriminator: mode=retrieve */ interface Credentials { supabaseApi: CredentialReference; } /** Retrieve documents from vector store to be used as vector store with AI nodes */ export type LcVectorStoreSupabaseV13RetrieveParams = { mode: 'retrieve'; tableName?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; /** * Whether or not to rerank results * @default false */ useReranker?: boolean | Expression<boolean>; /** * Options * @default {} */ options?: { /** Name of the query to use for matching documents * @default match_documents */ queryName?: string | Expression<string> | PlaceholderValue; /** Metadata to filter the document by * @default {} */ metadata?: { /** Fields to Set */ metadataValues?: Array<{ /** Name */ name?: string | Expression<string> | PlaceholderValue; /** Value */ value?: string | Expression<string> | PlaceholderValue; }>; }; }; }; export interface LcVectorStoreSupabaseV13RetrieveSubnodeConfig { embedding: EmbeddingInstance | EmbeddingInstance[]; /** * @displayOptions.show { useReranker: [true] } */ reranker: RerankerInstance; } export type LcVectorStoreSupabaseV13RetrieveNode = { type: '@n8n/n8n-nodes-langchain.vectorStoreSupabase'; version: 1.3; credentials?: Credentials; config: NodeConfig<LcVectorStoreSupabaseV13RetrieveParams> & { subnodes: LcVectorStoreSupabaseV13RetrieveSubnodeConfig }; };