> For the complete documentation index, see [llms.txt](https://stackpi-intelligent.gitbook.io/stackpi-intelligent/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stackpi-intelligent.gitbook.io/stackpi-intelligent/alpha-codium/setup.md).

# Setup

**Installation Guide**

1. **Virtual Environment Setup:**
   * Create and activate a virtual environment.
   * Install dependencies:

     Copy

     Copy

     ```
     pip install -r requirements.txt
     ```
2. **API Key Configuration:**
   * Copy `alpha_codium/settings/.secrets_template.toml` to `.secrets.toml`.
   * Insert your OpenAI API key:

     Copy

     Copy

     ```
     [openai]
     key = "YOUR_API_KEY"
     ```
3. **Dataset Preparation:**
   * Download and extract the CodeContest dataset from [Hugging Face](https://huggingface.co/datasets/talrid/CodeContests_valid_and_test_AlphaCodium/blob/main/codecontests_valid_and_test_processed_alpha_codium.zip).
   * Place the extracted folder in the project root directory.
