LyraLearn AI Learning Platform
Exams
← Module 2 Β· Large Language Models
🎧 Listen

Choosing a Model

There is no single "best" model β€” there is the right model for a given task under your constraints. Model selection is an architectural decision with cost, latency, privacy, and quality consequences, and good architecture makes it a configuration choice, not a rewrite.

An application plugs into a single interface socket behind which three interchangeable model cartridges of different sizes can be swapped.

The axes to weigh

Match the model to the job

A practical tiering:

Keep it swappable

The single most important architectural move is to hide the model behind an interface. Your use-cases should depend on something like IChatCompletionService, not on a specific vendor SDK. Then:

Future-proofing

The model landscape changes monthly. An architecture that bets on one specific model is obsolete quickly; an architecture that treats the model as a replaceable component ages gracefully. LyraLearn registers local and cloud chat providers behind one interface and selects per feature β€” so "which model" is always a decision you can revisit, never a rebuild.

🧠 Quiz yourself on this lesson →

Ask the AI Tutor

Grounded in the course lessons β€” it cites its sources and says when it doesn't know.