From 1a03116cd9e9ecd6875b062a1ebe684d7611f5fd Mon Sep 17 00:00:00 2001 From: qingzhong1 Date: Tue, 23 Jan 2024 08:26:09 +0000 Subject: [PATCH] update langchain --- .../applications/erniebot_researcher/tools/preprocessing.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/erniebot-agent/applications/erniebot_researcher/tools/preprocessing.py b/erniebot-agent/applications/erniebot_researcher/tools/preprocessing.py index a51c7bd1..3b624cca 100644 --- a/erniebot-agent/applications/erniebot_researcher/tools/preprocessing.py +++ b/erniebot-agent/applications/erniebot_researcher/tools/preprocessing.py @@ -60,12 +60,7 @@ async def tackle_file(self, docs: List[Document]): docs = self.split_documents(docs) summaries = [] for doc in docs: - import time - - time1 = time.time() summary = await self.generate_abstract(doc.page_content) - time2 = time.time() - print(time2 - time1) summaries.append(summary) summary = "\n".join(summaries) if len(summaries) > 1: