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.
Comments
Similar requests
[Feature Request] Allow overriding the embeddings encoding_format for OpenAI-compatible LLM providers
4 votes · 0 comments
[Feature Request] Different keys for LLM vs. LLM embeddings
6 votes · 0 comments
[Feature Request] AI chat/RAG: cache the embedding model instead of reloading it on every query
2 votes · 0 comments
Allow AI classification strategy to be selected independently of embeddings
1 vote · 0 comments
[Feature Request] overhaul worker management
1 vote · 0 comments
No comments yet.