merge master
This commit is contained in:
commit
331f39cde7
|
|
@ -229,6 +229,7 @@ Web UI 可以实现如下功能:
|
|||
- [x] VUE 前端
|
||||
|
||||
## 项目交流群
|
||||

|
||||
<img src="img/qr_code_32.jpg" alt="二维码" width="300" height="300" />
|
||||
|
||||
🎉 langchain-ChatGLM 项目交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。
|
||||
|
||||
🎉 langchain-ChatGLM 项目微信交流群,如果你也对本项目感兴趣,欢迎加入群聊参与讨论交流。
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 291 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 143 KiB |
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue