You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 7-building-chat-applications/README.md
+19-4
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,16 @@ General UX principles apply to chat applications, but here's some additional con
73
73
74
74
One such example of personalization is the "Custom instructions" settings in OpenAI's ChatGPT ![IMAGE]()
75
75
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
+
76
86
### Accessibility
77
87
78
88
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
91
101
92
102
## Considerations for a High Quality AI-Driven Chat Experience
93
103
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.
95
105
96
106
### Key Metrics
97
107
@@ -128,8 +138,13 @@ Microsoft's approach to Responsible AI has identified six principles that should
128
138
129
139
130
140
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)
132
147
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)
"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.\"}])"
0 commit comments