Haystack DocumentRetriever context window overflow with long documents
Problem – Context Window Overflow When Using Haystack DocumentRetriever In a production data pipeline that ingests long technical reports (PDFs, Word docs, etc.), the DocumentRetriever backed by ElasticsearchDocumentStore returns whole document sections that exceed the token limit of downstream LLMs. The pipeline aborts with errors such as: Token limit exceeded: 8192 tokens (max 4096) ElasticsearchDocumentStoreError: Document … Read more