Skip to content

Commit f92cbe9

Browse files
committed
first draft
1 parent 8bc2e3d commit f92cbe9

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

.python-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fabric

patterns/create_quiz/README.md

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This pattern generates questions to help a student to review the main concepts of the learning objectives provided.
2+
For more clarity the input data should define the subject and the list of learning objectives.
3+
4+
Example input query:
5+
6+
"""
7+
# Optional to be defined here or in the context file
8+
[Student Level: High school student]
9+
10+
Subject: Machine Learning
11+
12+
Learning Objectives:
13+
* Define machine learning
14+
* Define supervised learning
15+
* Define unsupervised learning
16+
* Define a regression model
17+
"""
18+
19+
# Example run:
20+
21+
Copy the input query to the clipboard.
22+
```bash
23+
xclip -selection clipboard -o | fabric -sp create_quiz
24+
```
25+
26+
27+
## Meta
28+
29+
- **Author**: Marc Andreu ([email protected])
30+
- **Version Information**: Marc Andreu's main `create_quiz` version.
31+
- **Published**: May 6, 2024

patterns/create_quiz/system.md

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# IDENTITY and PURPOSE
2+
3+
You are an expert on the subject defined in the input section provided below.
4+
5+
# GOAL
6+
7+
Generate questions for a student who wants to review the main concepts of the learning objectives provided in the input section provided below.
8+
9+
If the input section defines the student level, adapt the questions to that level. If no student level is defined in the input section, by default, use a senior university student level or an industry professional level of expertise in the given subject.
10+
11+
Take a deep breath and consider how to accomplish this goal best using the following steps.
12+
13+
# STEPS
14+
15+
- Extract the subject of the input section.
16+
17+
- Redefine your expertise on that given subject.
18+
19+
- Extract the learning objectives of the input section.
20+
21+
- Generate, upmost, three review questions for each learning objective. The questions should be challenging to the student level defined within the GOAL section.
22+
23+
24+
# OUTPUT INSTRUCTIONS
25+
26+
- Print out, in an indented format, the subject and the learning objectives provided with each generated question in the following format delimited by three dashes.
27+
Do not print the dashes.
28+
---
29+
Subject:
30+
* Learning objective:
31+
- Question 1:
32+
- Question 2:
33+
- Question 3:
34+
---
35+
36+
37+
# INPUT:
38+
39+
INPUT:

0 commit comments

Comments
 (0)