-
When to use which one? |
Beta Was this translation helpful? Give feedback.
Answered by
eyurtsev
Feb 1, 2024
Replies: 1 comment 3 replies
-
It depends on which level of granularity / customization you need. stream gives a default implementation and stream only the final output. if you need to stream intermediate steps, you can use stream_log, though we now have a newer API called stream events which might be easier. See this documentation: https://python.langchain.com/docs/expression_language/streaming |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
eyurtsev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It depends on which level of granularity / customization you need.
stream gives a default implementation and stream only the final output.
if you need to stream intermediate steps, you can use stream_log, though we now have a newer API called stream events which might be easier.
See this documentation: https://python.langchain.com/docs/expression_language/streaming