| name | retriva-export-injector-patterns |
| description | Guidance for building a MediaWiki native export injector for Retriva. |
Retriva MediaWiki Export Injector Patterns
Core input shape
The export mirror should be treated as a recursive directory containing:
- one or more MediaWiki export XML files, e.g.
wiki_backup_20260402.xml
- an
assets/ subtree with files/images, typically under assets/images/
Preferred processing flow
- recursively scan the root directory
- detect candidate XML export files
- parse MediaWiki pages, revisions, text bodies, and file references from XML
- resolve linked file/image references against the local
assets/ subtree when possible
- emit document/chunk objects compatible with the existing indexing pipeline
- preserve source metadata sufficient for citations and debugging
Guardrails
- Do not assume HTML pages exist
- Do not assume
wget rewritten links exist
- Keep recursive discovery deterministic and conservative