mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-08-17 02:10:31 +03:00
Fix a bug where langchain memories were not being cleaned (#71)
This commit is contained in:
parent
85eed9e2c2
commit
0d08e7707c
@ -41,6 +41,8 @@ def chat_with_doc(model, vector_store: SupabaseVectorStore, stats_db):
|
||||
|
||||
|
||||
if clear_history:
|
||||
# Clear memory in Langchain
|
||||
memory.clear()
|
||||
st.session_state['chat_history'] = []
|
||||
st.experimental_rerun()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user