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

notebook/C4 构建 RAG 应用/streamlit_app.py 这个里面大模型的记忆功能无法实现 #136

Open
SwallowData opened this issue Aug 18, 2024 · 1 comment

Comments

@SwallowData
Copy link

系统window10
python 3.11.0
langchain 0.2.12
langchain-community 0.2.10
streamlit 1.37.0
代码没有修改
运行的截图如下:
image
可以看到模型完全没有上下文之间的记忆功能,这边用的是gpt-3.5-turbo temperature 设置为0.5
后续自己采用显示记忆模块添加记忆的程序依旧没有记忆功能。不知道是什么地方出错

@xuhu0115
Copy link
Collaborator

qa = ConversationalRetrievalChain.from_llm( llm, retriever=retriever, memory=memory )
该教程是基于langchain v0.1.0进行开发的,经过测试可以正常实现,langchain中该模块利用的是检索内容带上历史记忆,如果是想实现非数据库检索内容的话,需要依靠显示传递历史记录来实现,

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

No branches or pull requests

2 participants