Spaces:
Sleeping
Sleeping
File size: 186 Bytes
479a9a1 |
1 2 3 4 5 |
def chatbot_response(query, rag_chain):
try:
return rag_chain.invoke({"input": query})["answer"]
except Exception as e:
return f"Error processing query: {str(e)}" |