Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM as Judge

A tool for evaluating LLM responses using another LLM as a judge.

Usage

python main.py --model gpt-4 --judge gpt-4o-mini --reasoning --num-times 10 --scale 5 --temperature 0.5

Arguments

  • --model: Model to evaluate (default: gpt-4)
  • --judge: Model to use as judge (default: gpt-4o-mini)
  • --num-times: Number of judgments (default: 10)
  • --scale: Maximum score (default: 5)
  • --reasoning: Include reasoning in judgment (default: False)
  • --temperature: Temperature for API calls (default: 0.5)

Requirements

  • Python 3.7+
  • OpenAI API key
    • Put your OpenAI API key in a file called .env in the root directory, something like this:
      OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    • If you don't have an OpenAI API key, you can get one here.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages