docs: Fixing typo: "chocalate" -> "chocolate". (#31078)

Just fixing a typo that was making me anxious: "chocalate" ->
"chocolate".
This commit is contained in:
Mateus Scheper 2025-04-30 16:09:36 -03:00 committed by GitHub
parent 952a0b7b40
commit ed7cd3c5c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 14 additions and 14 deletions

View File

@ -66,7 +66,7 @@ This API works with a list of [Document](https://python.langchain.com/api_refere
from langchain_core.documents import Document from langchain_core.documents import Document
document_1 = Document( document_1 = Document(
page_content="I had chocalate chip pancakes and scrambled eggs for breakfast this morning.", page_content="I had chocolate chip pancakes and scrambled eggs for breakfast this morning.",
metadata={"source": "tweet"}, metadata={"source": "tweet"},
) )

View File

@ -231,7 +231,7 @@
"from langchain_core.documents import Document\n", "from langchain_core.documents import Document\n",
"\n", "\n",
"document_1 = Document(\n", "document_1 = Document(\n",
" page_content=\"I had chocalate chip pancakes and scrambled eggs for breakfast this morning.\",\n", " page_content=\"I had chocolate chip pancakes and scrambled eggs for breakfast this morning.\",\n",
" metadata={\"source\": \"tweet\"},\n", " metadata={\"source\": \"tweet\"},\n",
")\n", ")\n",
"\n", "\n",

View File

@ -402,7 +402,7 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"* I had chocalate chip pancakes and fried eggs for breakfast this morning. [{'source': 'tweet'}]\n" "* I had chocolate chip pancakes and fried eggs for breakfast this morning. [{'source': 'tweet'}]\n"
] ]
} }
], ],

View File

@ -144,7 +144,7 @@
"from langchain_core.documents import Document\n", "from langchain_core.documents import Document\n",
"\n", "\n",
"document_1 = Document(\n", "document_1 = Document(\n",
" page_content=\"I had chocalate chip pancakes and scrambled eggs for breakfast this morning.\",\n", " page_content=\"I had chocolate chip pancakes and scrambled eggs for breakfast this morning.\",\n",
" metadata={\"source\": \"tweet\"},\n", " metadata={\"source\": \"tweet\"},\n",
")\n", ")\n",
"\n", "\n",

View File

@ -301,7 +301,7 @@
"from langchain_core.documents import Document\n", "from langchain_core.documents import Document\n",
"\n", "\n",
"document_1 = Document(\n", "document_1 = Document(\n",
" page_content=\"I had chocalate chip pancakes and scrambled eggs for breakfast this morning.\",\n", " page_content=\"I had chocolate chip pancakes and scrambled eggs for breakfast this morning.\",\n",
" metadata={\"source\": \"tweet\"},\n", " metadata={\"source\": \"tweet\"},\n",
")\n", ")\n",
"\n", "\n",
@ -492,7 +492,7 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"page_content='I had chocalate chip pancakes and scrambled eggs for breakfast this morning.' metadata={'source': 'tweet'}\n" "page_content='I had chocolate chip pancakes and scrambled eggs for breakfast this morning.' metadata={'source': 'tweet'}\n"
] ]
} }
], ],

View File

@ -255,7 +255,7 @@
"from langchain_core.documents import Document\n", "from langchain_core.documents import Document\n",
"\n", "\n",
"document_1 = Document(\n", "document_1 = Document(\n",
" page_content=\"I had chocalate chip pancakes and scrambled eggs for breakfast this morning.\",\n", " page_content=\"I had chocolate chip pancakes and scrambled eggs for breakfast this morning.\",\n",
" metadata={\"source\": \"tweet\"},\n", " metadata={\"source\": \"tweet\"},\n",
")\n", ")\n",
"\n", "\n",

View File

@ -150,7 +150,7 @@
"from langchain_core.documents import Document\n", "from langchain_core.documents import Document\n",
"\n", "\n",
"document_1 = Document(\n", "document_1 = Document(\n",
" page_content=\"I had chocalate chip pancakes and scrambled eggs for breakfast this morning.\",\n", " page_content=\"I had chocolate chip pancakes and scrambled eggs for breakfast this morning.\",\n",
" metadata={\"source\": \"tweet\"},\n", " metadata={\"source\": \"tweet\"},\n",
")\n", ")\n",
"\n", "\n",

