Skip to content

Commit 2fa9002

Browse files
authored
Merge pull request #11974 from nextcloud/feat/context-chat-speedup
feat(AI/Context Chat): Document how to speed up loading of data
2 parents ea437e3 + 6e9a2e9 commit 2fa9002

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

admin_manual/ai/app_context_chat.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,21 @@ Installation
5353
5454
**Note**: Both apps need to be installed and both major version and minor version of the two apps must match for the functionality to work (ie. "v1.3.4" and "v1.3.1"; but not "v1.3.4" and "v2.1.6"; and not "v1.3.4" and "v1.4.5"). Keep this in mind when updating.
5555

56+
Initial loading of data
57+
-----------------------
58+
59+
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:
60+
61+
.. code-block::
62+
63+
occ background-job:worker OCA\ContextChat\BackgroundJobs\StorageCrawlJob
64+
65+
.. code-block::
66+
67+
occ background-job:worker OCA\ContextChat\BackgroundJobs\IndexerJob
68+
69+
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.
70+
5671
Scaling
5772
-------
5873

0 commit comments

Comments
 (0)