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:
16
final_pkg/company_nemo_guardrails/prompts/gnd.py
Normal file
16
final_pkg/company_nemo_guardrails/prompts/gnd.py
Normal file
@@ -0,0 +1,16 @@
|
||||
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"
|
||||
}}
|
||||
"""
|
||||
Reference in New Issue
Block a user