Can we create index from a retriever , want to do that because I want to pass the index created from custom retriever to Chat Engine - Condense Question Mode
memory = ChatMemoryBuffer.from_defaults(token_limit=3900) chat_engine = index.as_chat_engine( chat_mode="condense_plus_context", memory=memory, system_prompt=( "You are a helpful and friendly chatbot who addresses <your requirement here>" "Here are the relevant documents for the context:\n" "{context_str}" "\nInstruction: Use the previous chat history, or the context above, to interact and help the user." ), verbose=True, ) return chat_engine