StudySeptember 24, 2026
How ChatGPT builds its answers
A technical talk by Mateus Borges, co-founder of Ranqia, at IA Conference Alura (September 2026): the probabilistic architecture behind ChatGPT's answers, the difference between parametric generation and web search, how search ranking, citation order and brand order relate, and what Ranqia observed in 73.1 million ChatGPT citations in Brazil. Download the full PDF with the diagrams and the data from the talk.
In September 2026, Mateus Borges, co-founder of Ranqia, took to IA Conference Alura a question Ranqia measures every day: when someone asks ChatGPT which is the best brand, the best store or the best service, what happens between the question and the answer? This paper gathers the diagrams and technical data from the talk.
ChatGPT’s answer does not come from an ordered search like that of a classic search engine. It is a synthesis: the model decides whether to consult the web, retrieves evidence and generates the answer token by token, conditioned by the parameters learned in training and, when there is a search, by the content retrieved. Formally, the probability of an answer Y depends on the question, the context, the model, the location, the moment and the tools available: P(Y | q, c, m, l, t, u).
Parametric and web search are not the same route
Training happens before the conversation and produces the model’s parameters. At run time, during the conversation, the model decides whether to search, retrieves and synthesizes, all conditioned by the same parameters. The decision to search depends on the availability of the tool, the instructions, the user’s request, the need for information and how current the topic is, and the model may consult the web more than once before answering.
This changes how a brand appears. Without search, the mention comes from regularities learned in training: there is no direct arrow from a specific document to a sentence in the answer, and the presence of a brand in the answer does not prove it came from a memorized document. With search, the retrieved content conditions the synthesis, and other gears come into play: lexical retrieval (BM25) and semantic retrieval by embeddings, a set of candidates, and a reranking step that evaluates query and document together before deciding what becomes evidence.
Search ranking, citation order and brand order are three different things
A teaching example from the talk shows why confusing these three layers leads to wrong readings: a source can hold the 3rd position in the search ranking and appear as the 1st citation in the answer, supporting two different brands on its own. Other pages well positioned in the search ranking are simply left out of the answer. Source recurrence and brand recurrence are not the same metric, and a brand’s final frequency combines mechanisms that cannot be separated just by counting appearances.
ChatGPT’s interface exposes part of this execution (the query made, the source retrieved, the final citation), but not all of it. When a query does not appear in the streaming, it may mean the model did not search, that telemetry did not expose the event, that there was a collection error, or simply that the search was not confirmed. The talk separates these four states because attributing an absence to cache, without additional evidence, is a common mistake among people who analyze this data.
What Ranqia measured: 73.1 million citations
Between April and August 2026, Ranqia observed 73.1 million citation records visible in ChatGPT answers, on questions in Portuguese about business in Brazil, pointing to 305,500 distinct domains. This corpus shows, for example, that the position of the thirty largest news portals changed considerably between April and August: Folha was not in the top 50 in April and reached 1st place in August, while CNN Brasil and Exame held a stable position throughout the period. Among social networks, the leader changed four times in five months: LinkedIn in April, Reddit in May and June, YouTube in July, Instagram in August.
What the full PDF brings
- The full probabilistic architecture of ChatGPT’s answers and the difference between parametric generation and RAG web search.
- How the Wilson confidence interval changes with sample size, and how much sampling effort each margin of error requires.
- The diagrams of retrieval, reranking and token-by-token generation, with a numerical example of probability per token.
- The bump charts with the monthly movement of the thirty largest news portals and the main social networks cited by ChatGPT in Brazil, from April to August 2026.
- The observation and intervention cycle Ranqia uses to measure, diagnose and act on a brand’s presence in ChatGPT’s answers.