mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
docs(admin/ai): How to improve task throughput
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
@@ -160,3 +160,17 @@ This field is appended to the block of chat messages, i.e. attached after the me
|
||||
|
||||
The number of latest messages to consider for generating the next message. This does not include the user instructions, which is always considered in addition to this. This value should be adjusted in case you are hitting the token limit in your conversations too often.
|
||||
The AI text generation provider should ideally handle the max token limit case.
|
||||
|
||||
Improve AI processing throughput
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Most AI tasks will be run as part of the background job system in Nextcloud which only runs jobs every 5 minutes by default.
|
||||
To pick up scheduled jobs faster you can set up background job workers that process AI tasks as soon as they are scheduled:
|
||||
|
||||
run the following occ commands a daemon (you can also spawn multiple, for parallel processing):
|
||||
|
||||
.. code-block::
|
||||
|
||||
occ background-job:worker 'OC\TaskProcessing\SynchronousBackgroundJob'
|
||||
|
||||
Make sure to restart these daemons regularly. For example once a day.
|
||||
|
||||
Reference in New Issue
Block a user