View File

@ -138,7 +138,7 @@
"from langchain_core.documents import Document\n", "from langchain_core.documents import Document\n",
"\n", "\n",
"document_1 = Document(\n", "document_1 = Document(\n",
" page_content=\"I had chocalate chip pancakes and scrambled eggs for breakfast this morning.\",\n", " page_content=\"I had chocolate chip pancakes and scrambled eggs for breakfast this morning.\",\n",
" metadata={\"source\": \"tweet\"},\n", " metadata={\"source\": \"tweet\"},\n",
")\n", ")\n",
"\n", "\n",

View File

@ -206,7 +206,7 @@
"from langchain_core.documents import Document\n", "from langchain_core.documents import Document\n",
"\n", "\n",
"document_1 = Document(\n", "document_1 = Document(\n",
" page_content=\"I had chocalate chip pancakes and scrambled eggs for breakfast this morning.\",\n", " page_content=\"I had chocolate chip pancakes and scrambled eggs for breakfast this morning.\",\n",
" metadata={\"source\": \"tweet\"},\n", " metadata={\"source\": \"tweet\"},\n",
")\n", ")\n",
"\n", "\n",

View File

@ -206,7 +206,7 @@
"from langchain_core.documents import Document\n", "from langchain_core.documents import Document\n",
"\n", "\n",
"document_1 = Document(\n", "document_1 = Document(\n",
" page_content=\"I had chocalate chip pancakes and scrambled eggs for breakfast this morning.\",\n", " page_content=\"I had chocolate chip pancakes and scrambled eggs for breakfast this morning.\",\n",
" metadata={\"source\": \"tweet\"},\n", " metadata={\"source\": \"tweet\"},\n",
")\n", ")\n",
"\n", "\n",

View File

@ -156,7 +156,7 @@
"from langchain_core.documents import Document\n", "from langchain_core.documents import Document\n",
"\n", "\n",
"document_1 = Document(\n", "document_1 = Document(\n",
" page_content=\"I had chocalate chip pancakes and scrambled eggs for breakfast this morning.\",\n", " page_content=\"I had chocolate chip pancakes and scrambled eggs for breakfast this morning.\",\n",
" metadata={\"source\": \"tweet\"},\n", " metadata={\"source\": \"tweet\"},\n",
")\n", ")\n",
"\n", "\n",
@ -356,7 +356,7 @@
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"* [SIM=0.595] The weather forecast for tomorrow is cloudy and overcast, with a high of 62 degrees. [{'source': 'news'}]\n", "* [SIM=0.595] The weather forecast for tomorrow is cloudy and overcast, with a high of 62 degrees. [{'source': 'news'}]\n",
"* [SIM=0.212] I had chocalate chip pancakes and scrambled eggs for breakfast this morning. [{'source': 'tweet'}]\n", "* [SIM=0.212] I had chocolate chip pancakes and scrambled eggs for breakfast this morning. [{'source': 'tweet'}]\n",
"* [SIM=0.118] Wow! That was an amazing movie. I can't wait to see it again. [{'source': 'tweet'}]\n" "* [SIM=0.118] Wow! That was an amazing movie. I can't wait to see it again. [{'source': 'tweet'}]\n"
] ]
} }
@ -387,7 +387,7 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"* I had chocalate chip pancakes and scrambled eggs for breakfast this morning. [{'source': 'tweet'}]\n", "* I had chocolate chip pancakes and scrambled eggs for breakfast this morning. [{'source': 'tweet'}]\n",
"* Wow! That was an amazing movie. I can't wait to see it again. [{'source': 'tweet'}]\n", "* Wow! That was an amazing movie. I can't wait to see it again. [{'source': 'tweet'}]\n",
"* Building an exciting new project with LangChain - come check it out! [{'source': 'tweet'}]\n", "* Building an exciting new project with LangChain - come check it out! [{'source': 'tweet'}]\n",
"* LangGraph is the best framework for building stateful, agentic applications! [{'source': 'tweet'}]\n" "* LangGraph is the best framework for building stateful, agentic applications! [{'source': 'tweet'}]\n"