π Welcome to the AI Engineering Series!
This repository contains all code and resources for the AI Engineering Essentials, Mastery, and Expert Track courses. Whether you're a beginner or an advanced AI practitioner, this series will guide you through building, using, and deploying Generative AI models.
This is a very practical series of courses where we will be learning by building. Although we will cover some minimal theory to have better understanding of what we are building, we won't focus too much on the theoretical aspects of Gen AI and AI in general like the attention machanism, how GPT models work, etc.
π¬ Join our AI Community for updates and support. SuperDataScience Community
Course Instructor: Shaheer Airaj Ahmed
If you have any questions or need assistance, feel free to reach out! You can connect with me on the following socials. I would love to help you out in your learning journey towards mastering AI Engineering π.
I would particularly welcome any suggestions you might have regarding the courses and if there are any improvements I can make or additional material you would like to see. Feel free to send me any queries you might have.
- π§ Reach out via GitHub Issues or Discussions.
- Leave a post in the SuperDataScience Community platform. AI Engineering Q&A
- Email: shaheer@superdatascience.com
If you have questions around your career, if you are looking to transition into the data field, have more general questions about Data Science, Machine Learning and AI, please do reach out to me using any of the below socials. I would love to help out in any way that I can π.
- Email: shaheerairajahmed@gmail.com
- LinkedIn: linkedin.com/in/shaheerairaj
- GitHub: github.com/shaheerairaj
Each course is organized into its own directory.
π Current Courses Available:
- π’ AI Engineering Essentials β Part 1
- π’ AI Engineering Essentials β Part 2
- π’ AI Engineering Intermediate β Part 1
- π AI Engineering Intermediate β Part 2 (Coming Soon)
- π AI Engineering Advanced β Part 1 (Coming Soon)
- π AI Engineering Advanced β Part 2 (Coming Soon)
π Explore each course to find notebooks, scripts, exercises and contributions from other students.
We welcome contributions from the community! Please read our CONTRIBUTING.md file for detailed instructions on how to contribute to this project, including how to upload your example exercises.
Thank you for your interest in contributing to the AI Engineering Series!
Follow these steps to set up your local environment and start coding.
Download and install Git from the official website:
Verify installation by running the following comand in the terminal:
git --versionThis will create a copy of this repo on your personal GitHub account
Open up a terminal and head over into a folder where you want to place this course folder in to:
- On Windows:
cd 'C:\Users\user\Documents'- On Mac and Linux:
cd ~/Documents/ProjectsClone the repo down to your local machine by using the following command, be sure to replace <YOUR_GITHUB_USERNAME> with your actual GitHub username.
git clone https://github.com/YOUR_GITHUB_USERNAME/ai-engineering.git
cd ai-engineeringOpen up your terminal and navigate inside the ai-engineering repo which may look something like this:
- On Windows:
cd 'C:\Users\user\Documents\ai-engineering'- On Mac and Linux:
cd ~/Documents/Projects/ai-engineeringBe sure to replace the path to the ai-engineering course with the actual file path where the repo was cloned.
Create and activate your virtual environment.
- On Windows
python -m venv ai_env
ai_env\Scripts\activateNote to windows users, when trying to activate your virtual environment, you may run into an error looking something like this
ai_env\Scripts\activate : File C:\Users\<username>\OneDrive\Desktop\ai-engineering\ai_env\Scripts\Activate.ps1 cannot be loaded because running scripts is disabled on this system.
For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170
The reason for this is because by default, Microsoft disables the ability to execute the scripts. To overcome this,
- Open up PowerShell (terminal) as admin
- Run the following command:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser - Close and re-open PowerShell (restart your machine if you have to)
- Try activating the environment again by:
- Navigating to the root directory of the project (the ai-engineering folder) using the terminal
- Run
ai_env/Scripts/Activate
An issue has alread been raised for this which you can find here
- On MacOS/Linux
python -m venv ai_env
source ai_env/bin/activateYou can confirm that the environment is activate by looking at the far left of your terminal. You should see the name of your environment appear.
Install Dependencies
Dependencies for all courses are listed in requirements.txt. Install them (once you have activate your virtual environment) using the following command:
pip install -r requirements.txtNote that the packages will be installed in whatever environment is currently active. If your environment is not active and you run the command below, these packages will be installed on your base environment which is not ideal. Always make sure your ai_env is activated before running the pip install command.
Launch Jupyter Lab From the anaconda prompt while you are in the root of the course repo, type in the following command to open jupyter lab:
jupyter labThen open the relevant .ipynb notebook in the Jupyter Lab interface.
Launch a Code Editor Alternatively, you can use the following tools for running both scripts as well as notebooks:
- Microsoft VS Code (which is my personal favorite). You can find the link to install it here
- PyCharm
- Cursor
If you prefer to use Anaconda instead of Python virtual environments, follow these steps:
Install Anaconda
- Download and install Anaconda for your OS.
- Verify installation:
conda --version
Create a New Conda Environment
- Start up the anaconda prompt
- Navigate to the root of the course repo. This should look something like this:
- On Windows:
cd 'C:\Users\user\Documents\ai-engineering'- On Mac and Linux:
cd ~/Documents/Projects/ai-engineeringCreate and then activate the environment.
conda env create -f environment.yml
conda activate ai_envLaunch Jupyter Lab From the anaconda prompt while you are in the root of the course repo, type in the following command to open jupyter lab:
jupyter labThen open the relevant .ipynb notebook in the Jupyter Lab interface.
Launch a Code Editor Alternatively, you can use the following tools for running both scripts as well as notebooks:
- Microsoft VS Code (which is my personal favorite). You can find the link to install it here
- PyCharm
- Cursor
We will be using a lot of jupyter notebooks (which end with .ipynb) in this course but as we start moving towards more advanced cconcepts and courses, we will begin using more of .py files for running our python scripts.
If you have only been working with jupyter notebooks so far and are new to python scripts, I will explain in detail how we can begin using them. It is well worth getting into the practice of using scripts as early on in the course as you can so that you have set yourself up for success later in the more advanced courses.
Most courses in this series of AI Engineering courses include Jupyter notebooks for hands-on coding. Start Jupyter with:
jupyter notebookThen navigate to the course folder and open the relevant .ipynb file.
Again, you can use tools like Microsoft VS Code, PyCharm, Cursor or any other IDE which fits your needs with VS Code being my preference.
Many courses require API keys for platforms like OpenAI, Anthropic, and Hugging Face. Follow these steps:
- Create a
.envfile in the course directory:OPENAI_API_KEY=your_openai_key_here ANTHROPIC_API_KEY=your_anthropic_key_here HUGGINGFACE_API_KEY=your_huggingface_key_here - Ensure the environment variables load correctly in your scripts:
from dotenv import load_dotenv import os load_dotenv() openai_api_key = os.getenv("OPENAI_API_KEY")
ai-engineering/
βββ README.md # Main repo documentation
βββ LICENSE # License information
βββ AI-Engineering-Essentials/
β βββ Part1/
β βββ section1/ # all lecture materials
β βββ section2/ # all lecture materials
β βββ community-contributions/ # contributions from the community
β βββ Part2/
β βββ section1/ # all lecture materials
β βββ section2/ # all lecture materials
β βββ community-contributions/ # contributions from the community
β βββ README.md/
βββ AI-Engineering-Mastery/
βββ .gitignore # Ignore unnecessary files
βββ .env # Contains environment variables like API Keys
βββ requirements.txt # Required Python packages
βββ environment.yaml # instructions for setting up an Anaconda environmentThis project is licensed under the MIT License. See LICENSE for details.