
How to Benchmark the 2023 CSAT
We created experimental code to benchmark the 2023 CSAT! If you want to find out roughly how well a model you are curious about performs before submitting it, give it a try!
🏁 Quick Start

-
Install
AutoRAG.pip install AutoRAG -
Set the OpenAI API KEY as an environment variable in
.env. -
Run
make_autorag_dataset.ipynbto convert the JSON data into an AutoRAG dataset. -
Configure the prompt and the models to add in
autorag_config.yaml. How to configure -
Run
autorag_run.py.python ./korean_sat_mini_test/autorag_run.py --qa_data_path ./data/autorag/qa_2023.parquet --corpus_data_path ./data/autorag/corpus_2023.parquet- If you want to change the model and prompt before running, refer to the explanation below
-
Check the results in the
autorag_project_dirfolder. -
Run
grading_report_card.ipynbto check your scorecard!- The scorecard results are saved in the
data/result/folder!
- The scorecard results are saved in the
🤷 How to change prompt and model?

- Open the
autorag_config.yamlfile in thekorean_sat_mini_testfolder.
[Case 1] How to edit the prompt
- In
autorag_config.yaml, modify the content ofpromptin theprompt_makersection undernode_type.
- node_type: prompt_maker
strategy:
metrics:
- metric_name: kice_metric
modules:
- module_type: fstring
prompt:
- |
Answer the given question.
Read paragraph, and select only one answer between 5 choices.
paragraph :
{retrieved_contents}
question of problem :
{query}
Answer : 3
[Case 2] How to configure the YAML file when you want to change the model
- You need to modify the
Modulessection in thegeneratorsection ofnode_type.
- Set
module_typetoopenai_llm - Freely set OpenAI models in
llm
- node_type: generator
strategy:
metrics:
- metric_name: kice_metric
modules:
- module_type: openai_llm
llm: [gpt-4o-mini, gpt-4o]
batch: 5
- Set
module_typetollama_index_llm - Set
llmtohuggingfacellm - Freely set Hugging Face models in
model
- node_type: generator
strategy:
metrics:
- metric_name: kice_metric
modules:
- module_type: llama_index_llm
llm: huggingfacellm
model: HumanF-MarkrAI/Gukbap-Qwen2-7B
If you want to learn more about customizing the YAML file beyond Hugging Face models, please refer to the official AutoRAG documentation!
📒 Notice
- The prompts currently included in the experiment are minimal prompts and differ from the prompts shown on the benchmark leaderboard. Therefore, the benchmark leaderboard results and performance in actual testing may differ.
- If you want to modify the prompt, edit it in the YAML file!