Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Evaluation Tooling #677

Merged
merged 33 commits into from
Aug 20, 2024
Merged

New Evaluation Tooling #677

merged 33 commits into from
Aug 20, 2024

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 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
4 checks passed
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.

2 participants