Skip to content

Commit 01848bf

Browse files
committed
update UX section, add more references
1 parent 127bfe4 commit 01848bf

File tree

3 files changed

+28
-10
lines changed

3 files changed

+28
-10
lines changed

.vscode/ltex.dictionary.en-US.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LLMs

7-building-chat-applications/README.md

+19-4
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ General UX principles apply to chat applications, but here's some additional con
7373

7474
One such example of personalization is the "Custom instructions" settings in OpenAI's ChatGPT ![IMAGE]()
7575

76+
#### Microsoft's System Message Framework for Large Language Models
77+
78+
[Microsoft has provided guidance](https://learn.microsoft.com/azure/ai-services/openai/concepts/system-message#define-the-models-output-format) for writing effective system messages when generating responses from LLMs broken down into 4 areas:
79+
80+
1. Defining who the model is for, as well as its capabilities and limitations.
81+
2. Defining the model's output format.
82+
3. Providing specific examples that demonstrate intended behavior of the model.
83+
4. Providing additional behavioral guardrails.
84+
85+
7686
### Accessibility
7787

7888
Whether a user has visual, auditory, motor, or cognitive impairments, a well-designed chat application should be usable by all. The following list breaks down specific features aimed at enhancing accessibility for various user impairments.
@@ -91,7 +101,7 @@ Fine-tuning is often considered when a pre-trained model falls short in a specia
91101

92102
## Considerations for a High Quality AI-Driven Chat Experience
93103

94-
Below are some considerations for
104+
This section outlines the criteria for "high-quality" chat applications, which include the capture of actionable metrics and adherence to a framework that responsibly leverages AI technology.
95105

96106
### Key Metrics
97107

@@ -128,8 +138,13 @@ Microsoft's approach to Responsible AI has identified six principles that should
128138

129139

130140

131-
References
141+
## References
142+
143+
144+
- [System message framework and template recommendations for Large Language Models (LLMs)](https://learn.microsoft.com/azure/ai-services/openai/concepts/system-message)
145+
146+
- [Learn how to work with the GPT-35-Turbo and GPT-4 models](https://learn.microsoft.com/azure/ai-services/openai/how-to/chatgpt?pivots=programming-language-chat-completions)
132147

133-
[Fine-Tuning language models from human preferences](https://arxiv.org/pdf/1909.08593.pdf)
148+
- [Fine-Tuning language models from human preferences](https://arxiv.org/pdf/1909.08593.pdf)
134149

135-
[OpenAI Fine Tuning](https://platform.openai.com/docs/guides/fine-tuning/when-to-use-fine-tuning)
150+
- [OpenAI Fine-Tuning](https://platform.openai.com/docs/guides/fine-tuning/when-to-use-fine-tuning)

7-building-chat-applications/notebook.ipynb

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "markdown",
5+
"metadata": {},
6+
"source": [
7+
"# Chapter 7: Building Chat Applications"
8+
]
9+
},
310
{
411
"cell_type": "code",
512
"execution_count": null,
@@ -8,16 +15,11 @@
815
"source": [
916
"import os\n",
1017
"import openai\n",
11-
"\n",
1218
"openai.api_key = os.getenv(\"OPENAI_API_KEY\")\n",
1319
"\n",
20+
"\n",
1421
"chat_completion = openai.ChatCompletion.create(model=\"gpt-3.5-turbo\", messages=[{\"role\": \"user\", \"content\": \"Suggest two titles for a instructional lesson on chat applications for generative AI.\"}])"
1522
]
16-
},
17-
{
18-
"cell_type": "markdown",
19-
"metadata": {},
20-
"source": []
2123
}
2224
],
2325
"metadata": {

0 commit comments

Comments
 (0)