nemoguardrails.library.self_check.facts.actions
nemoguardrails.library.self_check.facts.actions
This page is for version v0.24.1.
For other versions, use one of these documentation indexes:
- Latest (default): https://docs.nvidia.com/nemo/guardrails/latest/llms.txt
- v0.24.1: https://docs.nvidia.com/nemo/guardrails/v0.24.1/llms.txt
- v0.24.0: https://docs.nvidia.com/nemo/guardrails/v0.24.0/llms.txt
- v0.23.0: https://docs.nvidia.com/nemo/guardrails/v0.23.0/llms.txt
- v0.22.0: https://docs.nvidia.com/nemo/guardrails/v0.22.0/llms.txt
Module Contents
Functions
| Name | Description |
|---|---|
_fact_check_outcome | - |
self_check_facts | Checks the facts for the bot response by appropriately prompting the base llm. |
Data
API
nemoguardrails.library.self_check.facts.actions._fact_check_outcome(accuracy: float
nemoguardrails.library.self_check.facts.actions.self_check_facts(llm_task_manager: nemoguardrails.llm.taskmanager.LLMTaskManager,context: typing.Optional[dict] = None,llm: typing.Optional[nemoguardrails.types.LLMModel] = None,config: typing.Optional[nemoguardrails.RailsConfig] = None,relevant_chunks: typing.Optional[list] = None,bot_message: typing.Optional[str] = None,kwargs = {}
async
Checks the facts for the bot response by appropriately prompting the base llm.
nemoguardrails.library.self_check.facts.actions.FACT_CHECK_THRESHOLD = 0.5
nemoguardrails.library.self_check.facts.actions.log = logging.getLogger(__name__)