mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-01 19:03:25 +00:00
langchain: Exclude non-utf8 file from loader since it causes an error in the code_understanding example (#15324)
- **Description:** in the code_understanding.ipynb example, the loader errors out on the langchain/libs/community/tests/examples/non-utf8-encoding.py file, so I updated the loader to exclude that file. Excluding that file allows the example to run. - **Issue:** not applicable - **Dependencies:** none
This commit is contained in:
parent
8bfac1a319
commit
621493228b
@ -128,6 +128,7 @@
|
|||||||
" repo_path + \"/libs/langchain/langchain\",\n",
|
" repo_path + \"/libs/langchain/langchain\",\n",
|
||||||
" glob=\"**/*\",\n",
|
" glob=\"**/*\",\n",
|
||||||
" suffixes=[\".py\"],\n",
|
" suffixes=[\".py\"],\n",
|
||||||
|
" exclude=[\"**/non-utf8-encoding.py\"],\n",
|
||||||
" parser=LanguageParser(language=Language.PYTHON, parser_threshold=500),\n",
|
" parser=LanguageParser(language=Language.PYTHON, parser_threshold=500),\n",
|
||||||
")\n",
|
")\n",
|
||||||
"documents = loader.load()\n",
|
"documents = loader.load()\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user