BEIR Generation
Use this sub-skill when the task is to create synthetic queries, generated training qrels, or expanded passage corpora with BEIR's generation helpers.
Route
- Start with references/workflows.md for offline smoke checks, synthetic query generation, generated dataset loading, passage expansion, and multi-process generation patterns.
- Use references/api-reference.md for
QueryGenerator, PassageExpansion, QGenModel, TILDE, output filenames, model protocols, and return shapes.
- Use references/troubleshooting.md for query-count assertions, duplicate generated questions, prefix/layout confusion,
save_after, NLTK/model dependency issues, multi-process pool shape, and large model constraints.
Bundled Helper
- Run a no-download smoke test with fake model objects:
python scripts/generation_smoke.py
- Keep the generated fixture for inspection:
python scripts/generation_smoke.py --keep-output beir-generation-smoke-output
The helper imports BEIR generation classes, uses tiny in-memory corpora, and validates that gen-queries.jsonl, gen-qrels/train.tsv, and gen-corpus.jsonl are produced.
Boundaries
- This sub-skill owns
beir.generation.QueryGenerator, beir.generation.PassageExpansion, beir.generation.models.QGenModel, beir.generation.models.TILDE, compatible custom generation model protocols, generated qrels layout, output prefixes, save_after, and multi-process generation shape.
- Route loading or validating generated BEIR files to ../data-loading/SKILL.md, especially when using
GenericDataLoader(..., prefix="gen").
- Route training on generated queries and qrels to the
training sub-skill when present.
- Route retrieval runs or metric evaluation on generated datasets to ../retrieval-evaluation/SKILL.md.
1---2name: generation-23description: "Generate synthetic BEIR queries, qrels, and passage expansions4 with BEIR generation wrappers and compatible model protocols."5disable-model-invocation: true6metadata:7 source: https://skillmd.com/skills/vectorspacelab/generation-28 disco-role: operating9license: Apache 2.010---1112# BEIR Generation1314Use this sub-skill when the task is to create synthetic queries, generated training qrels, or expanded passage corpora with BEIR's generation helpers.1516## Route1718- Start with [references/workflows.md](references/workflows.md) for offline smoke checks, synthetic query generation, generated dataset loading, passage expansion, and multi-process generation patterns.19- Use [references/api-reference.md](references/api-reference.md) for `QueryGenerator`, `PassageExpansion`, `QGenModel`, `TILDE`, output filenames, model protocols, and return shapes.20- Use [references/troubleshooting.md](references/troubleshooting.md) for query-count assertions, duplicate generated questions, prefix/layout confusion, `save_after`, NLTK/model dependency issues, multi-process pool shape, and large model constraints.2122## Bundled Helper2324- Run a no-download smoke test with fake model objects: `python scripts/generation_smoke.py`25- Keep the generated fixture for inspection: `python scripts/generation_smoke.py --keep-output beir-generation-smoke-output`2627The helper imports BEIR generation classes, uses tiny in-memory corpora, and validates that `gen-queries.jsonl`, `gen-qrels/train.tsv`, and `gen-corpus.jsonl` are produced.2829## Boundaries3031- This sub-skill owns `beir.generation.QueryGenerator`, `beir.generation.PassageExpansion`, `beir.generation.models.QGenModel`, `beir.generation.models.TILDE`, compatible custom generation model protocols, generated qrels layout, output prefixes, `save_after`, and multi-process generation shape.32- Route loading or validating generated BEIR files to [../data-loading/SKILL.md](../data-loading/SKILL.md), especially when using `GenericDataLoader(..., prefix="gen")`.33- Route training on generated queries and qrels to the `training` sub-skill when present.34- Route retrieval runs or metric evaluation on generated datasets to [../retrieval-evaluation/SKILL.md](../retrieval-evaluation/SKILL.md).