mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
remove code (#2735)
This commit is contained in:
@@ -183,7 +183,7 @@ export async function pushDataListToTrainingQueue({
|
|||||||
});
|
});
|
||||||
console.log('failed', failedDocuments);
|
console.log('failed', failedDocuments);
|
||||||
}
|
}
|
||||||
console.log(startIndex, '===');
|
|
||||||
// 对于失败的文档,尝试单独插入
|
// 对于失败的文档,尝试单独插入
|
||||||
await MongoDatasetTraining.create(failedDocuments, { session });
|
await MongoDatasetTraining.create(failedDocuments, { session });
|
||||||
|
|
||||||
|
@@ -107,7 +107,7 @@ const completions = async ({
|
|||||||
.join('\n------\n'),
|
.join('\n------\n'),
|
||||||
history: histories
|
history: histories
|
||||||
.map((item) => `${item.obj}:${chatValue2RuntimePrompt(item.value).text}`)
|
.map((item) => `${item.obj}:${chatValue2RuntimePrompt(item.value).text}`)
|
||||||
.join('------'),
|
.join('\n------\n'),
|
||||||
question: userChatInput
|
question: userChatInput
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@@ -159,8 +159,9 @@ export async function dispatchDatasetSearch(
|
|||||||
[DispatchNodeResponseKeyEnum.nodeResponse]: responseData,
|
[DispatchNodeResponseKeyEnum.nodeResponse]: responseData,
|
||||||
nodeDispatchUsages,
|
nodeDispatchUsages,
|
||||||
[DispatchNodeResponseKeyEnum.toolResponses]: searchRes.map((item) => ({
|
[DispatchNodeResponseKeyEnum.toolResponses]: searchRes.map((item) => ({
|
||||||
id: item.id,
|
sourceName: item.sourceName,
|
||||||
text: `${item.q}\n${item.a}`.trim()
|
updateTime: item.updateTime,
|
||||||
|
content: `${item.q}\n${item.a}`.trim()
|
||||||
}))
|
}))
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user