Analysis truncated at the 8,192-token cap permanently fails ingest for sources below the chunking threshold
Summary
Ingesting a long, information-dense source fails permanently with:
Analysis was truncated after reaching the 8,192 token output limit. Wiki pages were not generated from the incomplete analysis. Split the source or use a model with a larger output limit.
The failure is not retryable — the source is never re-attempted and no wiki page is produced from it.
Environment
- LLM Wiki 0.6.12 (macOS, arm64)
- Provider: DeepSeek official API (
api.deepseek.com), modeldeepseek-flash - API Mode:
OpenAI-compat Reasoning during ingest: Off — verified on disk asingestReasoning: {"mode":"off"}
Reproduction
Ingested a single clipped article (Chinese, Markdown): 74,057 bytes / 25,228 characters.
Result: failed twice with the error above.
The important detail is the size. 25,228 characters is far below the ~123K-char threshold that gates the chunked-analysis path (analyzeLongSourceInChunks). So the source takes the single-pass path, its analysis output exceeds the 8,192 cap, and it fails permanently with NonRetryableIngestError.
Observed size boundary
Same project, same settings:
| source size | outcome |
|---|---|
| 1,476 / 2,685 / 12,448 / 13,439 bytes | success |
| 25,055 bytes | truncated |
| 74,057 bytes | truncated |
Two common explanations that do not apply here
- Not a thinking-token problem. Reasoning is explicitly disabled for ingest (the client sends
thinking: {type:"disabled"}). The truncation is purely the analysis output cap. This is a different failure mode from #743, where the model emits reasoning but no content. - Not an endpoint / gateway problem. This reproduces against the official DeepSeek API. The endpoint's own reported ceiling is
max_tokens≤ 393,216, so the 8,192 limit is imposed by the client, not the provider.
Related
- #798 — proposes falling back to chunked analysis when a single pass is truncated; looks like the right shape for this.
- #757 / #756 — same cap; adds a warning rather than a fix.
- #743 — related symptom, different failure mode.
Practical impact
For anyone ingesting real-world long-form material — judgments, full-text regulations, long articles — the single-pass path becomes unreliable once a source gets past a few tens of KB, and splitting by hand is the only workaround available to the user.
Happy to run additional diagnostics on request.
Source: nashsu/llm_wiki