mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-05 14:14:43 +08:00
update cli_demo.py
This commit is contained in:
parent
b262612248
commit
c42c0cbf87
@ -38,6 +38,8 @@ def main():
|
|||||||
temp = local_doc_qa.init_knowledge_vector_store(filepath)
|
temp = local_doc_qa.init_knowledge_vector_store(filepath)
|
||||||
if temp is not None:
|
if temp is not None:
|
||||||
vs_path,loaded_files = temp
|
vs_path,loaded_files = temp
|
||||||
|
# 如果loaded_files和len(filepath)不一致,则说明部分文件没有加载成功
|
||||||
|
# 如果是路径错误,则应该支持重新加载
|
||||||
if len(loaded_files) != len(filepath):
|
if len(loaded_files) != len(filepath):
|
||||||
reload_flag = eval(input("部分文件加载失败,若提示路径不存在,可重新加载,是否重新加载,输入True或False: "))
|
reload_flag = eval(input("部分文件加载失败,若提示路径不存在,可重新加载,是否重新加载,输入True或False: "))
|
||||||
if reload_flag:
|
if reload_flag:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user