The community member is using the "EmbeddedTablesUnstructuredRetrieverPack" for their tables use case and is looking for a way to stream the response. They also mention that they can only ask questions and get answers, but cannot "Chat" using this pack.
In the comments, another community member suggests looking at the source code to understand what the pack is doing, and mentions that it is a query engine. They provide a code snippet to set the streaming=True parameter, which should enable streaming. The community member then asks if they need to make any changes to the "run" function as well to accomplish streaming.
Another community member responds with a suggestion to use the following code after setting the streaming=True parameter:
response_gen = pack.run(...)
for token in response_gen: print(token, end="", flush=True)
The community members express appreciation for the helpful insights provided.
So I am using "EmbeddedTablesUnstructuredRetrieverPack" for my tables use case. Any way to stream the response? embedded_tables_unstructured_pack.run() is returning the right response but how to stream it? Also using this pack I can only ask questions and get an answer right. I can't really "Chat"?
Thanks for this insight @Logan M ! While I did change the code line to "self.query_engine = RetrieverQueryEngine.from_args(self.recursive_retriever, streaming=True)", Do we need changes on the "run" funcitona s well to accomplish streaming. Kinda new here and a bit rusty with concepts AND on a clock. A quick help would be really appreciated! β€οΈ