Find answers from the community

Updated 11 months ago

I've got a citation query engine that

At a glance

A community member has a citation query engine that works fine with a synchronous query, but when they change it to use aquery, they get an error: streaming_response = await query_engine.aquery(question)Error: AsyncStreamingResponse.init() got an unexpected keyword argument 'response_gen'. Another community member suggests this might be a bug with async. There is no explicitly marked answer.

I've got a citation query engine that works fine with a synchronous query. When I change it to use aquery, I get this error:
streaming_response = await query_engine.aquery(question)

Error: AsyncStreamingResponse.init() got an unexpected keyword argument 'response_gen'

am I doing something wrong?
s
L
2 comments
query_engine = CitationQueryEngine.from_args(
self.index,
citation_chunk_size=512,
streaming=True
)
Seems like a bug to me with async
Add a reply
Sign up and join the conversation on Discord