Large Language Model (LLM)

What a large language model is, how it predicts text token by token, the LLMs powering AI search (Gemini, GPT-4), and what they mean for SEO.

First published: Jun 24, 2026 · Last updated: Jul 22, 2026 · Advanced
demand #1 in How Search Works#1 in AI Search#2 on the site

A large language model (LLM) generates text by predicting the next token — it isn't reasoning the way a human does, it's running a probabilistic completion. LLMs are built on the transformer architecture and split into two roles in search: understanding models like BERT help rank, while generative models like Gemini (Google AI Overviews) and GPT-4 (Bing Copilot) write the answers. They're limited by a knowledge cutoff, a finite context window, and a tendency to hallucinate — which is exactly why RAG and grounding exist. For SEOs the practical news is boring: indexing is still the prerequisite, brand mentions correlate with AI visibility more strongly than backlinks, and 'normal SEO' is what gets you cited.

TL;DR — An LLM estimates the probability of the next tokenA token is the smallest unit of text (or image/audio/video) an LLM processes — roughly 4 characters, or about ¾ of an English word. A context window is the maximum number of tokens (input plus output) a model can hold at once, like its short-term memory. and generates text autoregressively — that’s the whole engine. It runs on the transformer architecture, which processes a full sequence in parallel via attention rather than token-by-token like RNNs. In search there are two distinct jobs: understanding (BERTSemantic search is meaning-based retrieval — matching what a user means, not just the words they typed. Search engines detect entities, expand synonyms, infer intent, and rank by conceptual relevance, which is why keyword stuffing lost its power and topical depth gained it.-style encoders that help rank) and generation (Gemini, GPT-4 writing AI answers). LLMs are bounded by a knowledge cutoffA knowledge cutoff (or training data cutoff) is the date after which an LLM was no longer trained on new data. The model has no awareness of anything that happened later — unless the system bolts on live retrieval (RAG/web search) to fetch it at query time., a finite context window, and hallucinationAn AI hallucination is when a large language model generates output that is confidently stated but factually wrong, made up, or unsupported by its source. It's a side effect of next-token prediction — not a bug that can be fully eliminated. — which is precisely why RAGRAG is the retrieve-then-generate pattern behind AI search: the system retrieves relevant passages from an external index at query time, injects them into the model's context, and generates an answer grounded in those sources — without changing the model's weights. and groundingGrounding is anchoring an AI model's answer to source documents it retrieves at the moment you ask — not to the patterns frozen into its weights during training. Retrieval-Augmented Generation (RAG) is the most common way to do it. exist. For SEO, indexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed. remains the prerequisite, and in Ahrefs’ 75,000-brand study by Louise Linehan and Xibeijia Guan text-based signals like branded mentions correlated with AI OverviewAI Overviews are the AI-generated summary box Google shows above or within its regular search results, written by Gemini models from pages retrieved out of Google's normal Search index. It's a Search feature, not a separate platform or index. visibility roughly 3× more strongly than backlinks.

What an LLM actually is

An LLM is not a database of guaranteed facts, and fluent output is not evidence of accuracy. Evidence for this claim Large autoregressive language models are trained to predict tokens from preceding context and can perform varied language tasks through prompting. Scope: GPT-3 research findings; later models, training methods, and product systems differ. Confidence: high · Verified: Brown et al.: Language Models are Few-Shot Learners Search products that use LLMs may combine them with external retrieval and ranking systems. Evidence for this claim Applications can give a language model tools for web search, file search, code execution, or external functions. Scope: OpenAI API tool capabilities; tool access is configured separately and should not be conflated with the base model's stored knowledge. Confidence: high · Verified: OpenAI: Tools guide

A language model, in Google’s own words, “estimates the probability of a token or sequence of tokens occurring within a longer sequence of tokens.” That’s the foundation. An LLM is a very large version of that: a deep-learning model with billions of parameters trained to predict the next token across web-scale text.

Two things make it “large” and capable:

  • Scale. Billions of parameters, trained on enormous corpora. As models grow, capabilities like summarization, reasoning, and code generation start to emerge without being explicitly programmed in.
  • The transformer architecture. Introduced in Google’s 2017 paper Attention Is All You Need, transformers process a whole sequence at once and use an attention mechanism so each token can “look at” every other token. Google’s ML Crash Course frames the contrast directly: large language models “can evaluate the whole context at once,” unlike older recurrent neural networks that processed “token by token” and suffered the “vanishing gradient problem.”

The model is trained by next-token prediction on raw text, then typically refined with RLHF (reinforcement learning from human feedback) to make it more helpful and safer. At inference it generates autoregressively — one token at a time, each prediction fed back in as input for the next. A setting called temperature controls how random that sampling is.

