What is it?

Do ChatGPT, Gemini and Claude have a database?

When ChatGPT, Gemini or Claude answers you in 2 seconds, did it look the answer up in a database? By the end of this post, you will know what the engine inside really keeps, what the app around it stores, and why that difference matters.

Read~8 min
Watch7:39 video
Practiceruns right here
Published28 Oct 2026

Prefer to watch? This post goes with the video (7:39). Open it on YouTube.

A quick question

You type a question into ChatGPT, Gemini or Claude, and the answer comes back in about 2 seconds. Where did that answer come from? Did the tool look it up in a database?

Decide firstYes or no: does it look the answer up in a database?
Pick one before you read on. Later on this page, we test it with a real tool.

Is it a search?

Most students say yes, because it feels like a search. You ask, and the information comes back.

But think about how a database search really works. If the data is there, the matching rows come out. If it is not there, you get "not found". A database never makes up a row.

A database search

data is there → the matching rows
data is missing → "not found"

An AI chat tool

it knows → an answer
it doesn't know → still an answer

These tools rarely say they don't know. They answer confidently, even when they are wrong. So the answer is not really coming from a database, and something else is going on. Let's try to understand what exactly is happening.

Think of an exam

Say you appeared for an exam. You read a question on the paper and write the answer. Your textbook is shut, so you are writing from your preparation.

A student writing an answer, with the textbook shut on the desk

How did you know the answer? You studied the topics, and you solved practice papers again and again. That practice is what lets you answer by yourself.

A stack of practice papers with ticks and crosses, next to the answer key

Now say a question comes up that you never prepared for. You won't leave it blank. You will write something, and it may be right or it may be wrong.

The student, unsure, writing something anyway on a question he never prepared for
Keep this exam in mind. The engine inside these tools works much the same way.

The engine learns the same way

The engine inside these tools learns like a student with practice papers. It reads a huge amount of text, again and again. Each time, it sees some words and guesses the word that comes next.

Your turnFill the blank: Johny Johny, yes ____
Show the answer

Papa. You knew it because you have heard the rhyme so many times. That is a next-word guess, learned from practice.

The engine plays this guessing game billions of times. After each guess it adjusts a little, and slowly it learns the patterns of the language.

Try it: a tiny next-word guesser

The goal: see how guessing from what you have seen works, and where it breaks. You don't need to know Python for this.

The steps: press Run once. Then find the line marked # edit here, change "yes" to "ha", and press Run again. Last, change it to "pizza".

Guess first: the word "pizza" is not in the rhyme. Before you run it, what do you think the guesser will say?

What you should seeword = "yes" → Its guess: papa word = "ha" → Its guess: ha word = "pizza" → Its guess: no idea

What it means: our toy keeps a small table of which word came after which, so it can honestly say "no idea". A real engine keeps no such table, only numbers. So it always writes something, like you with the exam question you never prepared for.

What happens when you ask

When you ask a question

text → numbers → a huge model → numbers → text

When you ask a question, your text is first turned into numbers. Those numbers go into the model, which is itself a huge collection of numbers. Some maths runs on them, and out comes another set of numbers.

That result is turned back into text, one word at a time. Each word is the model's best guess for what comes next.

Where would a database even fit?

So what does the model keep from all that reading? It keeps no text, only numbers: billions of them, tuned to the patterns in the text. Could those numbers hold a full copy of everything it read? Let's check with real numbers.

Meta trained its open model, Llama 3, on over 15 trillion tokens. A token is a piece of a word, and one token is about 4 characters of English. The rest is our own arithmetic:

WhatSizeHow we got it
The text Llama 3 was trained onabout 60 TB15 trillion tokens × 4 characters each
The smaller trained Llama 3 modelabout 16 GB8 billion numbers × 2 bytes each
A mountain of books labelled 60 TB of text, next to a small box labelled 16 GB model

60 TB of text cannot fit into 16 GB, a space about 3,750 times smaller. So the training text is not copied into the model. What the model keeps is the patterns in that text.

There is one exception. Think of a song in a language you don't know. You can still sing it word for word, without knowing what it means. The engine is similar with text it saw very often: that text can come back exactly.

The friend singing a song, word for word

So there is no database inside the engine, but it is not a blank slate either. OpenAI says the same in plain words: its models do not store copies of the data they were trained on.

The engine has a name: LLM

This predictive engine inside the tools has a name. It is called a large language model, or an LLM.

An LLM holds everything it learned as numbers, which are called its parameters. So that kind of memory is called parametric memory.

The app around the engine

So is ChatGPT an LLM? Not exactly. ChatGPT is the app you talk to, and the LLM is the engine inside it.

