02 Environment Setup
Setup Ollama¶
Ollama is an open-source application that allows us to create, run and share large language models locally with command-line interface.
- Download Ollama here
- After installation, open a PowerShell window and run the below command.
- To setup other models refer the open-source models listed here
Setup Anaconda¶
- Download and Install Git
- Download and Install Anaconda (or Miniconda if you do not have enough memory).
- Clone the repo and run the below command to install the dependencies.
- After installing the dependencies run the below command to activate the environment.
Note: The prompt in PowerShell window should change from (base) to (llms) as mentioned in the environment.yml file.
- Run
jupyter labin PowerShell to open the Jupyter lab window.
For detailed setup instructions, visit here
Note: If you do not want to run anaconda in your machine. Take a look at Setup Virtualenv for the alternative setup.
Setup Virtualenv¶
Note: This is an alternative setup to Setup Anaconda. If you already have anaconda setup done, you will not need this.
- Download and Install Python. (Compatible version with all dependencies as of 24-09-2025 is Python 3.11).
- Download and install Microsoft C++ Build Tools.
- Clone the repo and run the below command at the root of the directory to install the dependencies.
- Activate the virtual environment by running the below command.
- Run the commands below to install the dependencies.
- Run
jupyter labin PowerShell to open the Jupyter lab window.
Setup OpenAI¶
- Login to OpenAI
- Add payment details here and add the minimum amount of 5$.
- Generate API key here. Remember to save the key, it will be visible only at the time of generation.
Note: To setup API keys on other models such as Claude or Gemini - Claude: https://console.anthropic.com - Gemini: https://ai.google.dev/gemini-api
Setup Environment Variables¶
- Create a
.envfile. - Store the environment variables and secrets such as the OPENAI_API_KEY in the below format.