Vibeleaderboard
← All Intel
Intel / article

Prompting Long Context

Source
anthropic.com
Author
Anthropic News
Date

Context

In a September 2023 study, Anthropic found that asking its model to pull out relevant quotes before answering helped it recall facts from very long documents. In its prompting case study, researchers built long inputs of roughly 70,000 to 95,000 by stitching together sections of a government publication, then tested multiple-choice questions about those sections, mainly on Claude Instant 1.2. Extracting quotes into a scratchpad helped in every head-to-head comparison. Adding examples of correctly answered questions drawn from the same document helped, and more examples helped more, while two generic general-knowledge examples did not seem to. Position mattered too: gains were substantial for answers at the beginning and middle of the input, but performance on answers at the very end could be degraded. The findings apply to these 2023 models and this constructed task, not to current models.

Terms in this piece · Glossary
  • token — The chunk of text a model reads and writes in — roughly three-quarters of a word — and the unit AI usage is billed in.
  • context window — The maximum amount of text a model can consider at once — its working memory for the current conversation or task.
  • eval — A repeatable test for AI quality — a set of tasks plus scoring — used the way software teams use test suites, because model output is too variable to judge by eyeballing.
Read the source www.anthropic.com
More from Anthropic News
Recommended reads
Comments

Checking sign-in…

Loading comments…