技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
beir【数据与研究】Route BEIR repository tasks for benchmark data loading, retrieval evaluation, reranking, generation, and training workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill for BEIR, the Python benchmark framework for information retrieval datasets, retrievers, rerankers, query generation, and SentenceTransformers-style training.
pip install beir, or use an editable install only when working on a checkout.python -c "import beir; print(beir.__all__)".python scripts/check_beir_environment.py to inspect core and optional dependencies without contacting external services.corpus.jsonl, queries.jsonl, qrels/<split>.tsv, Hugging Face datasets, local validation, downloads, runfiles, and result JSON persistence.EvaluateRetrieval, dense exact search, FAISS, sparse retrieval, BM25/Elasticsearch, API embeddings, custom model protocols, metrics, embedding caches, and runfile export.TrainRetriever, pair/triplet construction, IR evaluators, BEIR losses, hard-negative workflows, and safe training-run planning.data-loading to validate local files or understand remote dataset requirements.retrieval-evaluation to choose a backend and compute BEIR metrics.reranking only after you have candidate results from a first-stage retriever.generation when you need generated queries, qrels, or expanded corpora before retrieval or training.training when preparing model fine-tuning data or planning a long SentenceTransformers run.Run these from inside the skills/beir/ directory or pass the full script paths from elsewhere:
python scripts/check_beir_environment.py
python sub-skills/data-loading/scripts/make_tiny_beir_dataset.py /tmp/beir-tiny
python sub-skills/data-loading/scripts/validate_beir_dataset.py /tmp/beir-tiny --split test
python sub-skills/retrieval-evaluation/scripts/retrieval_smoke.py
python sub-skills/reranking/scripts/rerank_smoke.py
python sub-skills/generation/scripts/generation_smoke.py
python sub-skills/training/scripts/training_data_smoke.py --exercise-max-corpus-error
These checks are offline and deterministic. They do not download BEIR datasets, model weights, or contact Elasticsearch/API services.
pyproject.toml.faiss-cpu or a compatible GPU FAISS installation.elasticsearch extra and a running Elasticsearch-compatible service; installing the Python package alone is not enough.Refresh this skill if BEIR package metadata, public APIs, examples, optional dependency names, supported Python versions, retrieval model wrappers, generation wrappers, or training helpers change. The provenance file records the source commit and evidence paths used to generate this version.