nemoguardrails.library.autoalign.actions
Module Contents
Functions
Data
API
Calls Autoalign Factchecker API and checks if the user message is factually answered by the bot message
Mapping for autoalign_factcheck_output_api.
Expects result to be a numeric score. Returns True (block) if the score is below the default factcheck threshold.
Checks the groundedness for the text using the given documents and provides a fact-checking score
Calls AutoAlign groundedness check API and checks whether the bot message is factually grounded according to given documents
Mapping for autoalign_groundedness_output_api.
Expects result to be a numeric score. Returns True (block) if the score is below the default groundedness threshold.
Checks whether the given text passes through the applied guardrails.
Calls AutoAlign API for the user message and guardrail configuration provided
Calls AutoAlign API for the bot message and guardrail configuration provided
Mapping for autoalign_output_api.
Expects result to be a dict with a key “guardrails_triggered” (a boolean). Returns True (block) if guardrails were triggered.
Processes the output provided AutoAlign API