Table of Contents
llm Plugin
Compatible with DokuWiki
No compatibility info given!
Integrates local language models (via llm.js) into DokuWiki’s edit page, offering AI-powered summarization, proofreading, and translation
Similar to aichat
Experimental, feel free to fork and create better plugin!
Thanks to LLM.js (https://rahuldshetty.github.io/llm.js/#/), We DONT need any LLM service API key.
Installation
[First, last and only chance to warn users before installing (some has already done that before reading this)]
External requirements: This plugin requires the following additional components that must be installed separately:
- Browser Support: A modern browser with WebAssembly and sufficient memory (8GB+ RAM recommended for larger models) is required to run the LLMs locally.
- Chrome
- Edge
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
Examples/Usage
Syntax
Basic Usage:
- Open an edit page
- Select a model from the dropdown (e.g., “TinyMistral-248M-Alpaca”).
- Enter a prompt in the textarea and click to generate text.
Summarize: Select text in the editor, click , and see a summary
- Selected text: “This is a long paragraph about cats and dogs.”
- Output: “Cats and dogs are discussed.”
Proofread: Select text, click , and get corrections.
- Selected text: “I has a cat.”
- Output: “I have a cat.”
Translate: Select text, choose a language (e.g., “French”), click .
- Selected text: “Hello world”
- Output: “Bonjour le monde”
