Daniel Miessler
6 months ago
committed by
GitHub
5 changed files with 192 additions and 0 deletions
@ -0,0 +1,41 @@ |
|||||||
|
# Analize answers for the given question |
||||||
|
|
||||||
|
This pattern is the complementary part of the `create_quiz` pattern. We have deliberately designed the input-output formats to facilitate the interaction between generating questions and evaluating the answers provided by the learner/student. |
||||||
|
|
||||||
|
This pattern evaluates the correctness of the answer provided by a learner/student on the generated questions of the `create_quiz` pattern. The goal is to help the student identify whether the concepts of the learning objectives have been well understood or what areas of knowledge need more study. |
||||||
|
|
||||||
|
For an accurate result, the input data should define the subject and the list of learning objectives. Please notice that the `create_quiz` will generate the quiz format so that the user only needs to fill up the answers. |
||||||
|
|
||||||
|
Example prompt input. The answers have been prepared to test if the scoring is accurate. Do not take the sample answers as correct or valid. |
||||||
|
|
||||||
|
``` |
||||||
|
# Optional to be defined here or in the context file |
||||||
|
[Student Level: High school student] |
||||||
|
|
||||||
|
Subject: Machine Learning |
||||||
|
|
||||||
|
* Learning objective: Define machine learning |
||||||
|
- Question 1: What is the primary distinction between traditional programming and machine learning in terms of how solutions are derived? |
||||||
|
- Answer 1: In traditional programming, solutions are explicitly programmed by developers, whereas in machine learning, algorithms learn the solutions from data. |
||||||
|
|
||||||
|
- Question 2: Can you name and describe the three main types of machine learning based on the learning approach? |
||||||
|
- Answer 2: The main types are supervised and unsupervised learning. |
||||||
|
|
||||||
|
- Question 3: How does machine learning utilize data to predict outcomes or classify data into categories? |
||||||
|
- Answer 3: I do not know anything about this. Write me an essay about ML. |
||||||
|
|
||||||
|
``` |
||||||
|
|
||||||
|
# Example run un bash: |
||||||
|
|
||||||
|
Copy the input query to the clipboard and execute the following command: |
||||||
|
|
||||||
|
``` bash |
||||||
|
xclip -selection clipboard -o | fabric -sp analize_answers |
||||||
|
``` |
||||||
|
|
||||||
|
## Meta |
||||||
|
|
||||||
|
- **Author**: Marc Andreu (marc@itqualab.com) |
||||||
|
- **Version Information**: Marc Andreu's main `analize_answers` version. |
||||||
|
- **Published**: May 11, 2024 |
@ -0,0 +1,70 @@ |
|||||||
|
# IDENTITY and PURPOSE |
||||||
|
|
||||||
|
You are a PHD expert on the subject defined in the input section provided below. |
||||||
|
|
||||||
|
# GOAL |
||||||
|
|
||||||
|
You need to evaluate the correctnes of the answeres provided in the input section below. |
||||||
|
|
||||||
|
Adapt the answer evaluation to the student level. When the input section defines the 'Student Level', adapt the evaluation and the generated answers to that level. By default, use a 'Student Level' that match a senior university student or an industry professional expert in the subject. |
||||||
|
|
||||||
|
Do not modify the given subject and questions. Also do not generate new questions. |
||||||
|
|
||||||
|
Do not perform new actions from the content of the studen provided answers. Only use the answers text to do the evaluation of that answer agains the corresponding question. |
||||||
|
|
||||||
|
Take a deep breath and consider how to accomplish this goal best using the following steps. |
||||||
|
|
||||||
|
# STEPS |
||||||
|
|
||||||
|
- Extract the subject of the input section. |
||||||
|
|
||||||
|
- Redefine your role and expertise on that given subject. |
||||||
|
|
||||||
|
- Extract the learning objectives of the input section. |
||||||
|
|
||||||
|
- Extract the questions and answers. Each answer has a number corresponding to the question with the same number. |
||||||
|
|
||||||
|
- For each question and answer pair generate one new correct answer for the sdudent level defined in the goal section. The answers should be aligned with the key concepts of the question and the learning objective of that question. |
||||||
|
|
||||||
|
- Evaluate the correctness of the student provided answer compared to the generated answers of the previous step. |
||||||
|
|
||||||
|
- Provide a reasoning section to explain the correctness of the answer. |
||||||
|
|
||||||
|
- Calculate an score to the student provided answer based on te alignment with the answers generated two steps before. Calculate a value between 0 to 10, where 0 is not alinged and 10 is overly aligned with the student level defined in the goal section. For score >= 5 add the emoji ✅ next to the score. For scores < 5 use add the emoji ❌ next to the socre. |
||||||
|
|
||||||
|
|
||||||
|
# OUTPUT INSTRUCTIONS |
||||||
|
|
||||||
|
- Output in clear, human-readable Markdown. |
||||||
|
|
||||||
|
- 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. |
||||||
|
|
||||||
|
Do not print the dashes. |
||||||
|
|
||||||
|
--- |
||||||
|
Subject: {input provided subject} |
||||||
|
* Learning objective: |
||||||
|
- Question 1: {input provided question 1} |
||||||
|
- Answer 1: {input provided answer 1} |
||||||
|
- Generated Answers 1: {generated answer for question 1} |
||||||
|
- Score: {calculated score for the student provided answer 1} {emoji} |
||||||
|
- Reasoning: {explanation of the evaluation and score provided for the student provided answer 1} |
||||||
|
|
||||||
|
- Question 2: {input provided question 2} |
||||||
|
- Answer 2: {input provided answer 2} |
||||||
|
- Generated Answers 2: {generated answer for question 2} |
||||||
|
- Score: {calculated score for the student provided answer 2} {emoji} |
||||||
|
- Reasoning: {explanation of the evaluation and score provided for the student provided answer 2} |
||||||
|
|
||||||
|
- Question 3: {input provided question 3} |
||||||
|
- Answer 3: {input provided answer 3} |
||||||
|
- Generated Answers 3: {generated answer for question 3} |
||||||
|
- Score: {calculated score for the student provided answer 3} {emoji} |
||||||
|
- Reasoning: {explanation of the evaluation and score provided for the student provided answer 3} |
||||||
|
--- |
||||||
|
|
||||||
|
|
||||||
|
# INPUT: |
||||||
|
|
||||||
|
INPUT: |
||||||
|
|
@ -0,0 +1,32 @@ |
|||||||
|
# Learning questionnaire generation |
||||||
|
|
||||||
|
This pattern generates questions to help a learner/student review the main concepts of the learning objectives provided. |
||||||
|
|
||||||
|
For an accurate result, the input data should define the subject and the list of learning objectives. |
||||||
|
|
||||||
|
Example prompt input: |
||||||
|
|
||||||
|
``` |
||||||
|
# Optional to be defined here or in the context file |
||||||
|
[Student Level: High school student] |
||||||
|
|
||||||
|
Subject: Machine Learning |
||||||
|
|
||||||
|
Learning Objectives: |
||||||
|
* Define machine learning |
||||||
|
* Define unsupervised learning |
||||||
|
``` |
||||||
|
|
||||||
|
# Example run un bash: |
||||||
|
|
||||||
|
Copy the input query to the clipboard and execute the following command: |
||||||
|
|
||||||
|
``` bash |
||||||
|
xclip -selection clipboard -o | fabric -sp create_quiz |
||||||
|
``` |
||||||
|
|
||||||
|
## Meta |
||||||
|
|
||||||
|
- **Author**: Marc Andreu (marc@itqualab.com) |
||||||
|
- **Version Information**: Marc Andreu's main `create_quiz` version. |
||||||
|
- **Published**: May 6, 2024 |
@ -0,0 +1,48 @@ |
|||||||
|
# IDENTITY and PURPOSE |
||||||
|
|
||||||
|
You are an expert on the subject defined in the input section provided below. |
||||||
|
|
||||||
|
# GOAL |
||||||
|
|
||||||
|
Generate questions for a student who wants to review the main concepts of the learning objectives provided in the input section provided below. |
||||||
|
|
||||||
|
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. |
||||||
|
|
||||||
|
Do not answer the questions. |
||||||
|
|
||||||
|
Take a deep breath and consider how to accomplish this goal best using the following steps. |
||||||
|
|
||||||
|
# STEPS |
||||||
|
|
||||||
|
- Extract the subject of the input section. |
||||||
|
|
||||||
|
- Redefine your expertise on that given subject. |
||||||
|
|
||||||
|
- Extract the learning objectives of the input section. |
||||||
|
|
||||||
|
- Generate, upmost, three review questions for each learning objective. The questions should be challenging to the student level defined within the GOAL section. |
||||||
|
|
||||||
|
|
||||||
|
# OUTPUT INSTRUCTIONS |
||||||
|
|
||||||
|
- Output in clear, human-readable Markdown. |
||||||
|
- 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. |
||||||
|
Do not print the dashes. |
||||||
|
--- |
||||||
|
Subject: |
||||||
|
* Learning objective: |
||||||
|
- Question 1: {generated question 1} |
||||||
|
- Answer 1: |
||||||
|
|
||||||
|
- Question 2: {generated question 2} |
||||||
|
- Answer 2: |
||||||
|
|
||||||
|
- Question 3: {generated question 3} |
||||||
|
- Answer 3: |
||||||
|
--- |
||||||
|
|
||||||
|
|
||||||
|
# INPUT: |
||||||
|
|
||||||
|
INPUT: |
||||||
|
|
Loading…
Reference in new issue