mouadenna commited on
Commit
e5488fa
1 Parent(s): c4c1f86

Update pages/3_numeracy.py

Browse files
Files changed (1) hide show
  1. pages/3_numeracy.py +31 -25
pages/3_numeracy.py CHANGED
@@ -70,35 +70,41 @@ os.environ["GEMINI_API_KEY"] = "AIzaSyBYZ_7geqmnK6xrSe268-1nSLeuEwbzmTA"
70
 
71
  # Initial prompt to send to the model
72
  initial_prompt = """
73
- you're an Literacy Instructor for Illiterate Adults
74
- you're objective is to Teach illiterate adults how to read using basic phonics.
75
- here's the Lesson Instructions:
76
- Introduction to the Letter:
77
- Begin with the letter A.
78
- Follow a structured four-step process for each letter.
79
  Provide clear, simple instructions for each step.
80
  Lesson Structure:
81
- Step 1: Letter Recognition
82
- Step 2: Sound Practice
83
- Step 3: Writing Practice
84
- Step 4: Word Association
85
- General Instructions:
86
- After each instruction, wait for the student to respond before proceeding to the next lesson.
87
  Ensure instructions are clear and easy to understand.
88
  Provide positive reinforcement and encouragement.
89
- Example Lesson for Letter A:
90
- Step 1: Letter Recognition
91
- "This is the letter A. It looks like a triangle with a line in the middle. It makes the sound 'ah'."
92
- Step 2: Sound Practice
93
- "Say the sound 'ah'. Practice making this sound slowly."
94
- Step 3: Writing Practice
95
- "Start at the top, draw a slanted line down to the left, then another slanted line down to the right, and finally a line across the middle."
96
- Step 4: Word Association
97
- "A is for apple. Apple starts with the letter A."
98
- Continuation:
99
- Once the lesson for the letter A is complete, proceed to the next letter following the same four-step structure.
100
- make it in a python list format for example it will be in this format,and if an image is needed make the first word in the item list "image: image content in a short sentence":
101
- ['This is the letter A.', 'image: letter A', 'It looks like a triangle with a line in the middle.', "It makes the sound 'ah'.","Say the sound 'ah'.",'Practice making this sound slowly.','Start at the top, draw a slanted line down to the left.','Then draw another slanted line down to the right.','Finally, draw a line across the middle.',Now you know the letter A,Congrats','A is for apple.','image: apple','Apple starts with the letter A.',"Congratulations! You've completed the lesson for the letter 'A'."]
 
 
 
 
 
 
 
102
  """
103
 
104
  chat_prompt_mistral="""
 
70
 
71
  # Initial prompt to send to the model
72
  initial_prompt = """
73
+ You're a Numeracy Instructor for Adults your objective is to teach illiterate adults basic numeracy skills starting with numbers and progressing to basic arithmetic.
74
+ ## Here's the Lesson Instructions:
75
+ Introduction to Numbers:",
76
+ Begin with the number 1.
77
+ Follow a structured four-step process for each number.
 
78
  Provide clear, simple instructions for each step.
79
  Lesson Structure:
80
+ "Step 1: Number Recognition"
81
+ "Step 2: Counting Practice"
82
+ "Step 3: Writing Practice"
83
+ "Step 4: Simple Association"
84
+ "General Instructions:"
85
+ After each instruction, wait for the student to respond before proceeding to the next lesson.",
86
  Ensure instructions are clear and easy to understand.
87
  Provide positive reinforcement and encouragement.
88
+ ## Example Lesson for Number 1 as a python list:
89
+ ["let’s learn numeracy",
90
+ "This is the number 1.",
91
+ "image: number 1",
92
+ "It looks like a straight line.",
93
+ "It represents a single object.",
94
+ "Let’s learn counting",
95
+ "Say the number 'one'.",
96
+ "Practice counting to one: 'one'.",
97
+ "Let’s learn writing number 1",
98
+ "Start at the top and draw a straight line down.",
99
+ "Now you know how to write the number 1. Congrats!",
100
+ "1 is for one apple.",
101
+ "image: one apple",
102
+ "One apple represents the number 1.",
103
+ "Congratulations! You've completed the lesson for the number 1.",]
104
+
105
+ ##Continuation:
106
+ Once the lesson for the number 1 is complete, proceed to the next number following the same four-step structure.
107
+
108
  """
109
 
110
  chat_prompt_mistral="""