mirror of
https://github.com/RYDE-WORK/Langchain-Chatchat.git
synced 2026-02-06 14:57:44 +08:00
update cli_demo.py
This commit is contained in:
parent
2c72a00954
commit
12fa4a2bb7
@ -18,7 +18,7 @@ if __name__ == "__main__":
|
|||||||
vs_path = None
|
vs_path = None
|
||||||
while not vs_path:
|
while not vs_path:
|
||||||
filepath = input("Input your local knowledge file path 请输入本地知识文件路径:")
|
filepath = input("Input your local knowledge file path 请输入本地知识文件路径:")
|
||||||
#判断filepath是否为空,如果为空的话,重新让用户输入,防止用户误触回车
|
# 判断 filepath 是否为空,如果为空的话,重新让用户输入,防止用户误触回车
|
||||||
if not filepath:
|
if not filepath:
|
||||||
continue
|
continue
|
||||||
vs_path, _ = local_doc_qa.init_knowledge_vector_store(filepath)
|
vs_path, _ = local_doc_qa.init_knowledge_vector_store(filepath)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user