Langraph- how to use checkpointer #143484
Replies: 2 comments 1 reply
-
Thanks for posting in the GitHub Community, @manju246 ! We’ve moved your post to our Programming Help 🧑💻 category, which is more appropriate for this type of discussion. Please review our guidelines about the Programming Help category for more information. |
Beta Was this translation helpful? Give feedback.
-
Hi @manju246 Here are some of my solutions to solve this problem. The error TypeError: object of type QueryCaptionResult is not serializable suggests that the QueryCaptionResult object, used somewhere in your workflow, cannot be serialized by the default pickle or json serialization in LangGraph. To fix this issue, you need to either: Here are a few solutions to address this:
Update the code to convert QueryCaptionResult objects into a serializable format before storing them in MemorySaver. Solution 2: Exclude Non-Serializable Data from Memory
Solution 3: Use a Serializer Library
Replace the default serialization with dill or cloudpickle when you set up the memory-saving functionality. Hope to be helpful for you! Thank you |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Question
Body
I am trying to add memory in my RAG using Langgraph. I have added memory like
checkpointer = MemorySaver()
app = workflow.compile(checkpointer = checkpointer)
I am getting below error:
Type error : object of type QueryCaptionResult is not serializable.
Beta Was this translation helpful? Give feedback.
All reactions