Potato
Potato
微信群满啦!
**问题描述 / Problem Description** 用简洁明了的语言描述这个问题 / Describe the problem in a clear and concise manner. **复现问题的步骤 / Steps to Reproduce** 1. 执行 '...' / Run '...' 2. 点击 '...' /...
**问题描述 / Problem Description** 用简洁明了的语言描述这个问题 / Describe the problem in a clear and concise manner. **复现问题的步骤 / Steps to Reproduce** 1. 执行 '...' / Run '...' 2. 点击 '...' /...
File "/home/ubuntu/yyl/langchain-ChatGLM/webui.py", line 53, in get_answer for resp, history in local_doc_qa.get_knowledge_based_answer( File "/home/ubuntu/yyl/langchain-ChatGLM/chains/local_doc_qa.py", line 233, in get_knowledge_based_answer related_docs_with_score = vector_store.similarity_search_with_score(query, k=self.top_k) File "/home/ubuntu/yyl/softs/anaconda3-py3.9/envs/LangChain/lib/python3.9/site-packages/langchain/vectorstores/faiss.py", line 221, in similarity_search_with_score docs = self.similarity_search_with_score_by_vector(embedding,...
  请问什么原因啊?
我发现在使用默认的按文字长度切分文本块的方式,会导致某个知识会被切分到不同的文本块,最终喂给大模型的知识是不全的,导致回答的答案不尽人意。 如何自定义文档切分方式啊,比如我输入的是csv文件,我想一行文本为一个文本块。
**RE:predict.py error:** raceback (most recent call last): File "predict.py", line 119, in main model.load(cfg.fp, device=device) ..................... FileNotFoundError: [Errno 2] No such file or directory: 'xxx/checkpoints/2019-12-03_17-35-30/cnn_epoch21.pth'