An app window with a gear inside it, labelled the engine: an LLM
The appThe engine inside
ChatGPTGPT models
GeminiGemini models
ClaudeOpus, Sonnet, Haiku
GrokGrok models

Here is the important part: the engine does not remember your chat. Every time you ask, the app sends the whole conversation so far, along with your new question. The engine reads all of it, and answers.

So who does the remembering? The app does. It saves your chats and keeps a Memory of what you shared.

The app can also search the web and read a file you upload. Then it packs the right pieces in with your question and hands them to the engine.

Your chats, Memory, the web and your files are packed in with your question and handed to the LLM

Engineers call this arranging around the engine orchestration. The engine itself still has no database.

The price of guessing

Is guessing from patterns a bad thing? No. Because the engine works with patterns instead of stored pages, it can explain an idea in fresh words, not just fetch a saved one. But that ability comes with two costs.

First, it can be confidently wrong, like you with the exam question you never prepared for. OpenAI's own researchers say these models are rewarded for guessing, instead of saying "I don't know".

Second, its learning stops on a date. To test this, I used Gemini 3.8 Flash in Google AI Studio, with Google Search switched off. I asked: has the movie Avatar: Fire and Ash been released?

The real test, 28 October 2026. Google Search is switched off, so the model answers from its own memory.

It said no, and that the film was due on 19 December 2025. In fact, the film came out on that date, and it passed $1 billion by 4 January 2026. The engine simply never read about it.

So how can we help it? Think back to the exam. Most papers have a comprehension section: a short passage, then questions on it. You answer from the passage, not from memory.

An exam paper: read the passage, then answer the questions

I gave Gemini the same kind of paper: a short passage about the movie, an empty line, and then my question. Copy it and try it yourself, in any AI app.

Paste this into the chatAvatar: Fire and Ash is the third film in James Cameron's Avatar series. It was released in cinemas on 19 December 2025. By 4 January 2026, it had earned more than $1 billion worldwide, making it the third Avatar film to cross that mark. Question: Has the movie Avatar: Fire and Ash been released?
The same model, with the passage first. The green ring marks the answer; the orange ring marks the note from its own memory.

This time it said yes, because the passage makes the date clear. Now read the note under that answer. From its parametric memory, the model still says the film has not been released. The passage gives the right answer, while its old memory argues back.

Putting the information into the question like this is called context stuffing. It is exactly what these apps do with your chats, your files and the web.

The takeaway

  1. ChatGPT, Gemini and Claude are apps. The engine inside each one is an LLM.
  2. The engine has no database. It keeps patterns as numbers, and predicts the next word.
  3. The app keeps your chats, your Memory and your files, searches the web, and hands the right pieces to the engine.

That leaves you with a question. If the engine has no database, how would you give it your own data, such as your college notes or your shop's price list?

References

Every number on this page, and where it comes from. Checked on 28 Oct 2026.

  1. OpenAI — How ChatGPT and our foundation models are developed (updated 30 April 2025). Models are large sets of numbers, "weights" or "parameters". They "do not store or retain copies of the data they are trained on"; they predict the next word. link
  2. Meta — Introducing Meta Llama 3 (18 April 2024). "Llama 3 is pretrained on over 15T tokens", released with 8B and 70B parameters. link
  3. OpenAI Help Center — Understanding and counting tokens. 1 token is about 4 characters. So 15 trillion tokens is roughly 60 TB of text, and an 8B model at 2 bytes a number is about 16 GB: our own arithmetic. link
  4. Carlini et al. — Extracting Training Data from Large Language Models (USENIX Security 2021). Hundreds of exact passages could be pulled out of GPT-2: text seen often, or very unusual, can come back word for word. link
  5. Lewis et al. — Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks (2020). Where the term comes from: "parametric memory" (what the model's numbers hold) and "non-parametric memory" (a searchable index). link
  6. OpenAI Help Center — Memory in ChatGPT; Searching the web with ChatGPT; Deleting and archiving chats (checked 26 October 2026). The app keeps your chats, a Memory of details you shared and your files, and can search the web. link
  7. OpenAI — Why language models hallucinate (5 September 2025). Hallucinations are "plausible but false statements"; models are rewarded for guessing over saying "I don't know". link
  8. Boxoffice Pro — Avatar: Fire and Ash crosses the billion-dollar mark at the global box office. As of 4 January 2026 the film had earned $1.083 billion worldwide, the third Avatar film past $1 billion. It opened on 19 December 2025. link
  9. My own runs — 27–28 October 2026: the Gemini API and Google AI Studio (Gemini 3.8 Flash, Grounding with Google Search off). Asked cold, the models said the film was not out yet. With the passage first, they said yes. The two recordings on this page are real.