This extension is used to notify an external RAG database of content changes, and supply an API for retrieval of adapted content for that database. This extension was written specifically for use in a joint chatbot with RAG project between Kol-Zchut and Webix, and as such the data format is probably not universally useful.
Name | values | Role |
---|---|---|
$wgChatbotRagContentPingURL | URL | Pinged on every content update |
$wgChatbotRagContentNamespaces | Array of namespaces | Which namespaces this extension should work in |
$wgChatbotRagContentArticleTypeBlocklist | array of article types | Article types to be ignored |
The data will be sent as JSON to the specified URL, in the following format:
{
"page_id": 3,
"rev_id": 13500,
"callback_url": "https://example.com/w/rest.php/cbragcontent/v0/page_id/3"
}
The extension provides a MediaWiki REST API endpoint, in this form:
https://example.com/w/rest.php/cbragcontent/v0/page_id/3
- Pages updated
- New pages created directly in an allowed namespace
- Pages moved in/out of allowed namespaces