How many LLMs are you supposed to use in a single AI app, anyway?

Wait, You Need That Many LLMs?

I was reading some technical documentation that our team's engineer had prepared for the Vietnam Japan AI Hackathon.

It listed several familiar AI names, including Qwen, Gemini, and ChatGPT.

Wait a second!

Do you really use that many LLMs to build just one AI app?

How many LLMs are you supposed to use in the first place?

Isn't one enough? Is using three or four normal?

I'd already been building apps with ChatGPT and Claude Code, but I'd never really thought about how many LLMs might be running inside a finished app.

So, as usual, I asked ChatGPT.

Oh! It Didn't Mean Using All of Them

The first thing I learned was that I'd slightly misunderstood the document.

The plan was to run Qwen in our own environment if feasible, or otherwise use an external LLM service through an API.

In other words, those names weren't a list of models we would use all at once. They were options!

Ohhh, now I get it.

So Is One LLM Enough?

That brought me back to my original question.

How many LLMs does one AI app actually need?

The answer: one can be enough, and using several is also possible.

For example, an app that answers users' questions or analyzes text might work just fine with one type of LLM.

For more complicated tasks, though, developers can use different models for different purposes.

A smaller, less expensive model might handle simple tasks, while a more capable model tackles difficult analysis.

Or one model could check the output of another.

Apparently, you can combine them in all sorts of ways.

But using more LLMs doesn't automatically make an app better.

It might cost more, take longer to respond, and require extra work to connect the models together.

So there's no need to start by using a whole bunch of them.

It depends on what you're trying to build.

And What Does It Mean to Have Three Agents?

There was something else in the technical document that caught my attention.

Coordinator Agent and Subagents.

Our project was designed around a Coordinator Agent that manages the overall process and Subagents that specialize in things like inventory information and market research.

It sounds a little like a company!

You have someone coordinating everything, and other people in charge of specific jobs.

But then I had another question.

If there are three agents, do we need three LLMs too?

Nope. Not necessarily.

An AI agent isn't the same thing as an LLM.

It's a system that can use an LLM to reason, call tools, and carry out the steps needed for a task.

That means multiple agents can use the same LLM.

Even with the same AI model, you can give each agent different instructions and tools so that it handles a different role.

Of course, you can also design a system where different agents use different LLMs.

Which means:

The number of agents and the number of LLM types are two different things!

Once I understood that, the technical document started to make a little more sense.

Hold On, I Use Multiple AIs Too...

That reminded me of how I usually work.

I brainstorm with ChatGPT, ask Claude Code to write code, and sometimes check something with Gemini too.

So I'm using multiple LLMs, right?

Yes, but that's a slightly different story.

I use several AI tools to develop an app.

What I was wondering about this time was how many LLMs actually run inside the finished app.

Just because I used three AI tools while developing something doesn't mean the finished product runs three LLMs.

You can even build apps that don't use an LLM at all.

It sounds obvious now, but I hadn't really separated those two ideas in my head.

Then I Opened GitHub and Got Surprised by TypeScript!

And I had another, rather similar discovery.

One day, I was looking through my list of repositories on GitHub.

There were all the apps and websites I'd been building, lined up on the screen.

Under their names, I saw labels like TypeScript, Python, JavaScript, and HTML.

Huh? What's all this?

TypeScript?

Python?

I'd built quite a few apps using ChatGPT and Claude Code.

But I hadn't paid much attention to which programming languages those apps were written in.

I would tell an AI what I wanted, have it write the code, and check whether the result worked.

Somehow, through all that back-and-forth, I'd ended up with apps written in all sorts of languages!

So I asked ChatGPT again.

It explained that the TypeScript and Python labels on GitHub weren't names of LLMs. They were programming languages.

In other words:

Gemini and Claude are AI. TypeScript and Python are languages used to write the code that builds apps.

Aha!

I'd been developing apps with AI, but I'd never really stopped to distinguish the AI itself from the programming language used in the code it wrote.

Apparently, the language shown on GitHub indicates the main programming language used in that repository.

It doesn't tell you which AI wrote the code or which LLM, if any, is running inside the app.

Another thing learned!

An API Isn't an LLM Either. It's a Way to Connect Things

And there's one more term.

API!

After researching data sources at another hackathon, I've been gradually learning what APIs are and how they work.

An API is one way for software to access functions or services provided by another system.

For example, if I want my app to use an external LLM, I can call the API offered by that service.

But APIs aren't just for LLMs.

There are APIs for retrieving inventory information, weather data, maps, and plenty of other things.

By this point, the pieces finally started coming together in my head.

An LLM is an AI model that processes language and generates text.

An AI agent is a system that uses an LLM, tools, and other components to work toward a goal.

A programming language is a language used to express what an app should do in code.

An API is an interface that lets software connect to other models, services, or systems.

They all have different jobs!

What's Written in a Plan Isn't Necessarily What's Running

I learned one more thing from all this.

The technical architecture described in a proposal isn't necessarily identical to what's actually implemented in an app.

A document might say, "We plan to use this LLM," but the team might choose a different model during development.

It might describe three agents working together, but that doesn't tell you how much of the design has been implemented yet.

What I'd been reading was our team's technical plan.

So I still haven't confirmed which LLM the working prototype actually uses, or whether it runs multiple LLMs.

I'd like to ask the engineer and understand that part better too.

One More Thing I Didn't Know—Now I Know a Little More!

Ever since I started joining hackathons, new questions have kept popping up.

I encounter a technical term or concept I don't know.

At first, it sounds complicated.

But as I ask ChatGPT questions and connect the explanation to projects I've actually worked on, things start making sense bit by bit.

This time, it all started with a simple question: "Do you really need four LLMs?"

That led me to think about how LLMs are chosen, what AI agents do, how APIs work, what programming languages are, and even the difference between a proposed design and a working implementation.

Of course, I still don't understand everything.

But I feel like I can now make a little more sense of technical documents and GitHub screens that I used to just stare at.

Every time I find something I don't know, I discover one more thing I want to learn.

Maybe that's part of what makes joining hackathons so much fun.