Skip to content

Commit bce1b80

Browse files
authored
Update 5-exercise.md
1 parent aef65c3 commit bce1b80

File tree

1 file changed

+18
-30
lines changed
  • learn-pr/philanthropies/forging-voices-from-data/includes

1 file changed

+18
-30
lines changed
Lines changed: 18 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,59 @@
1-
### Hands-On Activity: Train and Customize a Dialogue Model in Azure OpenAI Studio
2-
**Time:** 20–25 min
3-
4-
---
5-
61
**Objective:**
7-
Enhance the chatbot created in Module 1 by integrating a custom-trained dialogue model using Azure OpenAI Studio. Use domain-specific data to improve response accuracy, refine tone, and simulate memory through prompt engineering. Test and iterate on the chatbot’s performance in real time.
82

9-
---
3+
Enhance the chatbot created in module 1 by integrating a custom-trained dialogue model using Azure OpenAI Studio. Use domain-specific data to improve response accuracy, refine tone, and simulate memory through prompt engineering. Test and iterate on the chatbot's performance in real time.
4+
5+
**Materials needed:**
106

11-
**Materials Needed:**
127
- Laptop or desktop with internet access
138
- Azure OpenAI Studio access
149
- Dataset of sample dialogues or FAQs (provided or created by learner)
1510

16-
---
11+
## Part 1: Upload and train with custom data
1712

18-
### Part 1: Upload and Train with Custom Data
19-
20-
1. **Prepare a Dataset**
13+
1. **Prepare a dataset**
2114
- Use a collection of relevant user queries and ideal responses (such as customer FAQs, support logs, or product descriptions).
2215
- Format the data in CSV or plain text, with clear input/output pairs.
2316

24-
2. **Upload the Dataset**
17+
2. **Upload the dataset**
2518
- In Azure OpenAI Studio, navigate to your chatbot project.
2619
- Upload your dataset under the **Files** section and connect it to your deployment using the Playground.
2720

28-
3. **Apply Supervised Learning via Prompt Examples**
21+
3. **Apply supervised learning via prompt examples**
2922
- Provide a few sample dialogues using system + user + assistant messages to demonstrate ideal behavior.
3023
Example:
3124
```
3225
User: "How do I reset my password?"
3326
Assistant: "To reset your password, go to the login page and click 'Forgot Password.' Follow the instructions sent to your email."
3427
```
3528
36-
---
37-
38-
### Part 2: Customize Tone and Interaction Style
29+
## Part 2: Customize tone and interaction style
3930
40-
1. **Set a System Prompt**
41-
- Define the assistants role and tone.
31+
1. **Set a system prompt**
32+
- Define the assistant's role and tone.
4233
Example:
43-
*You are a friendly and professional assistant for an online bookstore. Respond with clear, concise, and warm answers.*
34+
*"You are a friendly and professional assistant for an online bookstore. Respond with clear, concise, and warm answers."*
4435
45-
2. **Simulate Context Awareness**
36+
2. **Simulate context awareness**
4637
- Create a prompt that includes conversation history, enabling the model to handle follow-up questions.
4738
Example:
48-
*The user previously asked about shipping policies. Now they are asking, How long does express shipping take?’”*
39+
*"The user previously asked about shipping policies. Now they are asking, 'How long does express shipping take?'"*
4940
50-
3. **Test and Iterate**
41+
3. **Test and iterate**
5142
- Interact with your chatbot in the Playground.
5243
- Ask questions covered in your dataset and test how it handles follow-ups.
5344
- Tweak your examples or prompt instructions to improve continuity and engagement.
5445
55-
---
56-
57-
### Part 3: Evaluate and Improve
46+
## Part 3: Evaluate and improve
5847
59-
1. **Identify Strengths and Gaps**
48+
1. **Identify strengths and gaps**
6049
- Does the chatbot handle follow-ups appropriately?
6150
- Does it reflect the desired tone and style?
6251
- Are any answers too vague, repetitive, or off-topic?
6352
64-
2. **Refine and Re-Test**
53+
2. **Refine and re-test**
6554
- Update the dataset, adjust the prompt, or provide additional sample dialogues.
6655
- Test variations in the Playground until the responses align with expectations.
6756
68-
---
57+
## Expected outcome
6958
70-
**Expected Outcome:**
7159
Learners will transform a basic chatbot into a refined, domain-specific assistant by uploading a custom dataset, configuring system prompts, and simulating context awareness. This activity demonstrates the power of Azure OpenAI Studio for training and fine-tuning dialogue behavior to better meet user needs and organizational goals.

0 commit comments

Comments
 (0)