The primary goal of LibreTools is to seamlessly integrate a program called LMStudio into LibreOffice, allowing users to run large language models (LLMs) locally on their machines. LMStudio will utilise the local computer's GPU to efficiently process and serve these models. To ensure smooth operation and easy access, LibreTools will feature a user-friendly GUI that connects directly to the LLM's IP address. This connection can be established either through the local intranet or using a service like ngrok for remote access.
By leveraging local hardware and providing a straightforward interface, LibreTools aims to make advanced AI capabilities accessible to all users, without the need for expensive cloud services or complex setup procedures. This approach not only enhances the functionality of LibreOffice but also ensures that users maintain control over their data and resources, aligning with the principles of privacy and open-source development.
Download and install LM Studio from this link.
Download the required LLM model. this link
Download and install LibreOffice from the official LibreOffice website.
cd
command. For example: cd ~
git clone https://dagshub.com/Omdena/NorthCarolinaUSAChapter_LibreToolsAIAssistantPlugin.git
Run the following command in the command line :
copy "C:\Path\To\Your\scriptlocatepython.py" "C:\Program Files\LibreOffice\share\Scripts\python"
In LibreOffice, go to Tools > Macros > Run Macro > script locate python > Main
Download and install LM Studio following the instructions for your operating system from the link.
If not already installed, download and install Libre Office from the link.
Open Libre Office Writer and ensure that Tools > Macros > Organize Macros > Python exists. If it does not exist, install libreoffice-script-provider-python by running:
sudo apt-get install libreoffice-script-provider-python
git clone https://dagshub.com/Omdena/NorthCarolinaUSAChapter_LibreToolsAIAssistantPlugin.git
Copy the Python script to the Libre Office shared folder:
sudo cp path/to/your/script/scriptlocatepython.py /usr/lib/libreoffice/share/Scripts/python
Open LM Studio, navigate to the Discover tab and download the model you wish to use.
In LM Studio, navigate to the Developer tab. Select the model to load and start the server.
In LibreOffice Writer, navigate to Tools > Macros > Run Macro... > My Macros > scripttolocatepython > main. This action opens a new dialog with the promt and instruction options.