News

How to use Nextcloud Assistant with files on your own server

Set up Nextcloud Assistant for summaries and questions about team files. See what Context Chat indexes, where the model runs, and what to test before rollout.

Finley · FoxAI World3 min read
18
Finley stands beside a laptop and server with connected document and robot icons and Nextcloud logos.AI for Nextcloud Files

Conceptual cover created with AI.

You need a short recap of a meeting today. Next week, you may need to find out what the team agreed across several sets of notes. On a self-hosted Nextcloud, the Assistant can summarise text you supply, and the Context Chat add-on can look for answers in indexed files. Both use a text model set up by your administrator. That setup determines where the AI processes the text.

Run a text task in the browser

Open the Assistant from the icon at the top right of Nextcloud. Choose a task such as summarising or rewriting, enter the text and submit it. The Assistant provides the interface. A backend, the software that runs or connects to the model, processes your request. If a task is missing, check with your administrator whether the provider supports it and whether the task is enabled.

Finley sits at a laptop beside a diagram linking files and a Nextcloud server to processing icons and animal avatars.
AI-generated conceptual illustration.

How Context Chat searches your files

Context Chat builds a search index by extracting text from files it can process and splitting it into passages. It keeps a copy of those passages in a PostgreSQL database, along with vectors, which represent the meaning of the text as numbers. This lets it find passages related to your question even when they use different words. The configured model uses the material found in the index as context for its answer. The first indexing run can take time, depending on how many files you have and how large they are.

Check where the text goes

The llm2 backend runs language models on hardware you control. Nextcloud’s OpenAI integration can send text to OpenAI or point to your own LocalAI or Ollama server. Check the server address configured for the integration to see where requests go. With Context Chat, also check where the PostgreSQL index lives and where the vectors are generated. Administrators can configure an external database or a separate service to generate those vectors.

Set up the components in order

In the Nextcloud 35 guide, the administrator starts with Assistant on the Apps page, then configures a Deploy Daemon in AppAPI, the system Nextcloud uses to deploy external apps. Install Context Chat Backend followed by Context Chat. The first two numbers of their app versions must match. Install a text generation provider and assign it to the relevant tasks in the Artificial intelligence settings.

Budget resources for the model and the search index separately. The Nextcloud 35 manual lists at least 12 GB of system RAM for llm2 in both its CPU and GPU configurations. For its NVIDIA GPU setup it also lists at least 8 GB of graphics memory. Context Chat has its own requirements because it builds and stores the index.

Run a small pilot before rolling it out

Context Chat skips password-protected files and does not support files over 100 MB. Nextcloud also documents that Context Chat does not apply the rules of the File Access Control app. Take that into account before enabling it on a workspace that relies on those rules.

I’d start with a few non-sensitive meeting notes and a question whose answer you already know. Check the indexing status in the admin settings, then compare the model’s answer with the original notes. The model can get a decision or deadline wrong, so keeping a person responsible for checking those details makes the pilot a better guide to whether the team will actually save time.

Ask AI about this article

Opens in a new tab with the question filled in.

Sources and research

Written by FoxAI World. The cover and illustrations are AI-generated conceptual artwork.

Your favourites

This list stays in this browser on your device. No account is needed, and other visitors cannot see it.

Use a story’s bookmark button to add your first favourite.