Find answers from the community

Updated 2 months ago

Hi, I am new to ths framrwork. How can I

Hi, I am new to ths framrwork. How can I store the context of the chat session between multple windows? Basically storing the session per user basis like chatgpt different chats :/
L
Đ
7 comments
Check this out maybe

https://docs.llamaindex.ai/en/stable/module_guides/storing/chat_stores.html#chat-stores

If you want, you can also directly get the chat history with
chat_engine.chat_history

Then you can pass it in like chat_engine.chat("Hello", chat_history=chat_history)
I was about write it redis 😅
But is there any guide to implement my down postgresql storage ?
Or already on llamahub?
Or in mongodb, but not the redis :/
Currently only redis or to disk -- but if you wanted to contribute another chat store class, definitely go for it!
Sure, I would love to
Add a reply
Sign up and join the conversation on Discord