From e7b953099596386c47e34b9df988858db8741211 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 29 Sep 2023 11:03:30 +0100 Subject: [PATCH 01/11] pinecone:insert draft --- ...des-langchain.vectorstorepineconeinsert.md | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorepineconeinsert.md b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorepineconeinsert.md index 6c8a60493..890d1fe52 100644 --- a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorepineconeinsert.md +++ b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorepineconeinsert.md @@ -1,18 +1,16 @@ --- -title: _Name_ -description: Documentation for the _Name_ node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. +title: Pinecone: Insert +description: Documentation for the Pinecone: Insert node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. --- -# _Name_ +# Pinecone: Insert - - -On this page, you'll find the node parameters for the _Name_ node, and links to more resources. +On this page, you'll find the node parameters for the Pinecone: Insert node, and links to more resources. !!! note "Credentials" - You can find authentication information for this node [here](/integrations/builtin/credentials/_Name_/). + You can find authentication information for this node [here](/integrations/builtin/credentials/pinecone/). -Refer to [_Name_'s documentation](){:target=_blank .external-link} for more information about the service. +Refer to [LangChain's Pinecone documentation](https://js.langchain.com/docs/modules/data_connection/vectorstores/integrations/pinecone){:target=_blank .external-link} for more information about the service. --8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" From 49474b4cbc3a32386e232a0a978ea12f37f7947d Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 29 Sep 2023 11:04:35 +0100 Subject: [PATCH 02/11] pinecone:load draft --- ...nodes-langchain.vectorstorepineconeload.md | 20 +++++++++---------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorepineconeload.md b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorepineconeload.md index 6c8a60493..b69e4d38e 100644 --- a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorepineconeload.md +++ b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorepineconeload.md @@ -1,18 +1,16 @@ --- -title: _Name_ -description: Documentation for the _Name_ node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. +title: Pinecone: Load +description: Documentation for the Pinecone: Load node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. --- -# _Name_ +# Pinecone: Load - - -On this page, you'll find the node parameters for the _Name_ node, and links to more resources. +On this page, you'll find the node parameters for the Pinecone: Load node, and links to more resources. !!! note "Credentials" - You can find authentication information for this node [here](/integrations/builtin/credentials/_Name_/). + You can find authentication information for this node [here](/integrations/builtin/credentials/pinecone/). -Refer to [_Name_'s documentation](){:target=_blank .external-link} for more information about the service. +Refer to [LangChain's Pinecone documentation](https://js.langchain.com/docs/modules/data_connection/vectorstores/integrations/pinecone){:target=_blank .external-link} for more information about the service. --8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" From 02e143becb4f3b8774f79be7e5788cbdb40fbc50 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 29 Sep 2023 11:09:51 +0100 Subject: [PATCH 03/11] supabase draft --- ...des-langchain.vectorstoresupabaseinsert.md | 20 +++++++++---------- ...nodes-langchain.vectorstoresupabaseload.md | 20 +++++++++---------- .../builtin/credentials/supabase.md | 2 ++ 3 files changed, 20 insertions(+), 22 deletions(-) diff --git a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseinsert.md b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseinsert.md index 6c8a60493..f52b8823b 100644 --- a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseinsert.md +++ b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseinsert.md @@ -1,18 +1,16 @@ --- -title: _Name_ -description: Documentation for the _Name_ node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. +title: Supabase: Insert +description: Documentation for the Supabase: Insert node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. --- -# _Name_ +# Supabase: Insert - - -On this page, you'll find the node parameters for the _Name_ node, and links to more resources. +On this page, you'll find the node parameters for the Supabase: Insert node, and links to more resources. !!! note "Credentials" - You can find authentication information for this node [here](/integrations/builtin/credentials/_Name_/). + You can find authentication information for this node [here](/integrations/builtin/credentials/supabase/). -Refer to [_Name_'s documentation](){:target=_blank .external-link} for more information about the service. +Refer to [LangChain's Supabase documentation](https://js.langchain.com/docs/modules/data_connection/vectorstores/integrations/supabase){:target=_blank .external-link} for more information about the service. --8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" diff --git a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseload.md b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseload.md index 6c8a60493..16cb21802 100644 --- a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseload.md +++ b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseload.md @@ -1,18 +1,16 @@ --- -title: _Name_ -description: Documentation for the _Name_ node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. +title: Supabase: Load +description: Documentation for the Supabase: Load node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. --- -# _Name_ +# Supabase: Load - - -On this page, you'll find the node parameters for the _Name_ node, and links to more resources. +On this page, you'll find the node parameters for the Supabase: Load node, and links to more resources. !!! note "Credentials" - You can find authentication information for this node [here](/integrations/builtin/credentials/_Name_/). + You can find authentication information for this node [here](/integrations/builtin/credentials/supabase/). -Refer to [_Name_'s documentation](){:target=_blank .external-link} for more information about the service. +Refer to [LangChain's Supabase documentation](https://js.langchain.com/docs/modules/data_connection/vectorstores/integrations/supabase){:target=_blank .external-link} for more information about the service. --8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" diff --git a/docs/integrations/builtin/credentials/supabase.md b/docs/integrations/builtin/credentials/supabase.md index 6cb3f402d..8b031ef4f 100644 --- a/docs/integrations/builtin/credentials/supabase.md +++ b/docs/integrations/builtin/credentials/supabase.md @@ -9,6 +9,8 @@ contentType: integration You can use these credentials to authenticate the following nodes with Supabase. - [Supabase](/integrations/builtin/app-nodes/n8n-nodes-base.supabase/) +- [Supabase: Insert](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseinsert/) +- [Supabase: Load](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseload/) ## Prerequisites From f67933d25c943fbdd681c85b18c859885b058b48 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 29 Sep 2023 11:13:45 +0100 Subject: [PATCH 04/11] zep draft --- ...8n-nodes-langchain.vectorstorezepinsert.md | 19 ++++++++----------- .../n8n-nodes-langchain.vectorstorezepload.md | 19 ++++++++----------- 2 files changed, 16 insertions(+), 22 deletions(-) diff --git a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorezepinsert.md b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorezepinsert.md index 6c8a60493..4a05307a6 100644 --- a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorezepinsert.md +++ b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorezepinsert.md @@ -1,18 +1,16 @@ --- -title: _Name_ -description: Documentation for the _Name_ node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. +title: Zep: Insert +description: Documentation for the Zep: Insert node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. --- -# _Name_ +# Zep: Insert - - -On this page, you'll find the node parameters for the _Name_ node, and links to more resources. +On this page, you'll find the node parameters for the Zep: Insert node, and links to more resources. !!! note "Credentials" - You can find authentication information for this node [here](/integrations/builtin/credentials/_Name_/). + You can find authentication information for this node [here](/integrations/builtin/credentials/zep/). -Refer to [_Name_'s documentation](){:target=_blank .external-link} for more information about the service. +Refer to [LangChain's Zep documentation](https://js.langchain.com/docs/modules/data_connection/vectorstores/integrations/zep){:target=_blank .external-link} for more information about the service. --8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" diff --git a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorezepload.md b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorezepload.md index 6c8a60493..6aceaa72f 100644 --- a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorezepload.md +++ b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorezepload.md @@ -1,18 +1,16 @@ --- -title: _Name_ -description: Documentation for the _Name_ node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. +title: Zep: Load +description: Documentation for the Zep: Load node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. --- -# _Name_ +# Zep: Load - - -On this page, you'll find the node parameters for the _Name_ node, and links to more resources. +On this page, you'll find the node parameters for the Zep: Load node, and links to more resources. !!! note "Credentials" - You can find authentication information for this node [here](/integrations/builtin/credentials/_Name_/). + You can find authentication information for this node [here](/integrations/builtin/credentials/zep/). -Refer to [_Name_'s documentation](){:target=_blank .external-link} for more information about the service. +Refer to [LangChain's Zep documentation](https://js.langchain.com/docs/modules/data_connection/vectorstores/integrations/zep){:target=_blank .external-link} for more information about the service. --8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" From 63f36bc4428359c8b4d580cb818d0e96a829c849 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 29 Sep 2023 12:12:59 +0100 Subject: [PATCH 05/11] fix links --- docs/langchain/langchain-n8n.md | 90 ++++++++++++++++----------------- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/docs/langchain/langchain-n8n.md b/docs/langchain/langchain-n8n.md index 8c8ec6d6e..4d07f3f21 100644 --- a/docs/langchain/langchain-n8n.md +++ b/docs/langchain/langchain-n8n.md @@ -18,7 +18,7 @@ This page includes lists of the LangChain-focused nodes in n8n. You can use any ## Trigger nodes -[On new manual Chat Message](/integrations/builtin/trigger-nodes/n8n-nodes-base.manualchattrigger/) +[On new manual Chat Message](/integrations/builtin/trigger-nodes/n8n-nodes-langchain.manualchattrigger/) ## Credentials @@ -47,10 +47,10 @@ A chain is a series of LLMs, and related tools, linked together to support funct Available nodes: -* [LLM Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.chainllm/) -* [Structured Output Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.chainstructuredoutput/) -* [Summarization Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.chainsummarization/) -* [Vector Store QA Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.chainvectorstoreqa/) +* [LLM Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainllm/) +* [Structured Output Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainstructuredoutput/) +* [Summarization Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainsummarization/) +* [Vector Store QA Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainvectorstoreqa/) Learn more about [Chains in LangChain](https://js.langchain.com/docs/modules/chains/){:target=_blank .external-link}. @@ -60,10 +60,10 @@ Learn more about [Chains in LangChain](https://js.langchain.com/docs/modules/cha Available nodes: -* [Conversational Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.conversationalagent/) -* [OpenAI Functions Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.openaifunctionsagent/) -* [ReAct Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.reactagent/) -* [SQL Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.sqlagent/) +* [Conversational Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.conversationalagent/) +* [OpenAI Functions Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.openaifunctionsagent/) +* [ReAct Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.reactagent/) +* [SQL Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.sqlagent/) Learn more about [Agents in LangChain](https://js.langchain.com/docs/modules/agents/){:target=_blank .external-link}. @@ -78,9 +78,9 @@ Document loaders add data to your chain as documents. The data source can be a f Available nodes: -* [Binary Input Loader](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.documentbinaryinputloader/) -* [GitHub Document Loader](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.documentgithubloader/) -* [JSON Input Loader](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.documentjsoninputloader/) +* [Binary Input Loader](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.documentbinaryinputloader/) +* [GitHub Document Loader](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.documentgithubloader/) +* [JSON Input Loader](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.documentjsoninputloader/) Learn more about [Document loaders in LangChain](https://js.langchain.com/docs/modules/data_connection/document_loaders/){:target=_blank .external-link}. @@ -90,15 +90,15 @@ LLMs (large language models) are programs that analyze datasets. They're the key Available nodes: -* [Chat Anthropic](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.lmchatanthropic/) -* [Chat Ollama](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.lmchatollama/) -* [Chat OpenAI](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.lmchatopenai/) -* [Cohere](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.lmcohere/) +* [Chat Anthropic](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatanthropic/) +* [Chat Ollama](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatollama/) +* [Chat OpenAI](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatopenai/) +* [Cohere](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmcohere/) * [Google PaLM Chat Model](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmchatgooglepalm/) * [Google PaLM Language Model](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmgooglepalm/) -* [Hugging Face Inference](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.lmhuggingfaceinference/) -* [Ollama](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.lmollama/) -* [OpenAI](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.lmopenai/) +* [Hugging Face Inference](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmhuggingfaceinference/) +* [Ollama](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmollama/) +* [OpenAI](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.lmopenai/) Learn more about [Language models in LangChain](https://js.langchain.com/docs/modules/model_io/models/){:target=_blank .external-link}. @@ -108,12 +108,12 @@ Memory retains information about previous queries in a series of queries. For ex Available nodes: -* [Chat Messages Retriever](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.memorychatretriever/) -* [Motorhead](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.memorymotorhead/) -* [Redis Chat Memory](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.memoryredischat/) -* [Window Buffer Memory](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.memorybufferwindow/) -* [Xata](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.memoryxata/) -* [Zep](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.memoryzep/) +* [Chat Messages Retriever](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorychatretriever/) +* [Motorhead](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorymotorhead/) +* [Redis Chat Memory](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memoryredischat/) +* [Window Buffer Memory](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memorybufferwindow/) +* [Xata](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memoryxata/) +* [Zep](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.memoryzep/) Learn more about [Memory in LangChain](https://js.langchain.com/docs/modules/memory/){:target=_blank .external-link}. @@ -123,9 +123,9 @@ Output parsers take the text generated by an LLM and format it to match the stru Available nodes: -* [Auto-fixing Output Parser](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.outputparserautofixing/) -* [Item List Output Parser](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.outputparseritemlist/) -* [Structured Output Parser](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.outputparserstructured/) +* [Auto-fixing Output Parser](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.outputparserautofixing/) +* [Item List Output Parser](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.outputparseritemlist/) +* [Structured Output Parser](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.outputparserstructured/) Learn more about [Output parsers in LangChain](https://js.langchain.com/docs/modules/model_io/output_parsers/){:target=_blank .external-link}. @@ -135,9 +135,9 @@ Text splitters break down data (documents), making it easier for the LLM to proc Available nodes: -* [Character Text Splitter](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.textsplittercharactertextsplitter/) -* [Recursive Character Text Splitter](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.textsplitterrecursivecharactertextsplitter/) -* [Token Splitter](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.textsplittertokensplitter/) +* [Character Text Splitter](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.textsplittercharactertextsplitter/) +* [Recursive Character Text Splitter](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter/) +* [Token Splitter](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.textsplittertokensplitter/) n8n's text splitter nodes implements parts of [LangChain's text_splitter API](https://js.langchain.com/docs/api/text_splitter/){:target=_blank .external-link}. @@ -145,12 +145,12 @@ n8n's text splitter nodes implements parts of [LangChain's text_splitter API](ht Utility tools. -* [Calculator](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.toolcalculator/) -* [Code Tool](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.toolcode/) -* [SerpAPI](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.toolserp/) -* [Wikipedia](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.toolwikipedia/) -* [Wolfram|Alpha](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.toolwolframalpha/) -* [Workflow Tool](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.toolworkflow/) +* [Calculator](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolcalculator/) +* [Code Tool](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolcode/) +* [SerpAPI](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolserp/) +* [Wikipedia](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolwikipedia/) +* [Wolfram|Alpha](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolwolframalpha/) +* [Workflow Tool](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolworkflow/) #### Embeddings @@ -161,7 +161,7 @@ Available nodes: * [Embeddings Cohere](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.embeddingscohere/) * [Embeddings Google PaLM](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.embeddingsgooglepalm/) * [Embeddings Hugging Face Inference](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.embeddingshuggingfaceinference/) -* [Embeddings OpenAI](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.embeddingsopenai/) +* [Embeddings OpenAI](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.embeddingsopenai/) * [Embeddings TensorFlow](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.embeddingstensorflow/) Learn more about [Text embeddings in LangChain](https://js.langchain.com/docs/modules/data_connection/text_embedding/){:target=_blank .external-link}. @@ -171,13 +171,13 @@ Learn more about [Text embeddings in LangChain](https://js.langchain.com/docs/mo Vector stores store embedded data, and perform vector searches on it. -* [In Memory Vector Store](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.inmemoryvectorstore/) -* [Pinecone: Insert](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.vectorstorepineconeinsert/) -* [Pinecone: Load](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.vectorstorepineconeload/) -* [Supabase: Insert](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.vectorstoresupabaseinsert/) -* [Supabase: Load](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.vectorstoresupabaseload/) -* [Zep Vector Store: Insert](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.vectorstorezepinsert/) -* [Zep Vector Store: Load](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-base.vectorstorezepload/) +* [In Memory Vector Store](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.inmemoryvectorstore/) +* [Pinecone: Insert](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorepineconeinsert/) +* [Pinecone: Load](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorepineconeload/) +* [Supabase: Insert](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseinsert/) +* [Supabase: Load](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstoresupabaseload/) +* [Zep Vector Store: Insert](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorezepinsert/) +* [Zep Vector Store: Load](/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.vectorstorezepload/) Learn more about [Vector stores in LangChain](https://js.langchain.com/docs/modules/data_connection/vectorstores/){:target=_blank .external-link}. From a1fb04bc1cb618c2c094c9fe46db73e349f13240 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 29 Sep 2023 12:17:41 +0100 Subject: [PATCH 06/11] typo fix? --- .../cluster-nodes/root-nodes/n8n-nodes-langchain.sqlagent.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.sqlagent.md b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.sqlagent.md index eb79d5b5c..4700b1919 100644 --- a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.sqlagent.md +++ b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.sqlagent.md @@ -5,7 +5,7 @@ description: Documentation for the SQL Agent node in n8n, a workflow automation # SQL Agent -The SQL Agent uses an SQL database as a data source. The agent builds an SQL query based on the natural language query in the prompt. +The SQL Agent uses a SQL database as a data source. The agent builds a SQL query based on the natural language query in the prompt. On this page, you'll find the node parameters for the SQL Agent node, and links to more resources. From f2b9522f1ffb2edd8240f93b311c4977923bcfd8 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 29 Sep 2023 15:19:22 +0100 Subject: [PATCH 07/11] merge agents --- .../root-nodes/n8n-nodes-langchain.agent.md | 111 ++++++++++++++++++ ...n-nodes-langchain.chainstructuredoutput.md | 105 ----------------- ...8n-nodes-langchain.openaifunctionsagent.md | 43 ------- .../n8n-nodes-langchain.reactagent.md | 41 ------- .../n8n-nodes-langchain.sqlagent.md | 50 -------- docs/langchain/langchain-n8n.md | 9 +- 6 files changed, 114 insertions(+), 245 deletions(-) create mode 100644 docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md delete mode 100644 docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainstructuredoutput.md delete mode 100644 docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.openaifunctionsagent.md delete mode 100644 docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.reactagent.md delete mode 100644 docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.sqlagent.md diff --git a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md new file mode 100644 index 000000000..a1a0a655b --- /dev/null +++ b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md @@ -0,0 +1,111 @@ +--- +title: Agent +description: Documentation for the Agent node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. +--- + +# Agent + +The Agent node allows you to set which agent type you want to use. + +On this page, you'll find the node parameters for the Agent node, and links to more resources. + + + + + +## Conversational Agent Parameters + +This agent is optimised for conversation allowing it to chat with the user. + +--8<-- "_snippets/integrations/builtin/cluster-nodes/use-with-chat-trigger.md" + +### Mode + +Choose whether to run the chain once, or for every input item. Select either: + +* Run Once for All Items +* Run Once for Each Item + +### Text + +The input from the chat. This is the user's query, also known as the prompt. + +### System message + +Send a message to the agent before the conversation starts. Use this to guide the agent's decision-making. + +## OpenAI Functions Agent Parameters + +The OpenAI Functions Agent node allows you to use an [OpenAI functions model](https://platform.openai.com/docs/guides/gpt/function-calling){:target=_blank .external-link}. These are models that detect when a function should be called and respond with the inputs that should be passed to the function. + +--8<-- "_snippets/integrations/builtin/cluster-nodes/use-with-chat-trigger.md" + +### Mode + +Choose whether to run the chain once, or for every input item. Select either: + +* Run Once for All Items +* Run Once for Each Item + +### Text + +The input from the chat. This is the user's query, also known as the prompt. + +## React Agent Parameters + +The ReAct Agent node implements [ReAct](https://react-lm.github.io/){:target=_blank .external-link} logic. ReAct (reasoning and action) brings together the reasoning powers of chain-of-thought prompting and action plan generation. + +!!! note "No memory" + The ReAct agent doesn't support memory sub-nodes. This means it can't recall previous prompts, or simulate an ongoing conversation. + +### Mode + +Choose whether to run the chain once, or for every input item. Select either: + +* Run Once for All Items +* Run Once for Each Item + +### Text + +The input from the chat. This is the user's query, also known as the prompt. + +## SQL Agent Parameters + +The SQL Agent uses a SQL database as a data source. The agent builds a SQL query based on the natural language query in the prompt. + + +### Data Source + +Options: + +* MySQL +* SQLite +* Postgres + +### Prompt + +The query to run on the data. + +### Options + +Use the options to refine the agent's behavior. + +* Ignored Tables +* Include Sample Rows +* Included Tables +* Prefix Prompt +* Suffix Prompt +* Top K + +## Related resources + + + +Refer to [LangChain's documentation on agents](https://js.langchain.com/docs/modules/agents/agent_types/){:target=_blank .external-link} for more information about the service. + +--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" diff --git a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainstructuredoutput.md b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainstructuredoutput.md deleted file mode 100644 index 08dad9f85..000000000 --- a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainstructuredoutput.md +++ /dev/null @@ -1,105 +0,0 @@ ---- -title: Structured Output Chain -description: Documentation for the Structured Output Chain node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. ---- - -# Structured Output Chain - -The Structured Output Chain node allows you to use OpenAI functions to output objects that match a given format for any given input. - -On this page, you'll find the node parameters for the Structured Output Chain node, and links to more resources. - - - -!!! note "Requires OpenAI functions" - This chain depends on OpenAI functions. You must connect a supported OpenAI model. - -## Node parameters - -### Prompt - -The prompt the model uses. For example: - -> List all food items mentioned in the following text - - -### Input Text - -The incoming data that you want to format. For example: - -> This is a paragraph about food. It describes apples, which are very good for you, and usually green. Then there are oranges. These are also healthy, and orange coloured. Then we have things like chocolate, which is delicious, but not healthy. Chocolate is usually brown. - -### JSON Schema - -The output format, described with [JSON Schema](https://json-schema.org/){:target=_blank .external-link}. - -For example: given the prompt and input text examples, using this schema: - -```json -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "Generated schema for Root", - "type": "object", - "properties": { - "foods": { - "type": "array", - "items": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "healthy": { - "type": "boolean" - }, - "color": { - "type": "string" - } - } - } - } - }, - "required": ["foods"] -} -``` - -Gives this result: - -```json -[ - { - "response": { - "foods": [ - { - "name": "apples", - "healthy": true, - "color": "green" - }, - { - "name": "oranges", - "healthy": true, - "color": "orange" - }, - { - "name": "chocolate", - "healthy": false, - "color": "brown" - } - ] - } - } -] -``` - -## Related resources - - - -Refer to [LangChain's documentation on Structured Output with OpenAI functions](https://js.langchain.com/docs/modules/chains/popular/structured_output){:target=_blank .external-link} for more information about the service. - ---8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" diff --git a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.openaifunctionsagent.md b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.openaifunctionsagent.md deleted file mode 100644 index c4eaa15b7..000000000 --- a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.openaifunctionsagent.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -title: OpenAI Functions Agent -description: Documentation for the OpenAI Functions Agent node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. ---- - -# OpenAI Functions Agent - -The OpenAI Functions Agent node allows you to use an [OpenAI functions model](https://platform.openai.com/docs/guides/gpt/function-calling){:target=_blank .external-link}. These are models that detect when a function should be called and respond with the inputs that should be passed to the function. - ---8<-- "_snippets/integrations/builtin/cluster-nodes/use-with-chat-trigger.md" - -On this page, you'll find the node parameters for the OpenAI Functions Agent node, and links to more resources. - - - -!!! note "Requires OpenAI functions" - This chain depends on OpenAI functions. You must connect a supported OpenAI model. - -## Node parameters - -### Mode - -Choose whether to run the chain once, or for every input item. Select either: - -* Run Once for All Items -* Run Once for Each Item - -### Text - -The input from the chat. This is the user's query, also known as the prompt. - -## Related resources - - - -Refer to [LangChain's documentation on OpenAI functions](https://js.langchain.com/docs/modules/agents/agent_types/openai_functions_agent){:target=_blank .external-link} for more information about the service. - ---8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" diff --git a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.reactagent.md b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.reactagent.md deleted file mode 100644 index 0d16da6bd..000000000 --- a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.reactagent.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -title: ReAct Agent -description: Documentation for the ReAct Agent node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. ---- - -# ReAct Agent - -The ReAct Agent node implements [ReAct](https://react-lm.github.io/){:target=_blank .external-link} logic. ReAct (reasoning and action) brings together the reasoning powers of chain-of-thought prompting and action plan generation. - -On this page, you'll find the node parameters for the ReAct Agent node, and links to more resources. - - - -!!! note "No memory" - The ReAct agent doesn't support memory sub-nodes. This means it can't recall previous prompts, or simulate an ongoing conversation. - -## Node parameters - -### Mode - -Choose whether to run the chain once, or for every input item. Select either: - -* Run Once for All Items -* Run Once for Each Item - -### Text - -The input from the chat. This is the user's query, also known as the prompt. - -## Related resources - - - -Refer to [_Name_'s documentation](){:target=_blank .external-link} for more information about the service. - ---8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" diff --git a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.sqlagent.md b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.sqlagent.md deleted file mode 100644 index 4700b1919..000000000 --- a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.sqlagent.md +++ /dev/null @@ -1,50 +0,0 @@ ---- -title: SQL Agent -description: Documentation for the SQL Agent node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. ---- - -# SQL Agent - -The SQL Agent uses a SQL database as a data source. The agent builds a SQL query based on the natural language query in the prompt. - -On this page, you'll find the node parameters for the SQL Agent node, and links to more resources. - - - -## Node parameters - -### Data Source - -Options: - -* MySQL -* SQLite -* Postgres - -### Prompt - -The query to run on the data. - -### Options - -Use the options to refine the agent's behavior. - -* Ignored Tables -* Include Sample Rows -* Included Tables -* Prefix Prompt -* Suffix Prompt -* Top K - -## Related resources - - - -Refer to [LangChain's documentation on querying SQL](https://python.langchain.com/docs/use_cases/qa_structured/sql){:target=_blank .external-link} for more information about the service. Note that this documentation is for LangChain's Python framework. - ---8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" diff --git a/docs/langchain/langchain-n8n.md b/docs/langchain/langchain-n8n.md index 4d07f3f21..cb0c6279e 100644 --- a/docs/langchain/langchain-n8n.md +++ b/docs/langchain/langchain-n8n.md @@ -12,6 +12,8 @@ This page includes lists of the LangChain-focused nodes in n8n. You can use any [TODO: this list is very incomplete. Check in with Jan on Friday latest for the definitive list] [TODO: this list structure probably needs to change as the UI will likely change before release] +[TODO: the agent section needs some love as we only have one agent node now] + !!! note "n8n implements LangChain JS" This feature is n8n's implementation of [LangChain's JavaScript framework](https://js.langchain.com/docs/get_started/introduction){:target=_blank .external-link}. This means that n8n's nodes support what LangChain supports. Some of the services listed may have additional functionality, but if it isn't supported by LangChain, it also isn't supported by n8n. [TODO: rephrase this it's horrible] @@ -48,7 +50,6 @@ A chain is a series of LLMs, and related tools, linked together to support funct Available nodes: * [LLM Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainllm/) -* [Structured Output Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainstructuredoutput/) * [Summarization Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainsummarization/) * [Vector Store QA Chain](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.chainvectorstoreqa/) @@ -60,14 +61,10 @@ Learn more about [Chains in LangChain](https://js.langchain.com/docs/modules/cha Available nodes: -* [Conversational Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.conversationalagent/) -* [OpenAI Functions Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.openaifunctionsagent/) -* [ReAct Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.reactagent/) -* [SQL Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.sqlagent/) +* [Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/) Learn more about [Agents in LangChain](https://js.langchain.com/docs/modules/agents/){:target=_blank .external-link}. - ### Sub-nodes Each root node can have one or more sub-nodes attached to it. From 136c20e024f0dc2e9f86b39c5e54b82acffba1f5 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 29 Sep 2023 15:20:03 +0100 Subject: [PATCH 08/11] Remove conversational agent --- ...n8n-nodes-langchain.conversationalagent.md | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.conversationalagent.md diff --git a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.conversationalagent.md b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.conversationalagent.md deleted file mode 100644 index 01a430e1a..000000000 --- a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.conversationalagent.md +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: Conversational Agent -description: Documentation for the Conversational Agent node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. ---- - -# Conversational Agent - -This agent is optimised for conversation, allowing it to chat with the user. - ---8<-- "_snippets/integrations/builtin/cluster-nodes/use-with-chat-trigger.md" - -On this page, you'll find the node parameters for the Conversational Agent node, and links to more resources. - - - -## Node parameters - -### Mode - -Choose whether to run the chain once, or for every input item. Select either: - -* Run Once for All Items -* Run Once for Each Item - -### Text - -The input from the chat. This is the user's query, also known as the prompt. - -### System message - -Send a message to the agent before the conversation starts. Use this to guide the agent's decision-making. - -## Related resources - - - -Refer to [LangChain's documentation on conversational agents](https://js.langchain.com/docs/modules/agents/agent_types/chat_conversation_agent){:target=_blank .external-link} for more information about the service. - ---8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" From 39f0959574af8b7fe414755f2ddfb98be6fe9bb2 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 29 Sep 2023 15:37:28 +0100 Subject: [PATCH 09/11] Added 2 retriever drafts --- ...angchain.retrievercontextualcompression.md | 22 ++++---------- ...8n-nodes-langchain.retrievervectorstore.md | 29 +++++++++++++++++++ 2 files changed, 35 insertions(+), 16 deletions(-) create mode 100644 docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.retrievervectorstore.md diff --git a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.retrievercontextualcompression.md b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.retrievercontextualcompression.md index 6c8a60493..96b49c649 100644 --- a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.retrievercontextualcompression.md +++ b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.retrievercontextualcompression.md @@ -1,28 +1,18 @@ --- -title: _Name_ -description: Documentation for the _Name_ node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. +title: Contextual Compression Retriever +description: Documentation for the Contextual Compression Retriever node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. --- -# _Name_ +# Contextual Compression Retriever - - -On this page, you'll find the node parameters for the _Name_ node, and links to more resources. - -!!! note "Credentials" - You can find authentication information for this node [here](/integrations/builtin/credentials/_Name_/). +On this page, you'll find the node parameters for the Contextual Compression Retriever node, and links to more resources. - -## Node parameters - -* _Bullet list_ -* _Of available operations_. ## Related resources @@ -30,6 +20,6 @@ On this page, you'll find the node parameters for the _Name_ node, and links to View [example workflows and related content](https://n8n.io/integrations/langchain/){:target=_blank .external-link} on n8n's website. --> -Refer to [_Name_'s documentation](){:target=_blank .external-link} for more information about the service. +Refer to [LangChain's contextual compression retriever documentation](https://js.langchain.com/docs/modules/data_connection/retrievers/integrations/contextual-compression-retriever){:target=_blank .external-link} for more information about the service. --8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" diff --git a/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.retrievervectorstore.md b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.retrievervectorstore.md new file mode 100644 index 000000000..e43260ca5 --- /dev/null +++ b/docs/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.retrievervectorstore.md @@ -0,0 +1,29 @@ +--- +title: Vector Store Retriever +description: Documentation for the Vector Store Retriever node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. +--- + +# Vector Store Retriever + +The Vector Store Retriever node allows you to retrieve documents from a vector store. + +On this page, you'll find the node parameters for the Vector Store Retriever node, and links to more resources. + + + +## Node parameters + +* Top K + +## Related resources + + + +Refer to [LangChain's vector store retriever documentation](https://js.langchain.com/docs/modules/data_connection/retrievers/how_to/vectorstore){:target=_blank .external-link} for more information about the service. + +--8<-- "_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md" From 3f9fc175fb2f3835819d392258600d40e8972e85 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 29 Sep 2023 15:47:42 +0100 Subject: [PATCH 10/11] Add notice about tunnel support for agents --- .../cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md | 4 ++-- docs/integrations/builtin/credentials/mysql.md | 4 ++++ docs/integrations/builtin/credentials/postgres.md | 4 ++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md index a1a0a655b..376725941 100644 --- a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md +++ b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md @@ -14,8 +14,6 @@ On this page, you'll find the node parameters for the Agent node, and links to m For usage examples and templates to help you get started, refer to n8n's [LangChain integrations](https://n8n.io/integrations/langchain/){:target=_blank .external-link} page. --> - - ## Conversational Agent Parameters This agent is optimised for conversation allowing it to chat with the user. @@ -76,6 +74,8 @@ The input from the chat. This is the user's query, also known as the prompt. The SQL Agent uses a SQL database as a data source. The agent builds a SQL query based on the natural language query in the prompt. +!!! note "Postgres and MySQL Agents" + If you are using Postgres or MySQL this doesn't support the tunnel options you can set in the credential. ### Data Source diff --git a/docs/integrations/builtin/credentials/mysql.md b/docs/integrations/builtin/credentials/mysql.md index 2db214b58..732240740 100644 --- a/docs/integrations/builtin/credentials/mysql.md +++ b/docs/integrations/builtin/credentials/mysql.md @@ -9,6 +9,10 @@ contentType: integration You can use these credentials to authenticate the following nodes with MySQL. - [MySQL](/integrations/builtin/app-nodes/n8n-nodes-base.mysql/) +- [Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent) + +!!! note "Agent node users" + The Agent node doesn't support tunnels ## Prerequisites diff --git a/docs/integrations/builtin/credentials/postgres.md b/docs/integrations/builtin/credentials/postgres.md index d40bb6d92..5bca96c19 100644 --- a/docs/integrations/builtin/credentials/postgres.md +++ b/docs/integrations/builtin/credentials/postgres.md @@ -9,6 +9,10 @@ contentType: integration You can use these credentials to authenticate the following nodes with Postgres. - [Postgres](/integrations/builtin/app-nodes/n8n-nodes-base.postgres/) +- [Agent](/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent) + +!!! note "Agent node users" + The Agent node doesn't support tunnels ## Prerequisites From 5a06a93a994262f74d2703412e246a7d171a72ff Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Fri, 29 Sep 2023 15:50:33 +0100 Subject: [PATCH 11/11] Add info about sqlite --- .../cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md index 376725941..b7b8e8178 100644 --- a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md +++ b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent.md @@ -85,6 +85,9 @@ Options: * SQLite * Postgres +!!! note "SQLite" + To use SQLite you will need to use a [Read Binary Files](/integrations/builtin/core-nodes/n8n-nodes-base.readbinaryfiles/) node before the Agent to read your SQLite file. + ### Prompt The query to run on the data.