promptflow: [BUG] pf.run(..., stream=True) doesn't stream output
Describe the problem When using the following code to run my promptflow application in batch mode, I always get the log in one shot rather than see the streamed output.
from promptflow import PFClient
pf = PFClient()
column_mapping = {
"query_id": "${data.query_id}",
"query": "${data.query}",
"text_passages": "${data.context}"
}
run_batch = pf.run(flow=flow_path, data=data_path, column_mapping=column_mapping, stream=True)
When looking at the source code, I see that the problem lies in this line of code . The RubSubmitter doesn’t return the created_run immediately. Maybe the stream is not intended to return the logs in streaming mode, rather the output of the chatbot?
If this is the case, is it possible to see the intermediate results when running promptflow in batch mode?
About this issue
- Original URL
- State: closed
- Created 7 months ago
- Comments: 15 (8 by maintainers)
Sure, we can close this issue and let me first try the methods you suggested to investigate the performance issue I have. And if there is indeed a performance issue, I will open another thread for that. Thanks a lot!