Browse Source

Fixed bug with path check

pull/270/head
Edward Donner 2 months ago
parent
commit
750f9a6062
  1. 3
      week5/day2.ipynb

3
week5/day2.ipynb

@ -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",

Loading…
Cancel
Save