From 5ee2436e4f49c957314318eb3dac0b0283f17d3b Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Fri, 26 Jul 2024 10:44:42 +0200 Subject: [PATCH] docs(admin/ai): Add note about restarting job workers Signed-off-by: Marcel Klehr --- admin_manual/ai/app_context_chat.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/admin_manual/ai/app_context_chat.rst b/admin_manual/ai/app_context_chat.rst index 7d190edb1..9fc97f2cf 100644 --- a/admin_manual/ai/app_context_chat.rst +++ b/admin_manual/ai/app_context_chat.rst @@ -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 -------