llm input_error ai_generated true

Error: input exceeds maximum context length

ID: llm/context-window-exceeded

Also available as: JSON · Markdown
85%Fix Rate
88%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
any active
any active

Root Cause

Input prompt exceeds model context window limit.

generic

Workarounds

  1. 90% success Implement chunking with overlap for long documents
  2. 92% success Use RAG to retrieve only relevant context instead of full document

Dead Ends

Common approaches that don't work:

  1. Truncate from the end 78% fail

    Loses most recent/relevant context

  2. Switch to model with larger context without testing 72% fail

    Different model behavior and quality