index.as_chat_engine( chat_mode=ChatMode.CONTEXT, condense_question_prompt=PromptTemplate(CHAT_PROMPT_TEMPLATE), chat_history=chat_history, agent_chat_response_mode="StreamingAgentChatResponse", similarity_top_k=20, )
is_empty = len(index.as_retriever(similarity_top_k=1).retrieve("test"))