mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-06 06:49:48 +08:00
修复 webui.py 中 llm_history_len 和 vector_search_top_k 显示值与启动设置默认值不一致的问题
This commit is contained in:
parent
ca49799fb2
commit
a231f92d98
@ -17,6 +17,7 @@ VECTOR_SEARCH_TOP_K = 6
|
|||||||
# LLM input history length
|
# LLM input history length
|
||||||
LLM_HISTORY_LEN = 3
|
LLM_HISTORY_LEN = 3
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
|
|
||||||
def load_file(filepath):
|
def load_file(filepath):
|
||||||
if filepath.lower().endswith(".pdf"):
|
if filepath.lower().endswith(".pdf"):
|
||||||
@ -29,6 +30,8 @@ def load_file(filepath):
|
|||||||
docs = loader.load_and_split(text_splitter=textsplitter)
|
docs = loader.load_and_split(text_splitter=textsplitter)
|
||||||
return docs
|
return docs
|
||||||
|
|
||||||
|
=======
|
||||||
|
>>>>>>> cba44ca (修复 webui.py 中 llm_history_len 和 vector_search_top_k 显示值与启动设置默认值不一致的问题)
|
||||||
|
|
||||||
class LocalDocQA:
|
class LocalDocQA:
|
||||||
llm: object = None
|
llm: object = None
|
||||||
|
|||||||
1
embedding/text2vec-large-chinese
Submodule
1
embedding/text2vec-large-chinese
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit b23825b5841818578dd225b5420c4b026ff58aa3
|
||||||
1
llm/chatglm-6b
Submodule
1
llm/chatglm-6b
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 4de8efebc837788ffbfc0a15663de8553da362a2
|
||||||
8
webui.py
8
webui.py
@ -15,7 +15,15 @@ LLM_HISTORY_LEN = 3
|
|||||||
<<<<<<< HEAD
|
<<<<<<< HEAD
|
||||||
=======
|
=======
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
>>>>>>> f87a5f5 (fix bug in webui.py)
|
>>>>>>> f87a5f5 (fix bug in webui.py)
|
||||||
|
=======
|
||||||
|
# return top-k text chunk from vector store
|
||||||
|
VECTOR_SEARCH_TOP_K = 6
|
||||||
|
|
||||||
|
# LLM input history length
|
||||||
|
LLM_HISTORY_LEN = 3
|
||||||
|
>>>>>>> cba44ca (修复 webui.py 中 llm_history_len 和 vector_search_top_k 显示值与启动设置默认值不一致的问题)
|
||||||
|
|
||||||
def get_file_list():
|
def get_file_list():
|
||||||
if not os.path.exists("content"):
|
if not os.path.exists("content"):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user