From fd5b0f99e4a19b66f2cc59e13338c4289826ff64 Mon Sep 17 00:00:00 2001 From: Anupam Kumar Date: Fri, 22 Aug 2025 12:51:42 +0530 Subject: [PATCH] [stable31] chore(AI/ContextChat): update inital indexing docs (#13529) (#13530) Signed-off-by: Anupam Kumar --- admin_manual/ai/app_context_chat.rst | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/admin_manual/ai/app_context_chat.rst b/admin_manual/ai/app_context_chat.rst index 1501670b4..eeabfbb08 100644 --- a/admin_manual/ai/app_context_chat.rst +++ b/admin_manual/ai/app_context_chat.rst @@ -75,7 +75,19 @@ Initial loading of data | Context chat will automatically load user data into the Vector DB using background jobs. | The initial loading of data can take a long time depending on the number of files and their size. -| To speed up the asynchronous indexing or to stop it altogether, see the `Configuration Options (OCC)`_. + +The indexing jobs are set up to run during the Nextcloud instance's maintenance window (typically during the night) only. If you have not set a maintenance window, indexing will run 24/7. + +| You can set up a separate cron job to run every 30 minutes for Context Chat to avoid slowing down normal background job operation on larger instances. +| The following command can bypass the maintenance window so it can either be set to run during the day even with a maintenance window set, or it can be set to run during the weekends 24/7 to speed up the indexing process. + +.. code-block:: + + php cron.php "OCA\\ContextChat\\BackgroundJobs\\IndexerJob" "OCA\\ContextChat\\BackgroundJobs\\ActionJob" "OCA\\ContextChat\\BackgroundJobs\\SubmitContentJob" "OCA\\ContextChat\\BackgroundJobs\\StorageCrawlJob" "OCA\\ContextChat\\BackgroundJobs\\InitialContentImportJob" + + +Synchronous indexing +~~~~~~~~~~~~~~~~~~~~ | To index all the files synchronously, use the following command: | Note: This does not interact with the auto-indexing feature and that list would remain unchanged. However, the indexed files would be skipped when the auto indexer runs.