How do you add context to the AI models?

Anthropic Claude has this Screenshot 2024-08-30 at 11.50.12

I wonder what do people usually do to add context as they do prompting, esp for the open source models that can be run locally (e.g. Llama 3.1)

Thanks you!