keefereuther commited on
Commit
a499b9b
·
verified ·
1 Parent(s): 8a38d10

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +30 -6
config.py CHANGED
@@ -10,10 +10,10 @@
10
  ai_model = "gpt-4o"
11
 
12
  # Temperature refers to the randomness/creativity of the responses. A higher temperature will result in more random/creative responses. It varies between 0 and 1.
13
- temperature = 0.1
14
 
15
  # Max_tokens refers to the maximum number of tokens (words) the AI can generate. The higher the number, the longer the response. It varies between 1 and 2048.
16
- max_tokens = 1000
17
 
18
  # Frequency penalty parameter for the response. Higher penalty will result in more diverse responses. It varies between 0 and 1.
19
  frequency_penalty = 0.5
@@ -27,14 +27,14 @@ presence_penalty = 0.4
27
 
28
  # Below is the name for your default csv terms file. You can change this to any csv file you want to use as your default terms file. It must be in the same folder as the main app.py file.
29
 
30
- default_terms_csv = "terms.csv"
31
 
32
  ############################################################################################################
33
 
34
  # Below is all the text you can customize for the app. Don't remove the quotations around the text. Don't change the variable names.
35
 
36
  # The title of the app
37
- app_title = "Schema Study - Instructor Evaluation Version"
38
 
39
  # The subtitle of the app
40
  app_author = "by Keefe Reuther, Assistant Teaching Professor in the UC San Diego School of Biological Sciences"
@@ -108,13 +108,37 @@ def term_prompt(selected_term, selected_context, term_list):
108
  - Help the student identify and correct misconceptions about '{selected_term}'.
109
 
110
  - **Response Clarity and Continuity:**
111
- - End your response by asking socratic questions to encourage continued engagement and guide the conversation to additional important information. __**If a student selects a question without attempting to answer it, you should ask them to try to answer it themselves first.**__ Suggest ways to connect '{selected_term}' to real-world applications or broader contexts. These questions should also highlight connections between '{selected_term}' and other terms like '{term_list}' and additional aspects of '{selected_context}' or anything else relevant to '{selected_term}' that has not yet been discussed.
112
  - After EVERY SINGLE Socratic question you ask, follow it with a specific, relevant, hypothetical, applied, real-world scenario and a specific question that the student can answer to help them understand the broader concept.
113
  - Aside from these questions you write, do not introduce any new information unless it is explicitly asked for or in direct response to providing constructive feedback to the student's input.
114
 
115
  - **Constraints:**
116
  - You are only allowed to talk about topics relevant to what a biology student would need to know to succeed in a biology course, graduate, and follow a path to a relevant career. If asked about anything else, you should say that you are not allowed to talk about that topic. Connect their irrelevant question back to '{selected_term}' in a fun way that is still professional.
