mirror of
https://github.com/hoshikawa2/nemo_guardrails_configuration.git
synced 2026-07-09 17:04:20 +00:00
16 lines
240 B
Python
16 lines
240 B
Python
def build_gnd_prompt(resposta, context):
|
|
return f"""
|
|
Verifique se a resposta está fundamentada.
|
|
|
|
Resposta:
|
|
{resposta}
|
|
|
|
Base:
|
|
{context.get("chunks_rag", [])}
|
|
|
|
Responda:
|
|
{{
|
|
"allowed": true/false,
|
|
"label": "GROUNDED/UNGROUNDED"
|
|
}}
|
|
""" |