AWS Builder Center

Weekend Productivity Challenge: BuildTrack AI — Turn Learning Into Lasting Knowledge

BuildTrack AI is an AI-powered learning productivity assistant that turns everyday learning into an active process of reflection, questioning, testing, and hands-on application. In this article, I share how I built and deployed it on AWS using Amazon EC2, Streamlit, Ollama, and Gemma.. and the lessons I learned while adapting to unexpected challenges along the way.

Demo / Source Code
We learn something new almost every day.
It could be from a hands-on workshop, documentation, a technical discussion, a certification course, or simply while debugging an issue. But I have often noticed that learning something once does not always mean I will remember it later.
For me, the learning that stays the longest is usually the learning where I actually do something with the concept. I ask questions, try it out, make mistakes, and understand why something works the way it does.
That thought became the starting point for BuildTrack AI.
BuildTrack AI is a personal AI-powered learning productivity assistant that helps turn everyday learning into a more active process.
The idea is simple:
Capture → Reflect → Question → Test → Apply
Instead of just writing notes and forgetting about them, BuildTrack AI helps you reflect on what you learned, identify gaps in your understanding, ask questions, challenge your thinking, and decide what to try hands-on next.
Vision & What the App Does
The problem I wanted to solve was something I personally experience.
I learn from many different sources, but learning can easily become passive. I might read an article or attend a workshop and feel that I understood the topic at that moment. A few days later, however, I may not remember the details as clearly.
I wanted to build something that could make learning more active.
BuildTrack AI currently has two main modes.
1. Analyze My Learning
In this mode, the user enters:
  • The topic they learned
  • Their own notes about what they understood
  • Any questions or doubts they still have
The AI then turns those raw notes into a structured learning review containing:
  • A learning summary
  • Key concepts to remember
  • Knowledge gaps
  • Answers to questions
  • A quick knowledge check
  • Recommended hands-on next steps
For example, if I enter notes about Kubernetes readiness and liveness probes, BuildTrack AI can help me review the difference between them, identify areas I should explore further, generate questions to test my understanding, and suggest practical experiments.  


2. Challenge My Thinking
This is my favorite part of the application.
One thing I strongly believe is that there are no silly questions. Keeping a question to yourself can sometimes delay your own learning.
At the same time, getting an immediate answer from AI is not always the best way to understand something deeply.
So instead of immediately answering a question, the Challenge My Thinking mode uses a Socratic-style learning flow.
The user asks a question, and BuildTrack AI responds with a guiding question.
The learner answers that question in their own words. The AI then considers the learner's reasoning and asks another question that moves them closer to the answer.
After the guided thinking process, BuildTrack AI provides the final explanation and a key takeaway.
A conversation might look something like this:
Learner: What happens when a Kubernetes readiness probe fails?
BuildTrack AI: Before jumping to the answer, what do you think is the primary purpose of a readiness probe?
Learner: I think it determines whether the Pod is ready to receive traffic.
From there, the AI continues the conversation and helps the learner reason toward the answer.
The goal is not just to get the answer faster.
The goal is to understand why the answer makes sense. 



How I Built It
I started with a simple Streamlit application because I wanted to focus on the learning experience instead of spending most of the challenge building frontend components.
The first version of BuildTrack AI had a form where users could enter a learning topic, their notes, and questions. I then added a second mode for Socratic learning.
The multi-turn conversation was implemented using Streamlit session state. This allowed the application to remember:
  • The original topic
  • The learner's original question
  • The conversation history
  • The current reasoning round
I limited the guided conversation to a small number of rounds. I wanted the experience to stay focused instead of turning into an endless chatbot conversation.
An Unexpected Challenge: Bedrock Access
My original plan was to use Amazon Bedrock with Amazon Nova.
I implemented the Bedrock integration using the Converse API and configured the application to use an Amazon Nova inference profile.
However, when I tried to invoke the model, I received:
ThrottlingException: Too many tokens per day, please wait before trying again.
At first, I thought this might be an issue with my Python code, IAM permissions, or the model ID.
So I tested multiple things.
I listed the available foundation models, tried different Amazon Nova models, verified the correct inference profile, and tested the model directly through the Amazon Bedrock Playground.
The Playground returned the same throttling error.
Since I had never used Bedrock inference in this account before, this was unexpected. The relevant account-level quotas also appeared as zero and were not adjustable.
I raised an AWS Support request to investigate the account-level Bedrock access issue.
But I did not want the entire project to stop because one model provider was unavailable.
That led to one of the most useful design decisions I made during the challenge.
Making the AI Provider Configurable
Instead of tightly coupling BuildTrack AI to a single model provider, I introduced a simple provider abstraction.
The application can now be configured to use:
  • Mock responses for UI development
  • Ollama for self-hosted local model inference
  • Amazon Bedrock when Bedrock access is available
