ExtensionVersion 0.1.14

GraphWiki Agent

Ask your wiki. Follow the evidence.

Overview

GraphWiki Agent adds a conversational interface to your wiki. It retrieves pages, graph relationships, and native wiki records to help answer questions, with links back to the sources it used.

Features

Answers with sources

Retrieve readable wiki content and link back to the pages and relationships used in an answer.

Native wiki lookups

Look up categories, backlinks, accounts, files, templates, and other native wiki information.

Activity and counts

Use wiki-wide revisions, creation logs, and server-side grouping to investigate activity by user, page, or day.

Revision comparison

Read historical page content and compare revisions using MediaWiki’s native history services.

SPARQL assistance

Query the configured graph through read-only tools and open SPARQL queries from answers in the wiki search interface.

Readable chat answers

Present answers with tables, nested lists, page links, source disclosures, and highlighted query blocks.

Installation

Install GraphWiki first and configure the model provider before enabling chat. Keep the provider key in private server configuration; the example below reads it from an environment variable.

  1. Get the extension

    Clone the canonical source into the GraphWikiAgent extension directory. GitLab access is required.

    From the MediaWiki directory
    git clone https://git.dobriy.ai/semantic/graphwiki-agent.git extensions/GraphWikiAgent
  2. Configure the assistant

    Load after GraphWiki in LocalSettings.php. Replace the endpoint and model placeholders and set GRAPHWIKI_AI_API_KEY in the server environment.

    LocalSettings.php
    wfLoadExtension( 'GraphWikiAgent' );
    
    $wgGraphWikiAgentEndpoint = 'https://your-ai-gateway.example/v1';
    $wgGraphWikiAgentModel = 'your-tool-calling-model';
    $wgGraphWikiAgentApiKey = getenv( 'GRAPHWIKI_AI_API_KEY' );
    $wgGraphWikiAgentEnabled = true;
  3. Create conversation tables

    Run MediaWiki’s updater to install the tables used for conversations and messages.

    From the MediaWiki directory
    php maintenance/run.php update --quick
  4. Check a sourced answer

    As a registered wiki reader, open Special:GraphWikiAgent. Ask about a known page and check the linked sources. Confirm the model can call the wiki tools.

Screenshots

Open original ↗