HamaWhiteGG / langchain-java

Java version of LangChain, while empowering LLM for Big Data.
Apache License 2.0
551 stars 107 forks source link

Support database memory #49

Closed zhangxiaojiawow closed 1 year ago

zhangxiaojiawow commented 1 year ago

in most cases, we need to persistence the chat message history to database, and load it by session id, so that the history will not be lost when we restart the server.

this pull request define a class DataBaseChatMessageHistory to support this feature, we also add a redis based databaseChatMessageHistory implementation.