From 315bd5f35f21db7f90d9ca7ee3f663050afafed7 Mon Sep 17 00:00:00 2001 From: codewithdhruba01 Date: Mon, 21 Apr 2025 09:13:05 +0530 Subject: [PATCH 1/3] make quiz answers collapsible for better user interaction --- .../solution/solution-quiz.md | 28 +++++++++++++++++-- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/lessons/01-intro-to-genai/solution/solution-quiz.md b/lessons/01-intro-to-genai/solution/solution-quiz.md index 0d35ba99..7ab3a357 100644 --- a/lessons/01-intro-to-genai/solution/solution-quiz.md +++ b/lessons/01-intro-to-genai/solution/solution-quiz.md @@ -1,6 +1,28 @@ +## Quiz Solutions -1) **Incorrect**: Generative AI can generate text, images, and even code. +--- -2) **Correct**: JavaScript can be used for both front-end and back-end development. +**Q1: What can Generative AI generate?** -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. \ No newline at end of file +
+Click to reveal the answer +Generative AI can generate text, images, and even code. +
+ +--- + +**Q2: What is JavaScript used for?** + +
+Click to reveal the answer +JavaScript can be used for both front-end and back-end development. +
+ +--- + +**Q3: Is Python the only language used for AI development?** + +
+Click to reveal the answer +Python is not the only language used for AI development. Other languages like JavaScript and Java are also popular choices. +
\ No newline at end of file From 38e29d7199cf3447123710982d2cc8ca1b93fe06 Mon Sep 17 00:00:00 2001 From: codewithdhruba01 Date: Mon, 21 Apr 2025 09:21:30 +0530 Subject: [PATCH 2/3] improve quiz section in README with interactive --- .../solution/solution-quiz.md | 42 +++++++++++++------ 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/lessons/01-intro-to-genai/solution/solution-quiz.md b/lessons/01-intro-to-genai/solution/solution-quiz.md index 7ab3a357..c1ff6d3b 100644 --- a/lessons/01-intro-to-genai/solution/solution-quiz.md +++ b/lessons/01-intro-to-genai/solution/solution-quiz.md @@ -1,28 +1,44 @@ -## Quiz Solutions +## Quick Quiz: Test Your Knowledge! ---- - -**Q1: What can Generative AI generate?** +### ❓ Question 1: +Generative AI can generate text, images, and even code.
-Click to reveal the answer -Generative AI can generate text, images, and even code. + Is this correct? + +❌ **Incorrect.** + +πŸ” **Explanation:** While the statement is factually true, it's not incorrect in a quiz context. However, to improve clarity and precision: + +βœ… **Better Version:** +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.
--- -**Q2: What is JavaScript used for?** +### ❓ Question 2: +JavaScript can be used for both front-end and back-end development.
-Click to reveal the answer -JavaScript can be used for both front-end and back-end development. + Is this correct? + +βœ… **Correct.** + +πŸ’‘ **Explanation:** JavaScript is a versatile language that powers both front-end (via browsers) and back-end (via Node.js) development.
--- -**Q3: Is Python the only language used for AI development?** +### ❓ Question 3: +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.
-Click to reveal the answer -Python is not the only language used for AI development. Other languages like JavaScript and Java are also popular choices. -
\ No newline at end of file + Is this correct? + +❌ **Incorrect.** + +πŸ” **Explanation:** There are grammatical issues and repetition in this sentence (e.g., Python is mentioned twice and β€œa very popular choices” is incorrect). + +βœ… **Corrected Version:** +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. + From 7bc8f18a0794370b0dd7a405a574d4c82202edd1 Mon Sep 17 00:00:00 2001 From: codewithdhruba01 Date: Wed, 23 Apr 2025 21:18:59 +0530 Subject: [PATCH 3/3] Add collapsible quiz answers with explanations --- .../02-first-ai-app/solution/solution-quiz.md | 13 ++++- .../solution/solution-quiz.md | 12 ++++- .../solution/solution-quiz.md | 12 ++++- lessons/05-rag/solution/solution-quiz.md | 11 ++++- .../06-tool-calling/solution/solution-quiz.md | 47 +++++++++++-------- 5 files changed, 69 insertions(+), 26 deletions(-) diff --git a/lessons/02-first-ai-app/solution/solution-quiz.md b/lessons/02-first-ai-app/solution/solution-quiz.md index 01bceeac..1491f54d 100644 --- a/lessons/02-first-ai-app/solution/solution-quiz.md +++ b/lessons/02-first-ai-app/solution/solution-quiz.md @@ -1,2 +1,11 @@ - -Correct: A, B \ No newline at end of file +### ❓ Question: + +### What is the purpose of the context window in generative AI models? + +
+ βœ… Answer + + * **A. The context window allows the AI to consider more context and generate more coherent responses.** + * **B. The context window is the number of previous messages that the AI uses to generate a response.** + +
\ No newline at end of file diff --git a/lessons/03-prompt-engineering/solution/solution-quiz.md b/lessons/03-prompt-engineering/solution/solution-quiz.md index 4a2ffcca..e28b4375 100644 --- a/lessons/03-prompt-engineering/solution/solution-quiz.md +++ b/lessons/03-prompt-engineering/solution/solution-quiz.md @@ -1,3 +1,11 @@ - +### ❓ Question: -**Correct: B, C** \ No newline at end of file +### What is prompt engineering? + +
+ βœ… Answer + + * **B. Prompt engineering is about crafting the right prompts to get the desired output from a language model.** + * **C. Prompt engineering is about training a model to recognize patterns in data.** + +
\ No newline at end of file diff --git a/lessons/04-structured-output/solution/solution-quiz.md b/lessons/04-structured-output/solution/solution-quiz.md index 4a71f66f..1240fe14 100644 --- a/lessons/04-structured-output/solution/solution-quiz.md +++ b/lessons/04-structured-output/solution/solution-quiz.md @@ -1,3 +1,11 @@ -The answer is: +### ❓ Question: -answer: A, B \ No newline at end of file +### What is structured output used for ? + +
+ βœ… Answer + + * **A. Presenting information in a structured manner.** + * **B. Extracting data from prompts.** + +
\ No newline at end of file diff --git a/lessons/05-rag/solution/solution-quiz.md b/lessons/05-rag/solution/solution-quiz.md index c15e347c..3011efa1 100644 --- a/lessons/05-rag/solution/solution-quiz.md +++ b/lessons/05-rag/solution/solution-quiz.md @@ -1 +1,10 @@ -Answer: C \ No newline at end of file +### ❓ Question: + +### What is the role of the retriever in a RAG system? + +
+ βœ… Answer + + * **C. The retriever finds relevant information from external data sources.** + +
\ No newline at end of file diff --git a/lessons/06-tool-calling/solution/solution-quiz.md b/lessons/06-tool-calling/solution/solution-quiz.md index 79ec8675..1bc510c9 100644 --- a/lessons/06-tool-calling/solution/solution-quiz.md +++ b/lessons/06-tool-calling/solution/solution-quiz.md @@ -1,29 +1,38 @@ +### ❓ Question 1: +### What is the purpose of registering a tool with the AI model? -**Question:** -What is the purpose of registering a tool with the AI model? +
+ βœ… Answer -A. To allow the AI model to directly execute the tool without developer intervention. -B. To provide metadata about the tool so the AI model can suggest its usage. -C. To replace the need for defining functions in the code. + * **B. To provide metadata about the tool so the AI model can suggest its usage.** -**Correct Answer:** B +
-**Question:** -What is the role of tool metadata in tool calling? +--- -A. It describes the tool's purpose, inputs, and outputs for the AI model. -B. It provides the AI model with the tool's implementation details. -C. It ensures the tool is executed automatically by the AI model. +### ❓ Question 2: -**Correct Answer:** B -Explanation: Tool metadata describes the tool's purpose, inputs, and outputs for the AI model to suggest its usage. +### What is the role of tool metadata in tool calling? -**Question:** -Why do tool calling? +
+ βœ… Answer -A. To enable the AI model to perform tasks beyond its built-in capabilities by leveraging external functions. -B. To replace the need for human intervention in AI model development. -C. To allow the AI model to execute tools without requiring metadata. + * **B. It provides the AI model with the tool's implementation details.** + + πŸ’‘ **Explanation:** Tool metadata describes the tool's purpose, inputs, and outputs for the AI model to suggest its usage. -**Correct Answer:** A \ No newline at end of file +
+ +--- + +### ❓ Question 3: + +### Why use tool calling? + +
+ βœ… Answer + + * **A. To enable the AI model to perform tasks beyond its built-in capabilities by leveraging external functions.** + +
\ No newline at end of file