Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LocalDocQA object has no attribute llm when adding docs #852

Merged
merged 1 commit into from
Jul 17, 2023

Conversation

benjaminhuo
Copy link
Contributor

@benjaminhuo benjaminhuo commented Jul 16, 2023

Got below errors when adding docs :

AttributeError: 'LocalDocQA' object has no attribute 'llm'
2023-07-16 10:23:09.182 Uncaught app exception
Traceback (most recent call last):
  File "/Users/ben/opt/miniconda3/envs/langchain-chatglm/lib/python3.10/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
  File "/Users/ben/src/ai/llms/langchain-ChatGLM/webui_st.py", line 490, in <module>
    _, _, history = load_vector_store(
  File "/Users/ben/src/ai/llms/langchain-ChatGLM/webui_st.py", line 376, in load_vector_store
    return get_vector_store(
  File "/Users/ben/src/ai/llms/langchain-ChatGLM/webui_st.py", line 153, in get_vector_store
    if local_doc_qa.llm and local_doc_qa.embeddings:
AttributeError: 'LocalDocQA' object has no attribute 'llm'

Signed-off-by: Benjamin Huo <benjamin@kubesphere.io>
@glide-the glide-the merged commit aa944f6 into chatchat-space:master Jul 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants