Skip to content

The agent engineering platform.

add encoding to avoid UnicodeDecodeError (#2908)

Akash NP13a0ed064b4c
diff --git a/docs/modules/indexes/getting_started.ipynb b/docs/modules/indexes/getting_started.ipynb
index 58a133ada0..0c6a9d593a 100644
--- a/docs/modules/indexes/getting_started.ipynb
+++ b/docs/modules/indexes/getting_started.ipynb
@@ -99,7 +99,7 @@
"outputs": [],
"source": [
"from langchain.document_loaders import TextLoader\n",
- "loader = TextLoader('../state_of_the_union.txt')"
+ "loader = TextLoader('../state_of_the_union.txt', encoding='utf8')"
]
},
{