It helps to keep the stages separate, because people conflate them constantly. Evidence for this claim Pretraining learns broad statistical representations, post-training changes model behavior toward instructions or preferences, and inference applies the resulting model to supplied context; prompt context does not by itself update model weights. Scope: General pipeline description across instruction-tuned LLMs; the exact post-training method (RLHF, DPO, or other) and how a given product layer handles session memory vary by provider and are not covered here. Confidence: high · Verified: Ouyang et al.: Training language models to follow instructions with human feedback Pretraining is where the weights actually get set — the model learns broad statistical patterns from next-token prediction across a huge corpus. Post-training (RLHF and similar preference-tuning steps) adjusts those same weights again, toward instructions and safety behavior. Inference — what happens when you send it a prompt — doesn’t update the weights at all; the model just applies whatever it learned in the two training stages to the text you hand it. That’s also why a long context window isn’t the model “learning” about you: the extra text is input for that one request, not a training update, and it’s gone once the session ends unless a separate product feature saves and re-feeds it as memory.

Keep the mental model honest: this is a probabilistic process. The model produces plausible completions, not verified facts.

Understanding vs. generation: two different jobs

This is the distinction that clears up most LLM-in-search confusion.

  • BERT (2019) is an encoder-only, bidirectional model. Google: it considers “the full context of a word by looking at the words that come before and after it.” BERT’s job is understanding — interpreting queries and documents to improve ranking. It doesn’t generate answers. Google said BERT would “help Search better understand one in 10 searches in the U.S. in English,” and Pandu Nayak called it “the biggest leap forward in the past five years.”
  • Gemini / GPT-4 are generative models (decoder-style, autoregressive). Their job is generation — synthesizing the AI Overview or Copilot answer text from retrieved passages.

So when an SEO asks “does the LLM rank my page?” the honest answer is: a BERT-style understanding model has long influenced ranking; a generative model like Gemini writes the AI summary over whatever the retrieval step surfaced. Different models, different stages.

A rough timeline, because the lineage matters:

  • 2017Attention Is All You Need (Google Research): the transformer paper everything else is built on.
  • 2019 — BERT: first transformer LLM in Google ranking; “one in 10 searches.”
  • 2021 — MUM: a ~110-billion-parameter, T5-based model Google billed as “1,000 times more powerful than BERT,” multimodal and trained across 75+ languages.
  • 2023 — Gemini: “built from the ground up to be multimodal,” pre-trained on multiple modalities from the start; shipped in Ultra / Pro / Nano variants. Google reported it as the first model to “outperform human experts on MMLU” (90.0%). (Benchmark numbers like that one are tied to the exact model version, test set, and evaluation date the lab used at the time — they don’t automatically carry over to later updates of the same model family.)
  • 2024 — AI OverviewsAI Overviews are the AI-generated summary box Google shows above or within its regular search results, written by Gemini models from pages retrieved out of Google's normal Search index. It's a Search feature, not a separate platform or index. (graduating from SGE): the generative layer arrives on the results page.
  • 2025 — AI Mode + Gemini 3: Elizabeth Reid described Gemini 3 in Search as bringing “state-of-the-art reasoning, deep multimodal understanding and powerful agentic capabilities,” with the system intelligently routing complex questions to Gemini 3 and simpler tasks to faster models.
  • 2026 — Gemini 3 becomes the default for AI Overviews. Per Robby Stein, “Gemini 3 is now the default model for AI Overviews.”

Bing Copilot: GPT-4 + Prometheus + the Bing index

Microsoft confirmed in March 2023 that “the new Bing is running on GPT-4, which we’ve customized for search,” and that “as OpenAI makes updates to GPT-4 and beyond, Bing benefits from those improvements.”

The piece that connects a frozen LLM to the live web is Microsoft’s Prometheus model — described as a model combining the fresh Bing index with the reasoning of GPT. The Copilot pipeline reformulates your query into search strings, retrieves from the Bing index, and has GPT synthesize a grounded, cited answer. (Note: that detailed pipeline breakdown comes from third-party technical analysis, not a first- party Microsoft spec — treat the step-by-step as industry-reported.)

How AI Overviews actually generate an answer (the RAG pipeline)

The reason these systems can answer about today’s news despite an old training cutoff is retrieval-augmented generation. Google Cloud’s own definition: RAG “combines the strengths of traditional information retrieval systems with the capabilities of generative large language models.” Conceptually:

  1. You submit a query.
  2. Complex queries get decomposed — Google’s query fan-outQuery fan-out is the technique where an AI search system breaks a single user question into multiple related sub-queries, runs those searches concurrently, and synthesizes the retrieved results into one answer. Google confirms AI Overviews and AI Mode 'may use a query fan-out technique' issuing multiple related searches across subtopics. — into sub-queries.
  3. Each sub-query retrieves candidate passages from the index.
  4. Those passages are injected into the LLM’s context window — this is groundingGrounding is anchoring an AI model's answer to source documents it retrieves at the moment you ask — not to the patterns frozen into its weights during training. Retrieval-Augmented Generation (RAG) is the most common way to do it., anchoring the answer to retrieved sources rather than training data alone.
  5. The LLM generates a synthesized answer with citations.
  6. Safety and quality checks run, and the answer is returned.

