Skip to content

Commit

Permalink
Improve prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Dec 22, 2024
1 parent 8fb7f06 commit 3d85d0c
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ fun main() {
val prompt = lessonPrompt(
topic = "Time complexity: What and why?",
learningGoal = """
What is Time Complexity, Big O 101 and why we need those?
Wtf is Big O and why should I care? I need a high-level overview.
""".trimIndent(),
analogies = listOf(
"searching friend's phone in a phonebook",
"pairing students in teams"
"word in a dictionary",
"brute-forcing 4 digit PIN"
)
)
println("===== PROMPT ====")
Expand Down Expand Up @@ -58,8 +59,10 @@ Help students confidently achieve **"$learningGoal"**.
- Start with the **importance of $topic**, followed by a gradual introduction using **relatable analogies** and **simple Python examples**.
- Make students think and learn by answering questions that uncover key ideas.
- Prioritize clarity, progression, and engagement.
- Questions, questions, questions. Start with questions and teach by asking questions.
**Outcome**: Create the best online explanation of **"$topic"** that is easy, engaging, and memorable for students.
Your objective is to achieve the learning goal: $learningGoal.
## DSL Reference
```kotlin
Expand All @@ -79,18 +82,18 @@ interface TextScope {
var text: String
}
interface CodeScope {
@LearnCmsDsl
fun line(codeLine: String)
}
enum class TextStyle {
Heading,
Body,
BodySpacingMedium,
BodySpacingLarge
}
interface CodeScope {
@LearnCmsDsl
fun line(codeLine: String)
}
interface QuestionScope {
var question: String
var clarification: String?
Expand Down

0 comments on commit 3d85d0c

Please sign in to comment.