An AI-powered healthcare support system is required to decline specific user requests for individual medical diagnoses, yet simultaneously provide beneficial information for general health education inquiries. What is the OPTIMAL guardrail strategy to achieve this?
Answer & explanation
Correct answer: B
WHY B is correct: A classifier-based intent guardrail accurately distinguishes the user's semantic intent — 'I have chest pain, what's wrong with me?' (seeking diagnosis) versus 'How does the heart pump blood?' (seeking general education). This allows the assistant to refuse and redirect diagnosis requests while remaining useful for educational queries.
WHY NOT A: A keyword blocklist is overly broad and brittle. Terms like 'symptoms' or 'treatment' appear in legitimate general health education questions. Blocking on keywords would incorrectly refuse a large proportion of benign queries.
WHY NOT C: A short max_tokens limit prevents detailed responses but does not prevent the model from partially providing a diagnosis within 50 tokens. It also truncates legitimate general health explanations.
WHY NOT D: Removing medical training data degrades the model's ability to answer general health education questions — which is a core use case. This approach is also impractical for foundation models whose pretraining is fixed.