Adding AI to legacy code doesn’t have to be a challenge. Many devs are hearing this right now: “We need to add AI to the app.” And for many of them, panic ensues. The assumption is that you have to rip your existing architecture down to its foundation. You start having nightmares about standing up complex microservices, massive AWS bills, and spending six months learning the intricate math behind vector embeddings. It feels like a monumental risk to your stable, production-ready codebase, right? Here’s the current reality though: adding AI to an existing application doesn’t actually require a massive rewrite.…
Topic Archive
Projects
-
-
From Backend to Frontend: Connecting FastAPI and Streamlit
·
·
5 min readIn my previous Pybites article, I showed how I built and deployed a book tracking API using FastAPI, Docker, and Fly.io. That project taught me a lot about backend development, containers, and deploying modern APIs. But a backend alone isn’t enough—users need an interface. And FastAPI’s Swagger UI, while useful for testing, just isn’t user-friendly enough for everyday use. So, I decided to build a frontend. My goal? A fast, Python-based UI with minimal hassle. That’s when I turned to Streamlit. In this article, I’ll explain why I used Streamlit and how I was able to connect my deployed backend…
-
Try an AI Speed Run For Your Next Side Project
·
·
7 min readThe Problem I have for as long as I can remember had a bit of a problem with analysis paralysis and tunnel vision. If I’m working on a problem and get stuck, I have a tendency to just sit there paging through code trying to understand where to go next. It’s a very unproductive habit and one I’m committed to breaking, because the last thing you want is to lose hours of wall clock time with no progress on your work. I was talking to my boss about this a few weeks back when I had a crazy idea: “Hey…
-
FastAPI Deployment Made Easy with Docker and Fly.io
·
·
8 min readFor the PDM program I worked on a FastAPI project to track books using the Google Book API and also provide AI powered recommendations using Marvin AI. As the project came closer to deployment, I knew that I wanted to try out containerization for a reliable and repeatable way to deploy. I chose Docker due to its widespread use, open-source nature, and consistent behavior across environments.If you’re new to Docker or looking for a straightforward guide to deploying a FastAPI app with Docker and Fly.io, this post is for you. FastAPI Set Up for Docker Before deploying the app, we…
-
Creating a Fitness Tracker App with Python Reflex
·
·
10 min readIn this post, I will build a simple fitness tracker app using Python Reflex. Reflex is a Python library that allows you to create reactive applications using a functional and declarative approach. We will use Reflex to create a simple fitness tracker app that allows you to log the amount of workouts completed per week. This is how it will look: Install Reflex After making a new directory and cd’ing into it, I’ll use uv (anybody not yet using this amazing tool? 💡) to initialize a project and install Reflex: The awesome thing about uv is that you don’t have…
-
So, you’re a Python developer or you just use Python to make your life easier by writing utility scripts to automate repetitive tasks and boost your productivity.Such Python scripts are usually local to your machine, run from the command line and require some Python skills to use including for instance setting up a virtual environment and knowing the basics of using the CLI.You may have wondered what it involves to convert a script like this into a web app to make it available for other users such as your family members and co-workers. In this article, I’ll walk through the…
-
Introducing eXact-RAG: the ultimate local Multimodal Rag
·
·
5 min readExact-RAG is a powerful multimodal model designed for Retrieval-Augmented Generation (RAG). It seamlessly integrates text, visual and audio information, allowing for enhanced content understanding and generation. In the rapidly evolving landscape of the Large language model (LLM), the quest for more efficient and versatile models continues unabated. One of the latest advancements in this realm is the emergence of eXact-RAG, a multimodal RAG (Retrieval Augmented Generation) system that leverages state-of-the-art technologies to deliver powerful results. eXact-RAG stands out for its integration of LangChain and Ollama for backend and model serving, FastAPI for REST API service, and its adaptability through the…
-
Build a route planner for maps using Python
·
·
7 min readIn this article I use the metric system, where 1 meter = 3.28 feet. I also talk about highways. Here I use the definition in British English, where highway refers to any path with a public right of access. We are all familiar with the existence of route planners like google maps or OpenStreetMaps (OSM), that allows us to get the shortest path between two points in space. With OSM and it’s read-only API Overpass we can get very detailed information about a chosen region, including streets roads and ways, but also information like if a street is illuminated, if…
-
This series will be a deep dive into a Django project I developed and the thought process behind each step.