Please enable JavaScript to use CodeHS

AI Then and Now

How AI Learned to Show Its Sources

Early chatbots answered only from memory, and you had no way to see where an answer came from. Newer AI tools can look things up first, then point you to what they read. Here's how that works, and why you should still click.

Grounding & citations ~8 min Grades 5–9
The True Story

The chatbot that couldn't open a book

Imagine a friend who read millions of pages years ago. Ask them anything, and they answer right away. But they can't open a book or look anything up. They can only use what they remember. And when they don't remember, they sometimes fill the gap with something that just sounds right.

That's how the first popular chatbots worked. They learned from a huge pile of text during training. After that, they answered from memory alone. They couldn't tell you where an answer came from, and they didn't know about anything that happened after their training ended.

Researchers had been working on a fix for a while. In 2020, Patrick Lewis and a team from Facebook AI Research, University College London, and New York University published a paper that gave the idea a name: retrieval-augmented generation, or RAG. Their AI didn't just rely on memory. It could also search a big collection of Wikipedia text, pull out the most useful passages, and use them to write its answer.

Then the idea moved out of the lab. In December 2022, a company called Perplexity launched an AI search tool built around answers with links to the sources it used. On February 7, 2023, Microsoft announced a new Bing with an AI chat that searched the web first. Microsoft said it "cites all its sources," so people could see links to the pages behind each answer. On October 31, 2024, OpenAI launched ChatGPT search, which gives answers with links to web sources.

The friend who could only remember had learned to open a book, and to show you the page.

SOURCES SHOWN
What happened
AI went from answering only from memory to searching first and showing links to what it read.
When
The idea got its name in a 2020 research paper. AI tools that cite sources reached the public in late 2022 and early 2023, and spread from there.
Where
First in research labs (Facebook AI Research, University College London, and New York University), then in AI search tools and chatbots used by millions of people.
The catch
An AI that shows its sources can still get them wrong. The links are there so you can check.

The Big Idea

Look it up first, then answer

A chatbot that answers from memory is like taking a test with no notes. A chatbot that searches first is like an open-book test. It still has to read carefully and write a good answer, but it has real text right in front of it.

Simple definition: grounding means giving an AI real text to work from, like search results, a textbook, or a company's help pages, so its answer is based on that text and can link back to it. RAG (retrieval-augmented generation) is one common way to do it: search first, then write the answer.

1. Search

The AI turns your question into a search. It might search the web, a school's library pages, or one company's documents.

2. Read

It pulls out the passages that seem to answer your question, and keeps track of where each one came from.

3. Answer and cite

It writes an answer using those passages, with little numbers or links that point back to each source.

Why does this help? Three reasons. The AI can use real sentences instead of filling gaps from a fuzzy memory, so it makes things up less often. It can find new information that came out after its training. And it gives you a way to check.

But grounding doesn't make mistakes impossible. An AI can misread a source, mix up two facts, or quote a weak source as if it were a strong one. In 2024, Google's AI search summaries repeated a joke about putting glue on pizza, because the AI had found a joke comment and couldn't tell it was a joke. (You can read that whole story in Glue on Pizza?) The answer had a source. The source was just a bad one.

Honest truth: AI tools that search and cite make up answers much less often than the chatbots of 2022 and 2023. But AI mistakes, sometimes called hallucinations, are not gone. That's why the links matter: they turn "trust me" into "go see for yourself."


Then and Now

From "trust me" to "here's where I read it"

Then (2022–2023)

  • Most popular chatbots answered from memory alone.
  • No links, so you couldn't see where an answer came from.
  • They didn't know about news after their training ended.
  • When memory was fuzzy, they sometimes invented details that sounded real.

Now

  • Many AI tools can search the web before they answer.
  • Answers often come with numbered links you can click.
  • Schools and companies can connect AI to their own documents, so it answers from their pages.
  • Made-up answers are much less common, but they still happen, and a source can still be misread.
  1. 2020A research paper by Patrick Lewis and colleagues names the idea "retrieval-augmented generation."
  2. December 2022Perplexity launches an AI search tool that shows sources with its answers.
  3. February 2023Microsoft announces a new Bing with AI chat that searches the web and links to its sources.
  4. October 2024OpenAI launches ChatGPT search, with links to web sources.
  5. TodaySearching first and showing sources is a common feature in AI tools. Clicking those sources is still up to you.

Interactive

Memory vs. search

Meet Pip, a made-up AI helper. You'll ask Pip four questions. For each one, try both modes: Answer from memory and Search first. In search mode, click the little numbers to open the sources. Then decide which answer you'd trust. Watch out: one of Pip's search answers has a mistake that you can only catch by clicking.

QUESTION 1 OF 4 Sources opened: 0 Score: 0 / 4

Pick a mode above to see Pip's answer.

Pip, the questions, and every source here are made up for practice.

Which answer would you trust?

Try both modes first.

Did you spot the pattern? Memory did fine on a well-known fact, but it got stuck on anything new, anything specific to your class, and a trick question. Search did better, but only clicking the source caught the science fair mix-up. Showing sources doesn't mean an answer is right. It means you can find out.


The Habit

Click at least one source

Those little numbers only help if someone opens them. When an AI answer matters, for homework, a decision, or something you're about to share, take thirty seconds and do this.

1

Look for the links

Check whether the answer shows sources at all. No links? Then you're getting an answer from memory, and you'll need to check it another way.

2

Click at least one

Pick the source behind the most important part of the answer and open it.

3

Find the sentence

Does the source really say what the AI said? Look for the actual words. Watch for mix-ups like first place vs. second place.

4

Check the source itself

Who made it? Is it a joke, an old post, or a random comment? A real link to a weak source is still a weak answer.

Remember: a citation is an invitation, not a guarantee. The more important the answer, the more it's worth one click.


Talk About It

Try it with your family or class

Pick one of these to talk about at dinner, in the car, or with a classmate.

  • Ask an AI tool a question about a game you play, like when a new update comes out. Does it show sources? Click one together. Is the source the game's official site, a fan wiki, or a random post?
  • For your next school project, find one AI answer with a citation and open it. Did the source say exactly what the AI said, or something a little different?
  • When a friend shares a surprising "fact" in a group chat, what's the friendly way to ask "where did you see that?" Why is that the same question you'd ask an AI?

Your Turn

Check your understanding

In your own words, explain why an AI that searches first and shows its sources is easier to trust than one that answers from memory. Then explain why you should still click at least one source.

Your answer:

Sample answer: An AI that searches first has real text to work from, so it makes things up less often, and it can find new information from after its training. The links also let me see where the answer came from. I should still click a source because the AI can misread it, like mixing up first and second place, or it can use a bad source, like the joke about glue on pizza. Clicking lets me check that the source really says that and that the source is trustworthy.


Check Yourself

Quick quiz

1. What does it mean when an AI's answer is "grounded"?

2. You ask about something that happened last week. Why is "search first" usually better than "answer from memory"?

3. An AI answer has a citation. You click it, and the page says something a little different from the AI's answer. What should you do?

You just checked an AI's homework

Showing sources is one way AI got more honest. Next, you'll see another: teaching AI that it's okay to say "I'm not sure," and why the way we score tests has a lot to do with it.

Part of the AI Then and Now tutorial series.