
Foundation model vs LLM: which model class does your feature need?
Foundation model and large language model are often used as if they meant the same thing, but the difference matters when picking a model. An LLM handles text, while the wider foundation model family also covers documents and images, speech, search embeddings and domain-specific models.
Which model class does each AI feature need?
Quick answer
Foundation model vs LLM is a question of scope. A foundation model is any large model pretrained on broad data and adapted to many tasks; an LLM is the text member of that family. Choose by feature: text work suits an LLM, while images, speech and search need other model classes. Agnotic Technologies matches each feature to its class.
| Criterion | Foundation model | LLM |
|---|---|---|
| Chat assistant over company documents | An embedding model for retrieval plus a generative model for the answer; test retrieval and answer grounding separately | Yes, as the answer writer, but it still needs retrieval to stay within your documents |
| Fields from scanned documents | A multimodal or document vision model that reads layout; test field by field on real scans | Only after OCR turns the scan into text, and layout cues are lost on the way |
| Image analysis (defects, damage, objects) | A vision foundation model adapted with labelled images; test per class on held-back images | Not a text-only LLM; a multimodal LLM can describe an image but is not a calibrated detector |
| Semantic search | An embedding model; test with real queries and the documents each one should return | Not needed to rank results; it can rewrite the query or summarize the top hits |
| Speech transcription | A speech recognition model; test word errors on your own recordings, accents and vocabulary | Not for transcription; it can clean up or summarize the transcript afterwards |
| Risk or propensity score | Usually no foundation model at all: a trained model on tabular history fits | No: it gives no calibrated probability for rows of numbers |
| Drafting replies and summaries | A text generation model, which means an LLM | Yes; reviewers score drafts against a rubric |
| Hosting options | Embedding and speech models are often small enough to self-host next to your data | Hosted APIs or open-weight models; larger open-weight models need GPU capacity to self-host |
What they are
What is Foundation model
A foundation model is a large model pretrained on broad data, then adapted to many downstream tasks. The family includes LLMs, multimodal models for images or documents, speech models, embedding models for search, image generation models and models pretrained on domain data such as code.
What is LLM
A large language model is a foundation model trained on text to predict the next token. It reads and writes language, follows instructions and can return structured output. Every LLM is a foundation model, but many models in a product are not LLMs.
Key differences
Where does the term foundation model come from?
The term foundation model describes models trained on broad data and adapted to many tasks, rather than built for one job. NIST AI 600-1 notes that not all generative AI is a foundation model. ISO/IEC 22989:2022 sets out shared AI concepts and terminology.
Which model classes sit around an LLM in a product?
Embedding models power search, deduplication and clustering. Multimodal models read documents and images with text. Speech models transcribe and generate voice. Small language models handle classification and routing. Domain models cover code, biology or sensor data. Each is chosen, versioned and tested separately.
Should you call a hosted API or run open weights?
A hosted API means the provider runs the model, data leaves your environment and versions change on its schedule. Open weights mean you own patching, scaling, GPU capacity and model file checks. The OWASP Top 10 for LLM Applications 2025 lists supply chain risk (LLM03).
How is each model class tested?
Each model class needs its own test set. Embedding models are scored on retrieval for real queries, document models field by field on real scans, vision models per class on unseen images, speech models on word errors and LLM output against a rubric.
What security risks come with each class?
Generative models bring prompt injection and sensitive information disclosure (LLM01 and LLM02 in the OWASP Top 10 for LLM Applications 2025). Embedding stores add vector and embedding weaknesses (LLM08). Apply source document access rules to the vectors too, or search leaks what users cannot open.
Does a bigger model make a better feature?
A bigger model does not make a better feature by default. A smaller or specialized model often passes the test set with lower latency and running cost. Start with the smallest class that meets the bar, and move up only when tests show a gap.
When to use each
When to use Foundation model
- Reading scanned forms, photos or charts, where a vision or multimodal model can see the layout.
- Semantic search and retrieval, where an embedding model turns text into vectors for similarity lookups.
- Transcribing calls or dictation with a speech recognition model.
- Specialized inputs such as code, camera images from a production line or sensor signals, where a domain-pretrained model fits better than a general one.
When to use Large language model (LLM)
- Chat assistants and question answering over your own documents.
- Drafting, rewriting and summarizing text for a person to review.
- Extracting fields from text that is already digital, such as emails or PDFs with a text layer.
- Turning a plain-language request into a structured call to one of your APIs.
How do you choose a model class for a new feature?
1. Write down the input and the output. Name the input type (text, scan, image, audio or table) and the output (text, label, score or ranked list).
2. Let the input pick the class. Text in and text out points to an LLM; scans, images, audio and search point to other foundation models; tables point to a trained model.
3. Build the test set first. Collect real inputs with checked outputs before comparing any models.
4. Compare a few candidates on that set, always including one smaller model.
5. Decide hosting with your data rules in hand: where data may go, how long it is kept and who controls the model version.
6. Adapt only as far as the test set requires. Whether to prompt, retrieve or fine-tune is a separate choice, covered on our generative AI development page.