mirror of
https://github.com/hwchase17/langchain
synced 2024-11-02 09:40:22 +00:00
docs: notebook loader: change .html to .ipynb (#22407)
Co-authored-by: Erick Friis <erick@langchain.dev>
This commit is contained in:
parent
a7ae16f912
commit
dac355fc62
@ -8,7 +8,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
">[Jupyter Notebook](https://en.wikipedia.org/wiki/Project_Jupyter#Applications) (formerly `IPython Notebook`) is a web-based interactive computational environment for creating notebook documents.\n",
|
">[Jupyter Notebook](https://en.wikipedia.org/wiki/Project_Jupyter#Applications) (formerly `IPython Notebook`) is a web-based interactive computational environment for creating notebook documents.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"This notebook covers how to load data from a `Jupyter notebook (.html)` into a format suitable by LangChain."
|
"This notebook covers how to load data from a `Jupyter notebook (.ipynb)` into a format suitable by LangChain."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -31,7 +31,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"loader = NotebookLoader(\n",
|
"loader = NotebookLoader(\n",
|
||||||
" \"example_data/notebook.html\",\n",
|
" \"example_data/notebook.ipynb\",\n",
|
||||||
" include_outputs=True,\n",
|
" include_outputs=True,\n",
|
||||||
" max_output_length=20,\n",
|
" max_output_length=20,\n",
|
||||||
" remove_newline=True,\n",
|
" remove_newline=True,\n",
|
||||||
@ -42,7 +42,7 @@
|
|||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"`NotebookLoader.load()` loads the `.html` notebook file into a `Document` object.\n",
|
"`NotebookLoader.load()` loads the `.ipynb` notebook file into a `Document` object.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"**Parameters**:\n",
|
"**Parameters**:\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user