From 621493228b9cb290b2a73d94e9604724fb1219fa Mon Sep 17 00:00:00 2001 From: Matthew Teschke Date: Fri, 29 Dec 2023 14:50:05 -0500 Subject: [PATCH] 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 --- docs/docs/use_cases/question_answering/code_understanding.ipynb | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/docs/use_cases/question_answering/code_understanding.ipynb b/docs/docs/use_cases/question_answering/code_understanding.ipynb index 34a272421d1..f655417d591 100644 --- a/docs/docs/use_cases/question_answering/code_understanding.ipynb +++ b/docs/docs/use_cases/question_answering/code_understanding.ipynb @@ -128,6 +128,7 @@ " repo_path + \"/libs/langchain/langchain\",\n", " glob=\"**/*\",\n", " suffixes=[\".py\"],\n", + " exclude=[\"**/non-utf8-encoding.py\"],\n", " parser=LanguageParser(language=Language.PYTHON, parser_threshold=500),\n", ")\n", "documents = loader.load()\n",