diff --git a/README.md b/README.md index efabb79..e1a4831 100644 --- a/README.md +++ b/README.md @@ -229,6 +229,7 @@ Web UI 可以实现如下功能: - [x] VUE 前端 ## 项目交流群 -![二维码](img/qr_code_30.jpg) +二维码 -🎉 langchain-ChatGLM 项目交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。 + +🎉 langchain-ChatGLM 项目微信交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。 diff --git a/img/qr_code_30.jpg b/img/qr_code_30.jpg deleted file mode 100644 index 9616084..0000000 Binary files a/img/qr_code_30.jpg and /dev/null differ diff --git a/img/qr_code_32.jpg b/img/qr_code_32.jpg new file mode 100644 index 0000000..7f90e40 Binary files /dev/null and b/img/qr_code_32.jpg differ diff --git a/vectorstores/MyFAISS.py b/vectorstores/MyFAISS.py index 5c417d4..0b26246 100644 --- a/vectorstores/MyFAISS.py +++ b/vectorstores/MyFAISS.py @@ -5,6 +5,7 @@ from typing import Any, Callable, List, Tuple, Dict from langchain.docstore.base import Docstore from langchain.docstore.document import Document import numpy as np +import copy class MyFAISS(FAISS, VectorStore): @@ -95,7 +96,8 @@ class MyFAISS(FAISS, VectorStore): for id in id_seq: if id == id_seq[0]: _id = self.index_to_docstore_id[id] - doc = self.docstore.search(_id) + # doc = self.docstore.search(_id) + doc = copy.deepcopy(self.docstore.search(_id)) else: _id0 = self.index_to_docstore_id[id] doc0 = self.docstore.search(_id0)