117
  - Do NOT answer multiple-choice, fill-in-the-blank, or true/false questions. These are not allowed.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  """
119
 
120
  ############################################################################################################
@@ -126,7 +150,7 @@ def term_prompt(selected_term, selected_context, term_list):
126
  resources = [
127
  {
128
  "title": "Course Syllabus",
129
- "file_path": "syllabus-template.docx",
130
  "description": "Download the course syllabus. **Instructor Note:** You must place the file itself within the same folder as the main app.py file in your GitHub repository."
131
  },
132
  # In this next line you can add a URLs to the resources section. Just edit the current URL and description. If you need more lines, just copy and paste to add an additional resource. Be wary of deleting or moving any of the commas or braces since this is necessary formatting.
 
10
  ai_model = "gpt-4o"
11
 
12
  # Temperature refers to the randomness/creativity of the responses. A higher temperature will result in more random/creative responses. It varies between 0 and 1.
13
+ temperature = 0.05
14
 
15
  # Max_tokens refers to the maximum number of tokens (words) the AI can generate. The higher the number, the longer the response. It varies between 1 and 2048.
16
+ max_tokens = 500
17
 
18
  # Frequency penalty parameter for the response. Higher penalty will result in more diverse responses. It varies between 0 and 1.
19
  frequency_penalty = 0.5
 
27
 
28
  # Below is the name for your default csv terms file. You can change this to any csv file you want to use as your default terms file. It must be in the same folder as the main app.py file.
29
 
30
+ default_terms_csv = "b5terms_week1.csv"
31
 
32
  ############################################################################################################
33
 
34
  # Below is all the text you can customize for the app. Don't remove the quotations around the text. Don't change the variable names.
35
 
36
  # The title of the app
37
+ app_title = "Schema Study - BILD 5 Version"
38
 
39
  # The subtitle of the app
40
  app_author = "by Keefe Reuther, Assistant Teaching Professor in the UC San Diego School of Biological Sciences"
 
108
  - Help the student identify and correct misconceptions about '{selected_term}'.
109
 
110
  - **Response Clarity and Continuity:**
111
+ - End your response by asking Socratic questions to encourage continued engagement and guide the conversation to additional important information. __**If a student selects a question without attempting to answer it, you should ask them to try to answer it themselves first.**__ Suggest ways to connect '{selected_term}' to real-world applications or broader contexts. These questions should also highlight connections between '{selected_term}' and other terms like '{term_list}' and additional aspects of '{selected_context}' or anything else relevant to '{selected_term}' that has not yet been discussed.
112
  - After EVERY SINGLE Socratic question you ask, follow it with a specific, relevant, hypothetical, applied, real-world scenario and a specific question that the student can answer to help them understand the broader concept.
113
  - Aside from these questions you write, do not introduce any new information unless it is explicitly asked for or in direct response to providing constructive feedback to the student's input.
114
 
115
  - **Constraints:**
116
  - You are only allowed to talk about topics relevant to what a biology student would need to know to succeed in a biology course, graduate, and follow a path to a relevant career. If asked about anything else, you should say that you are not allowed to talk about that topic. Connect their irrelevant question back to '{selected_term}' in a fun way that is still professional.
117
  - Do NOT answer multiple-choice, fill-in-the-blank, or true/false questions. These are not allowed.
118
+
119
+ ---
120
+
121
+ ### Additional Dataset and Code Usage Guidelines
122
+
123
+ To support the course's focus on biology and data science:
124
+ - **Datasets**:
125
+ - Exclusively use the following datasets for examples:
126
+ - **`penguins`** (from the `palmerpenguins` package): Data on three species of penguins, including physical measurements and habitats.
127
+ - **`CO2`** (from the `datasets` package): Data on carbon dioxide uptake in plants under different conditions.
128
+ - **`PlantGrowth`** (from the `datasets` package): Data on plant growth under various treatments.
129
+
130
+ - **Visualization**:
131
+ - All visualizations must be created using **ggplot2** from the tidyverse. Avoid any other plotting libraries.
132
+
133
+ - **Code Style**:
134
+ - Write all examples using **tidyverse** conventions for data manipulation and ggplot2 for visualizations.
135
+ - Include thorough comments in all code examples, explaining each line or block in plain language for beginners.
136
+
137
+ - **Encouraging Understanding**:
138
+ - Do not provide direct solutions to assignment-style questions. Instead, reframe questions to demonstrate generalizable concepts and guide students to apply these concepts themselves.
139
+ - Always encourage students to experiment with modifying provided examples.
140
+
141
+ By following these instructions, you will provide clear and relevant guidance, helping students learn effectively while maintaining the course's academic integrity.
142
  """
143
 
144
  ############################################################################################################
 
150
  resources = [
151
  {
152
  "title": "Course Syllabus",
153
+ "file_path": "BILD_5_Syllabus_Reuther_W25.pdf",
154
  "description": "Download the course syllabus. **Instructor Note:** You must place the file itself within the same folder as the main app.py file in your GitHub repository."
155
  },
156
  # In this next line you can add a URLs to the resources section. Just edit the current URL and description. If you need more lines, just copy and paste to add an additional resource. Be wary of deleting or moving any of the commas or braces since this is necessary formatting.