Find answers from the community

Updated 2 years ago

Hi all apologies if this question has

At a glance
Hi all, apologies if this question has been answered before. I have a ComposableGraph, and want to move to using the chat engine instead of the query engine. However, I'm seeing an AttributeError: 'ComposableGraph' object has no attribute 'as_chat_engine'. I am on version 0.6.20 - is the chat engine not supported with the composable graphs? Is there a workaround or update in a later version of llama-index that would fix this?
L
t
2 comments
the composable graph code is not really updated anymore -- we need to either deprecate it or refactor some existing features to replace it

In any case, you can directly create a chat engine instead of using as_chat_engine()

For example

Plain Text
from llama_index.chat_engine import CondenseQuestionChatEngine

chat_engine = CondenseQuestionChatEngine.from_defaults(query_engine)


Although tbh, I'm not sure if 0.6.20 even has the chat engine πŸ˜… I guess you'll find out
Thank you @Logan M !
Add a reply
Sign up and join the conversation on Discord