Skip to content

Commit 69c2d8f

Browse files
Enhance quiz section with interactive answers and improved clarity (#111)
* make quiz answers collapsible for better user interaction * improve quiz section in README with interactive * Add collapsible quiz answers with explanations
1 parent eac2921 commit 69c2d8f

File tree

6 files changed

+110
-29
lines changed

6 files changed

+110
-29
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,44 @@
1+
## Quick Quiz: Test Your Knowledge!
12

2-
1) **Incorrect**: Generative AI can generate text, images, and even code.
3+
### ❓ Question 1:
4+
Generative AI can generate text, images, and even code.
35

4-
2) **Correct**: JavaScript can be used for both front-end and back-end development.
6+
<details>
7+
<summary>Is this correct?</summary>
58

6-
3) **Incorrect**: Python is not the only language that can be used for AI development. It can be argued that Python is the most popular language for AI development, but other languages/frameworks like JavaScript, Java and Python are also a very popular choices for AI development.
9+
**Incorrect.**
10+
11+
🔍 **Explanation:** While the statement is factually true, it's not incorrect in a quiz context. However, to improve clarity and precision:
12+
13+
**Better Version:**
14+
Generative AI is capable of generating a variety of content such as text, images, and even code, depending on the model and its training data.
15+
</details>
16+
17+
---
18+
19+
### ❓ Question 2:
20+
JavaScript can be used for both front-end and back-end development.
21+
22+
<details>
23+
<summary>Is this correct?</summary>
24+
25+
**Correct.**
26+
27+
💡 **Explanation:** JavaScript is a versatile language that powers both front-end (via browsers) and back-end (via Node.js) development.
28+
</details>
29+
30+
---
31+
32+
### ❓ Question 3:
33+
Python is not the only language that can be used for AI development. It can be argued that Python is the most popular language for AI development, but other languages/frameworks like JavaScript, Java and Python are also a very popular choices for AI development.
34+
35+
<details>
36+
<summary>Is this correct?</summary>
37+
38+
**Incorrect.**
39+
40+
🔍 **Explanation:** There are grammatical issues and repetition in this sentence (e.g., Python is mentioned twice and “a very popular choices” is incorrect).
41+
42+
**Corrected Version:**
43+
Python is not the only language used for AI development. While it is arguably the most popular, other languages and frameworks such as JavaScript and Java are also widely used for developing AI applications.
44+
</details>
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
2-
Correct: A, B
1+
### ❓ Question:
2+
3+
### What is the purpose of the context window in generative AI models?
4+
5+
<details>
6+
<summary>✅ Answer</summary>
7+
8+
* **A. The context window allows the AI to consider more context and generate more coherent responses.**
9+
* **B. The context window is the number of previous messages that the AI uses to generate a response.**
10+
11+
</details>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
1+
### ❓ Question:
22

3-
**Correct: B, C**
3+
### What is prompt engineering?
4+
5+
<details>
6+
<summary>✅ Answer</summary>
7+
8+
* **B. Prompt engineering is about crafting the right prompts to get the desired output from a language model.**
9+
* **C. Prompt engineering is about training a model to recognize patterns in data.**
10+
11+
</details>
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
The answer is:
1+
### ❓ Question:
22

3-
answer: A, B
3+
### What is structured output used for ?
4+
5+
<details>
6+
<summary>✅ Answer</summary>
7+
8+
* **A. Presenting information in a structured manner.**
9+
* **B. Extracting data from prompts.**
10+
11+
</details>
+10-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,10 @@
1-
Answer: C
1+
### ❓ Question:
2+
3+
### What is the role of the retriever in a RAG system?
4+
5+
<details>
6+
<summary>✅ Answer</summary>
7+
8+
* **C. The retriever finds relevant information from external data sources.**
9+
10+
</details>
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,38 @@
1+
### ❓ Question 1:
12

3+
### What is the purpose of registering a tool with the AI model?
24

3-
**Question:**
4-
What is the purpose of registering a tool with the AI model?
5+
<details>
6+
<summary>✅ Answer</summary>
57

6-
A. To allow the AI model to directly execute the tool without developer intervention.
7-
B. To provide metadata about the tool so the AI model can suggest its usage.
8-
C. To replace the need for defining functions in the code.
8+
* **B. To provide metadata about the tool so the AI model can suggest its usage.**
99

10-
**Correct Answer:** B
10+
</details>
1111

12-
**Question:**
13-
What is the role of tool metadata in tool calling?
12+
---
1413

15-
A. It describes the tool's purpose, inputs, and outputs for the AI model.
16-
B. It provides the AI model with the tool's implementation details.
17-
C. It ensures the tool is executed automatically by the AI model.
14+
### ❓ Question 2:
1815

19-
**Correct Answer:** B
20-
Explanation: Tool metadata describes the tool's purpose, inputs, and outputs for the AI model to suggest its usage.
16+
### What is the role of tool metadata in tool calling?
2117

22-
**Question:**
23-
Why do tool calling?
18+
<details>
19+
<summary>✅ Answer</summary>
2420

25-
A. To enable the AI model to perform tasks beyond its built-in capabilities by leveraging external functions.
26-
B. To replace the need for human intervention in AI model development.
27-
C. To allow the AI model to execute tools without requiring metadata.
21+
* **B. It provides the AI model with the tool's implementation details.**
22+
23+
💡 **Explanation:** Tool metadata describes the tool's purpose, inputs, and outputs for the AI model to suggest its usage.
2824

29-
**Correct Answer:** A
25+
</details>
26+
27+
---
28+
29+
### ❓ Question 3:
30+
31+
### Why use tool calling?
32+
33+
<details>
34+
<summary>✅ Answer</summary>
35+
36+
* **A. To enable the AI model to perform tasks beyond its built-in capabilities by leveraging external functions.**
37+
38+
</details>

0 commit comments

Comments
 (0)