Integration Issues with LangGraph, RedisChatMessageHistory, and RunnableWithMessageHistory #848
Replies: 2 comments 2 replies
-
You won't be able to use RedisChatMessageHistory directly, youll need to use/implement a checkpointer, see here for an implementation in postgres: https://langchain-ai.github.io/langgraph/how-tos/persistence_postgres/ Once you do this, this should handle message history completely: https://langchain-ai.github.io/langgraph/how-tos/persistence/ |
Beta Was this translation helpful? Give feedback.
-
@hwchase17 I have created an implementation for RedisSaver. It seems to work as per the example that is shared for creating PostgresSaver. Any tips on how should I go about integrating this onto LangGraph? Should this be a part of LangGraph or will there be something like |
Beta Was this translation helpful? Give feedback.
-
Description
I am currently working on integrating several components into a comprehensive chat application using LangServe and LangChain. Below, I detail the components involved and the specific issues I'm encountering. Any guidance or suggestions would be greatly appreciated.
Components and Setup:
create_retrieval_chain
to form the finalrag_chain
.Message History Implementation:
RedisChatMessageHistory
along withRunnableWithMessageHistory
. The intention is to leverage Redis for managing chat message history, tracking conversations by User ID and Conversation ID.LangGraph Integration:
Issues:
RedisChatMessageHistory
within LangGraph, given that LangGraph primarily supports SQLite for Checkpoints?Resources:
Request:
I am seeking advice or examples on how to properly integrate RedisChatMessageHistory with LangGraph in a manner that maintains full functionality of the message history features. Any insights or pointers towards documentation or similar implementations would be incredibly helpful.
System Info
System Information
Package Information
Beta Was this translation helpful? Give feedback.
All reactions