Types of models

Language, embedding, reranking, vision, speech, multimodal and image generation models, and where classic machine learning still belongs.

Updated CompTech Team

"An AI model" is several different files that do different jobs. A retrieval pipeline uses at least three of them. Buying one large language model and expecting it to embed, rerank, see and transcribe is how projects accumulate GPUs and still miss the task. This page names the types. Families and vendors are in Popular models. The mechanics of a language model are in What is an AI model.

Language models

A language model takes tokens in and produces tokens out. The large ones are called LLMs. Use one when the output is text: a draft, a summary, a classification into labels you name, a function call, a piece of code.

What it will not do on its own is look up today's balance, see a satellite image, or hear a radio call. Those are other models, or tools the language model is allowed to call. Tool calling is still the language model emitting a structured token sequence that your program executes. The current landscape covers agents. The chatbot lab builds one.

Smaller language models (a few billion parameters) are the practical choice for a single GPU, an air-gapped site, or a high volume of short calls. Larger ones are the choice when the instruction is long and the cost of a wrong answer is high. Size is the subject of Model sizes and specs.

Embedding models

An embedding model turns a piece of text into a vector, a fixed list of numbers, so that passages with similar meaning land near each other. "How do I reset my password?" and "steps to recover account access" share few words and should still be neighbours.

Embeddings are what make RAG search possible. The decisions that matter:

  • Documents and questions must use the same model. Changing it means re-indexing.
  • The vector length is part of the cost. Longer vectors take more memory in pgvector, Milvus or Redis.
  • Language coverage is a property of the embedding model, separate from the language model. A Bangla document embedded by an English-only model retrieves badly even if the answering model can read Bangla.
  • An embedding model does not write the answer. It only finds candidates.

Reranking models

Vector search is fast and rough. A reranker reads the question and one candidate passage together and scores how well that passage answers the question. It is too slow to run across the whole collection and cheap enough to run across the top twenty. Keeping the best three to five is a common pattern, and it is often the largest quality gain in a RAG stack for the GPU time it costs.

The NeMo Retriever lab puts an embedding NIM and a reranking NIM side by side.

Vision models

A vision model takes pixels. The outputs we actually deploy are narrower than "understand the image":

  • Detection and classification. Is there a vehicle, a crack, a flooded field. The output is boxes or labels. Training it needs labelled images from the same kind of camera and weather you will run it on. A model trained on clear-day photos fails in monsoon haze until you retrain or fine-tune on those conditions.
  • OCR. Pixels in, text out. Printed English is a different problem from a scanned Bangla form or a handwritten log. Test the script you have.
  • Image in, text out, when a multimodal model describes a figure. That is the next section.

Vision models are the right tool for a watch floor or an inspection line. A language model reading a filename is not.

Speech models

A speech model turns audio into text (transcription) or text into audio (synthesis). Transcription is the one we use most: call-centre recordings, meeting audio, radio. The model does not know your acronyms until you give it a vocabulary or you correct the transcript before anything downstream embeds it. A bad transcript becomes a bad RAG index.

Synthesis is a separate model and a separate consent problem. Do not generate a voice of a real person.

Multimodal models

A multimodal model accepts more than one kind of input in a single context: text plus an image, sometimes audio or video, and answers in text. Use it when the question is about a particular picture ("what does this diagram say?", "which field on this form is empty?"). Use a dedicated detector when you need a box on every frame of a stream at a fixed rate. The multimodal model is slower and more general. The detector is narrower and easier to measure.

The same token budget applies. A page-sized image can consume a large share of the context window, which surprises people who only counted the words in the question.

Image generation models

An image generation model takes a text prompt, sometimes plus a reference image, and produces pixels. Diffusion models and the newer transformer-based generators both do this. They are for drafts of diagrams, synthetic training images, and design exploration.

They are a poor source of evidence. A generated photo of a flood, a document, or a person is not a record of anything that happened. Treat outputs as illustrations, watermark them in any workflow that could be mistaken for a photograph, and keep them out of intelligence products and customer communications unless a person has approved a specific use.

Classic machine learning

A gradient-boosted tree, a logistic regression, a forecast from last year's demand: these are models too, and for tabular data they are usually the correct ones. The input is columns, the output is a score or a class, the behaviour is measurable on a held-out set of rows, and a feature pipeline keeps training and production honest.

Question Model type
Draft, summarise, classify text, call a tool Language model
Find passages by meaning Embedding model, then a reranker
Read a form, a map, a frame Vision or multimodal
Transcribe a call Speech
Score a transaction from columns Classic ML (and features from the warehouse)
Draw a picture Image generation

RAPIDS accelerates the classic path on a GPU. The language-model path is served as in Running models. Mixing them up is the expensive mistake: an LLM judging every payment is slower and harder to audit than a score plus a short list of exceptions a person reads.

Several models is normal

A single assistant that "uses AI" is usually four files: an embedding model, a reranker, a small language model for easy calls, and a larger one for the calls the small one fails. That cascade is a routing rule you write ("if the extractor's JSON does not parse, send the same prompt to the larger model"), not a feature you buy. Each file has its own card, its own licence and its own place in the choosing checklist.

The failure mode is one shared GPU for all four, sized for the largest, with the embedding model queued behind a long generation. Serve them separately. They scale on different axes: embeddings care about documents per second, the language model cares about concurrent users, the reranker cares about the twenty candidates you actually send it.

One more mismatch is silent. The embedding model that built the index and the embedding model that embeds the question must be the same revision, and the vector length must match the index. A 768-dimension vector written into a 1024-dimension index does not "approximately" search. It errors, or it returns neighbours that mean nothing. Re-embed the corpus when you change that model. Do not mix the old vectors with the new ones.

Write the dimension next to the index name. bge-m3 and nv-embedqa are not the same length, and a config change that swaps the NIM tag without a reindex looks like "search got worse" rather than "the vectors are the wrong shape".

What's next

Popular models names the families you will actually be offered. How to choose a model turns this table into a checklist. The document path that uses embeddings and a reranker is the RAG lab.