Find answers from the community

Updated 3 months ago

Hello All Do not know if this the right

Hello All, Do not know if this the right group but I am getting an error, not sure if my usage is correct "chat_engine = CondenseQuestionChatEngine.from_defaults( query_engine=query_engine, condense_question_prompt=custom_prompt, chat_history=custom_chat_history, verbose=True)
NameError: name 'CondenseQuestionChatEngine' is not defined"
W
a
2 comments
I think you have not imported the engine.

Plain Text
from llama_index.chat_engine import CondenseQuestionChatEngine

This will solve the name error
Thanks @WhiteFang_Jr it works now
Add a reply
Sign up and join the conversation on Discord