Skip to content

Commit c98721c

Browse files
authored
tut 39 - try setting user agent to prevent wikipedia error (#455)
1 parent cd91980 commit c98721c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tutorials/39_Embedding_Metadata_for_Improved_Retrieval.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
},
133133
{
134134
"cell_type": "code",
135-
"execution_count": 17,
135+
"execution_count": null,
136136
"metadata": {},
137137
"outputs": [
138138
{
@@ -170,6 +170,8 @@
170170
"from haystack import Document\n",
171171
"from haystack.document_stores.in_memory import InMemoryDocumentStore\n",
172172
"\n",
173+
"wikipedia.set_user_agent(\"haystack-tutorials\")\n",
174+
"\n",
173175
"some_bands = \"\"\"The Beatles,The Cure\"\"\".split(\",\")\n",
174176
"\n",
175177
"raw_docs = []\n",

0 commit comments

Comments
 (0)