From 4e6edecd9ea10a906e2419612c4a71afa6dda858 Mon Sep 17 00:00:00 2001 From: Benjamin Huo Date: Sun, 16 Jul 2023 11:39:46 +0800 Subject: [PATCH] Fix LocalDocQA object has no attribute llm when adding docs Signed-off-by: Benjamin Huo --- webui_st.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui_st.py b/webui_st.py index 4300662..d9f9b85 100644 --- a/webui_st.py +++ b/webui_st.py @@ -150,7 +150,7 @@ def get_vector_store(local_doc_qa, vs_id, files, sentence_size, history, one_con filelist = [] if not os.path.exists(os.path.join(KB_ROOT_PATH, vs_id, "content")): os.makedirs(os.path.join(KB_ROOT_PATH, vs_id, "content")) - if local_doc_qa.llm and local_doc_qa.embeddings: + if local_doc_qa.llm_model_chain and local_doc_qa.embeddings: if isinstance(files, list): for file in files: filename = os.path.split(file.name)[-1]