My RAG chatbot does not reply in same language as query,

I apologize but I can not see any patterns in this. It answers in random languages (Spanish, French, German) to queries in English. Sometimes this happens in the first query. Sometimes 20th query in conversation is answered in another language. It is so annoying.