Getting started¶
1. Obtain a dump¶
Use a Wikipedia pages-articles XML dump, for example from the
Wikimedia dump archive.
Hermes accepts .xml, .xml.bz2, and .xml.gz directly; decompression to a
separate XML file is unnecessary. Record the dump snapshot and source URL for a
research release. A latest filename alone does not identify a fixed snapshot.
For the Azerbaijani example, place
azwiki-latest-pages-articles-multistream.xml.bz2 in the working directory.
Install Hermes with the embedding extra first.
2. Create and review a configuration¶
hermes-data languages
hermes-data init-config --language az --output config.az.yaml
Edit dump.path, dump.language, dump.dump_id, output_dir, corpus limits,
and task targets. The starter enables seven task families at 100 records per
variant. Classification is disabled because its label taxonomy needs an explicit
choice. QA uses templates by default, so an LLM is not required; NER and QA still
use Wikidata.
Ten starters are packaged: ar, az, de, en, es, fr, pt, ru, tr,
and zh. These are starting configurations, not evidence of linguistic
validation for every generated sample. For another language, translate task
instructions and QA templates and review Wikipedia-specific cleaning filters.
Keep protocol tokens such as True, False, EMPTY, {title}, and {ner_labels}.
3. Inspect capacity¶
hermes-data info --config config.az.yaml
hermes-data info --config config.az.yaml --sample-pages 25000 --json
hermes-data info --config config.az.yaml --exact
info does not write corpus files or call model/Wikidata APIs. Sample mode
reports observations and projections. --exact removes the inspection page
sample limit; configured corpus scan limits still matter. Proxy capacity for NER,
QA, and classification is not a guarantee of enough final valid examples.
4. Run a pilot¶
hermes-data pilot --config config.az.yaml
hermes-data pilot --config config.az.yaml --articles 100 --max-pages 10000 --json
The pilot builds an isolated raw corpus and capacity report below
output_dir/pilot/. It does not run embedding, Wikidata, or LLM inference and
does not replace the main raw corpus. Treat pass_with_warnings as a request
to inspect the warnings, not as semantic certification of the eventual datasets.
5. Generate and validate¶
hermes-data generate --config config.az.yaml
hermes-data validate --config config.az.yaml --json
Generation follows dependencies: raw corpus, enrichment where needed, enabled
tasks, then validation. benchmark_manifest.json is written after preflight
validation. Use the output reference to interpret
records; valid: true concerns the implemented artifact checks.
If a run stops, repeat the same generate command. Matching completed stages and
cached provider results are reusable. --force reexecutes stages but does not
clear Wikidata or LLM caches. If investigating a changed configuration, inspect
the manifests rather than assuming all stages were recomputed.
6. Use the 1,000-record examples¶
The Azerbaijani example requests 1,000 records per enabled
variant. It uses 2,000 eligible articles, four to eight paragraphs per article,
and 20 reranking candidates. The configured model must already be locally
available because this particular example sets local_files_only: true.
Review info/pilot for your own dump before assuming these limits suffice.
From a checkout:
cp configs/az_1000.yaml config.az.1000.yaml
hermes-data generate --config config.az.1000.yaml
For Gemini QA, copy the Gemini configuration, set
services.llm.api_key, and run:
cp configs/az_1000_gemini.yaml config.az.gemini.yaml
hermes-data generate --config config.az.gemini.yaml
hermes-data validate --config config.az.gemini.yaml
The Gemini configuration uses the same output directory as the template example;
QA is regenerated in hybrid mode while matching other stages can be reused.
Use a different output_dir when you want to retain both dataset versions.
For a small classification integration check, the
classification example requests eight
records in each of three variants. It uses a four-label demonstration taxonomy,
not the larger taxonomy in the legacy configuration. It assumes prepared raw and
enriched artifacts at its output location when running the individual stage;
generate can build those dependencies from the configured dump instead.
hermes-data generate --config configs/az_classification_smoke.yaml
Individual stages¶
hermes-data enrich --config config.az.yaml
hermes-data generate-paragraphs --config config.az.yaml
hermes-data generate-reranking --config config.az.yaml
hermes-data generate-ner --config config.az.yaml
hermes-data generate-classification --config config.az.classification.yaml
hermes-data generate-extractive-qa --config config.az.gemini.yaml
Individual commands require their inputs and enabled task/service configuration.
After changing task artifacts through an individual command, run full generate
to refresh the benchmark-level manifest before full validation.