rk22012000/Agentic_QA_System
0
1# memory/memory.py
2
3
4chat_history = []
5
6def add_to_memory(user_q: str, answer: str):
7 chat_history.append({"question": user_q, "answer": answer})
8
9def get_memory():
10 return chat_history[-5:]
11
12 1# memory/memory.py
2
3
4chat_history = []
5
6def add_to_memory(user_q: str, answer: str):
7 chat_history.append({"question": user_q, "answer": answer})
8
9def get_memory():
10 return chat_history[-5:]
11
12