Find answers from the community

R
RustyG
Offline, last seen 3 months ago
Joined September 25, 2024
Don't know if this is the right channel for the below question

What is the idea behind BaseAgentRunner vs BaseAgentWorker?
Like in what scenario should one be chosen over the other?

cc
6 comments
L
R
r
Has anyone here used async streaming (astream_chat()) apis?

Currently facing some issues. I have a bot where I dynamically decide to either use the simple chat engine or the condense question chat engine (basically if the user says thank you or any sych greeting, no point in running retrieval for that)


I have some custom code to handle the streaming. Problem is when I use
Plain Text
response = chat_engine.stream_chat(user_message)


both chat engines work fine but when I switch to
Plain Text
response = await chat_engine.astream_chat(user_message)


I do not get a response from simple chat engine (but the condense question chat engine works)

Trying to figure out what might be going wrong.


if anybody knows of any resources that talks about async streaming that would be helpful as well

cc
7 comments
L
R
r