A model is not the app
When people say “the AI”, they often mean a whole app. But the model is only one part inside it. The screen, the stored information and the outside services are separate parts.
An app is more than its model.
A common idea is that an AI app and its model are one thing. They are not. The model is one part inside the app.
Think of a help desk in a building. A trained specialist answers questions, but the building also has a front desk, a filing cabinet and a phone. The specialist is not the building.
The picture has limits. A model is not a person. In Leaf Buddy, its job is to turn a photo into a guess.
In this lesson you meet four parts, in this order: the model, then the interface, the data source and the tool around it. Then you follow one request through all of them.
Leaf Buddy is an invented plant app. You photograph a leaf, and it names the plant and says when to water it. It is not a real product.
The model is the learned part.
A model turns an input into an output. In Leaf Buddy, the input is your photo and the output is a best guess, such as “tomato plant”.
Leaf Buddy’s model learned to guess from many example photos that had labels, like the examples and labels in the previous lesson. People build the model too. What it learned is how to guess from examples.
The model is given only the photo. It is not given the care list or the weather, so it cannot use them.

Three parts around the model.
The rest of the app is built by people as ordinary app features. We sort it into three parts by the job each does in one request.
Interface
Where information goes in and out for the person.
Leaf Buddy: the camera button and the result card.

The interface is where a person takes the photo and reads the result. Data source
Information stored ahead of time and looked up as it is.
Leaf Buddy: a list of watering tips written by gardeners.

App code uses the plant guess to look up the stored tip; it does not change the list. Tool
An outside service or action the app calls when it needs it.
Leaf Buddy: a weather service that says if rain is due.

The app asks the weather service and receives its forecast in return.
Ordinary app code connects the parts and decides the order. It is the glue, not a fourth thing to sort. In Leaf Buddy it holds one rule: if rain is due, add “skip today”.
Follow one photo through Leaf Buddy.
One photo makes a trip through the parts. It takes six steps, and the model works in only one of them.
Try it in this order:
- Press Next and read what goes in and what comes out.
- Watch which part is marked “In use” in the list.
- Find the one step where the model works. Then use Back to compare.
Part: Interface
Goes in: Your tap on the camera button.
Comes out: A photo of a leaf, sent into the app.
- ModelTurns an input into an output, using what it learned from examples.
- InterfaceWhere information goes in and out for the person.In use
- Data sourceInformation the app stored ahead of time and looks up as it is.
- ToolAn outside service or action the app calls when it needs it.
Leaf Buddy is an invented app. The answers, the tip and the rule are made up to show the idea. This is not a real product or a real model.
Which part is it?
Now sort six pieces of Leaf Buddy into the four parts. Ask what each one does in a request.
Try it in this order:
- Read the description of one piece of Leaf Buddy.
- Ask what its job is in handling a request.
- Choose the matching part. You can change any answer.
All six items are about the invented Leaf Buddy example. In a real app the lines can blur, so each item here is written to fit one part.
Why the split matters.
- You can fix one part at a time. Gardeners can correct a tip in the data source without changing the model.
- You can find the part that went wrong. Start with the part that did the job. With a clear photo, a wrong plant name points first to the model. If the stored tip itself is wrong, look at the data source. Old rain news points to the tool, and a confusing screen to the interface. The app code between them can also be at fault.
- The same shape shows up elsewhere. Many chat assistants have a chat window, a language model, documents the app can look up and sometimes services it can call. Products differ, so treat this as a common pattern, not a rule.
Where this picture is too tidy.
- Real apps blur the lines. A tool can contain its own model, and one app can use several models. Stored information and a live service can be hard to tell apart. Here we call stored information a data source, and a call made when needed a tool.
- The order can change. Real apps may call parts in a different order, or more than once.
- Naming parts does not rate them. Knowing which part did what does not tell you how good each part is.
- What happens to the model when you use an app is the topic of the next lesson, “Training vs inference”.
Check your understanding.
Take this with you.
A model is one part of an app. It turns an input into an output, such as a best guess. Around it sit the interface, data sources and tools, joined by ordinary app code. Follow a request step by step, name the part doing each job, and you can tell which part to look at when something goes wrong.