6
[Feature Request] AI Suggestions Cache
Source: paperless-ngx/paperless-ngx#13648 · opened by @n3roGit
Description Description When using Paperless AI suggestions (/api/documents/<id>/ai_suggestions/), results are cached in Redis with a hard-coded TTL of 50 minutes (CACHE_50_MINUTES in documents/caching.py). On cache hit the TTL is refreshed, but idle entries expire. Any document post_save also invalidates the cache immediately. For setups with a local / self-hosted LLM (often slow: tens of seconds to minutes per classification), this is awkward: 1. We warm the cache from a post-consume script (GET …/ai_suggestions/) so suggestions are ready when a human opens the document. 2. If the document is not opened within ~50 minutes, the expensive LLM work is discarded and must be recomputed on next open. 3. There is no documented env var to configure this TTL (unlike e.g. PAPERLESS_READ_CACHE_TTL for the read/cachalot cache). Feature request / discussion 1. Configurable AI suggestion cache TTL Please consider making the LLM suggestion cache TTL configurable, e.g.: …
No pledges yet. Be the first to back this.
Comments
Similar requests
[Feature Request] Automatically suggest non-LLM suggestions when editing documents, like in versions before 3.0.0
15 votes · 0 comments
[Feature Request] Allow workflow actions to wait for AI suggestions to be applied
1 vote · 0 comments
[Feature Request] AI Suggestions should prefer existing tags, document types, and storage paths
46 votes · 0 comments
Disable "Apply AI suggestions" workflow action on documents with no content
1 vote · 0 comments
[Feature Request] Option to disable automatic AI suggestions on opening Inbox documents
20 votes · 0 comments
No comments yet.