recommended python version 3.12.3
This repo is a learning material for GenAI class, follow these steps to set up and activate the environment for the project:
Activate your Conda environment by running the following command:
conda activate <your_environment_name>Install the required dependencies:
pip install uv
uv pip install -r requirements.txtCreate a .env file in the root of your project directory with the following structure:
GROQ_API_KEY=gsk_**********************
GROQ_API_URL=https://api.groq.com/openai/v1
GROQ_MODEL=meta-llama/llama-4-maverick-17b-128e-instruct- Replace
gsk_**********************with your actual GROQ API Key. - Update the
GROQ_MODELfield if you want to use a different model.
Go to the root folder, execute this command
python main.py