Update app.py
Browse files275 unmodified lines276277278279279280281282275 unmodified lines agent = rag_systems['medical'] if not agent: raise Exception("Medical RAG system is not loaded.") response_dict = agent.answer(standalone_query, chat_history=history_for_doc_context) response_dict = agent.answer(standalone_query, chat_history=history_doc_context) answer, thoughts, validation, source = parse_agent_response(response_dict)
history_for_agent.append(HumanMessage(content=query))app.py+1-1