Skip to content

Commit 1b138e0

Browse files
committed
Make example more robust
1 parent dceed7b commit 1b138e0

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

tutorials/36_Building_Fallbacks_with_Conditional_Routing.ipynb

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,15 @@
156156
"documents = [\n",
157157
" Document(\n",
158158
" content=\"\"\"Munich, the vibrant capital of Bavaria in southern Germany, exudes a perfect blend of rich cultural\n",
159-
" heritage and modern urban sophistication. Nestled along the banks of the Isar River, Munich is renowned\n",
160-
" for its splendid architecture, including the iconic Neues Rathaus (New Town Hall) at Marienplatz and\n",
161-
" the grandeur of Nymphenburg Palace. The city is a haven for art enthusiasts, with world-class museums like the\n",
162-
" Alte Pinakothek housing masterpieces by renowned artists. Munich is also famous for its lively beer gardens, where\n",
163-
" locals and tourists gather to enjoy the city's famed beers and traditional Bavarian cuisine. The city's annual\n",
164-
" Oktoberfest celebration, the world's largest beer festival, attracts millions of visitors from around the globe.\n",
165-
" Beyond its cultural and culinary delights, Munich offers picturesque parks like the English Garden, providing a\n",
166-
" serene escape within the heart of the bustling metropolis. Visitors are charmed by Munich's warm hospitality,\n",
167-
" making it a must-visit destination for travelers seeking a taste of both old-world charm and contemporary allure.\"\"\"\n",
159+
"heritage and modern urban sophistication. Nestled along the banks of the Isar River, Munich is renowned\n",
160+
"for its splendid architecture, including the iconic Neues Rathaus (New Town Hall) at Marienplatz and\n",
161+
"the grandeur of Nymphenburg Palace. The city is a haven for art enthusiasts, with world-class museums like the\n",
162+
"Alte Pinakothek housing masterpieces by renowned artists. Munich is also famous for its lively beer gardens, where\n",
163+
"locals and tourists gather to enjoy the city's famed beers and traditional Bavarian cuisine. The city's annual\n",
164+
"Oktoberfest celebration, the world's largest beer festival, attracts millions of visitors from around the globe.\n",
165+
"Beyond its cultural and culinary delights, Munich offers picturesque parks like the English Garden, providing a\n",
166+
"serene escape within the heart of the bustling metropolis. Visitors are charmed by Munich's warm hospitality,\n",
167+
"making it a must-visit destination for travelers seeking a taste of both old-world charm and contemporary allure.\"\"\"\n",
168168
" )\n",
169169
"]\n",
170170
"\n",
@@ -430,7 +430,7 @@
430430
}
431431
],
432432
"source": [
433-
"query = \"Where is Munich?\"\n",
433+
"query = \"What region of Germany is Munich in?\"\n",
434434
"\n",
435435
"result = agentic_rag_pipe.run(\n",
436436
" {\"retriever\": {\"query\": query}, \"prompt_builder\": {\"query\": query}, \"router\": {\"query\": query}}\n",
@@ -562,7 +562,7 @@
562562
"provenance": []
563563
},
564564
"kernelspec": {
565-
"display_name": ".venv",
565+
"display_name": "Python 3 (ipykernel)",
566566
"language": "python",
567567
"name": "python3"
568568
},
@@ -576,9 +576,9 @@
576576
"name": "python",
577577
"nbconvert_exporter": "python",
578578
"pygments_lexer": "ipython3",
579-
"version": "3.9.6"
579+
"version": "3.12.11"
580580
}
581581
},
582582
"nbformat": 4,
583-
"nbformat_minor": 0
583+
"nbformat_minor": 4
584584
}

0 commit comments

Comments
 (0)