Querying with: Come posso arrivare alla fiera? Oct 11 08:32:40 messe-rag-chatbot app/web.1 ********** Oct 11 08:32:40 messe-rag-chatbot app/web.1 Trace: chat Oct 11 08:32:40 messe-rag-chatbot app/web.1 |_CBEventType.TEMPLATING -> 4.4e-05 seconds Oct 11 08:32:40 messe-rag-chatbot app/web.1 |_CBEventType.LLM -> 2.075113 seconds Oct 11 08:32:40 messe-rag-chatbot app/web.1 |_CBEventType.QUERY -> 2.032007 seconds Oct 11 08:32:40 messe-rag-chatbot app/web.1 |_CBEventType.RETRIEVE -> 2.027069 seconds Oct 11 08:32:40 messe-rag-chatbot app/web.1 |_CBEventType.SYNTHESIZE -> 0.004779 seconds Oct 11 08:32:40 messe-rag-chatbot app/web.1 |_CBEventType.TEMPLATING -> 3.3e-05 seconds Oct 11 08:32:40 messe-rag-chatbot app/web.1 |_CBEventType.LLM -> 0.0 seconds Oct 11 08:32:40 messe-rag-chatbot app/web.1 |_CBEventType.LLM -> 0.0 seconds Oct 11 08:32:40 messe-rag-chatbot app/web.1 **********
service_context = get_service_context() history = retrieve_chat_history(chatId) chat_engine = CondenseQuestionChatEngine.from_defaults( query_engine=query_engine, condense_question_prompt=custom_prompt, chat_history=history, service_context=service_context, verbose=True ) response = chat_engine.stream_chat(query_text) return Response(send_and_save_response(response, chatId, query_text), mimetype='application/json')