This repository includes codes for prompting LLMs for task construction and evaluating cognitive habits of Large Reasoning Models.
-
Before running the scripts, you should first configue your API keys in the
.envfile. -
You are advised to install the suitable libraries according to
conda env create -f environment.yaml- assets
- instructions: the final version of tasks used in the paper
- src
- llm.py: unified interfaces for querying LRMs through API
- tools.py: mainly the code for habit extraction
- .env: configuration file
- main.ipynb: codes for eliciting CoTs and extracting cognitive habits
- task-construction.ipynb: principles and codes for generating tasks for the 10 non-reasoning habits
For replication of cognitive habit evaluation, you can just rush to the main.ipynb.
If you are interested in supporting more models, please kindly add necessary implementations for querying the corresponding LLM APIs (e.g., OpenAI or vLLM) and parsing CoTs.