docs[patch]: Fix rendering issue in code splitter page (#24291)

This commit is contained in:
Jacob Lee
2024-07-15 23:08:21 -07:00
committed by GitHub
parent 58fdb070fa
commit 6716379f0c

View File

@@ -300,7 +300,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 8, "execution_count": 2,
"id": "ac9295d3", "id": "ac9295d3",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@@ -312,10 +312,8 @@
"\n", "\n",
"## Quick Install\n", "## Quick Install\n",
"\n", "\n",
"```bash\n",
"# Hopefully this code block isn't split\n", "# Hopefully this code block isn't split\n",
"pip install langchain\n", "pip install langchain\n",
"```\n",
"\n", "\n",
"As an open-source project in a rapidly developing field, we are extremely open to contributions.\n", "As an open-source project in a rapidly developing field, we are extremely open to contributions.\n",
"\"\"\"" "\"\"\""
@@ -323,7 +321,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 9, "execution_count": 3,
"id": "3a0cb17a", "id": "3a0cb17a",
"metadata": {}, "metadata": {},
"outputs": [ "outputs": [
@@ -332,15 +330,14 @@
"text/plain": [ "text/plain": [
"[Document(page_content='# 🦜️🔗 LangChain'),\n", "[Document(page_content='# 🦜️🔗 LangChain'),\n",
" Document(page_content='⚡ Building applications with LLMs through composability ⚡'),\n", " Document(page_content='⚡ Building applications with LLMs through composability ⚡'),\n",
" Document(page_content='## Quick Install\\n\\n```bash'),\n", " Document(page_content='## Quick Install'),\n",
" Document(page_content=\"# Hopefully this code block isn't split\"),\n", " Document(page_content=\"# Hopefully this code block isn't split\"),\n",
" Document(page_content='pip install langchain'),\n", " Document(page_content='pip install langchain'),\n",
" Document(page_content='```'),\n",
" Document(page_content='As an open-source project in a rapidly developing field, we'),\n", " Document(page_content='As an open-source project in a rapidly developing field, we'),\n",
" Document(page_content='are extremely open to contributions.')]" " Document(page_content='are extremely open to contributions.')]"
] ]
}, },
"execution_count": 9, "execution_count": 3,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
@@ -742,7 +739,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.10.4" "version": "3.10.5"
} }
}, },
"nbformat": 4, "nbformat": 4,