nemoguardrails.eval.eval
Module Contents
Functions
Data
API
Extracts an InteractionLog object from an GenerationLog object.
Extract the list of interactions that should be run.
Creates the output objects with no data.
Extract a simplified span view from the log of activated rails.
Loads the existing evaluation output from the provided path.
If existing data is found, it is automatically loaded. If the evaluation config has changed meanwhile, it will try to reuse as much as possible. For example, if a new interaction is added, the output will keep all the data from the previous interactions.
Run a guardrail evaluation.
Parameters:
Path to a directory containing eval configuration files.
Path to a directory containing the guardrail configuration.
Output directory for predictions. Defaults to None.
Output format. Supported values are “yaml” and “json”. Defaults to “yaml”.
Number degree of parallelism to use. Defaults to 1.