跳到正文
cccskills
免费在 GitHub 公开

beir

Route BEIR repository tasks for benchmark data loading, retrieval evaluation, reranking, generation, and training workflows.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(35)

  • SKILL.md4.2 KB
  • references/benchmarking-notes.md1.5 KB
  • references/repo-provenance.md2.1 KB
  • references/repo-routing-metadata.json494 B
  • references/troubleshooting.md3.7 KB
  • scripts/check_beir_environment.py4.3 KB
  • sub-skills/data-loading/references/api-reference.md5.9 KB
  • sub-skills/data-loading/references/data-formats.md4.1 KB
  • sub-skills/data-loading/references/troubleshooting.md5.4 KB
  • sub-skills/data-loading/references/workflows.md5.6 KB
  • sub-skills/data-loading/scripts/make_tiny_beir_dataset.py3.1 KB
  • sub-skills/data-loading/scripts/validate_beir_dataset.py9.0 KB
  • sub-skills/data-loading/SKILL.md2.0 KB
  • sub-skills/generation/references/api-reference.md7.7 KB
  • sub-skills/generation/references/troubleshooting.md6.3 KB
  • sub-skills/generation/references/workflows.md6.6 KB
  • sub-skills/generation/scripts/generation_smoke.py5.5 KB
  • sub-skills/generation/SKILL.md2.1 KB
  • sub-skills/reranking/references/api-reference.md4.3 KB
  • sub-skills/reranking/references/troubleshooting.md5.0 KB
  • sub-skills/reranking/references/workflows.md4.6 KB
  • sub-skills/reranking/scripts/rerank_smoke.py2.7 KB
  • sub-skills/reranking/SKILL.md2.0 KB
  • sub-skills/retrieval-evaluation/references/api-reference.md10.6 KB
  • sub-skills/retrieval-evaluation/references/model-and-backend-guide.md10.3 KB
  • sub-skills/retrieval-evaluation/references/troubleshooting.md11.4 KB
  • sub-skills/retrieval-evaluation/references/workflows.md10.3 KB
  • sub-skills/retrieval-evaluation/scripts/inspect_optional_backends.py4.7 KB
  • sub-skills/retrieval-evaluation/scripts/retrieval_smoke.py7.7 KB
  • sub-skills/retrieval-evaluation/SKILL.md2.2 KB
  • sub-skills/training/references/api-reference.md7.5 KB
  • sub-skills/training/references/troubleshooting.md5.3 KB
  • sub-skills/training/references/workflows.md6.8 KB
  • sub-skills/training/scripts/training_data_smoke.py10.4 KB
  • sub-skills/training/SKILL.md2.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

BEIR Repo Skill

Use this skill for BEIR, the Python benchmark framework for information retrieval datasets, retrievers, rerankers, query generation, and SentenceTransformers-style training.

First Checks

  • Install the public package with pip install beir, or use an editable install only when working on a checkout.
  • Verify the core import with python -c "import beir; print(beir.__all__)".
  • Run python scripts/check_beir_environment.py to inspect core and optional dependencies without contacting external services.
  • Read references/repo-provenance.md before deciding whether this skill matches a current checkout or should be refreshed.
  • Use references/troubleshooting.md for cross-cutting install, optional backend, data, service, credential, and scale failures.

Route by Task

  • Use data-loading for BEIR corpus.jsonl, queries.jsonl, qrels/<split>.tsv, Hugging Face datasets, local validation, downloads, runfiles, and result JSON persistence.
  • Use retrieval-evaluation for EvaluateRetrieval, dense exact search, FAISS, sparse retrieval, BM25/Elasticsearch, API embeddings, custom model protocols, metrics, embedding caches, and runfile export.
  • Use reranking when first-stage retrieval results need a cross-encoder, MonoT5, SBERT, or custom pair-scoring second stage.
  • Use generation for synthetic query generation, generated qrels, passage expansion, output prefixes, and fake-model smoke checks.
  • Use training for TrainRetriever, pair/triplet construction, IR evaluators, BEIR losses, hard-negative workflows, and safe training-run planning.

Common Workflow Order

  1. Start in data-loading to validate local files or understand remote dataset requirements.
  2. Move to retrieval-evaluation to choose a backend and compute BEIR metrics.
  3. Add reranking only after you have candidate results from a first-stage retriever.
  4. Use generation when you need generated queries, qrels, or expanded corpora before retrieval or training.
  5. Use training when preparing model fine-tuning data or planning a long SentenceTransformers run.

Bundled Smoke Tests

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.

Dependency Boundaries

  • Core BEIR data loading and metric evaluation need the package runtime dependencies from pyproject.toml.
  • FAISS workflows require faiss-cpu or a compatible GPU FAISS installation.
  • BM25 workflows require the elasticsearch extra and a running Elasticsearch-compatible service; installing the Python package alone is not enough.
  • Cohere and Voyage API embedding workflows require provider packages, environment variables, network access, and account credentials.
  • vLLM, LoRA, NVEmbed, LLM2Vec, PEFT, TILDE, MonoT5, and full training workflows can require large model downloads, GPU memory, and careful PyTorch/Transformers compatibility.

Refresh Guidance

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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Routes 3D ResNets PyTorch video action-recognition workflows across training, inference, and data preparation.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa

免费

Guide 3DDFA Python inference, geometry rendering, training/evaluation, and optional C++ ONNX workflows for 3D dense face alignment.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

3ddfa-v2

免费

Routes 3DDFA_V2 face-alignment setup, still-image demos, video tracking, and ONNX benchmarking workflows.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

ab3dmot

免费

Operate AB3DMOT 3D multi-object tracking workflows for KITTI and nuScenes data, tracking, evaluation, and visualization.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

Use Hugging Face Accelerate for PyTorch training-loop migration, distributed launch/configuration, DeepSpeed/FSDP/TPU backend setup, big-model inference/offload, checkpointing, tracking, and troubleshooting.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

acme

免费

Route Acme reinforcement-learning framework tasks across core loops, replay/data, JAX agents, and TensorFlow/Sonnet agents.

中文简介正在准备中。当前显示原文说明。

VectorSpaceLab/AREX-Skill3392026年9月3日 更新

查看 VectorSpaceLab 的全部技能

报告此技能的问题