FeatureFuel
1

[Feature Request] Settings for the LLM index queue and embedding retries/timeout

Source: paperless-ngx/paperless-ngx#14767 · opened by @dominatorstang
Description Two settings for the AI/LLM index, so a slow embedding backend does not hurt the rest of the system: 1. A dedicated Celery queue (or routing setting) for the LLM index tasks, so slow embedding work never delays document consumption or other normal tasks. 2. Settings for the embedding client's retry count and request timeout (the OpenAI-like embedding client currently uses its own defaults). Problem today With a self-hosted OpenAI-compatible embedding endpoint, embedding a large batch can take minutes and the endpoint is sometimes busy or cold. The LLM index tasks share a queue and workers with normal consumption, so a long index run can occupy workers that consumption needs. When the embedding call fails or times out, retries and timeout cannot be tuned, so a transient backend slowdown turns into repeated failed tasks. Workaround we use A Django settings override that monkeypatches task routing (to move the index tasks to their own queue served by a dedicated worke…

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests