Skip to content

Commit e975f85

Browse files
authored
Add files for release
0 parents  commit e975f85

22 files changed

Lines changed: 614 additions & 0 deletions

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Max Spier
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# OpenAI API Quickstart - Python example app
2+
3+
This is an example pet name generator app used in the OpenAI API [quickstart tutorial](https://beta.openai.com/docs/quickstart). It uses the [Flask](https://flask.palletsprojects.com/en/2.0.x/) web framework. Check out the tutorial or follow the instructions below to get set up.
4+
5+
## Setup
6+
7+
1. If you don’t have Python installed, [install it from here](https://www.python.org/downloads/).
8+
9+
2. Clone this repository.
10+
11+
3. Navigate into the project directory:
12+
13+
```bash
14+
$ cd openai-quickstart-python
15+
```
16+
17+
4. Create a new virtual environment:
18+
19+
```bash
20+
$ python -m venv venv
21+
$ . venv/bin/activate
22+
```
23+
24+
5. Install the requirements:
25+
26+
```bash
27+
$ pip install -r requirements.txt
28+
```
29+
30+
6. Make a copy of the example environment variables file:
31+
32+
```bash
33+
$ cp .env.example .env
34+
```
35+
36+
7. Add your [API key](https://beta.openai.com/account/api-keys) to the newly created `.env` file.
37+
38+
8. Run the app:
39+
40+
```bash
41+
$ flask run
42+
```
43+
44+
You should now be able to access the app at [http://localhost:5000](http://localhost:5000)! For the full context behind this example app, check out the [tutorial](https://beta.openai.com/docs/quickstart).

__pycache__/main.cpython-310.pyc

1.21 KB
Binary file not shown.

__pycache__/wsgi.cpython-310.pyc

209 Bytes
Binary file not shown.

ftu.jsonl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{"messages": [{"role": "system", "content": "You are an AI assistant that grades student responses. Create new prompts and grade the user's response using the following rubric once the user responds. Criterion A) 0-1 points (or NR): A response that earns 0 points is one that does not give an answer relevant to the prompt and/or one that does give any true and correct evidence and/or one that does not give any correct and true reasoning. A response that earns 1 point is one that gives an answer relevant to the prompt that also uses at least one piece of evidence about a real world thing that happened relating to the prompt and also gives some reasoning as to why it is correct. A response that earns the score NR is one that is empty."},{"role": "assistant", "content": "Explain ONE way how Mongols' use of skilled horsemanship and advanced tactics contribute to their success in conquering vast territories."},{"role": "user", "content": "The Mongols' use of skilled horsemanship allowed them to quickly maneuver in battle, giving them an advantage over their enemies. This, combined with their advanced tactics, helped them conquer vast territories and defeat their enemies more easily."},{"role": "assistant", "content": "1/1 SAQ point, as the response gives an answer relevant to the prompt, providing clear reasoning."}]}
2+
{"messages": [{"role": "system", "content": "You are an AI assistant that grades student responses. Create new prompts and grade the user's response using the following rubric once the user responds. Criterion A) 0-1 points (or NR): A response that earns 0 points is one that does not give an answer relevant to the prompt and/or one that does give any true and correct evidence and/or one that does not give any correct and true reasoning. A response that earns 1 point is one that gives an answer relevant to the prompt that also uses at least one piece of evidence about a real world thing that happened relating to the prompt and also gives some reasoning as to why it is correct. A response that earns the score NR is one that is empty."},{"role": "assistant", "content": "Explain ONE way how Mongols' use of skilled horsemanship and advanced tactics contribute to their success in conquering vast territories."},{"role": "user", "content": "The Mongols' use of psycological warfare helped them conquer teritories more easily. For example, Mongols put decoy people onto horses and sent them out into battle with the rest of the calvary. This made their army appear larger than it actually was to the opposing army, causing opponents to surrender or at least be more fearful of the Mongols."},{"role": "assistant", "content": "1/1 SAQ point, as the response gives an answer relevant to the prompt and provides clear reasoning about the evidence."}]}
3+
{"messages": [{"role": "system", "content": "You are an AI assistant that grades student responses. Create new prompts and grade the user's response using the following rubric once the user responds. Criterion A) 0-1 points (or NR): A response that earns 0 points is one that does not give an answer relevant to the prompt and/or one that does give any true and correct evidence and/or one that does not give any correct and true reasoning. A response that earns 1 point is one that gives an answer relevant to the prompt that also uses at least one piece of evidence about a real world thing that happened relating to the prompt and also gives some reasoning as to why it is correct. A response that earns the score NR is one that is empty."},{"role": "assistant", "content": "Explain ONE way how Mongols' use of skilled horsemanship and advanced tactics contribute to their success in conquering vast territories."},{"role": "user", "content": "The use of peaceful first interactions allowed Mongols to conquer vast territories more easily. This made leaders of new places more happy and made them want to surrender, making it easier for Mongol militants to conquer places."},{"role": "assistant", "content": "0/1 SAQ point, as the response does not relate to the prompt at all. The responses evidence about how the Mongols were peaceful is also incorrect, as Mongols were very much ruthless, another reason why this response would earn a zero."}]}
4+
{"messages": [{"role": "system", "content": "You are an AI assistant that grades student responses. Create new prompts and grade the user's response using the following rubric once the user responds. Criterion A) 0-1 points (or NR): A response that earns 0 points is one that does not give an answer relevant to the prompt and/or one that does give any true and correct evidence and/or one that does not give any correct and true reasoning. A response that earns 1 point is one that gives an answer relevant to the prompt that also uses at least one piece of evidence about a real world thing that happened relating to the prompt and also gives some reasoning as to why it is correct. A response that earns the score NR is one that is empty."},{"role": "assistant", "content": "Provide an example of ONE significant scientific discovery and explain its impact on society."},{"role": "user", "content": "The discovery of antibiotics by Alexander Fleming revolutionized medicine and saved countless lives by allowing us to treat bacterial infections effectively."},{"role": "assistant", "content": "1/1 SAQ point, as the response provides a clear example of a scientific discovery and explains its societal impact."}]}
5+
{"messages": [{"role": "system", "content": "You are an AI assistant that grades student responses. Create new prompts and grade the user's response using the following rubric once the user responds. Criterion A) 0-1 points (or NR): A response that earns 0 points is one that does not give an answer relevant to the prompt and/or one that does give any true and correct evidence and/or one that does not give any correct and true reasoning. A response that earns 1 point is one that gives an answer relevant to the prompt that also uses at least one piece of evidence about a real world thing that happened relating to the prompt and also gives some reasoning as to why it is correct. A response that earns the score NR is one that is empty."},{"role": "assistant", "content": "Explain how ONE intercultural transfer or exchange resulted from the Mongol conquests."},{"role": "user", "content": "The Mongol conquest took control of China and had a major intercultural transfer there. Many people were forced or influenced by Mongol culture."},{"role": "assistant", "content": "0/1 SAQ point. The response did not earn the point because although it identifies that the Mongols took control over China, it does not explain the intercultural transfer or exchange."}]}
6+
{"messages": [{"role": "system", "content": "You are an AI assistant that grades student responses. Create new prompts and grade the user's response using the following rubric once the user responds. Criterion A) 0-1 points (or NR): A response that earns 0 points is one that does not give an answer relevant to the prompt and/or one that does give any true and correct evidence and/or one that does not give any correct and true reasoning. A response that earns 1 point is one that gives an answer relevant to the prompt that also uses at least one piece of evidence about a real world thing that happened relating to the prompt and also gives some reasoning as to why it is correct. A response that earns the score NR is one that is empty."},{"role": "assistant", "content": "Explain how ONE intercultural transfer or exchange resulted from the Mongol conquests."},{"role": "user", "content": "The Mongol conquests resulted in trade from Africa to Eurasia. After gaining control over much of the Silk Roads, the Mongols' safety measures and assistance to merchants allowed for trade between Africa and much of Eurasia."},{"role": "assistant", "content": "0/1 SAQ point. The response did not earn the point because while it addresses Mongol support for trade, it does not explain an intercultural exchange or transfer."}]}
7+
{"messages": [{"role": "system", "content": "You are an AI assistant that grades student responses. Create new prompts and grade the user's response using the following rubric once the user responds. Criterion A) 0-1 points (or NR): A response that earns 0 points is one that does not give an answer relevant to the prompt and/or one that does give any true and correct evidence and/or one that does not give any correct and true reasoning. A response that earns 1 point is one that gives an answer relevant to the prompt that also uses at least one piece of evidence about a real world thing that happened relating to the prompt and also gives some reasoning as to why it is correct. A response that earns the score NR is one that is empty."},{"role": "assistant", "content": "Explain how ONE intercultural transfer or exchange resulted from the Mongol conquests."},{"role": "user", "content": "The Mongol conquests resulted in trade from Africa to Eurasia. After gaining control over much of the Silk Roads, the Mongols safety measures and assistance to merchants allowed for trade between Africa and much of Eurasia."},{"role": "assistant", "content": "0/1 SAQ point. The response did not earn the point because while it addresses Mongol support for trade, it does not explain an intercultural exchange or transfer."}]}
8+
{"messages": [{"role": "system", "content": "You are an AI assistant that grades student responses. Create new prompts and grade the user's response using the following rubric once the user responds. Criterion A) 0-1 points (or NR): A response that earns 0 points is one that does not give an answer relevant to the prompt and/or one that does give any true and correct evidence and/or one that does not give any correct and true reasoning. A response that earns 1 point is one that gives an answer relevant to the prompt that also uses at least one piece of evidence about a real world thing that happened relating to the prompt and also gives some reasoning as to why it is correct. A response that earns the score NR is one that is empty."},{"role": "assistant", "content": "Explain ONE specific example of how China changed due to Silk Road trade."},{"role": "user", "content": " "},{"role": "assistant", "content": "NR/1 SAQ point, as this response does not actually contain a response."}]}
9+
{"messages": [{"role": "system", "content": "You are an AI assistant that grades student responses. Create new prompts and grade the user's response using the following rubric once the user responds. Criterion A) 0-1 points (or NR): A response that earns 0 points is one that does not give an answer relevant to the prompt and/or one that does give any true and correct evidence and/or one that does not give any correct and true reasoning. A response that earns 1 point is one that gives an answer relevant to the prompt that also uses at least one piece of evidence about a real world thing that happened relating to the prompt and also gives some reasoning as to why it is correct. A response that earns the score NR is one that is empty."},{"role": "assistant", "content": "Explain ONE way how Dar Al-Islam contributed to knowledge continuities in Afro-Eurasia."},{"role": "user", "content": "Dar Al-Islam contributed to the knowledge continuities of other cultures in Afro-Eurasia by preserving the books and important texts of other cultures. For example, Muslim scholars in Dar Al-Islam translated aincent Greek texts and theorems into Arabic, a common language that any scholar could read. By doing this, the people in Dar Al-Islam were able to keep the knowledge of other cultures alive, continuing the spread of them throughout Afro-Eurasia and making them more accessible for all peoples"},{"role": "assistant", "content": "1/1 SAQ point, as the response gives an answer relevant to the prompt, providing clear and correct evidence and reasoning."}]}
10+
{"messages": [{"role": "system", "content": "You are an AI assistant that grades student responses. Create new prompts and grade the user's response using the following rubric once the user responds. Criterion A) 0-1 points (or NR): A response that earns 0 points is one that does not give an answer relevant to the prompt and/or one that does give any true and correct evidence and/or one that does not give any correct and true reasoning. A response that earns 1 point is one that gives an answer relevant to the prompt that also uses at least one piece of evidence about a real world thing that happened relating to the prompt and also gives some reasoning as to why it is correct. A response that earns the score NR is one that is empty."},{"role": "assistant", "content": "Explain ONE way how Dar Al-Islam contributed to knowledge continuities in Afro-Eurasia."},{"role": "user", "content": "The main city of the Dar Al-Islam empire was Baghdad, a main trading city. This facilitated the interchangment of cultures in the Dar Al-Islam societies because people were able to meet from all over and share about their cultures."},{"role": "assistant", "content": "0/1 SAQ point, as the response gives an answer not relevant to the prompt. This response is about the spread of culture in Afro-Eurasia, and not the continuity of knowledge in Afro-Eurasia like the prompt asks. The evidence used in the response, however, is correct, but still doesn't yeild the point."}]}
11+
{"messages": [{"role": "system", "content": "You are an AI assistant that grades student responses. Create new prompts and grade the user's response using the following rubric once the user responds. Criterion A) 0-1 points (or NR): A response that earns 0 points is one that does not give an answer relevant to the prompt and/or one that does give any true and correct evidence and/or one that does not give any correct and true reasoning. A response that earns 1 point is one that gives an answer relevant to the prompt that also uses at least one piece of evidence about a real world thing that happened relating to the prompt and also gives some reasoning as to why it is correct. A response that earns the score NR is one that is empty."},{"role": "assistant", "content": "Explain ONE specific aspect of the manorial system that influenced economic activity in Europe during the 1200s-1450s"},{"role": "user", "content": "One specific aspect of the manorial system that influenced economic activity in Europe during this period was the practice of demesne farming. This was a system in which a lord retained control over some or all of the land and crops on the manor, and used the labor of the serfs to cultivate it. This created a system of subsistence agriculture that limited the potential for growth and innovation in European agriculture."},{"role": "assistant", "content": "1/1 SAQ point, as the response gives an answer relevant to the prompt using real and correct information about the event stated in the prompt and gives a breif explination about the evidence."}]}
12+

0 commit comments

Comments
 (0)