xref: /plugin/dokullm/doc/install.txt (revision d36001d67c06afed255578906c99236e716299ab)
17488e975SCostin Stroie (aider)====== DokuLLM Plugin Installation Guide ======
27488e975SCostin Stroie (aider)
37488e975SCostin Stroie (aider)This guide will walk you through the process of installing and configuring the DokuLLM plugin for DokuWiki.
47488e975SCostin Stroie (aider)
57488e975SCostin Stroie (aider)===== Prerequisites =====
67488e975SCostin Stroie (aider)
77488e975SCostin Stroie (aider)Before installing the DokuLLM plugin, ensure you have:
87488e975SCostin Stroie (aider)  * A working DokuWiki installation (version 2020-07-29 "Hogfather" or newer recommended)
97488e975SCostin Stroie (aider)  * PHP 7.4 or higher with cURL support
107488e975SCostin Stroie (aider)  * Access to your DokuWiki server's file system
117488e975SCostin Stroie (aider)  * (Optional) Access to an Ollama server for embeddings generation
127488e975SCostin Stroie (aider)  * (Optional) Access to a ChromaDB server for document storage and retrieval
137488e975SCostin Stroie (aider)
147488e975SCostin Stroie (aider)===== Installation Methods =====
157488e975SCostin Stroie (aider)
167488e975SCostin Stroie (aider)==== Method 1: Extension Manager (Recommended) ====
177488e975SCostin Stroie (aider)
187488e975SCostin Stroie (aider)The easiest way to install the DokuLLM plugin is using DokuWiki's Extension Manager:
197488e975SCostin Stroie (aider)
207488e975SCostin Stroie (aider)1. Log in to your DokuWiki as an administrator
217488e975SCostin Stroie (aider)2. Navigate to **Admin** → **Extension Manager**
227488e975SCostin Stroie (aider)3. In the "Install from URL" field, enter the plugin's repository URL
237488e975SCostin Stroie (aider)4. Click **Install**
247488e975SCostin Stroie (aider)5. The plugin should now be installed and ready for configuration
257488e975SCostin Stroie (aider)
267488e975SCostin Stroie (aider)==== Method 2: Manual Installation ====
277488e975SCostin Stroie (aider)
287488e975SCostin Stroie (aider)If the Extension Manager is not available or you prefer manual installation:
297488e975SCostin Stroie (aider)
307488e975SCostin Stroie (aider)1. Download the latest release from the plugin's repository
317488e975SCostin Stroie (aider)2. Extract the downloaded archive
327488e975SCostin Stroie (aider)3. Rename the extracted folder to ''dokullm''
337488e975SCostin Stroie (aider)4. Upload the ''dokullm'' folder to your DokuWiki's ''lib/plugins/'' directory
347488e975SCostin Stroie (aider)5. The final path should be ''lib/plugins/dokullm/''
357488e975SCostin Stroie (aider)
367488e975SCostin Stroie (aider)===== Configuration =====
377488e975SCostin Stroie (aider)
387488e975SCostin Stroie (aider)After installation, you need to configure the plugin:
397488e975SCostin Stroie (aider)
407488e975SCostin Stroie (aider)1. Navigate to **Admin** → **Configuration Settings**
417488e975SCostin Stroie (aider)2. Find the "DokuLLM" section in the configuration manager
427488e975SCostin Stroie (aider)3. Configure the following required settings:
437488e975SCostin Stroie (aider)   * **LLM API URL**: The base URL of your LLM API (e.g., Ollama API)
447488e975SCostin Stroie (aider)   * **LLM API Key**: Your API key if authentication is required
457488e975SCostin Stroie (aider)   * **Default LLM Model**: The model to use for text processing (e.g., llama3, mistral)
467488e975SCostin Stroie (aider)
477488e975SCostin Stroie (aider)4. (Optional) Configure ChromaDB integration:
487488e975SCostin Stroie (aider)   * **Enable ChromaDB**: Enable or disable ChromaDB integration
497488e975SCostin Stroie (aider)   * **ChromaDB Host**: Hostname of your ChromaDB server
507488e975SCostin Stroie (aider)   * **ChromaDB Port**: Port number of your ChromaDB server
517488e975SCostin Stroie (aider)   * **ChromaDB Tenant**: Tenant name for ChromaDB
527488e975SCostin Stroie (aider)   * **ChromaDB Database**: Database name for ChromaDB
537488e975SCostin Stroie (aider)   * **Ollama Host**: Hostname of your Ollama server (for embeddings)
547488e975SCostin Stroie (aider)   * **Ollama Port**: Port number of your Ollama server
557488e975SCostin Stroie (aider)
567488e975SCostin Stroie (aider)5. Save the configuration
577488e975SCostin Stroie (aider)
58*d36001d6SCostin Stroie (aider)===== Prompt and Profile Setup =====
59*d36001d6SCostin Stroie (aider)
60*d36001d6SCostin Stroie (aider)The DokuLLM plugin uses DokuWiki pages to store prompts and profiles. These are located in the ''dokullm:'' namespace:
61*d36001d6SCostin Stroie (aider)
62*d36001d6SCostin Stroie (aider)  * Default prompts are stored in ''dokullm:profiles:default:'' namespace
63*d36001d6SCostin Stroie (aider)  * Custom profiles can be created under ''dokullm:profiles:[PROFILE_NAME]:''
64*d36001d6SCostin Stroie (aider)  * System prompts are stored in pages named ''system'' within each profile
65*d36001d6SCostin Stroie (aider)  * Action-specific prompt extensions are stored in ''[ACTION_NAME]:system'' pages
66*d36001d6SCostin Stroie (aider)
67*d36001d6SCostin Stroie (aider)To set up the default prompts:
68*d36001d6SCostin Stroie (aider)  1. Create the ''dokullm:profiles:default:system'' page with your base system prompt
69*d36001d6SCostin Stroie (aider)  2. Create action prompt pages like ''dokullm:profiles:default:summarize'', ''dokullm:profiles:default:expand'', etc.
70*d36001d6SCostin Stroie (aider)  3. Create action-specific system extensions like ''dokullm:profiles:default:summarize:system'' if needed
71*d36001d6SCostin Stroie (aider)
727488e975SCostin Stroie (aider)===== Verifying Installation =====
737488e975SCostin Stroie (aider)
747488e975SCostin Stroie (aider)To verify the plugin is correctly installed and configured:
757488e975SCostin Stroie (aider)
767488e975SCostin Stroie (aider)1. Edit any page in your wiki
777488e975SCostin Stroie (aider)2. You should see LLM tools in the editor toolbar
787488e975SCostin Stroie (aider)3. Try using one of the LLM functions to ensure everything is working
797488e975SCostin Stroie (aider)4. Check the plugin's CLI commands if you have command-line access:
807488e975SCostin Stroie (aider)   ''php lib/plugins/dokullm/cli.php --help''
817488e975SCostin Stroie (aider)
827488e975SCostin Stroie (aider)===== Troubleshooting =====
837488e975SCostin Stroie (aider)
847488e975SCostin Stroie (aider)If you encounter issues:
857488e975SCostin Stroie (aider)
867488e975SCostin Stroie (aider)  * Ensure all required PHP extensions (especially cURL) are installed and enabled
877488e975SCostin Stroie (aider)  * Check DokuWiki's error log for any plugin-related errors
887488e975SCostin Stroie (aider)  * Verify network connectivity to your LLM API and ChromaDB servers
897488e975SCostin Stroie (aider)  * Confirm that file permissions allow the plugin to read its configuration files
907488e975SCostin Stroie (aider)  * Make sure your LLM API is accessible and responding to requests
91*d36001d6SCostin Stroie (aider)  * Verify that your prompt pages are correctly created in the ''dokullm:'' namespace
927488e975SCostin Stroie (aider)
937488e975SCostin Stroie (aider)For further assistance, consult the plugin's documentation or contact the plugin maintainer.
94