The SEO implication is a chain of gates. Your content has to be (a) crawlable by AI bots, (b) indexed, (c) surfaced by retrieval, (d) selected over competing passages, and (e) represented accurately in the output. Falling out at any stage means you’re not in the answer.

Limitations that matter to SEOs

LimitationWhat it means for you
Knowledge cutoffA knowledge cutoff (or training data cutoff) is the date after which an LLM was no longer trained on new data. The model has no awareness of anything that happened later — unless the system bolts on live retrieval (RAG/web search) to fetch it at query time.The model knows nothing past its training date unless RAG supplies fresh content. Cutoff ≠ release date — they can differ by months. GPT-5’s training cutoff is reported as September 2024.
Context windowAn LLM can only process a finite amount of text at once, measured in tokens. This bounds how much retrieved content can be fed in — and it’s why chunkingChunking is splitting a document into smaller passages so AI systems can embed, index, and retrieve the single most relevant piece — not the whole page — in response to a query. It's a foundational step in RAG pipelines and the conceptual cousin of Google's passage ranking. matters in retrieval.
HallucinationThe model generates plausible-sounding completions that can be wrong. It’s a statistical artifact, not lying. Ahrefs research found AI assistants send visitors to 404 pages 2.87× more often than Google Search.
JavaScript coverage riskAI-crawlerA crawler — also called a spider or bot — is an automated program that fetches web pages, extracts their links, and queues new URLs to visit. Search engines use crawlers to discover and download content for their index. renderingTurning HTML, CSS, and JavaScript into the final visual page and DOM. varies by provider, so JS-dependent content can be missed when a fetcher uses only the initial HTML.
Passage chunkingRetrieval systems break pages into passages. My research on Chrome’s processing pointed to ~200-word passages and analysis of only the first ~30 passages of a page — content buried deep may never be retrieved.

What this means for your content strategy

A few things I’m comfortable saying, separated from the things nobody outside the engines actually knows:

  • IndexingStoring a crawled page in the search index so it can appear in results. Crawled is not the same as indexed — Google selects what to keep, and indexing isn't guaranteed. is still the prerequisite. Gary Illyes was blunt: “To get your content to appear in AI Overview, simply use normal SEO practices.” There’s no confirmed special LLM-targeting signal. And on the much-hyped llms.txtllms.txt is a proposed (not adopted) Markdown file at /llms.txt that gives AI systems a curated map of a site's most important pages. Proposed by Jeremy Howard in 2024, it's read mostly by coding agents like Claude Code — not search crawlers — and Google ignores it. file, Illyes said “Google doesn’t support LLMs.txt and isn’t planning to,” with John Mueller comparing it to the old meta keywords tagThe meta keywords tag — <meta name=\"keywords\" content=\"...\"> — is a mid-1990s HTML head element meant to let a page declare its own topic keywords to search engines. Google has publicly ignored it for ranking since 2009, and no major search engine uses it as a ranking signal today. It's dead as SEO, and a populated one only leaks your target keywords to anyone who views your source..
  • Brand mentions beat backlinks for AI visibility. In our study of 75,000 brands, branded web mentions were the strongest correlate of AI Overview appearances (≈0.66), versus ≈0.22 for backlinks — text-based signals correlated roughly 3× more strongly than link metrics. As we put it, LLMs “derive their understanding of a brand’s authority from words on the page, from the prevalence of particular words, the co-occurrence of different terms and topics, and the context in which those words are used.”
  • It’s winner-takes-all. Brands in the top quartile for web mentions averaged 169 AI Overview mentions versus 14 for the next quartile — and 26% of studied brands had zero. High-authority, high-traffic placements compound your AI visibility.
  • Freshness helps. Across a 17-million-citation analysis, AI assistants preferred citing content meaningfully newer than what typically appears in organic results.
  • Don’t reflexively block AI crawlersAI crawlers are bots from AI companies that fetch web pages to train language models, build AI-search indexes, or answer live user questions. They come in three categories, each with its own user-agent tokens and its own robots.txt controls.. Blocking likely forfeits AI visibility with no SEO upside. And remember the JS blind spot above — if your content needs JavaScript to appear, most AI crawlers won’t see it.

And the honest caveat: the engines consistently avoid revealing how the ranking side of AI Overviews works. The confirmed story is “get indexed, do normal SEO.” Everything past that is inference — mine included.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.