For a while now, I’ve been exploring how containers can be used to run machine learning and AI workloads efficiently. As part of this journey, I’ve been developing a Retrieval-Augmented Generation (RAG) application that leverages a locally downloaded LLM model to generate responses based on documents stored on my system. While experimenting with different containerization tools, Podman AI Containers caught my attention, and I thought to give it a go.
Installing the Podman AI Lab Extension
To get started, Podman Desktop needs to be installed on your laptop, followed by adding the Podman AI Lab extension. Once added, you should be able to see it in the Podman Desktop dashboard.

The Recipe Catalog offers a variety of pre-built recipes, and I decided to start with the “Node.js RAG Chatbot”. I plan to explore more recipes later to see what else Podman AI Containers has to offer. You can download and install it in just a few clicks.

Once downloaded, you can start the application. The interesting part is that you can open the local clone using your installed VS Code, allowing you to browse and modify the code as needed.

The code already includes a preloaded transcript of a discussion, serving as the initial document for testing.

You can choose from a variety of models and start the recipe. I tested it with multiple models, and my favorite Mistral 7B model delivered great results during the test.

It took sometime to download and build the Chromadb Server and Inference app container.

You can start the application by clicking on the link, which will prompt you to select a local port for your application. There were two port options, and one of them opened the application UI.

This was a small but well-built application, and I decided to test a few queries. Most of the random questions were answered correctly, which suggests that the Mistral 7B model I used likely had some built-in knowledge to handle general inquiries. However, that wasn’t my main goal. I wanted to test the RAG capabilities—specifically, how the model loads documents and generates answers when it doesn’t have prior information. For this, I asked about a recent news story I had seen just minutes earlier on BBC regarding “Tornado Warnings spreading to Tennessee.“.

It was not able to answer the question until I extracted the news article and loaded it into the application, since it doesn’t have prior knowledge and there is no way to load fresh news into the model.

I copied the news into a PDF and uploaded it to the application. After asking the same question, the response was correct and amazing.

This is exactly what I was working on, and it was great experience with Podman AI Containers using RAG. I will definitely explore more in the future and see how it can benefit AI application development.
Takeaways
I experienced a few issues during setup, and it’s hard to pinpoint whether they were with the application or the AI Lab itself. I ran into challenges with resource allocation, which caused some containers to be killed and led to build failures. However, after adding more resources and with a little effort, the process became smoother, with faster responses. Obviously, selecting the correct model in the recipe made a significant difference. Overall, it was a smooth experience and a great way to start developing AI applications while leveraging container workloads for such scenarios.
Leave a Reply