apssouza22 / chatflow

Leveraging LLM to build Conversational UIs
BSD 2-Clause "Simplified" License
120 stars 26 forks source link

Chat history Redis #47

Closed vporton closed 1 year ago

vporton commented 1 year ago

Chat history is now stored in Redis instead of memory.

Note that for some reason, messages are also stored in PostgreSQL. I didn't touch the Postgre code, only the memory code was replaced by Redis. I, however, added a comment about this weird duplicity.

I didn't test the code. You know how to test it much better, than I do.

Fixes #3.

apssouza22 commented 1 year ago

Full user chat history is persisted in the PostgreSQL.

I will try to test it tomorrow

apssouza22 commented 1 year ago

@vporton the code is fulll of python issues. Could you fix those so I can focus on testing the logic?

vporton commented 1 year ago

OK, I fixed the Python exceptions.