# What is an LLM (large language model) and what does it do?

> What an LLM is, how it predicts the text it writes, why it makes up facts and what ChatGPT or Gemini do with your store's product page.

URL: https://clione.ai/glossary/llm/
Lang: en

LLM stands for _large language model_, and here it has nothing to do with the law degree written LL.M. It is the technology underneath ChatGPT, [Gemini](/glossary/gemini/) or Claude: the part that writes. A store cares for one concrete reason: **every assistant that talks about your products is an LLM writing**, sometimes from what it reads on your [product page](/glossary/product-page/) and sometimes from what it thinks it remembers about it. What the model is doing in each case explains almost every mistake you will see in its answers.

## How it works

A language model estimates the probability of a [token](/glossary/token/), or a sequence of tokens, appearing within a longer sequence. A token can be a word, a piece of a word or even a single character.[^google-mlcc-intro] An LLM does the same thing at scale: it **predicts tokens one after another**, sometimes whole paragraphs, like a very sophisticated autocomplete.[^google-mlcc-llm] What makes it "large" is that it has far more parameters than earlier models and makes use of far more context, and the architecture that dominates today is the Transformer, with a self-attention mechanism that weighs how much each word matters relative to the others.[^google-mlcc-llm]

Context is what lets it disambiguate. Google gives an example: the surrounding words help the model decide whether _orange_ is a fruit or a color.[^google-mlcc-intro] Training one takes enormous amounts of text, months of work and a great deal of computing power.[^google-mlcc-llm]

### Why it makes things up

OpenAI explains where [hallucinations](/glossary/ai-hallucination/) come from, the plausible but false sentences a model generates. In pretraining, the model learns to predict the next word across enormous amounts of text, and **that text carries no true or false labels**: it only sees examples of fluent language.[^openai-hallucinate] Regular patterns, like spelling or closing a parenthesis, are learned well as the model grows; arbitrary, infrequent facts, like a pet's birthday, cannot be predicted from patterns, and that is where hallucinations come from.[^openai-hallucinate] On top of that, the usual evaluations reward getting it right more than admitting you don't know, so the model learns to guess.[^openai-hallucinate]

For a store, the consequence is direct: **the exact weight of a backpack, the size of a glove or the wattage of a light are arbitrary, infrequent facts**. They are the kind of fact a model cannot deduce and, if it does not read it, may fill in with something that sounds right. Google says it in its machine learning course: LLMs hallucinate, and their predictions often contain errors.[^google-mlcc-llm]

### What it reads versus what it remembers

An LLM has two sources of information. The first is what it learned in training, frozen in time and without sources. The second is what it is given to read at the moment of answering. [AI search](/glossary/ai-search/) uses the second: Google describes [retrieval-augmented generation](/glossary/rag/) ([RAG](/glossary/rag/)) as a technique to improve the quality, accuracy and freshness of answers by retrieving pages from its index.[^google-ai-guide] When the model reads your page, what matters is that the fact is there and can be read: Microsoft warns that AI systems can skip content hidden in tabs or dropdown menus, and that key data should be in HTML and not only inside an image.[^microsoft-ai-search]

Even when it reads, the model rewrites. OpenAI explains that ChatGPT can generate simplified titles and [product descriptions](/glossary/product-description/) from what it receives, and that the tags it adds to products, like "Budget-friendly", are generated by the model and are not verified claims.[^openai-help-shopping]

## In a store

A **fictional example**: a camera backpack whose page says "20-liter capacity" and "water-resistant fabric", and nothing more about weight or rain. This is what can happen to each fact when an assistant answers about it:

| Fact                | Is it on the page?                    | What the LLM may do                                                           |
| ------------------- | ------------------------------------- | ----------------------------------------------------------------------------- |
| Capacity            | Yes, in text: 20 liters               | Repeat it, if it retrieves the page                                           |
| Water resistance    | Yes, but ambiguous: "water-resistant" | Turn it into "waterproof", which is not the same                              |
| Weight              | No                                    | Leave it out, or fill it with a plausible figure taken from similar backpacks |
| Carry-on dimensions | No, only in an image in the gallery   | Skip it, because the fact is not in the text[^microsoft-ai-search]            |

The defense is not writing for the AI, but **putting the specific fact in text**, with its unit, on the page. Clione works with the model the store configures (OpenAI, Anthropic, Gemini or Ollama, with its own key) and, in each enrichment, passes it the merchant's answers about the product: what it is for, what it is made of, what warranty it has.


That an LLM searches the internet every time it answers. A model answers with what it learned in training, unless the assistant decides to search or you turn it on; ChatGPT, for example, searches the web when the question benefits from current information, and you can also turn search on by hand.[^openai-help-search] Without search, **what it says about your product does not come from your page**, and an infrequent fact is exactly the one that is easiest to invent.[^openai-hallucinate]


## How to check it

1. **Ask about a specific fact of your product** to an assistant without search and then with search. Compare the two answers with your page and note the differences, with the date.
2. **Go through the page looking for facts that live only in images, PDFs or closed tabs.** Move them into the page text, with their unit.[^microsoft-ai-search]
3. **Review ambiguous attributes**: "water-resistant" versus a waterproofing standard, "lightweight" versus a weight. The model cannot guess the figure you did not write.[^openai-hallucinate]
4. **Look at how ChatGPT summarizes your products** when they show up in its shopping answers: the title, tags and review summary are written by the model.[^openai-help-shopping]
5. **If an assistant shows a false fact about your product, report it.** In ChatGPT, products with incorrect information can be reported from the product's own menu.[^openai-help-shopping]

## Related concept: RAG

An LLM is the model; RAG is a way of using it. The LLM only has what it learned in training. With RAG, the system first retrieves documents and then the LLM writes with them in front of it, which improves the accuracy and freshness of the answer and makes it possible to cite sources.[^google-ai-guide] **ChatGPT with search, [AI Overviews](/glossary/ai-overviews/) and [AI Mode](/glossary/google-ai-mode/) are systems of this kind**: an LLM plus a retriever. When someone says "the AI read my site", they are almost always talking about the second step.

To keep going, the [ChatGPT Search](/glossary/chatgpt-search/) entry explains how ChatGPT searches, and the [AI search reading path](/learn/ai-search/) puts the rest of the terms in order.
