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

一点建议

Open Harry-Lucas opened this issue 2 years ago • 1 comments

1.weiui的get_vector_store方法里面添加一个判断以兼容gradio版本导致的上传异常 if isinstance(files,list)==False: files=[files] 2.get_knowledge_based_answer方法generate_prompt(related_docs, query)添加生成promot限制.不然会导致promot过长内存报错

Harry-Lucas avatar Apr 27 '23 07:04 Harry-Lucas

收到 感谢

Harry-Lucas @.***>于2023年4月27日 周四15:09写道:

1.weiui的get_vector_store方法里面添加一个判断以兼容gradio版本导致的上传异常 if isinstance(files,list)==False: files=[files] 2.get_knowledge_based_answer方法generate_prompt(related_docs, query)添加生成promot限制.不然会导致promot过长内存报错

— Reply to this email directly, view it on GitHub https://github.com/imClumsyPanda/langchain-ChatGLM/issues/189, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLH5EVAGWM7BMKU6QJHU3LXDILS5ANCNFSM6AAAAAAXNNRHQM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

imClumsyPanda avatar Apr 27 '23 07:04 imClumsyPanda

已通过chunk_size方式进行长度限制

imClumsyPanda avatar May 06 '23 16:05 imClumsyPanda