mirror of
https://github.com/hoshikawa2/nemo_guardrails_configuration.git
synced 2026-07-09 17:04:20 +00:00
Funcional
This commit is contained in:
18
final_pkg/company_nemo_guardrails/prompts/oos.py
Normal file
18
final_pkg/company_nemo_guardrails/prompts/oos.py
Normal file
@@ -0,0 +1,18 @@
|
||||
def build_oos_prompt(text):
|
||||
return f"""
|
||||
Verifique se o texto está fora do escopo de Telecom.
|
||||
|
||||
Texto:
|
||||
{text}
|
||||
|
||||
Fora de escopo:
|
||||
- política
|
||||
- religião
|
||||
- concorrentes
|
||||
|
||||
Responda JSON:
|
||||
{{
|
||||
"allowed": true/false,
|
||||
"label": "IN_SCOPE/OUT_OF_SCOPE"
|
||||
}}
|
||||
"""
|
||||
Reference in New Issue
Block a user