The provider can be selected through an environment variable.
For example:
AI_PROVIDER=ollama
or:
AI_PROVIDER=bedrock
This meant the learning workflows did not have to change when the underlying AI provider changed.
The same application logic could call the configured AI provider.
This was not part of my original plan, but it made the application more flexible and allowed me to continue building instead of waiting for the blocker to be resolved.
Running Gemma with Ollama
For the working deployment, I used Ollama with the Gemma 3 1B model.
I chose a smaller model because I wanted to keep the infrastructure requirements and cost as low as possible.
I first tested the model locally and then installed Ollama on an Amazon EC2 instance.
The model was pulled using Ollama and exposed through its local REST API.
BuildTrack AI sends prompts to the Ollama API, and the generated response is returned to the Streamlit application.
I also adjusted the prompts for the smaller model.
Instead of giving the model long and complicated instructions, I made the prompts more explicit and structured.
For example, in the Socratic learning mode, the model is clearly instructed to:
  1. Briefly acknowledge the learner's response.
  1. Ask exactly one guiding question.
  1. Avoid giving the final answer too early.
  1. Keep the response concise.
This worked better for the smaller model and also made the learning experience more focused.
AWS Services Used / Architecture Overview
The deployed version of BuildTrack AI uses Amazon EC2.
The EC2 instance runs:
  • The Streamlit application
  • Ollama
  • The Gemma 3 1B model
The application communicates with Ollama through the local REST API.
The architecture is intentionally simple:
User → Amazon EC2 → Streamlit → Ollama → Gemma 3 1B
Everything currently runs on a single EC2 instance.
I chose this architecture because it allowed me to deploy a complete working AI application without adding infrastructure that the prototype did not need.
I did not add a load balancer, database, or multiple services just for the sake of making the architecture more complex.
For this version of the application, a simple architecture was enough.
The application also contains integration code for Amazon Bedrock. Once the account-level Bedrock access issue is resolved, the AI provider can be changed without redesigning the core application**.**

A Small Infrastructure Lesson
One of the most hands-on parts of this challenge was getting the model to run comfortably on the EC2 instance.
I initially tried a very small instance. The model could be downloaded, but inference was extremely slow and even the SSH session became sluggish.
When I checked the available memory, the instance had around 1 GiB of RAM and no swap space.
That was a good reminder that the downloaded model size is not the same as the total memory required to run the model. The operating system, Ollama runtime, model, context, and application all need memory.
I resized the instance and added swap space to give the workload more breathing room.
After that, I tested the model directly with Ollama before connecting it to the Streamlit application.
This debugging process reinforced something I have learned repeatedly while working with cloud technologies:
Build one layer at a time and test each layer independently.
Instead of debugging the complete application at once, I verified:
  • Is the EC2 instance healthy?
  • Is Ollama running?
  • Is the model downloaded?
  • Can the model answer a simple prompt?
  • Does the Ollama REST API work?
  • Can Python call the API?
  • Can Streamlit display the generated response?
That approach made it much easier to identify where the problem actually was.
What I Learned
The biggest learning from this challenge was not a specific command or service.
It was the importance of adapting when the original plan does not work.
I started with a clear plan to use Amazon Bedrock and Amazon Nova. When I encountered an account-level inference blocker, I could have stopped and waited.
Instead, I changed the architecture so the application could support multiple AI providers.
That allowed me to continue building and still deploy a working AI-powered application on AWS.
I also learned more about:
  • Running a small language model using Ollama
  • Deploying an AI application on Amazon EC2
  • Working with model inference through a REST API
  • Managing memory constraints for self-hosted models
  • Using Streamlit session state for multi-turn conversations
  • Designing prompts for smaller models
  • Separating application logic from the underlying AI provider
Most importantly, I ended up following the same philosophy that inspired BuildTrack AI in the first place.
I did not just read about these concepts.
I tried them.
I ran into issues.
I asked questions.
I debugged them.
And I learned by building.
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article