Skip to content

Instantly share code, notes, and snippets.

@milad621
Created September 29, 2023 18:35
Show Gist options
  • Save milad621/ef36ac819782ca569fa042a5dd8abfbb to your computer and use it in GitHub Desktop.
Save milad621/ef36ac819782ca569fa042a5dd8abfbb to your computer and use it in GitHub Desktop.
{"qst": "What will be the average temperature in New York City after one week?", "actions": ["Thought: I need to get the temperature of New York City for the next week, so I should call forecast_weather(New York City, 7).", "Information: OK.", "Action: forecast_weather(New York City, 7)", "Information: {over all weather: Sunny; max temperature: 12.7(C), 54.9(F); min temperature: -0.1(C), 31.8(F); average temperature: 6.8(C), 44.2(F); max wind speed: 20.9(kph), 13.0(mph); total precipitation: 0.0(mm), 0.0(inch); will rain today: 0, chance of rain: 0; total snow: 0.0(cm); will snow today: 0, chance of snow: 0; average visibility: 10.0(km), 6.0(miles); average humidity: 52.0; UV index: 3.0; sunrise time: 06:45 AM, sunset time: 07:18 PM; moonrise time: 11:50 AM, moonset time: 03:04 AM; }", "Thought: I have the average temperature information for the next week in New York City, I can give the final answer.", "Information: OK.", "Answer: the average temperature in New York City after one week is 6.8(C), 44.2(F)."]}
{"qst": "Help me find a recipe for a vegan chocolate cake and how many servings will it yield?", "actions": ["Action: search(vegan chocolate cake)", "Information:\n{\n[0] Vegan Chocolate Cake\ntag: Chocolate Cake Recipes, type: recipe\n[1] Easy Vegan Chocolate Cake\ntag: Chocolate Cake Recipes, type: recipe\n[2] Simple Vegan Chocolate Cake\ntag: Chocolate Cake Recipes, type: recipe\n[3] Best Ever Vegan Chocolate Mug Cake\ntag: Apple Dessert Recipes, type: recipe\n[4] Banana Chocolate Creamed Cashew Cake\ntag: Chocolate Cheesecake Recipes, type: recipe\n[5] Vegan Double Chocolate Peanut Butter Banana Cake\ntag: Banana Dessert Recipes, type: recipe\n[6] Linda Sue's Chocolate Cake (Vegan)\ntag: Chocolate Cake Recipes, type: recipe\n[7] Crazy Cake\ntag: Sheet Cake Recipes, type: recipe\n[8] Vegan Wacky Cake\ntag: Chocolate Cake Recipes, type: recipe\n}\n", "Thought: I should load item 0 as it is exactly what I am searching for.", "Information: OK.", "Action: load(0)", "Information:\n{\nVegan Chocolate Cake\nThis vegan cake is a really simple, yet very tasty cake.\nReview: 4.7 (965) 807 Reviews 141 Photos\nCreate: Recipe by Jackie Updated on March 6, 2023\nDetails:\nPrep Time: 15 mins\nCook Time: 45 mins\nTotal Time: 1 hrs\nServings: 8\nYield: 1 9x5-inch loaf cake\nIntroduction: Dotdash Meredith Food Studios\nFluid: \nIngredients\n1 ½ cups all-purpose flour\n1 cup white sugar\n¼ cup cocoa powder\n1 teaspoon baking soda\n½ teaspoon salt\n1 cup water\n⅓ cup vegetable oil\n1 teaspoon vanilla extract\n1 teaspoon distilled white vinegar\nDirections\nGather all ingredients.\nDotdash Meredith Food Studios\nPreheat the oven to 350 degrees F (175 degrees C). Lightly grease a 9x5-inch loaf pan.\nSift flour, sugar, cocoa, baking soda, and salt together in a large bowl.\nDotdash Meredith Food Studios\nAdd water, oil, vanilla, and vinegar; mix together until smooth.\nDotdash Meredith Food Studios\nPour mixture into the prepared pan.\nDotdash Meredith Food Studios\nBake in the preheated oven until a toothpick inserted into the center comes out clean, about 45 minutes.\nDotdash Meredith Food Studios\nTips\nYou can use rice flour or something other than wheat.\nTry adding chocolate chips or chopped nuts.\nNutrition:\nCalories: 275\nFat: 10g\nCarbs: 45g\nProtein: 3g\n}\n", "Thought: I have found the yield, it should be the answer.", "Information: OK.", "Answer: The vegan chocolate cake yields 1 9x5-inch loaf cake, which serves 8 people."]}
{"qst": "Can you provide me with a recipe for a classic margherita pizza and what temperature should the oven be set to?", "actions": ["Action: search(margherita pizza)", "Information:\n{\n[0] Four Cheese Margherita Pizza\ntag: Italian, type: recipe\n[1] Naan Bread Margherita Pizza with Prosciutto\ntag: Indian, type: recipe\n[2] Margherita Pizza with Sausage and Pesto\ntag: Chicken, type: recipe\n[3] Authentic Pizza Margherita\ntag: Pizza Recipes, type: recipe\n[4] Margherita Flatbread Pizza\ntag: Italian, type: recipe\n[5] Crispy Grilled Pizza Margherita\ntag: Italian, type: recipe\n[6] Classic Pizza Margherita\ntag: Recipes, type: recipe\n[7] Grilled Pizza Margherita\ntag: Recipes, type: recipe\n[8] Prosciutto-Artichoke Pizza\ntag: Pork, type: recipe\n}\n", "Thought: I should load item 6 as it is exactly what I am searching for.", "Information: OK.", "Action: load(6)", "Information:\n{\nClassic Pizza Margherita\nAn easy pizza deserves an easy salad, so open a bag of Caesar salad, sit back and enjoy.\nReview: 4.5 (2) 2 Reviews 4 Photos\nCreate: By Allrecipes Member Allrecipes Member Website The Allrecipes Community includes over 15 million home cooks around the world who contribute recipes to our ever-growing library. Beyond submitting their personal recipes for publication, members of this supportive, food-driven community actively inspire one another through the photos, reviews, and videos they share. Allrecipes' editorial guidelines Updated on June 17, 2015\nDetails:\nPrep Time: 5 mins\nCook Time: 10 mins\nTotal Time: 15 mins\nServings: 8\nYield: 8 servings\nIntroduction: \nFluid: \nIngredients\n1 (12 inch) pizza crust or Italian bread shell\n3 plum tomatoes, thinly sliced\n⅓ cup BUITONI® Refrigerated Pesto with Basil\n1 ½ cups shredded mozzarella cheese\n½ teaspoon crushed red pepper\nDirections\nPreheat oven to 450 F. Place pizza crust on baking sheet.\nSpread pesto over pizza crust. Arrange tomatoes over pesto. Sprinkle with cheese and crushed red pepper.\nBake for 10 to 12 minutes or until cheese is melted and crust is golden brown. Cut into wedges.\nNutrition:\nCalories: 257\nFat: 11g\nCarbs: 29g\nProtein: 13g\n}\n", "Thought: I have found the temperature I should set the oven to, it should be the answer.", "Information: OK.", "Answer: The oven should be set to 450 F."]}
{"prompt": "Below are some math word problems. To solve questiona, you should first comprehend the query, figure out appropriate arithmetic operation and then call a calculator API. The API will return a result which you should answer the question with.\n\nCase 1\nQuestion: in a family 13 people eat only vegetarian , 7 people eat only non veg . , 8 people eat both veg and non veg . . how many people eat veg in the family ?\nAction: calculator[13+8]\nObservation: 21.0\nAnswer: 21 (people)\n\nCase 2\nQuestion: a can complete a certain job in 9 days . b is 80 % more efficient than a . in how many days can b complete the same job ?\nAction: calculator[90/(10*(100+80)/100)]\nObservation: 5.0\nAnswer: 5 (days)\n\nCase 3\nQuestion: how many pieces of 85 cm length can be cut from a rod of 17 meters long ?\nAction: calculator[1700 / 85]\nObservation: 20.0\nAnswer: 20 (pieces)\n\nCase 4\nQuestion: in a school of 650 boys , 44 % of muslims , 28 % hindus , 10 % sikhs and the remaining of other communities . how many belonged to the other communities ?", "label": "117", "generate": "\nAction: calculator[650 - (650*(44+28+10)/100)]\nObservation: 117.0\nAnswer: 117 (people)", "predict": "117"}
{"prompt": "Below are some math word problems. To solve questiona, you should first comprehend the query, figure out appropriate arithmetic operation and then call a calculator API. The API will return a result which you should answer the question with.\n\nCase 1\nQuestion: in a family 13 people eat only vegetarian , 7 people eat only non veg . , 8 people eat both veg and non veg . . how many people eat veg in the family ?\nAction: calculator[13+8]\nObservation: 21.0\nAnswer: 21 (people)\n\nCase 2\nQuestion: a can complete a certain job in 9 days . b is 80 % more efficient than a . in how many days can b complete the same job ?\nAction: calculator[90/(10*(100+80)/100)]\nObservation: 5.0\nAnswer: 5 (days)\n\nCase 3\nQuestion: how many pieces of 85 cm length can be cut from a rod of 17 meters long ?\nAction: calculator[1700 / 85]\nObservation: 20.0\nAnswer: 20 (pieces)\n\nCase 4\nQuestion: find the principle on a certain sum of money at 9 % per annum for 2 2 / 5 years if the amount being rs . 1120 ?", "label": "921.05", "generate": "Action: calculator[1120 / (1 + (9/100)*(12/5))]\nObservation: 921.05Answer: 921.05 (Rs.", "predict": "921.05"}
{"prompt": "Below are some math word problems. To solve questiona, you should first comprehend the query, figure out appropriate arithmetic operation and then call a calculator API. The API will return a result which you should answer the question with.\n\nCase 1\nQuestion: One bright sunny day, Betty decided to make bracelets from beautiful stones she bought from a local store. She bought 88 pink flower stones and wanted to make 8 bracelets out of these stones. How many pink flower stones will each bracelet have if she used the same number of stones in each bracelet?\nAction: calculator[88/8]\nObservation: 11.0\nAnswer: 11 (pink flower stones)\n\nCase 2\nQuestion: There were 22 bales of hay in the barn. Keith stacked more bales in the barn today. There are now 89 bales of hay in the barn. How many bales did he store in the barn?\nAction: calculator[89-22]\nObservation: 67.0\nAnswer: 67 (bales)\n\nCase 3\nQuestion: To get to school, Chad must either walk around a circular lake or canoe across it. The diameter of the lake is 2 miles. How much shorter is his trip if he canoes across the lake rather than walks around it? (Use the value of pi = 3.14)\nAction: calculator[3.14-2]\nObservation: 1.14\nAnswer: 1.14 (miles)\n\nCase 4\nQuestion: Next in their itinerary was the insectarium, home to hundreds of insect species. Penny, who likes butterflies and ants, took pictures of the different species. She was able to capture 60 species of butterflies, 15 species of ants and 20 species of other insects. How many species of insects did Penny capture?", "label": "95", "generate": "\nAction: calculator[60+15+20]\nObservation: 95.0\nAnswer: 95 (species)", "predict": "95"}
q: How will the complexity change if adenosine 5'-triphosphate loses one phosphate group?
r: The complexity of a molecule is a subjective measure that takes into account various factors such as the number of atoms, functional groups, and symmetry. Adenosine 5'-diphosphate (ADP) is less complex than ATP because it has one less phosphate group. Therefore, if adenosine 5'-triphosphate (ATP) loses one phosphate group, it will become adenosine 5'-diphosphate (ADP) and its complexity will decrease.
table: 202-csv-232
query_type: i
question: {'query': 'You are given a table on 1994 Group. Create a bar chart to compare the research funding of each institution.', 'query_type': 'i'}
> Entering new AgentExecutor chain...

Thought: I need to draw a bar chart showing the research funding of each institution.
Action: python_repl_ast
Action Input: draw_bar('Research Funding of 1994 Group', df['Research funding (£,000)'].tolist(), df['Institution'].tolist())
Observation: 23-04-06-18-26-52.png
Thought: I have completed the task.
Final Answer: 23-04-06-18-26-52.png
> Finished chain.
{'id': 'cmpl-71sQVESKExe7VQC5eet4O7sLKmPcf', 'object': 'text_completion', 'created': 1680681899, 'model': 'text-davinci-003', 'choices': [{'text': 'Thought: We need to create a PPT presentation with a flat theme.\nAction: create_file\nAction Input: {"theme": "flat"}\n', 'index': 0, 'logprobs': None, 'finish_reason': 'stop'}], 'usage': {'prompt_tokens': 1595, 'completion_tokens': 33, 'total_tokens': 1628}}
Thought: Thought: We need to create a PPT presentation with a flat theme.
Action: create_file
Action Input: {"theme": "flat"}
Action: create_file
Action Input: {"theme": "flat"}
Observation: created ppt file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment