Skip to content

Conversation

@drazvan
Copy link
Collaborator

@drazvan drazvan commented Aug 14, 2024

This PR adds new tooling for evaluating a guardrail configuration.
NOTE: documentation is minimal; still WIP.


Below is a quick overview for the nemoguardrails eval CLI.

Run Evaluations

To run a new evaluation with a guardrail configuration:

nemoguardrails eval run -g <GUARDRAIL_CONFIG_PATH> -o <OUTPUT_PATH>

Check Compliance

To check the compliance with the policies, you can use the LLM-as-a-judge method.

nemoguardrails eval check-compliance --llm-judge=<LLM_MODEL_NAME> -o <OUTPUT_PATH>

You can use any LLM supported by NeMo Guardrails.

models:
  - type: llm-judge
    engine: openai
    model: gpt-4

  - type: llm-judge
    engine: nvidia_ai_endpoints
    model: meta/llama3-70b-instruct

Review and Analyze

To review and analyze the results, launch the NeMo Guardrails Eval UI:

nemoguardrails eval ui

drazvan added 29 commits July 29, 2024 11:00
@drazvan drazvan marked this pull request as draft August 14, 2024 12:49
@drazvan drazvan marked this pull request as ready for review August 20, 2024 12:57
@drazvan drazvan merged commit d25e379 into develop Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants