Skip to content

Commit

Permalink
chore(cookbooks): comments update in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Vedantsahai18 committed Feb 12, 2025
1 parent f95a0be commit 607c1b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions cookbooks/03-trip-planning-assistant.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -280,21 +280,21 @@
"########################################################\n",
"\n",
"main:\n",
"# Step 1: Fetch weather data for each location\n",
"# Step 0: Fetch weather data for each location\n",
"- over: $ steps[0].input.locations\n",
" map:\n",
" tool: weather\n",
" arguments:\n",
" location: $ _\n",
"\n",
"# Step 2: Search Wikipedia for tourist attractions for each location\n",
"# Step 1: Search Wikipedia for tourist attractions for each location\n",
"- over: $ steps[0].input.locations\n",
" map:\n",
" tool: internet_search\n",
" arguments:\n",
" query: $ 'tourist attractions in ' + _\n",
"\n",
"# Step 3: Zip locations, weather, and attractions into a list of tuples [(location, weather, attractions)]\n",
"# Step 2: Zip locations, weather, and attractions into a list of tuples [(location, weather, attractions)]\n",
"- evaluate:\n",
" zipped: |-\n",
" $ list(\n",
Expand All @@ -305,7 +305,7 @@
" )\n",
" )\n",
"\n",
"# Step 4: Create an itinerary for each location\n",
"# Step 3: Create an itinerary for each location\n",
"- over: $ _['zipped']\n",
" parallelism: 3\n",
" # Inside the map step, each `_` represents the current element in the list\n",
Expand All @@ -328,7 +328,7 @@
" Attractions: \"{{_[2]}}\"'''\n",
" unwrap: true\n",
"\n",
"# Step 5: Create a final plan by joining the activities for each location\n",
"# Step 4: Create a final plan by joining the activities for each location\n",
"- evaluate:\n",
" final_plan: |-\n",
" $ '\\\\n---------------\\\\n'.join(activity for activity in _)\n",
Expand Down
2 changes: 1 addition & 1 deletion cookbooks/08-rag-customer-support-chatbot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@
" operation: create\n",
"\n",
"########################################################\n",
"####################### SUB WORKFLOWS ##########################\n",
"####################### SUB WORKFLOWS ##################\n",
"########################################################\n",
"\n",
"index_page:\n",
Expand Down

0 comments on commit 607c1b7

Please sign in to comment.