Find answers from the community

Updated 8 months ago

I've got a citation query engine that

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