Skip to content

Commit 929e58d

Browse files
authored
Merge pull request #48856 from wwlpublish/02d3d5c721f3242efbe343f5407299c233decbfe243d63886f9d903f985dd1ab-live
Modules/M04-apply-filters-on-functions
2 parents 390a10e + c5312b4 commit 929e58d

20 files changed

+614
-235
lines changed

.openpublishing.redirection.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41020,6 +41020,26 @@
4102041020
"source_path": "learn-pr/wwl-azure/create-plugins-semantic-kernel/8-exercise-save-prompts-files.md",
4102141021
"redirect_url": "/training/modules/create-plugins-semantic-kernel/",
4102241022
"redirect_document_id": false
41023+
},
41024+
{
41025+
"source_path": "learn-pr/wwl-azure/combine-prompts-functions/2-call-functions-within-prompts.md",
41026+
"redirect_url": "/training/modules/combine-prompts-functions/",
41027+
"redirect_document_id": false
41028+
},
41029+
{
41030+
"source_path": "learn-pr/wwl-azure/combine-prompts-functions/3-exercise-use-nested-functions-song-suggestions.md",
41031+
"redirect_url": "/training/modules/combine-prompts-functions/",
41032+
"redirect_document_id": false
41033+
},
41034+
{
41035+
"source_path": "learn-pr/wwl-azure/combine-prompts-functions/4-knowledge-check.md",
41036+
"redirect_url": "/training/modules/combine-prompts-functions/",
41037+
"redirect_document_id": false
41038+
},
41039+
{
41040+
"source_path": "learn-pr/wwl-azure/combine-prompts-functions/5-summary.md",
41041+
"redirect_url": "/training/modules/combine-prompts-functions/7-summary",
41042+
"redirect_document_id": false
4102341043
}
4102441044
]
4102541045
}

learn-pr/wwl-azure/combine-prompts-functions/1-introduction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Introduction
44
metadata:
55
title: Introduction
66
description: "Introduction"
7-
ms.date: 07/04/2024
7+
ms.date: 01/27/2025
88
author: wwlpublish
99
ms.author: buzahid
1010
ms.topic: unit

learn-pr/wwl-azure/combine-prompts-functions/2-call-functions-within-prompts.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.combine-prompts-functions.understand-prompt-injections
3+
title: Understand prompt injections
4+
metadata:
5+
title: Understand prompt injections
6+
description: "Understand prompt injections"
7+
ms.date: 01/27/2025
8+
author: wwlpublish
9+
ms.author: buzahid
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 10
14+
content: |
15+
[!include[](includes/2-understand-prompt-injections.md)]
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.combine-prompts-functions.exercise-apply-trust-filters
3+
title: Exercise - Apply trust filters
4+
metadata:
5+
title: Exercise - Apply trust filters
6+
description: "Exercise - Apply trust filters"
7+
ms.date: 01/27/2025
8+
author: wwlpublish
9+
ms.author: buzahid
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 10
14+
content: |
15+
[!include[](includes/3-exercise-apply-trust-filters.md)]

learn-pr/wwl-azure/combine-prompts-functions/3-exercise-use-nested-functions-song-suggestions.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.combine-prompts-functions.filter-invoked-functions
3+
title: Filter invoked functions
4+
metadata:
5+
title: Filter invoked functions
6+
description: "Filter invoked functions"
7+
ms.date: 01/27/2025
8+
author: wwlpublish
9+
ms.author: buzahid
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 10
14+
content: |
15+
[!include[](includes/4-filter-invoked-functions.md)]

learn-pr/wwl-azure/combine-prompts-functions/4-knowledge-check.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.combine-prompts-functions.exercise-add-filter-service-to-kernel
3+
title: Exercise - Add a filter service to the kernel
4+
metadata:
5+
title: Exercise - Add a filter service to the kernel
6+
description: "Exercise - Add a filter service to the kernel"
7+
ms.date: 01/27/2025
8+
author: wwlpublish
9+
ms.author: buzahid
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 8
14+
content: |
15+
[!include[](includes/5-exercise-add-filter-service-to-kernel.md)]
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
### YamlMime:ModuleUnit
2+
uid: learn.wwl.combine-prompts-functions.knowledge-check
3+
title: Knowledge check
4+
metadata:
5+
title: Knowledge check
6+
description: "Knowledge check"
7+
ms.date: 01/27/2025
8+
author: wwlpublish
9+
ms.author: buzahid
10+
ms.topic: unit
11+
ms.custom:
12+
- N/A
13+
durationInMinutes: 3
14+
quiz:
15+
title: "Check your knowledge"
16+
questions:
17+
- content: "What can an attacker achieve through prompt injection attacks?"
18+
choices:
19+
- content: "Attacker can increase the processing speed of the AI model."
20+
isCorrect: false
21+
explanation: "Incorrect. Prompt injection attacks exploit vulnerabilities in the input, not performance."
22+
- content: "Attacker can manipulate the AI’s behavior by altering input prompts and injecting malicious instructions."
23+
isCorrect: true
24+
explanation: "Correct. Prompt injections can cause the AI to perform unintended or harmful actions."
25+
- content: "Attacker can enhance the quality of the AI-generated content."
26+
isCorrect: false
27+
explanation: "Incorrect. Prompt injections compromise the integrity and accuracy of the AI’s output."
28+
- content: "How can developers control which content is trusted in the Semantic Kernel SDK?"
29+
choices:
30+
- content: "Developers must trust all content by default for the system to function."
31+
isCorrect: false
32+
explanation: "Incorrect. Developers can specify which content should be trusted."
33+
- content: "Developers can set AllowUnsafeContent = true to trust specific input variables or function call results."
34+
isCorrect: true
35+
explanation: "Correct. This allows developers to selectively trust certain elements while maintaining security."
36+
- content: "Developers cannot configure trusted content; the SDK automatically handles everything."
37+
isCorrect: false
38+
explanation: "Incorrect. Developers can configure the trust level of input variables or function results."
39+
- content: "Which of the following is a feature of the Function Invocation Filter in the Semantic Kernel SDK?"
40+
choices:
41+
- content: "It can modify prompts before submission to the AI model."
42+
isCorrect: false
43+
explanation: "Incorrect. This is the role of the Prompt Render Filter, not the Function Invocation Filter."
44+
- content: "It automatically terminates the function invocation process."
45+
isCorrect: false
46+
explanation: "Incorrect. This is the role of the Auto Function Invocation Filter."
47+
- content: "It can log function invocations and validate actions before and after execution."
48+
isCorrect: true
49+
explanation: "Correct. The Function Invocation Filter can log actions and validate them."

0 commit comments

Comments
 (0)