知识库插件修正

This commit is contained in:
binary-husky
2023-12-05 22:56:19 +08:00
parent 49f3fcf2c0
commit 8a6e96c369
3 changed files with 17 additions and 18 deletions

View File

@@ -301,7 +301,6 @@ class knowledge_archive_interface():
self.threadLock.acquire()
# import uuid
self.current_id = id
from zh_langchain import construct_vector_store
self.qa_handle, self.kai_path = construct_vector_store(
vs_id=self.current_id,
files=file_manifest,
@@ -323,7 +322,6 @@ class knowledge_archive_interface():
self.threadLock.acquire()
if not self.current_id == id:
self.current_id = id
from zh_langchain import construct_vector_store
self.qa_handle, self.kai_path = construct_vector_store(
vs_id=self.current_id,
files=[],