Open-source course by The Neural Maze and Decoding ML in collaboration with
MongoDB, Opik and Groq.
Ever dreamed of building your own AI-powered game? Get ready for an exciting journey where we'll combine the thrill of game development with cutting-edge AI technology!
Welcome to PhiloAgents (a team-up between Decoding ML and The Neural Maze) - where ancient philosophy meets modern AI. In this hands-on course, you'll build an AI agent simulation engine that brings historical philosophers to life in an interactive game environment. Imagine having deep conversations with Plato, debating ethics with Aristotle, or discussing artificial intelligence with Turing himself!
In 6 comprehensive modules, you'll learn how to:
- Create AI agents that authentically embody historical philosophers
- Master building agentic applications
- Architect and implement a production-ready RAG, LLM and LLMOps system from scratch
Transform static NPCs into dynamic AI personalities that:
- Build a game character simulation engine, powered by AI agents and LLMs, that impersonates philosophers from our history, such as Plato, Aristotle and Turing.
- Design production-ready agentic RAG systems.
- Ship the agent as a RESTful API.
- Apply LLMOps and software engineering best practices.
- Use industry tools: Groq, MongoDB, Opik, LangGraph, LangChain, FastAPI, Websockets, Docker, etc.
After completing this course, you'll have access to your own agentic simulation engine, as seen in the video below:
philoagents_trimmed.online-video-cutter.com.1.mp4
|
Join The Neural Maze and learn to build AI Systems that actually work, from principles to production. Every Wednesday, directly to your inbox. Don't miss out! |
![]() |
Join Decoding ML for proven content on production-grade AI, GenAI, and information retrieval systems. Every week, straight to your inbox. |
While building the PhiloAgents simulation engine, you'll master:
-
Building intelligent agents with LangGraph
- Agent development and orchestration
- RAG agentic communication patterns
- Character impersonation through prompt engineering (Plato, Aristotle, Turing)
-
Creating production-grade RAG systems
- Vector database integration
- Knowledge base creation from Wikipedia and Stanford Encyclopedia
- Advanced information retrieval
-
Engineering the system architecture
- End-to-end design (UI → Backend → Agent → Monitoring)
- RESTful API deployment with FastAPI and Docker
- Real-time communication via WebSockets
-
Implementing advanced agent features
- Short and long-term memory with MongoDB
- Dynamic conversation handling
- Real-time response generation
-
Mastering industry tools and practices
- Integration with Groq, MongoDB, Opik
- Modern Python tooling (uv, ruff)
- LangChain and LangGraph ecosystems
- Leveraging LLMs on GroqCloud for high-speed inference
-
Applying LLMOps best practices
- Automated agent evaluation
- Prompt monitoring and versioning
- Evaluation dataset generation
🥷 By the end, you'll be a ninja in production-ready AI agent development!
This course is tailored for people who learn by building. After completing the course, you will have your own code template and enough inspiration to develop your personal agentic applications.
Target Audience | Why Join? |
---|---|
ML/AI Engineers | Build production-ready agentic applications (beyond Notebook tutorials). |
Data/Software Engineers | Architect end-to-end agentic applications. |
Data Scientists | Implement production agentic systems using LLMOps and SWE best practices. |
Category | Requirements |
---|---|
Skills | - Python (Beginner) - Machine Learning, LLMs, RAG (Beginner) |
Hardware | Modern laptop/PC (We will use Groq and OpenAI APIs to call our LLMs) |
Level | Beginner to Intermediate |
The course is open-source and completely free! You can run the simulation engine without any of the advanced LLMOps features at 0 cost.
If you choose to run the entire system end-to-end (this is optional), the maximum cost for cloud tools is approximately $1:
Service | Estimated Maximum Cost |
---|---|
Groq's API | $0 |
OpenAI's API (Optional) | ~$1 |
In Module 5 (optional module), we use OpenAI's API as an LLM-as-a-judge to evaluate our agents. In the rest of the course, we use Groq's API, which offers a free tier.
Just reading the materials? It's all free!
As an open-source course, you don't have to enroll. Everything is self-paced, free of charge, and with its resources freely accessible at (video and articles are complementary - go through both for the whole picture):
- code: this GitHub repository
- videos: The Neural Maze
- articles: Decoding ML
This open-source course consists of 6 comprehensive modules covering theory, system design, and hands-on implementation.
Our recommendation for getting the most out of this course:
- Clone the repository.
- Read the materials (video and articles are complementary - go through both for the whole picture)
- Set up the code and run it to replicate our results.
- Go deeper into the code to understand the details of the implementation.
Module | Written Lesson | Video Lesson | Description | Running the code |
---|---|---|---|---|
1 |
![]() |
![]() |
Architect your gaming simulation AI PhiloAgent. | No code |
2 |
![]() |
![]() |
Building the PhiloAgent in LangGraph using agentic RAG. | philoagents-api |
3 |
![]() |
![]() |
Wrapping up our agentic RAG layer by implementing the short-term and long-term memory components. | philoagents-api |
4 |
![]() |
![]() |
Expose the agent as a RESTful API (FastAPI + Websockets). | philoagents-api |
5 |
🚧 WIP | 🚧 WIP | LLMOps best practices: evaluating agents, prompt monitoring, prompt versioning, etc. | philoagents-api |
6 |
🚧 WIP | 🚧 WIP | Let's glue everything into your multi-agent philosopher simulation. | philoagents-api |
|
Join The Neural Maze and learn to build AI Systems that actually work, from principles to production. Every Wednesday, directly to your inbox. Don't miss out! |
![]() |
Join Decoding ML for proven content on production-grade AI, GenAI, and information retrieval systems. Every week, straight to your inbox. |
While building the PhiloAgents simulation engine, we will rely on two separate applications:
.
├── philoagents-api/ # Backend API containing the PhiloAgents simulation engine (Python)
└── philoagents-ui/ # Frontend UI for the game (Node)
The course will focus only on the philoagents-api
application that contains all the agent simulation logic. The philoagents-ui
application is used to play the game.
To impersonate our philosopher agents with real-world knowledge, we will populate their long-term memory with data from:
- Wikipedia
- The Stanford Encyclopedia of Philosophy
You don't have to download anything explicitly. While populating the long-term memory, the philoagents-api
application will download the data from the internet automatically.
Find detailed setup and usage instructions in the INSTALL_AND_USAGE.md file.
Pro tip: Read the accompanying articles first for a better understanding of the system you'll build.
Have questions or running into issues? We're here to help!
Open a GitHub issue for:
- Questions about the course material
- Technical troubleshooting
- Clarification on concepts
As an open-source course, we may not be able to fix all the bugs that arise.
If you find any bugs and know how to fix them, support future readers by contributing to this course with your bug fix.
You can always contribute by:
- Forking the repository
- Fixing the bug
- Creating a pull request
📍 For more details, see the contributing guide.
We will deeply appreciate your support for the AI community and future readers 🤗
![]() Paul Iusztin AI/ML Engineer |
![]() Miguel Otero Pedrido AI/ML Engineer |
This project is licensed under the MIT License - see the LICENSE file for details.
|
Join The Neural Maze and learn to build AI Systems that actually work, from principles to production. Every Wednesday, directly to your inbox. Don't miss out! |
![]() |
Join Decoding ML for proven content on production-grade AI, GenAI, and information retrieval systems. Every week, straight to your inbox. |