Langchain-Chatchat
Langchain-Chatchat copied to clipboard
连续问问题会导致崩溃
看上去不是爆内存的问题,连续问问题后,会出现如下报错
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /home/devops/git/langchain-ChatGLM/knowledge_based_chatglm.py:118 in <module> │
│ │
│ 115 │ │ vector_store = init_knowledge_vector_store(filepath) │
│ 116 │ history = [] │
│ 117 │ while True: │
│ ❱ 118 │ │ query = input("Input your question 请输入问题:") │
│ 119 │ │ resp, history = get_knowledge_based_answer(query=query, │
│ 120 │ │ │ │ │ │ │ │ │ │ │ │ vector_store=vector_store, │
│ 121 │ │ │ │ │ │ │ │ │ │ │ │ chat_history=history) │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe4 in position 21: invalid continuation byte