Best practices for foundation model context window

Asked on 2025-07-05

1 search

For best practices regarding the context window of foundation models, you can refer to the session titled "Explore prompt design & safety for on-device foundation models" from WWDC 2025. This session covers various aspects of prompt engineering, including how to control the amount of content generated by the model and how to specify the style and voice of the text. It also discusses the importance of designing prompts that are safe and appropriate for your app's use case.

For more detailed information, you can check out the chapter on "Prompting best practices" in the session Explore prompt design & safety for on-device foundation models (06:14). This section provides insights into how to effectively design prompts for on-device foundation models.