From 4f85327eb094dd3e4da25aa93ee1d4f6380efa7d Mon Sep 17 00:00:00 2001 From: Oleg Ivaniv Date: Wed, 6 Nov 2024 12:11:26 +0100 Subject: [PATCH] Improve hint and description --- .../OutputParserAutofixing/OutputParserAutofixing.node.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.ts b/packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.ts index 68246a5caad41..4f385e1770014 100644 --- a/packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.ts @@ -75,13 +75,16 @@ export class OutputParserAutofixing implements INodeType { default: {}, options: [ { - displayName: 'Fix Prompt', + displayName: 'Retry Prompt', name: 'prompt', type: 'string', default: NAIVE_FIX_PROMPT, typeOptions: { rows: 10, }, + hint: 'Should include "{error}", "{instructions}", and "{completion}" placeholders', + description: + 'Prompt template used for fixing the output. Uses placeholders: "{instructions}" for parsing rules, "{completion}" for the failed attempt, and "{error}" for the validation error message.', }, ], },