dodeeric / langchain-ai-assistant-with-hybrid-rag

This is a LLM chatbot coded with LangChain. The web interface is coded with Streamlit. It implements a hybrid RAG (keyword and semantic search) and chat memory.
https://bmae-ragai-webapp.azurewebsites.net
GNU General Public License v3.0
8 stars 1 forks source link

add in config.py the number of messages in history (now k=4 ==> 4 x Q/A) #75

Closed dodeeric closed 2 weeks ago

dodeeric commented 2 weeks ago

Caution: parameter present in different places (and two files)

ConversationBufferWindowMemory(k=4, return_messages=True)

MAX_MESSAGES_IN_MEMORY = 4