Skip to content

What the difference between stream and stream_log? #431

Answered by eyurtsev
rever1and asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rever1and
Comment options

@eyurtsev
Comment options

@rever1and
Comment options

Answer selected by eyurtsev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants