Skip to content

Commit 977ba70

Browse files
authored
fix(docs): Update streaming.mdx - fixing minor typo (langchain-ai#9026)
1 parent a262495 commit 977ba70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/core_docs/docs/concepts/streaming.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ Use the `streamEvents` API to access custom data and intermediate outputs from L
104104
While this API is available for use with [LangGraph](/docs/concepts/architecture#langgraph) as well, it is usually not necessary when working with LangGraph, as the `stream` methods provide comprehensive streaming capabilities for LangGraph graphs.
105105
:::
106106

107-
For chains constructed using **LCEL**, the `.stream()` method only streams the output of the final step from te chain. This might be sufficient for some applications, but as you build more complex chains of several LLM calls together, you may want to use the intermediate values of the chain alongside the final output. For example, you may want to return sources alongside the final generation when building a chat-over-documents app.
107+
For chains constructed using **LCEL**, the `.stream()` method only streams the output of the final step from the chain. This might be sufficient for some applications, but as you build more complex chains of several LLM calls together, you may want to use the intermediate values of the chain alongside the final output. For example, you may want to return sources alongside the final generation when building a chat-over-documents app.
108108

109109
There are ways to do this [using callbacks](/docs/concepts/callbacks), or by constructing your chain in such a way that it passes intermediate
110110
values to the end with something like chained [`.assign()`](/docs/how_to/passthrough/) calls, but LangChain also includes an

0 commit comments

Comments
 (0)