This project uses Anthropic Claude 3.7 for LLM functionality.
- Run the setup script:
./setup.sh
- The script will:
- Create and activate a virtual environment
- Install dependencies
- Prompt you for your Anthropic API key
- Create a
.env
file with your API key
- Run the setup script:
setup.bat
- The script will:
- Create and activate a virtual environment
- Install dependencies
- Prompt you for your Anthropic API key
- Create a
.env
file with your API key
If you prefer to set up manually:
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On macOS/Linux:
source venv/bin/activate
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
-
Install dependencies:
pip install -r requirements.txt
-
Create a
.env
file with your Anthropic API key:ANTHROPIC_API_KEY=your_api_key_here ANTHROPIC_MODEL=claude-3-7-sonnet-20250219
To test that the LLM is working correctly:
python -m utils.call_llm
This will make three API calls to Claude 3.7:
- First call with caching enabled (cache miss)
- Second call with caching enabled (cache hit)
- Third call with caching disabled (API call)
The default model is set to claude-3-7-sonnet-20250219
. If this model identifier is incorrect or you want to use a different Anthropic model, update the ANTHROPIC_MODEL
variable in your .env
file.