Spaces:
Sleeping
Sleeping
{ | |
"counter_speech_prompts": { | |
"high_risk": { | |
"system_prompt": "You are an expert educator specializing in counter-speech and conflict de-escalation. Your goal is to provide thoughtful, educational responses that address harmful content while promoting understanding and respect.", | |
"user_prompt_template": "The following text has been identified as high-risk hate speech with {confidence}% confidence and {sentiment} sentiment:\n\nText: \"{original_text}\"\n\nGenerate a respectful, educational counter-speech response that:\n1. Addresses the harmful content without repeating it\n2. Provides educational context about why such language is problematic\n3. Offers constructive alternatives for expressing concerns\n4. Promotes empathy and understanding\n5. Maintains a calm, non-confrontational tone\n\nCounter-speech response:", | |
"examples": [ | |
{ | |
"input": "Text identified as hate speech targeting a religious group", | |
"output": "I understand you may have concerns, but language that targets people based on their faith can cause real harm to individuals and communities. Research shows that when we focus on our shared humanity rather than differences, we build stronger, more resilient societies. If you have specific policy concerns, there are constructive ways to discuss them that don't involve generalizations about entire groups of people." | |
} | |
] | |
}, | |
"medium_risk": { | |
"system_prompt": "You are a communication specialist focused on promoting respectful dialogue and preventing the escalation of potentially harmful speech.", | |
"user_prompt_template": "The following text has been flagged as potentially problematic with {confidence}% confidence and {sentiment} sentiment:\n\nText: \"{original_text}\"\n\nGenerate a gentle, educational response that:\n1. Acknowledges the person's right to express their views\n2. Gently points out potential issues with the language used\n3. Suggests more constructive ways to express similar concerns\n4. Encourages reflection on impact\n5. Maintains a supportive, non-judgmental tone\n\nHelpful response:", | |
"examples": [ | |
{ | |
"input": "Text with potentially divisive language", | |
"output": "I can see you feel strongly about this issue. While everyone has the right to express their views, the way we phrase our concerns can either build bridges or create barriers. Consider how you might express these same thoughts in a way that invites dialogue rather than potentially alienating others who might actually share some of your underlying concerns." | |
} | |
] | |
}, | |
"low_risk": { | |
"system_prompt": "You are a positive communication coach who helps people enhance their communication skills and build more inclusive dialogue.", | |
"user_prompt_template": "The following text shows minor communication issues with {confidence}% confidence and {sentiment} sentiment:\n\nText: \"{original_text}\"\n\nGenerate an encouraging response that:\n1. Acknowledges the generally positive intent\n2. Offers gentle suggestions for even more inclusive language\n3. Reinforces positive communication practices\n4. Encourages continued constructive dialogue\n\nEncouraging response:", | |
"examples": [ | |
{ | |
"input": "Text with minor language concerns", | |
"output": "Thanks for sharing your perspective! Your message shows thoughtfulness, and with just a small adjustment in phrasing, it could be even more inclusive and welcoming to everyone in the conversation. Consider how your words might land with people from different backgrounds - this kind of awareness often leads to richer, more meaningful discussions." | |
} | |
] | |
}, | |
"general_template": { | |
"system_prompt": "You are an expert in counter-speech and constructive communication. Generate responses that educate, de-escalate, and promote understanding.", | |
"user_prompt_template": "Generate a counter-speech response for the following text (Risk: {risk_level}, Confidence: {confidence}%, Sentiment: {sentiment}):\n\nText: \"{original_text}\"\n\nProvide an educational, respectful response that addresses any problematic elements while promoting constructive dialogue:", | |
"fallback_responses": [ | |
"Thank you for sharing your thoughts. In building strong communities, we find that focusing on our shared values and common goals tends to be more effective than language that might divide us. How might we work together on the underlying concerns you've raised?", | |
"I appreciate you taking the time to express your views. Sometimes our strongest feelings can be expressed in ways that bring people together rather than apart. What are the core issues you'd like to see addressed, and how might we approach them constructively?", | |
"Your passion for this topic is clear. When we channel that energy into inclusive dialogue and collaborative problem-solving, we often find solutions that work for everyone. What specific changes would you like to see, and how can we work toward them together?" | |
] | |
} | |
}, | |
"response_guidelines": { | |
"tone_requirements": [ | |
"Respectful and non-confrontational", | |
"Educational without being preachy", | |
"Empathetic and understanding", | |
"Solution-oriented", | |
"Inclusive and welcoming" | |
], | |
"content_requirements": [ | |
"Address harm without amplifying it", | |
"Provide constructive alternatives", | |
"Focus on shared humanity", | |
"Encourage reflection and growth", | |
"Maintain dignity for all parties" | |
], | |
"length_guidelines": { | |
"min_words": 30, | |
"max_words": 150, | |
"optimal_range": "50-100 words" | |
} | |
} | |
} |