Skip to content

Sampling & the Context Window

  • Probability distribution over the next token
  • Temperature and sampling
  • The context window: the model’s entire working memory
  • Retrieval (RAG): chunking documents and pulling relevant pieces into context