Connecting GPT4All to ONLYOFFICE Desktop Editors on Ubuntu

Artificial Intelligence has become a powerful tool for boosting productivity and efficiency. AI-based chatbots are trained to assist you in content writing, image generation, data processing, programming, information analysis, and many more.

This guide will show you how to enable AI-powered document editing on Ubuntu using the ONLYOFFICE Desktop Editors package for Linux, and GPT4All platform designed to run local AI models. This integration allows you to use any large language model provided by GPT4All and its capabilities right in your document, without having to launch the platform itself.

GPT4All is a free and open-source platform designed to respect data privacy while running AI models locally, without access to the Internet. The platform is compatible with various CPUs and GPUs and provides access to more than 1000 open-source large language models (LLM), including Llama, Mistral and more.

Here is a quick overview of what you can do in ONLYOFFICE Desktop Editors using LLMs provided by GPT4All:

  • Generate new text content and rewrite the existing one according to your needs;
  • Improve your writing skills by finding synonyms and correcting spelling/grammar mistakes;
  • Summarize large volumes of text information;
  • Extract keywords for SEO purposes
  • Find the answers to your questions;
  • Translate and more.

Step 1. Install GPT4All

Install GPT4All using the official installer that you can download from the GPT4All website.

Once you have downloaded the installer, run it and follow the instructions provided by the installation wizard.

Installing GPT4AllInstalling GPT4All
Please note that you might need to make the installer executable first by ticking the corresponding option in its properties.

Installing usually takes a few minutes. Click the Finish button to complete the installation.

Step 2. Run GPT4All and download the AI model

After installing GPT4All on your Ubuntu, you have to launch it and download one of the available LLMs.

  1. To do so, run the platform from the gpt4all folder on your device. When launching it for the first time, you will be invited to take part in anonymous usage analytics. If you choose not to participate, click No.
    Installing GPT4AllInstalling GPT4All
  2. Go to the Models section and choose the model you would like to run locally.
    Please note that some AI models have high RAM requirements and might need you to have an API key. If a model needs an API key, you can get it from the corresponding AI provider. In some cases, it’s not free so you need to choose wisely.
  3. Choose the model of preference and click the Download button. The selected LLM will be downloaded to your device.
    Installing GPT4AllInstalling GPT4All
  4. Go to the Settings section and activate the Enable Local API Server option. This option is required for successful integration with ONLYOFFICE Desktop Editors. Please, remember the API Server Port.
    Installing GPT4AllInstalling GPT4All

Step 3. Install the AI plugin in ONLYOFFICE Desktop Editors

Please refer to this Tecmint guide to install ONLYOFFICE app on Ubuntu.

To get started with artificial intelligence in ONLYOFFICE Desktop Editors, you should install a special plugin that enables various AI models in the app.

  1. Launch the ONLYOFFICE Desktop Editors and create a new text document or upload one from your device.
  2. Go to the Plugins tab and launch the Plugin Manager. You will instantly see the AI plugin. Click the Install button
    Installing GPT4AllInstalling GPT4All

The AI plugin is a background plugin in ONLYOFFICE so you need to activate it after installation.

  • Go back to the Plugins tab and click the Background plugins option. Enable the AI plugin in the drop-down list of the available plugins.
  • If done correctly, a new AI tab will appear next to the Plugins tab.
    Installing GPT4AllInstalling GPT4All

Step 4. Add and configure the AI model from GPT4All

After you have installed and activatied the AI plugin, you need to add and configure the AI model from GPT4All.

  1. Go to the AI tab and open the Settings menu.
  2. Use the Add option to add a new model.
  3. In the Name field, choose the GPT4All from the listof default AI providers.
  4. Choose the corresponding model, and the URL parameter will be added automatically. In our case, the URL is http://localhost:4891, where port 4891 corresponds to the API Server Port value from GPT4All settings described in Step 2 in this guide.
    Installing GPT4AllInstalling GPT4All
  5. Click OK, if all the parameters are correct.

Step 5. Start using the AI model when editing office files

Now you can use the selected LLM while working on text documents, spreadsheets, presentations, forms and PDF files.

The AI plugin in ONLYOFFICE Desktop Editors supports multiple AI models, and you can add several LLMs to be used for different tasks via the AI configuration window.

To access the AI configuration window, click the Settings button on the AI tab, and select the AI model for each task.

Installing GPT4AllInstalling GPT4All
Since you are using a model added via GPT4All, all your requests are processed locally, and you don’t need to have an Internet connection. It may take some time for your request to be processed of your as it depends on the performance of your device.

Download free desktop apps for Windows, Linux, macOS

Article with the tag:
Browse all tags