Maintain Chat History in Generative AI Apps With Valkey

A while back I wrote up a blog post on how to use Redis as a chat history component with LangChain. Since LangChain already had Redis chat history available as a component, it was quite convenient to write a client application.

But, that's not the same with langchaingo which is a Go port of LangChain. I am going to walk through how to do the same, but for Valkey (not Redis). Valkey is an open-source alternative to Redis. It's a community-driven, Linux Foundation project created to keep the project available for use and distribution under the open-source Berkeley Software Distribution (BSD) three-clause license after the Redis license changes.

CategoriesUncategorized