Skip to content

Commit 68a17b0

Browse files
committed
feat(AI/ContextChat): add docs for scaling
Signed-off-by: Anupam Kumar <[email protected]>
1 parent 4e5449e commit 68a17b0

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

admin_manual/ai/app_context_chat.rst

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,29 @@ Synchronous indexing
104104
Scaling
105105
-------
106106

107-
It is currently not possible to scale ExApps like Context Chat, we are working on this. Based on our calculations an instance has a rough capacity of 1000 user requests per hour. However, this number is based on theory and we do appreciate real-world feedback on this.
107+
There are three major parts that influence the performance of the system:
108+
109+
1. **The text-to-text task processing provider (like OpenAI and LocalAI integration, LLM2, etc.)**
110+
111+
The text-to-text task processing provider can be scaled by using a hosted service using the `OpenAI and LocalAI integration (via OpenAI API) <https://apps.nextcloud.com/apps/integration_openai>`_ like OpenAI or by hosting your own model on powerful hardware.
112+
113+
2. **The vector DB performance**
114+
115+
| The vector DB performance can be scaled by using a dedicated or cluster setup for PostgreSQL with the pgvector extension.
116+
| The connection string of the external vector DB can be set using the environment variable ``EXTERNAL_DB`` during deployment in the "Deploy Options".
117+
118+
3. **The embedding model performance**
119+
120+
| The embedding model performance can be scaled by using a hosted embedding service, locally or remotely hosted. It should be able to serve an OpenAI-compatible API.
121+
| The embedding service URL can be set using the environment variable ``CC_EM_BASE_URL`` during deployment in the "Deploy Options". Other options like the model name, api key, or username and password can be set using the environment variables ``CC_EM_MODEL_NAME``, ``CC_EM_API_KEY``, ``CC_EM_USERNAME``, and ``CC_EM_PASSWORD`` respectively.
122+
123+
If context_chat_backend is already deployed, you can change these environment variables by redeploying it with the new values.
124+
125+
1. Go to Apps page -> search for "Context Chat Backend"
126+
2. Disable and remove the app taking care the data is not removed
127+
3. Set the "Deploy Options" with the new environment variables
128+
4. Reinstall the app
129+
108130

109131
App store
110132
---------

0 commit comments

Comments
 (0)