Commit d83bb9d2 by Archer Committed by GitHub

remove code (#2735)

parent 093bfa21
...@@ -183,7 +183,7 @@ export async function pushDataListToTrainingQueue({ ...@@ -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 ({ ...@@ -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( ...@@ -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()
})) }))
}; };
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment