mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-12-06 11:11:56 +00:00
* 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