mirror of
https://github.com/hoshikawa2/nemo_guardrails_configuration.git
synced 2026-07-10 01:14:19 +00:00
Funcional
This commit is contained in:
17
final_pkg/company_nemo_guardrails/prompts/tox.py
Normal file
17
final_pkg/company_nemo_guardrails/prompts/tox.py
Normal file
@@ -0,0 +1,17 @@
|
||||
def build_tox_prompt(text):
|
||||
return f"""
|
||||
Classifique o texto abaixo:
|
||||
|
||||
Texto:
|
||||
{text}
|
||||
|
||||
Classifique como:
|
||||
- TOXICO: Apenas se encontrar palavras ofensivas ou condenatórias
|
||||
- NORMAL
|
||||
|
||||
Responda JSON:
|
||||
{{
|
||||
"allowed": true/false,
|
||||
"label": "TOXICO/NORMAL"
|
||||
}}
|
||||
"""
|
||||
Reference in New Issue
Block a user