Tutorials⚓︎
TL;DR
Learn how to build your own AI agents
and interact with them via easy to use web UIs. Dive into the tutorials below or keep scrolling to learn more .
-
Servers
Setup the servers you need to power your agents.
-
Agents
Create builds from simple chatbots to specialized agents.
-
RAG
Learn advanced RAG techniques to enhance the information retrieval of your agents.
-
Odds and Ends
Learn about other aspects of AI including deep learning, NLP, MCPs, and generative models.
What goes into building an AI agent?⚓︎
An AI agent, first and foremost, needs a brain: a language model
. These LMs are what allow our agents to reflect on what to do, make decisions, and generate responses. Without them, our agents wouldn't be able to take any actions .
However, LMs are built on static stores of knowledge. Their most recent information only goes up to a certain date . Also, LMs are great at generating information , but we may want our agents to be able to perform more specialized tasks .
We can bypass these limitations by also giving our agents tools
which will enhance both their knowledge store from which to retrieve and generate information as well as their ability to perform actions that uniquely fit our needs .
How will we power our agents?⚓︎
I like to host local servers for the LMs and tools that my agents will need, then pass these servers over to the proper agents using LangChain and LangGraph. This method is highly customizable . I can create different agents and give them the right tools for particular purposes (e.g. a coding assistant or a journal analyst) .
For the LMs and tools to pass to the agent, I chose solutions that were able to be locally served
and were easy to setup and use. I also wanted to learn how to build tools that I would want to give to multiple types of agents . I found that the most useful tools for all my agent builds were those that enhanced the knowledge of the LM through either a web search
or a personal document search
.
In the end, my favorite picks for the LM and tool servers are an Ollama server for the LMs, a SearXNG server for a metasearch engine tool 1, and a Milvus server for a data retrieval tool that can be used on my personal documents. We'll learn how to create and run each of these servers in turn .
What tutorials should we follow?⚓︎
In the servers series, I discuss how to build each of our local servers with Docker. Then, in the agents tutorials, I show how to pass these servers to our agents and implement Gradio web UIs to facilitate interactions.
For each of the tutorials, there will be a Github repo with all the source code included
, so you can check out any of the tutorials as standalone lessons. However, they do tend to build off of each other nicely .
I suggest starting with the servers tutorials and working your way through to the agent examples after that. You can then check out more advanced techniques to get your agents to retrieve relevant information with the RAG tutorials. While taking a break from any of these, you can also brush up on other aspects of AI with the odds and ends section.
Check out any of the tutorials above to get started . You can also keep reading to see what software you may need or want in order to follow along .
What will we need?⚓︎
For most tutorials, we'll be using Python and Docker. You can just simply install these tools and use them right away. To my knowledge, there shouldn't be any special setup that needs to be done for these .
You may also want something to view, edit, and manage code as well as to execute commands in a CL. This isn't strictly necessary, but will be enormously helpful in following along with the tutorials and seeing for yourself what the code does . In my opinion, the GOAT is VSCodium. All the code management and execution in these tutorials can be performed with this software, no problem .
I've also heard good things about NeoVim and PyCharm. If you don't mind Microsoft telemetry and licensing, you can also try the Microsofted version of VSCodium called VSCode.
All other third-party libraries, etc., that are needed to follow along will be explicitly covered in the tutorials .
I made these lessons so that they could be used by a wide variety of people; whether you want to just quickly take the code and use it without having to understand what it does , or you want to dive into the code and try to understand how it all works , or you want something in between . As long as you have a desire to build AI agents or the servers necessary to power these agents, or you just want to learn about AI , these tutorials were made for you!
-
A metasearch engine takes a query, gets various web search results, performs some actions on the results like ranking them in order of relevancy , then outputs some information based on these results . The SearXNG server that we'll create takes our queries and searches the web through various engines, then outputs some final results. How these steps are performed will depend on how we setup our server in Docker. ↩