> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/guardrails/llms.txt.
> For full documentation content, see https://docs.nvidia.com/nemo/guardrails/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/guardrails/_mcp/server.

# nemoguardrails.library.factchecking.align_score.actions

## Module Contents

### Functions

| Name                                                                                                                        | Description                                                                 |
| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| [`alignscore_check_facts`](#nemoguardrails-library-factchecking-align_score-actions-alignscore_check_facts)                 | Checks the facts for the bot response using an information alignment score. |
| [`alignscore_check_facts_mapping`](#nemoguardrails-library-factchecking-align_score-actions-alignscore_check_facts_mapping) | Mapping for alignscore\_check\_facts.                                       |

### Data

[`log`](#nemoguardrails-library-factchecking-align_score-actions-log)

### API

```python
nemoguardrails.library.factchecking.align_score.actions.alignscore_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,
    kwargs = {}
)
```

async

Checks the facts for the bot response using an information alignment score.

```python
nemoguardrails.library.factchecking.align_score.actions.alignscore_check_facts_mapping(
    result: float
) -> bool
```

Mapping for alignscore\_check\_facts.

Expects result to be a numeric score (float) representing the factual accuracy.
Returns True (i.e. block the output) if the score is below 0.5.

```python
nemoguardrails.library.factchecking.align_score.actions.log = logging.getLogger(__name__)
```