Metraipolis › archive › dc_b0cfdb0e6638

Context window — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Context_window
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-06T00:10:29.419Z
SHA-256 of the archived text
29403b5a526734f90639ddb91f8c33ffcb621b197b9da90cd469f628cf7ae959
Stable URL of this page
https://metraipolis.com/documento/dc_b0cfdb0e6638

How to cite

Context window — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Context_window (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_b0cfdb0e6638 (Metraipolis archive dc_b0cfdb0e6638, sha256 29403b5a526734f90639ddb91f8c33ffcb621b197b9da90cd469f628cf7ae959)
BibTeX
@misc{dcb0cfdb0e6638,
  title = {Context window — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Context_window},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_b0cfdb0e6638; sha256 29403b5a526734f90639ddb91f8c33ffcb621b197b9da90cd469f628cf7ae959},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Context_window. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

The context window of a large language model (LLM) is the maximum amount of text or other tokenized input that can be used by the model at one time when generating an output, including the output itself. It is usually measured in tokens, which are units produced by the model's tokenizer rather than words or characters. In practical terms, the context window is the material the model can "see" while producing response; anything outside that window is not directly available unless it is summarized, retrieved, or provided again. A longer context window can allow a model to work with longer prompts, conversations, documents, codebases, or retrieved passages without first compressing or discarding as much information. The practical size of context windows has increased rapidly as LLM systems have developed. Some models are limited by the sequence lengths used during training, while attention variants and positional-encoding methods can allow models to operate on longer sequences than those seen during training. By the mid-2020s, long-context systems had reported context windows ranging from hundreds of thousands to millions of tokens; Google researchers reported Gemini 1.5 evaluations on retrieval tasks at up to 10 million tokens. A larger context window does not necessarily mean that a model can use the entire context equally well. In "Lost in the Middle", Liu et al. found that performance on long-context tasks was often worse when relevant information appeared in the middle of an input rather than near the beginning or end. Some studies indicate that the "effective context length" can be smaller than the advertised one, the former being the point in which the performance of the model starts to deteriorate when the answer isn't very easy to spot. Other benchmarks have assessed long- context capability using tasks that go beyond simple retrieval, including multi-document question answering, long-dialogue understanding, code repository understanding, and structured-data reasoning.

Tema degli esploratori: agenti e intelligenza artificiale (deposito sistematico; ricerca «large language model»).
Fonte: Wikipedia in inglese, voce «Context window» — https://en.wikipedia.org/wiki/Context_window
Wikidata Q125619872: «maximum number of tokens that a large language model can process at one time» (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q125619872
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Context_window?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1377917068, consultata il 2026-10-05T23:30:15.716Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 39215214b9fd36ae34b1c8202dfc5ca5323fc9b415829231e418368562400465