From f0b83ac13cbb1825e613c86abbea03bf7c60512a Mon Sep 17 00:00:00 2001 From: leonardogrig Date: Fri, 13 Dec 2024 15:18:33 -0300 Subject: [PATCH] Update ChainRetrievalQa.node.ts --- .../nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@n8n/nodes-langchain/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.ts b/packages/@n8n/nodes-langchain/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.ts index a561c89355..927d3c0cc3 100644 --- a/packages/@n8n/nodes-langchain/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.ts @@ -167,7 +167,8 @@ export class ChainRetrievalQa implements INodeType { }; async execute(this: IExecuteFunctions): Promise { - // Log input connections + this.logger.debug('Executing Retrieval QA Chain'); + const model = (await this.getInputConnectionData( NodeConnectionType.AiLanguageModel, 0, @@ -182,7 +183,6 @@ export class ChainRetrievalQa implements INodeType { const returnData: INodeExecutionData[] = []; - // Run for each item for (let itemIndex = 0; itemIndex < items.length; itemIndex++) { try { let query;