Commit Graph
1 Commits
Author SHA1 Message Date
Trenton H b9c7a21340 Enhancement: Answer chat questions from all retrieved chunks in one call (#14851)
* Enhancement: Answer chat questions from all retrieved chunks in one LLM call

The chat response synthesizer packed the retrieved chunks using the embedding
chunk size as its limit, so nothing merged and each question took 3 to 6
sequential LLM calls. Use the configured context size as the limit instead,
so the chunks share one prompt.

If the server rejects the larger prompt with a 400, log a warning naming
PAPERLESS_AI_LLM_CONTEXT_SIZE and retry once with the embedding chunk size,
as before. The retry only happens before anything has streamed.

* Fne, annotate chat synthesizer llm as LLM
2026-11-25 09:54:50 -08:00