mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-21 06:14:37 +00:00
docs: improve readability of Langchain Expression Language get_started.ipynb (#18157)
**Description:** A few grammatical changes to improve readability of the LCEL .ipynb and tidy some null characters. **Issue:** N/A Co-authored-by: Bagatur <22008038+baskaryan@users.noreply.github.com>
This commit is contained in:
parent
25c9f3d1d1
commit
1ef3fa0411
@ -76,13 +76,13 @@
|
|||||||
"id": "81c502c5-85ee-4f36-aaf4-d6e350b7792f",
|
"id": "81c502c5-85ee-4f36-aaf4-d6e350b7792f",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"Notice this line of this code, where we piece together then different components into a single chain using LCEL:\n",
|
"Notice this line of the code, where we piece together these different components into a single chain using LCEL:\n",
|
||||||
"\n",
|
"\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"chain = prompt | model | output_parser\n",
|
"chain = prompt | model | output_parser\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"\n",
|
"\n",
|
||||||
"The `|` symbol is similar to a [unix pipe operator](https://en.wikipedia.org/wiki/Pipeline_(Unix)), which chains together the different components feeds the output from one component as input into the next component. \n",
|
"The `|` symbol is similar to a [unix pipe operator](https://en.wikipedia.org/wiki/Pipeline_(Unix)), which chains together the different components, feeding the output from one component as input into the next component. \n",
|
||||||
"\n",
|
"\n",
|
||||||
"In this chain the user input is passed to the prompt template, then the prompt template output is passed to the model, then the model output is passed to the output parser. Let's take a look at each component individually to really understand what's going on."
|
"In this chain the user input is passed to the prompt template, then the prompt template output is passed to the model, then the model output is passed to the output parser. Let's take a look at each component individually to really understand what's going on."
|
||||||
]
|
]
|
||||||
@ -233,7 +233,7 @@
|
|||||||
"### 3. Output parser\n",
|
"### 3. Output parser\n",
|
||||||
"\n",
|
"\n",
|
||||||
"And lastly we pass our `model` output to the `output_parser`, which is a `BaseOutputParser` meaning it takes either a string or a \n",
|
"And lastly we pass our `model` output to the `output_parser`, which is a `BaseOutputParser` meaning it takes either a string or a \n",
|
||||||
"`BaseMessage` as input. The `StrOutputParser` specifically simple converts any input into a string."
|
"`BaseMessage` as input. The specific `StrOutputParser` simply converts any input into a string."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user