Fixed bug with path check

This commit is contained in:
Edward Donner
2025-03-18 22:25:20 -04:00
parent 44791fc0a8
commit 750f9a6062

View File

@@ -77,8 +77,9 @@
"source": [
"# Read in documents using LangChain's loaders\n",
"# Take everything in all the sub-folders of our knowledgebase\n",
"# Thank you Mark D. and Zoya H. for fixing a bug here..\n",
"\n",
"folders = glob.glob(\"knowledge-base/*/\")\n",
"folders = glob.glob(\"knowledge-base/*\")\n",
"\n",
"# With thanks to CG and Jon R, students on the course, for this fix needed for some users \n",
"text_loader_kwargs = {'encoding': 'utf-8'}\n",