Tokens, OpenAI, 2023 (OpenAI) - Explains what tokens are, how they are counted, and their relevance to context windows and costs, directly supporting the token counting and budget concepts.
Prompt engineering best practices, OpenAI, 2023 (OpenAI) - Provides guidance on constructing effective prompts, including using system messages and managing context, which indirectly touches on token budget allocation for different prompt components.