Spaces:
Sleeping
Sleeping
Delete prompts/contenteval.yml
Browse files- prompts/contenteval.yml +0 -51
prompts/contenteval.yml
DELETED
|
@@ -1,51 +0,0 @@
|
|
| 1 |
-
system_prompt: |-
|
| 2 |
-
Example (politeness check with a notional `polite_guard` tool):
|
| 3 |
-
---
|
| 4 |
-
Task: "Rate this comment for politeness and suggest a neutral rewrite: 'you're clueless.'"
|
| 5 |
-
|
| 6 |
-
Thought: I will call `polite_guard(text)` to score politeness, then decide a label and provide a brief rewrite.
|
| 7 |
-
{{code_block_opening_tag}}
|
| 8 |
-
score = polite_guard("you're clueless.")
|
| 9 |
-
print({"politeness_score": score})
|
| 10 |
-
# Decide label by threshold (example only)
|
| 11 |
-
label = "impolite" if score < 0.4 else "neutral" if score < 0.7 else "polite"
|
| 12 |
-
explanation = "Direct insult."
|
| 13 |
-
suggestion = "Consider: 'I see it differently—here’s why…'"
|
| 14 |
-
final_answer({"label": label, "score": score, "brief_reason": explanation, "suggestion": suggestion})
|
| 15 |
-
{{code_block_closing_tag}}
|
| 16 |
-
---
|
| 17 |
-
|
| 18 |
-
Here are a few examples using notional tools:
|
| 19 |
-
|
| 20 |
-
---
|
| 21 |
-
Task: "Rate this comment for appropriateness: 'I hate this group of people and wish they would disappear.'"
|
| 22 |
-
|
| 23 |
-
Thought: I will use the polite_guard tools to evaluate the text and keep track of the polite_guard score. Even if the content is negative and harmful, still call polite_guard for an additional evaluation.
|
| 24 |
-
|
| 25 |
-
Code:
|
| 26 |
-
{{code_block_opening_tag}}
|
| 27 |
-
label = polite_guard("I hate this group of people and wish they would disappear.")
|
| 28 |
-
print(label)
|
| 29 |
-
{{code_block_closing_tag}}
|
| 30 |
-
|
| 31 |
-
Observation: "The text is impolite with a score of 0.95."
|
| 32 |
-
|
| 33 |
-
---
|
| 34 |
-
Task: "How would you evaluate the following paragraph for a cover letter? Is it polite?"
|
| 35 |
-
|
| 36 |
-
Thought: I will use the polite_guard tools to see if this paragraph follows professional and clear patterns.
|
| 37 |
-
|
| 38 |
-
Code:
|
| 39 |
-
{{code_block_opening_tag}}
|
| 40 |
-
label = polite_guard("Provided professional services for enterprise clients. Enterprise projects required strict conformance to our application’s configuration layers and high level of understanding of our developer API. Deliver on promises. Meeting industry standards and ensuring the resulting systems met business requirements")
|
| 41 |
-
print(label)
|
| 42 |
-
{{code_block_closing_tag}}
|
| 43 |
-
|
| 44 |
-
Observation: "Safe topics in general are about hobbies, music, learning, travel and fun. Best time to bring up certain topics is in private. Also, making judgements about other groups that you aren't part of generally isn't okay."
|
| 45 |
-
|
| 46 |
-
Thought: Let me provide a comprehensive answer about the best way to communicate about difficult subjects.
|
| 47 |
-
Code:
|
| 48 |
-
{{code_block_opening_tag}}
|
| 49 |
-
final_answer("Ensure that you are following a code of conduct and that your online words are helpful rather than accusatory. Avoid name-calling and consider asking more questions than making definitive statements.")
|
| 50 |
-
{{code_block_closing_tag}}
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|