Langchain-Chatchat icon indicating copy to clipboard operation
Langchain-Chatchat copied to clipboard

[BUG] 简洁阐述问题 / Concise description of the issue上传60m的txt文件报错,显示超时,请问这个能上传的文件大小有限制吗

Open xiaochaich opened this issue 2 years ago • 1 comments

ERROR 2023-05-23 11:13:09,627-1d: Timeout reached while detecting encoding for ./docs/GLM模型格式数据.txt ┌───────────────────── Traceback (most recent call last) ─────────────────────┐ │ H:\duoduo\langchain-ChatGLM-master\cli_demo.py:56 in │ │ │ │ 53 │ │ 54 │ │ 55 if name == "main": │ │ > 56 │ main() │ │ 57 │ │ │ │ H:\duoduo\langchain-ChatGLM-master\cli_demo.py:33 in main │ │ │ │ 30 │ │ # 判断 filepath 是否为空,如果为空的话,重新让用户输入,防止用 │ │ 31 │ │ if not filepath: │ │ 32 │ │ │ continue │ │ > 33 │ │ vs_path, _ = local_doc_qa.init_knowledge_vector_store(filepath │ │ 34 │ history = [] │ │ 35 │ while True: │ │ 36 │ │ query = input("Input your question 请输入问题:") │ └─────────────────────────────────────────────────────────────────────────────┘ TypeError: cannot unpack non-iterable NoneType object

xiaochaich avatar May 23 '23 03:05 xiaochaich

langchain 的安装目录,langchain的版本为0.0.174,langchain/document_loaders/helpers.py的 第13行, detect_file_encodings(file_path: str, timeout: int = 5) -> List[FileEncoding] 上面函数中[timeout](timeout: int = 5) 参数改为更大的值或为None

robator0127 avatar Jun 09 '23 01:06 robator0127