AI Help

How do I test prompts with long inputs before using them in production?

Test realistic long inputs with important facts at different positions and inspect both coverage and truncation.

Steps to follow

  1. Create authorized test documents near the lengths your application expects, including distracting sections and conflicting versions.
  2. Place known answer evidence near the start, middle and end, then ask questions requiring each passage.
  3. Check input and output limits, retrieval behavior and omitted facts. Split or retrieve content when full-input processing fails the task's criteria.

Example in practice

Illustrative example. A policy answer hidden near the end of a long file must be retrieved and cited just as reliably as an opening paragraph.

Related AI help

Official guidance

OpenAI documentation