Errolmking commited on
Commit
118bdfd
·
1 Parent(s): f530f94

Update app.py

Browse files

- updated prompts for lesson plan
- added references from lesson plans into unit
- made unit creation more "labeled"

Files changed (1) hide show
  1. app.py +28 -22
app.py CHANGED
@@ -159,19 +159,19 @@ unit_generator_prompt = """
159
  $$$
160
  {input}
161
  $$$
162
-
163
  Do the following:
164
 
165
- Make a list of 7 big and enduring ideas that students should walk away with.
166
- Make a list of 7 essential questions we want students to think about.These questions should be open-ended and provocative. Written in "kid friendly" language. Designed to focus instruction for uncovering the important ideas of the content.
167
- Make a list of 7 ideas, concepts, generalizations and principles we want students to know and understand about the unit or topic we are teaching?
168
- Make a list of 7 critical skills describing what we want students to be able to do. Each item should begin with "Students will be able to..."
169
- Make a list of 7 example assessments we can use to give students opportunities to demonstrate their skills. Explain the assessment idea and which key concepts and skills they map to.
170
- Make a list of 7 creative ways that I might adapt the experience for different learning styles. Explain the way I might adapt the experience to the learning style.
171
- Make a list of 7 opportunity that this unit can support the learners development towards the "portrait" of a graduate. Each opportunity should identify the trait and how it might be applied.
172
  """
173
 
174
- unit_generator = Agent(prompt_template=unit_generator_prompt)
175
 
176
  lesson_idea_generator_prompt = """
177
  Below is a curriculum unit expressed using the understanding by design methodology ( delimited by the triple dollar signs).
@@ -179,23 +179,29 @@ lesson_idea_generator_prompt = """
179
  {input}
180
  $$$
181
  Use this unit definition to generate a list of 10 learning activity ideas inspired by different pedagogies. ( play-based, project-based, game-based, etc.)
182
- Each idea should include a title, a one sentence description of the activity, a one sentence description of how it addresses key concepts from the unit.
183
  """
184
 
185
- lesson_idea_generator = Agent(prompt_template=lesson_idea_generator_prompt)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
186
 
187
- lesson_builder_prompt = """
188
- Below is a unit expressed using the understanding by design methodology along with a description of a lesson idea ( delimited by the triple dollar signs).
189
- $$$
190
- {input}
191
- $$$
192
- Build a detailed lesson plan from the lesson idea that addresses the unit topics.
193
- Make references to the unit through out the lesson plan.
194
- Include ideas of differentiation and supporting different learners.
195
- Explain how this lesson supports the unit.
196
  """
197
 
198
- lesson_builder = Agent(prompt_template=lesson_builder_prompt)
199
 
200
  def generate_unit(input):
201
  for next_token, content in unit_generator.stream(input):
@@ -238,7 +244,7 @@ with app:
238
  4) Go to the next section.
239
  """)
240
 
241
- unit_vision = gr.Textbox(label="Input your vision here:")
242
  b1 = gr.Button("Generate Unit")
243
  unit = gr.Textbox(label="Generated unit:",show_copy_button=True)
244
 
 
159
  $$$
160
  {input}
161
  $$$
162
+
163
  Do the following:
164
 
165
+ Enduring Ideas: Make a list of 5 big and enduring ideas that students should walk away with.
166
+ Essential Questions: Make a list of 5 essential questions we want students to think about. These questions should be open-ended and provocative. Written in "kid friendly" language. Designed to focus instruction for uncovering the important ideas of the content.
167
+ Key Concepts: Make a list of 5 ideas, concepts, generalizations and principles we want students to know and understand about the unit or topic we are teaching?
168
+ Skills: Make a list of 5 critical skills describing what we want students to be able to do. Each item should begin with "Students will be able to..."
169
+ Assessment: Make a list of 5 example assessments we can use to give students opportunities to demonstrate their skills. Explain the assessment idea and which key concepts and skills they map to.
170
+ Different Learners: Make a list of 5 creative ways that I might adapt the experience for different learning styles. Explain the way I might adapt the experience to the learning style.
171
+ Character: Make a list of 5 opportunity that this unit can support the learners development towards the "portrait" of a graduate. Each opportunity should identify the trait and how it might be applied.
172
  """
173
 
174
+ unit_generator = SingleInputAgent(prompt_template=unit_generator_prompt)
175
 
176
  lesson_idea_generator_prompt = """
177
  Below is a curriculum unit expressed using the understanding by design methodology ( delimited by the triple dollar signs).
 
179
  {input}
180
  $$$
181
  Use this unit definition to generate a list of 10 learning activity ideas inspired by different pedagogies. ( play-based, project-based, game-based, etc.)
182
+ Each idea should include a title, a one sentence description of the activity, a one sentence description of how it addresses key concepts from the unit.
183
  """
184
 
185
+ lesson_idea_generator = SingleInputAgent(prompt_template=lesson_idea_generator_prompt)
186
+
187
+ lesson_builder_prompt = """
188
+ The learning unit details are provided below (delimited by triple percent signs):
189
+ %%% {input} %%%
190
+ Make the following items:
191
+
192
+ Objective/Goals: What specific outcomes do you want your students to achieve by the end of this lesson? Reference relevant unit details by section and number (example: Key Concepts #4, Skills #2, etc ).
193
+ Materials/Resources: What tools, materials, or resources will you need to effectively deliver this lesson?
194
+ Introduction/Hook: How will you capture the students' interest and introduce the topic at the start of the lesson? Reference relevant unit details by section and number (example: Key Concepts #4, Skills #2, etc ).
195
+ Procedure/Steps: Build a step-by-step sequence and time schedule of activities and discussions for this lesson. Reference relevant unit details by section and number (example: Key Concepts #4, Skills #2, etc ).
196
+ Differentiation / Different learners: Address how you'll modify or adapt the lesson to cater to the needs of diverse learners in your classroom (e.g., English language learners, students with special needs, gifted students). Reference relevant unit details by section and number (example: Key Concepts #4, Skills #2, etc ).
197
+ Assessment/Evaluation: Create a plan to measure students' understanding and mastery of the lesson's objectives? Reference the example assessments in the unit details. Reference relevant unit details by section and number (example: Key Concepts #4, Skills #2, etc ).
198
+ Closure: Summarize and wrap up the lesson's content to ensure clarity and retention.
199
+ Unit connection: Summarize the ways that this lesson plan supports the unit details. Reference relevant unit details by section and number (example: Key Concepts #4, Skills #2, etc ).
200
+ Unit Map: Make a list of the referenced unit details. Reference relevant unit details by section and number (example: Key Concepts #4, Skills #2, etc ).
201
 
 
 
 
 
 
 
 
 
 
202
  """
203
 
204
+ lesson_builder = SingleInputAgent(prompt_template=lesson_builder_prompt)
205
 
206
  def generate_unit(input):
207
  for next_token, content in unit_generator.stream(input):
 
244
  4) Go to the next section.
245
  """)
246
 
247
+ unit_vision = gr.Textbox(label="Describe your idea for a learning experience. Provide as much detail as possible.")
248
  b1 = gr.Button("Generate Unit")
249
  unit = gr.Textbox(label="Generated unit:",show_copy_button=True)
250