From db464da30a40ab9ab1f530bd7ae72e99f7319132 Mon Sep 17 00:00:00 2001 From: Jonathan Bennetts Date: Mon, 25 Sep 2023 14:49:46 +0100 Subject: [PATCH 1/2] ChainLLM Draft and snippet for overview link --- .../cluster-nodes/langchain-overview-link.md | 1 + .../root-nodes/n8n-nodes-base.chainllm.md | 38 ++++++++++--------- 2 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 _snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md diff --git a/_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md b/_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md new file mode 100644 index 000000000..8473d3d1e --- /dev/null +++ b/_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md @@ -0,0 +1 @@ +View the [LangChain Overview](/langchain) diff --git a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.chainllm.md b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.chainllm.md index ecc9f3137..e42f7b1eb 100644 --- a/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.chainllm.md +++ b/docs/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-base.chainllm.md @@ -1,29 +1,33 @@ --- -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: LLM Chain +description: Documentation for the LLM Chain node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information. --- -# _Name_ +# LLM Chain - - -On this page, you'll find a list of operations the _Name_ node supports, 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 a list of operations the LLM Chain node supports, and links to more resources. !!! note "Examples and templates" - For usage examples and templates to help you get started, refer to n8n's [_Name_'s integrations](https://n8n.io/integrations/_Name_/){:target=_blank .external-link} page. - -## Node parameters + For usage examples and templates to help you get started, refer to n8n's [Langchain examples](/langchain/examples/) page. -* _Bullet list_ -* _Of available operations_. +## Prompt +This is the prompt that the model will use. + +``` +Tell me a joke about {{ $json.input }} +``` + +## Choose a mode + +There are two modes: + +* **Run Once for All Items**: this is the default. When your workflow runs, the chain will run once, regardless of how many input items there are. +* **Run Once for Each Item**: choose this if you want your chain to run for every input item. ## Related resources -View [example workflows and related content](https://n8n.io/integrations/_Name_/){:target=_blank .external-link} on n8n's website. +View [example workflows and related content](https://n8n.io/integrations/chainLlm/){:target=_blank .external-link} on n8n's website. -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" From e5487d351e39eef6dbd3170b344c8a8f06d97d53 Mon Sep 17 00:00:00 2001 From: Deborah Date: Mon, 25 Sep 2023 14:55:33 +0100 Subject: [PATCH 2/2] Update _snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md --- .../builtin/cluster-nodes/langchain-overview-link.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md b/_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md index 8473d3d1e..40f9c9f3d 100644 --- a/_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md +++ b/_snippets/integrations/builtin/cluster-nodes/langchain-overview-link.md @@ -1 +1 @@ -View the [LangChain Overview](/langchain) +View n8n's [LangChain ](/langchain/) documentation.