From c79058f064900c4cf04c7bc328bce158a4779cce Mon Sep 17 00:00:00 2001 From: imClumsyPanda Date: Mon, 22 May 2023 13:14:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20local=5Fdoc=5Fqa.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chains/local_doc_qa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chains/local_doc_qa.py b/chains/local_doc_qa.py index ef76466..51e8ade 100644 --- a/chains/local_doc_qa.py +++ b/chains/local_doc_qa.py @@ -312,8 +312,8 @@ class LocalDocQA: cut_txt = " ".join([w for w in list(related_docs[i].page_content)]) cut_txt =cut_txt.replace(" ", "") text_batch0.append(cut_txt) - ######文档去重 - text_batch_new=[] + ######文档去重 + text_batch_new=[] for i in range(len(text_batch0)): if text_batch0[i] in text_batch_new: continue