1*7488e975SCostin Stroie (aider)====== DokuLLM Plugin Installation Guide ====== 2*7488e975SCostin Stroie (aider) 3*7488e975SCostin Stroie (aider)This guide will walk you through the process of installing and configuring the DokuLLM plugin for DokuWiki. 4*7488e975SCostin Stroie (aider) 5*7488e975SCostin Stroie (aider)===== Prerequisites ===== 6*7488e975SCostin Stroie (aider) 7*7488e975SCostin Stroie (aider)Before installing the DokuLLM plugin, ensure you have: 8*7488e975SCostin Stroie (aider) * A working DokuWiki installation (version 2020-07-29 "Hogfather" or newer recommended) 9*7488e975SCostin Stroie (aider) * PHP 7.4 or higher with cURL support 10*7488e975SCostin Stroie (aider) * Access to your DokuWiki server's file system 11*7488e975SCostin Stroie (aider) * (Optional) Access to an Ollama server for embeddings generation 12*7488e975SCostin Stroie (aider) * (Optional) Access to a ChromaDB server for document storage and retrieval 13*7488e975SCostin Stroie (aider) 14*7488e975SCostin Stroie (aider)===== Installation Methods ===== 15*7488e975SCostin Stroie (aider) 16*7488e975SCostin Stroie (aider)==== Method 1: Extension Manager (Recommended) ==== 17*7488e975SCostin Stroie (aider) 18*7488e975SCostin Stroie (aider)The easiest way to install the DokuLLM plugin is using DokuWiki's Extension Manager: 19*7488e975SCostin Stroie (aider) 20*7488e975SCostin Stroie (aider)1. Log in to your DokuWiki as an administrator 21*7488e975SCostin Stroie (aider)2. Navigate to **Admin** → **Extension Manager** 22*7488e975SCostin Stroie (aider)3. In the "Install from URL" field, enter the plugin's repository URL 23*7488e975SCostin Stroie (aider)4. Click **Install** 24*7488e975SCostin Stroie (aider)5. The plugin should now be installed and ready for configuration 25*7488e975SCostin Stroie (aider) 26*7488e975SCostin Stroie (aider)==== Method 2: Manual Installation ==== 27*7488e975SCostin Stroie (aider) 28*7488e975SCostin Stroie (aider)If the Extension Manager is not available or you prefer manual installation: 29*7488e975SCostin Stroie (aider) 30*7488e975SCostin Stroie (aider)1. Download the latest release from the plugin's repository 31*7488e975SCostin Stroie (aider)2. Extract the downloaded archive 32*7488e975SCostin Stroie (aider)3. Rename the extracted folder to ''dokullm'' 33*7488e975SCostin Stroie (aider)4. Upload the ''dokullm'' folder to your DokuWiki's ''lib/plugins/'' directory 34*7488e975SCostin Stroie (aider)5. The final path should be ''lib/plugins/dokullm/'' 35*7488e975SCostin Stroie (aider) 36*7488e975SCostin Stroie (aider)===== Configuration ===== 37*7488e975SCostin Stroie (aider) 38*7488e975SCostin Stroie (aider)After installation, you need to configure the plugin: 39*7488e975SCostin Stroie (aider) 40*7488e975SCostin Stroie (aider)1. Navigate to **Admin** → **Configuration Settings** 41*7488e975SCostin Stroie (aider)2. Find the "DokuLLM" section in the configuration manager 42*7488e975SCostin Stroie (aider)3. Configure the following required settings: 43*7488e975SCostin Stroie (aider) * **LLM API URL**: The base URL of your LLM API (e.g., Ollama API) 44*7488e975SCostin Stroie (aider) * **LLM API Key**: Your API key if authentication is required 45*7488e975SCostin Stroie (aider) * **Default LLM Model**: The model to use for text processing (e.g., llama3, mistral) 46*7488e975SCostin Stroie (aider) 47*7488e975SCostin Stroie (aider)4. (Optional) Configure ChromaDB integration: 48*7488e975SCostin Stroie (aider) * **Enable ChromaDB**: Enable or disable ChromaDB integration 49*7488e975SCostin Stroie (aider) * **ChromaDB Host**: Hostname of your ChromaDB server 50*7488e975SCostin Stroie (aider) * **ChromaDB Port**: Port number of your ChromaDB server 51*7488e975SCostin Stroie (aider) * **ChromaDB Tenant**: Tenant name for ChromaDB 52*7488e975SCostin Stroie (aider) * **ChromaDB Database**: Database name for ChromaDB 53*7488e975SCostin Stroie (aider) * **Ollama Host**: Hostname of your Ollama server (for embeddings) 54*7488e975SCostin Stroie (aider) * **Ollama Port**: Port number of your Ollama server 55*7488e975SCostin Stroie (aider) 56*7488e975SCostin Stroie (aider)5. Save the configuration 57*7488e975SCostin Stroie (aider) 58*7488e975SCostin Stroie (aider)===== Verifying Installation ===== 59*7488e975SCostin Stroie (aider) 60*7488e975SCostin Stroie (aider)To verify the plugin is correctly installed and configured: 61*7488e975SCostin Stroie (aider) 62*7488e975SCostin Stroie (aider)1. Edit any page in your wiki 63*7488e975SCostin Stroie (aider)2. You should see LLM tools in the editor toolbar 64*7488e975SCostin Stroie (aider)3. Try using one of the LLM functions to ensure everything is working 65*7488e975SCostin Stroie (aider)4. Check the plugin's CLI commands if you have command-line access: 66*7488e975SCostin Stroie (aider) ''php lib/plugins/dokullm/cli.php --help'' 67*7488e975SCostin Stroie (aider) 68*7488e975SCostin Stroie (aider)===== Troubleshooting ===== 69*7488e975SCostin Stroie (aider) 70*7488e975SCostin Stroie (aider)If you encounter issues: 71*7488e975SCostin Stroie (aider) 72*7488e975SCostin Stroie (aider) * Ensure all required PHP extensions (especially cURL) are installed and enabled 73*7488e975SCostin Stroie (aider) * Check DokuWiki's error log for any plugin-related errors 74*7488e975SCostin Stroie (aider) * Verify network connectivity to your LLM API and ChromaDB servers 75*7488e975SCostin Stroie (aider) * Confirm that file permissions allow the plugin to read its configuration files 76*7488e975SCostin Stroie (aider) * Make sure your LLM API is accessible and responding to requests 77*7488e975SCostin Stroie (aider) 78*7488e975SCostin Stroie (aider)For further assistance, consult the plugin's documentation or contact the plugin maintainer. 79