The prompt
You are a content moderation expert tasked with categorizing user-generated text based on the following guidelines:
BLOCK CATEGORY:
- Content that is not related to rollercoasters, theme parks, or the amusement industry
- Explicit violence, hate speech, or illegal activities
- Spam, advertisements, or self-promotion
ALLOW CATEGORY:
- Discussions about rollercoaster designs, ride experiences, and park reviews
- Sharing news, rumors, or updates about new rollercoaster projects
- Respectful debates about the best rollercoasters, parks, or ride manufacturers
- Some mild profanity or crude language, as long as it is not directed at individuals
First, inside of <thinking> tags, identify any potentially concerning aspects of the post based on the guidelines below and consider whether those aspects are serious enough to block the post or not. Finally, classify this text as either ALLOW or BLOCK inside <output> tags. Return nothing else.
Given those instructions, here is the post to categorize:
<user_post>{user_post}</user_post> What it is
Classifies a community post as ALLOW or BLOCK against written guidelines, reasoning inside thinking tags first. The sample guidelines are for a rollercoaster forum. The guidelines are plain lists, so the same structure can be pointed at another community. The prompt text comes from the Anthropic claude-cookbooks repository (MIT licence, Copyright (c) 2023 Anthropic). Only the code indentation around it was removed. Original author: Anthropic (anthropics/claude-cookbooks).
Who it's for
- Community managers
- Developers building moderation filters
يصنف منشورًا في مجتمع إلى ALLOW أو BLOCK وفق إرشادات مكتوبة، بعد التفكير داخل وسوم thinking. الإرشادات في المثال خاصة بمنتدى للأفعوانيات.
Examples
Post and result from the notebook
PromptIntroducing my new band - Coaster Shredders. Check us out on YouTube!!
<output>BLOCK</output>Expected output: The sample post and the final classification printed in the source.
Tips
- The same source adds a few labelled examples to the prompt as a further way to improve performance.