raise ValueError(f"Unknown chat mode: {chat_mode}") ValueError: Unknown chat mode: <llama_index.chat_engine.condense_question.CondenseQuestionChatEngine object... >
chat_engine = index.as_chat_engine(verbose=True)
chat_engine = index.as_chat_engine(CondenseQuestionChatEngine.from_defaults( query_engine=query_engine, condense_question_prompt=custom_prompt, chat_history=custom_chat_history, verbose=True))
chat_engine = index.as_chat_engine( condense_question_prompt=custom_prompt, chat_history=custom_chat_history, verbose=True)