Sub topic 1
How AI assistants decide what to say about a brand
This chapter explains the working model behind an assistant's answer about a brand. You need this model before you design tests, because it tells you what a test can and cannot show.
Prerequisites
This chapter assumes you have the following:
- Basic familiarity with chat-based AI assistants, including typing a question and reading the reply.
- Comfort reading a simple JSON file. No Python is needed for this chapter.
- A rough sense of what a brand is: a product or company name that people search for or ask about.
You do not need to know how neural networks are trained. The chapter gives the parts you need.
Why the mechanism matters for testing
If you test prompts to see what assistants say about your brand, you are sampling the output of a system. You are not looking up a ranking. A search engine ranking is a list of pages in an order. An assistant's answer is text it generates one piece at a time. The same question can produce different text on a different run.
Knowing the mechanism helps you with three tasks later in this tutorial:
- Choosing prompts that match how people really ask.
- Deciding which test conditions to record, such as the assistant, the mode, and the date.
- Reading results without over-claiming.
The two sources of an answer
An assistant draws on two sources when it answers. Most real answers mix both.
Source 1: what the model learned in training
A large language model (LLM) is a program trained on a very large body of text. During training it learns statistical patterns: which words and ideas tend to go together. It does not store a database of facts about your brand. It stores patterns. If your brand appeared often, in consistent ways, in the text it learned from, the model is more likely to produce your brand name in a relevant answer.
Training has a cutoff date. Anything that happened after the cutoff is not in the model's learned patterns. A product launched last month may be missing, or described as it was a year ago.
Source 2: what the assistant retrieves at answer time
Many assistants can also fetch information when you ask. This is called retrieval. The assistant runs a web search or looks in a document store, reads some of the results, and uses them to write the answer. This approach is often called retrieval-augmented generation (RAG): the system retrieves text first, then generates an answer that uses it.
When retrieval is active, assistants often show citations. A citation is a link or source name attached to part of the answer. Citations tell you which pages the assistant used. They are valuable for testing because they show where the information came from.
Retrieval changes what a test measures. Without retrieval, you measure mostly what the model learned. With retrieval, you also measure which pages are found, ranked, and used for that question.
| Aspect | Training-based answer | Retrieval-based answer |
|---|---|---|
| Main source | Patterns learned before the cutoff | Pages fetched when you ask |
| Freshness | Limited by cutoff date | Can include recent pages |
| Citations | Usually none | Often shown |
| What changes it | Slow, indirect, controlled by the model provider | Page content, search results, and the query wording |
| Variability between runs | Present | Present, plus changes in the fetched pages |
From question to answer: the pipeline
The exact design differs between products, and providers rarely publish it. The general flow looks like this.
Three points in this flow matter for brand visibility.
- The decision to retrieve. The assistant, or the product around it, decides whether a question needs fresh information. A question like "What is the latest version of Acme Analytics?" is likely to trigger retrieval. A question like "What is web analytics?" may not. You cannot always see this decision, so you record whether citations appeared.
- The selection of sources. If retrieval runs, only some pages are read. Your brand can be well described on your own site and still be missed if other pages rank better for the query.
- The generation step. Even with the same sources, the model chooses words probabilistically. That is where run-to-run differences come from.
Why answers vary
At each step of writing, the model assigns probabilities to possible next words and picks one. Many products sample from those probabilities instead of always taking the most likely word. The setting that controls how adventurous that sampling is is often called temperature. Higher values produce more varied text. Consumer chat apps usually do not let you change it, so you should assume variation is present.
Other causes of variation include:
- Different search results at different times, when retrieval is on.
- Product updates, where the provider changes the model or its instructions without notice.
- Personalisation or location, where the product uses account history or region.
- Conversation context, where earlier messages in the same chat shape later answers.
The practical rule: one answer is one sample. Chapter 5 of this tutorial covers how many repeats you need. For now, treat any single answer as an example, not a result.
How a brand ends up in an answer
Several factors influence whether an assistant names a brand. None of them is fully visible to you, so treat the list as a set of hypotheses to test.
- Presence in the learned text. Brands that appear often in articles, reviews, forums, and documentation are easier for the model to reproduce.
- Consistent description. If sources agree on what the brand is and who it is for, the model can describe it with confidence. If sources conflict, the answer may be vague or wrong.
- Match to the question. A brand tied to "checkout drop-off analysis" in many sources is more likely to appear for that problem than for a broad question.
- Category membership. Assistants often answer a "best tools" question by listing well-known members of a category. A brand that is not clearly placed in the category may be left out.
- Retrieved page quality. For retrieval answers, pages that are clear, crawlable, and directly answer the question have a better chance of being used.
- Name ambiguity. A brand name that is also a common word or another company's name may be confused with something else. The word "Acme" alone could mean many companies.
What an assistant can get wrong
Assistants produce fluent text whether or not the facts are right. A wrong statement is called a hallucination when the model states something that is not supported by its sources or training. For brands, common errors include:
- Wrong pricing or discontinued plans.
- Features attributed to a competitor, or missing from your product.
- An outdated description from before a rebrand.
- A confident recommendation of a product that does not exist.
This is why the tutorial treats accuracy as its own measure, separate from whether the brand is mentioned. A brand can be mentioned often and described wrongly.
Different modes, different behaviour
The same assistant can behave differently depending on mode. Typical differences:
- A mode with web search switched on versus off.
- A "deep research" or long-form mode that reads many sources and writes a report.
- A fast model versus a larger, slower one.
- A free tier versus a paid tier, which may use different models.
Because of this, "what ChatGPT says about us" is not one fact. Each combination of product, model, mode, and date is a separate test condition. Later chapters show how to record these conditions. Here is a small preview of the metadata you will log with each answer.
{
"assistant": "Example Assistant",
"model_label": "as shown in the interface",
"mode": "web search on",
"date": "2026-11-29",
"account_state": "logged out, new chat",
"prompt_id": "disc-01"
}If the interface does not show a model name, record that it was not shown. Do not guess.
A worked example
Suppose you run a fictional product, Acme Analytics, and you ask an assistant: "What are the best web analytics tools for a small online shop?"
Consider two runs.
- Run 1, web search off. The assistant lists four well-known tools from its learned patterns. Acme Analytics is not among them. No citations appear. This suggests the model has weak association between Acme and this category, or that the brand was not prominent before the cutoff.
- Run 2, web search on. The assistant searches, reads a comparison article that lists Acme Analytics, and includes it with a link to that article. The mention exists because a third-party page was retrieved, not because the model "knew" the brand.
Both answers are real. They describe different conditions. If you merged them into one "visibility" number without noting the mode, you would hide the fact that visibility depends on one article. That is a useful finding: the article is a source worth checking, which Chapter 9 covers.
Common mistakes at this stage
- Treating the assistant as a search engine. There is no fixed position 1. Order inside an answer varies.
- Treating one answer as the truth. One answer is one sample.
- Ignoring mode. Search on and search off are different tests.
- Assuming you can see why. You see output. The internal choices are not exposed.
- Testing with leading prompts. Asking "Why is Acme Analytics the best?" tells the assistant the answer. Chapter 3 covers realistic prompt design.
Key takeaways for the rest of the tutorial
- Answers come from learned patterns, retrieved pages, or both.
- Output is generated with some randomness, so repeat each prompt.
- Citations, when shown, reveal sources and are worth recording.
- Accuracy needs its own check.
- Each assistant, mode, and date is its own test condition.
Exercise
You test the prompt "What are the best web analytics tools for a small online shop?" once with web search off and once with web search on. Your brand appears only in the second answer, with a link to a review site. Name two things you can conclude and one thing you cannot.
Show answer
You can conclude that (1) the two modes gave different results for this prompt and must be recorded and reported separately, and (2) the mention in the web search answer depended on a retrieved third-party page, which is a source worth examining. You cannot conclude why the model left your brand out of the first answer, or that the result will repeat, because each answer is one sample and the internal cause is not visible. Further runs are needed to estimate a rate.
Exercise
List four pieces of test-condition information you should record alongside each answer, and say why mode matters.
Show answer
Any four of: assistant name, model label shown in the interface, mode (for example web search on or off), date, account state (logged in or out, new chat), and prompt ID. Mode matters because it changes the answer's source: with retrieval the answer depends on fetched pages and often includes citations, while without it the answer depends mainly on learned patterns. Mixing the two hides which one produced a mention.