Use search results in prompts to fix LLMs' outdated facts

October 5, 20238 min

Overview

Decision SnapshotNeeds Validation

The method is practical and training-free: formatting and adding search snippets to prompts yields large evaluated gains, but depends on search quality, prompt context limits, and regular dataset updates.

Citations6

Evidence Strength0.85

Confidence0.85

Risk Signals12

Trust Signals

Findings with numeric evidence: 5/5

Findings with evidence refs: 5/5

Results with explicit delta: 3/4

Reproducibility

Status: Partial assets available

Open source: Partial

At A Glance

Cost impact: 60%

Production readiness: 70%

Novelty: 50%

Authors

Tu Vu, Mohit Iyyer, Xuezhi Wang, Noah Constant, Jerry Wei, Jason Wei, Chris Tar, Yun-Hsuan Sung, Denny Zhou, Quoc Le, Thang Luong

Links

Abstract / PDF / Data

Why It Matters For Business

You can cut hallucinations and quickly update factual behavior by piping search snippets into prompts instead of retraining models—a low-cost way to keep LLM-powered features current.

Who Should Care

Summary TLDR

The paper introduces FRESHQA, a 600-question benchmark for time-sensitive and false-premise queries, and a prompting method called FRESHPROMPT that injects Google Search snippets into few-shot prompts. Human evaluation (50K+ judgments) uses two modes: RELAXED (main answer correct) and STRICT (no hallucination). FRESHPROMPT (no training) gives large accuracy gains: GPT-4 + FRESHPROMPT improves absolute accuracy by 47.0 percentage points (STRICT) and 31.4 points (RELAXED) on FRESHQA. The number and order of retrieved evidences strongly affect results. Dataset released on GitHub.

Problem Statement

Pretrained LLMs encode stale facts and hallucinate on time-sensitive or false-premise questions. The paper asks: how badly do models fail on up-to-date queries, and can search-engine evidence injected via prompting (no training) improve factuality?

Main Contribution

FRESHQA: a dynamic 600-question benchmark for time-sensitive and false-premise open-ended QA with human-verified answers and regular updates.

Large-scale human evaluation (50K+ judgments) using two modes: RELAXED (main answer correct) and STRICT (no hallucination).

Key Findings

Pretrained LLMs without web evidence perform poorly on up-to-date QA.

NumbersSTRICT: 0.832.0%; RELAXED: 0.846.4% across models

Practical UseDon't rely on vanilla LLMs for current facts; add retrieval or web signals for timely queries.

Evidence RefFigure 2; Tables 3-4

FRESHPROMPT yields large absolute accuracy gains for GPT-4 on FRESHQA.

NumbersGPT-4 + FRESHPROMPT vs GPT-4: +47.0 pp (STRICT), +31.4 pp (RELAXED)

Practical UseAdd formatted search snippets into few-shot prompts to quickly raise factual accuracy without retraining.

Evidence RefTable 1

Results

MetricValueBaselineDeltaSplit / DatasetEvidenceEvidence Ref
Accuracy75.6% (GPT-4 + FRESHPROMPT)28.6% (GPT-4)+47.0 ppFRESHQA test (all)Table 1 STRICT overall rowsTable 1
Accuracy77.8% (GPT-4 + FRESHPROMPT)46.4% (GPT-4)+31.4 ppFRESHQA test (all)Table 5 RELAXED overall rowsTable 5

What To Try In 7 Days

Run a small set of time-sensitive queries (FRESHQA dev samples) to measure your model's baseline.

Implement FRESHPROMPT: fetch top ~10 search snippets, format source/date/snippet, add 5 concise demonstrations, and prompt your LLM.

A/B test premise-check instructions and vary number/order of snippets; prefer search/time ordering and 10–15 evidences for best accuracy.

Reproducibility

Code AvailableNo
Data AvailableYes
Open Source StatusPartial
LicenseUnknown

Risks & Boundaries

Limitations

FRESHQA must be updated regularly; answers can become stale between updates.

FRESHPROMPT was benchmarked with Google Search; other search engines may lack answer-box or metadata and change results.

When Not To Use

When the system cannot access web search results (air-gapped environments).

When you can fine-tune a model frequently and prefer parametric updates.

Failure Modes

Search snippets can be misleading or contradict each other, causing wrong grounding.

Premise-check instructions can reduce accuracy on valid-premise queries for some models.

Core Entities

Models

GPT-4GPT-3.5CHATGPTCODEXFLAN-PALMPALMPALMCHILLAFLAN-T5T5

Metrics

AccuracySTRICTRELAXED

Datasets

FRESHQAFRESHEVAL

Benchmarks

FRESHQA

Context Entities

Models

Gpt-3.5-turbogpt-4text-davinci-003code-davinci-002

Metrics

inter-rater agreement

Datasets

TRIVIAQA (used for demonstrations)