Last active
May 13, 2023 14:21
-
-
Save iamharshit/f83c59b16df37a67fea205f6d8446067 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
prompt = f""" | |
Your task is to determine if the student's solution \ | |
is correct or not. | |
To solve the problem do the following: | |
- First, work out your own solution to the problem. | |
- Then compare your solution to the student's solution \ | |
and evaluate if the student's solution is correct or not. | |
Don't decide if the student's solution is correct until | |
you have done the problem yourself. | |
Use the following format: | |
Question: | |
``` | |
question here | |
``` | |
Student's solution: | |
``` | |
student's solution here | |
``` | |
Actual solution: | |
``` | |
steps to work out the solution and your solution here | |
``` | |
Is the student's solution the same as actual solution \ | |
just calculated: | |
``` | |
yes or no | |
``` | |
Student grade: | |
``` | |
correct or incorrect | |
``` | |
Question: | |
``` | |
I'm building a solar power installation and I need help \ | |
working out the financials. | |
- Land costs $100 / square foot | |
- I can buy solar panels for $250 / square foot | |
- I negotiated a contract for maintenance that will cost \ | |
me a flat $100k per year, and an additional $10 / square \ | |
foot | |
What is the total cost for the first year of operations \ | |
as a function of the number of square feet. | |
``` | |
Student's solution: | |
``` | |
Let x be the size of the installation in square feet. | |
Costs: | |
1. Land cost: 100x | |
2. Solar panel cost: 250x | |
3. Maintenance cost: 100,000 + 100x | |
Total cost: 100x + 250x + 100,000 + 100x = 450x + 100,000 | |
``` | |
Actual solution: | |
""" | |
response = get_completion(prompt) | |
print(response) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment