mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-02 17:59:36 +07:00
docs(admin/ai): Add note about restarting job workers
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
@@ -57,18 +57,20 @@ Installation
|
||||
Initial loading of data
|
||||
-----------------------
|
||||
|
||||
Context chat will automatically load user data into the Vector DB using background jobs. To speed this up, you can set up multiple background job worker machines and run the following occ commands in parallel on each:
|
||||
Context chat will automatically load user data into the Vector DB using background jobs. To speed this up, you can set up multiple background job workers (possibly on dedicated machines) and run the following occ commands as daemons in parallel on each:
|
||||
|
||||
.. code-block::
|
||||
|
||||
occ background-job:worker OCA\ContextChat\BackgroundJobs\StorageCrawlJob
|
||||
occ background-job:worker 'OCA\ContextChat\BackgroundJobs\StorageCrawlJob'
|
||||
|
||||
.. code-block::
|
||||
|
||||
occ background-job:worker OCA\ContextChat\BackgroundJobs\IndexerJob
|
||||
occ background-job:worker 'OCA\ContextChat\BackgroundJobs\IndexerJob'
|
||||
|
||||
This will ensure that the necessary background jobs are run as often as possible: ``StorageCrawlJob`` will crawl Nextcloud storages and put files that it finds into a queue and ``IndexerJob`` will iterate over the queue and load the file content into the Vector DB.
|
||||
|
||||
Make sure to restart these daemons regularly. For example once a day.
|
||||
|
||||
Scaling
|
||||
-------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user