Langchain: Example of Perstitence With Short-term momory in Postgres database
In any AI application we built using langchain it is important to keep the converstaion history, and a person should be able to continue the converstaion from where they stopped with “Context”. That is where langchain short-term memory plays a good role. This demo is for production usecase where you can save the coversation in database. Here is the simple example using langchian version 1.2.0 (I mentioned version because different versions have differnt compatibility. ) Lets setup a […]