What It Does
- reads pages from a MediaWiki instance by namespace
- converts content to Markdown for indexing
- optionally filters out redirect pages
- runs ingestion on configurable schedules
Authentication
For public wikis, no authentication is required. For private wikis, provide a username and password via environment variables — see the config example below.It is recommended to use Bot passwords instead of your wiki account credentials. Bot passwords are scoped, revocable tokens that limit access to only the API actions the connector needs.
Environment Variables
Set these in.env.rag:
Required:
MEDIAWIKI1_HOST: hostname of the MediaWiki instance (example:en.wikipedia.org)
MEDIAWIKI1_SCHEDULES: ingestion interval in seconds (default:3600)MEDIAWIKI1_USERNAME: username for private wiki authenticationMEDIAWIKI1_PASSWORD: password for private wiki authentication
config.yaml Example
Configuration Reference
Multiple MediaWiki Sources
Add moresources entries (wiki2, wiki3, etc.) with separate env vars per source.