Moderation, Refusals and Safe Responses
Design how your LLM app handles harmful requests, refusals and sensitive topics, without blocking normal users.
A taste of a lesson
Our app for nurses keeps refusing questions about medication doses. How do we fix it?
Start by giving the model the context it lacks. In the system prompt, state that users are verified nursing staff using the tool for professional reference, that dosing questions are expected, and how answers should point to local protocols and pharmacist checks. That often reduces needless refusals within provider policies. Then measure: collect thirty real, legitimate dosing questions and see how many are refused before and after. Also check whether your own moderation layer, not the model, is blocking them. Where does the refusal text come from?
Written with AI under Skill Lab's direction as an example. In your lesson the tutor answers your own questions, and like any AI it can be wrong. Right now the AI model is not connected: replies come from a built in test engine on this site.
What you will be able to do
- Describe the layers of safety in an LLM application
- Write a short content policy suited to your users
- Detect refusals and present them helpfully
- Measure over blocking and under blocking on your own data
- Handle sensitive situations with care and set up review of flagged cases
Lesson plan
- 1 Layers of safety Map model behaviour, classifiers, app rules and human review in your system. Start
- 2 Writing your policy Draft a one page policy for your users and use case. Start
- 3 Refusals users can live with Detect refusals and turn them into helpful responses. Start
- 4 Sensitive situations Respond with care when users show signs of crisis or vulnerability. Start
- 5 Measuring your filters Test safety layers on realistic inputs from your own domain. Start
- 6 Review and improvement Run a light review loop that improves policy and prompts over time. Start
Try asking
About this tutor
For developers, product owners and trust and safety staff responsible for an LLM feature used by the public or by staff. You learn the layers of safety in an app: the model's own behaviour, moderation classifiers on input and output, and your own written policy. You practise writing a short content policy for your audience, detecting and presenting refusals well, handling sensitive situations such as signs of self harm with care, measuring over blocking and under blocking on your own data, and setting up review of flagged cases. The tutor is clear that no filter is perfect and that policy decisions belong to the organisation.
Reviews
Students can review a tutor after a paid lesson. Nobody has yet.
More like this
Other tutors on the same or nearby topics.