mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-27 04:12:38 -08:00
Update ChainRetrievalQa.node.ts
This commit is contained in:
parent
3b204d0693
commit
f0b83ac13c
|
@ -167,7 +167,8 @@ export class ChainRetrievalQa implements INodeType {
|
||||||
};
|
};
|
||||||
|
|
||||||
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
async execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]> {
|
||||||
// Log input connections
|
this.logger.debug('Executing Retrieval QA Chain');
|
||||||
|
|
||||||
const model = (await this.getInputConnectionData(
|
const model = (await this.getInputConnectionData(
|
||||||
NodeConnectionType.AiLanguageModel,
|
NodeConnectionType.AiLanguageModel,
|
||||||
0,
|
0,
|
||||||
|
@ -182,7 +183,6 @@ export class ChainRetrievalQa implements INodeType {
|
||||||
|
|
||||||
const returnData: INodeExecutionData[] = [];
|
const returnData: INodeExecutionData[] = [];
|
||||||
|
|
||||||
// Run for each item
|
|
||||||
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
||||||
try {
|
try {
|
||||||
let query;
|
let query;
|
||||||
|
|
Loading…
Reference in a new issue