Evaluating the Pre-Consultation Ability of LLMs using Diagnostic Guidelines
openai, anthropic, hf models
- Add your keys to
key.env:OPENAI_API_KEY,ANTHROPIC_API_KEY,HF_TOKEN. - Add your custom doctor agent prompt in
./prompt/doctor_prompt.txt. - Run the following script.
sh run.sh [model_name] [num_turns] [language] [num_processes] [batch_size] [cut_turns]
model_name: name of the model to be evaluated as the doctor agent that implements pre-consultation(default = gpt-4o-mini).num_turns: number of pre-consultation turns(dafaut = 5).language: korean or english(default = korean).num_processes: number of thread to execute api calls(default = 40).batch_size: batch size when evaluating model loaded from huggingface(default = 4).cut_turns: (optional) if you wish to use existing simulation dataset ofnum_turnsand evaluate the dialogue of less turns(cut_turns)(default =num_turns).