mirror of
https://github.com/hoshikawa2/nemo_guardrails_configuration.git
synced 2026-07-09 17:04:20 +00:00
First Commit
This commit is contained in:
17
nemo_guardrails_tracing_project/src/prompts/tox.py
Normal file
17
nemo_guardrails_tracing_project/src/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
|
||||
- NORMAL
|
||||
|
||||
Responda JSON:
|
||||
{{
|
||||
"allowed": true/false,
|
||||
"label": "TOXICO/NORMAL"
|
||||
}}
|
||||
"""
|
||||
Reference in New Issue
Block a user