mirror of
https://github.com/run-llama/sec-insights.git
synced 2026-07-01 20:24:03 -04:00
Why builtin chat engine is not being used? #17
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Sai-Rohith-Bobba on GitHub (Sep 26, 2023).
In The Given project is there any specific reason for using custom chat engine by building a chat engine out of query engine and AnyIO memory stream when there is in built chat engine
@sourabhdesai commented on GitHub (Sep 26, 2023):
@Sai-Rohith-Bobba thanks for the great question!
If you look at the code here in
app/chat/engine.pyyou'll see that we do use theOpenAIAgentclass from the LlamaIndex framework which is itself an implementation of a chat engine. The code inapp/api/endpoints/conversation.pythat creates theanyiochannel simply takes the callback events & response tokens from thatOpenAIAgentchat engine and sends them to the frontend over the SSE protocol.