Skip to content
Back to skills

Mteb

ASecurity

"Use MTEB to evaluate embedding models, select tasks and

  • 247 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 8, 2026
toolspythongoshellbashdebuggingapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 20 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill mteb --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Mteb?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Mteb
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-mteb/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-mteb)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: mteb
description: "Use MTEB to evaluate embedding models, select tasks and
  benchmarks, validate model protocols, run CLI workflows, inspect result
  caches, and contribute tasks/models/benchmarks."
disable-model-invocation: true
metadata:
  disco-role: operating
license: Apache 2.0
---

# MTEB

Use this skill when working with MTEB, the Massive Text Embedding Benchmark package for evaluating text, multimodal, and retrieval embedding systems. It routes common agent tasks across evaluation, task selection, model wrappers, command-line automation, result analysis, leaderboard workflows, and repository contributions.

## Start Here

- Install with `pip install mteb`; add extras only for the workflow that needs them, such as `mteb[leaderboard]`, `mteb[codecarbon]`, `mteb[image]`, `mteb[audio]`, or model-provider extras.
- Verify the environment with `python -c "import mteb; print(mteb.__version__)"` and `mteb --help` before writing automation.
- Use explicit cache folders such as `mteb.ResultCache(cache_path="mteb-results-cache")` or `mteb run --output-folder mteb-results-cache` for reproducible runs.
- Prefer small named tasks and CPU-safe models while debugging; full benchmarks can download datasets and run expensive model inference.
- Read `references/repo-provenance.md` when deciding whether this skill matches the current MTEB release.
- Read `references/troubleshooting.md` for cross-cutting install, import, optional dependency, task download, CLI, cache, and result issues.

## Route By User Intent

- **Run an evaluation from Python**: Use `sub-skills/evaluation-workflows/SKILL.md` for `mteb.evaluate(...)`, overwrite strategies, `ResultCache`, predictions, CO2 tracking, failure tolerance, and mock smoke checks.
- **Choose tasks or benchmarks**: Use `sub-skills/tasks-and-benchmarks/SKILL.md` for `mteb.get_tasks(...)`, `mteb.get_task(...)`, `mteb.get_benchmark(...)`, languages, scripts, domains, task types, categories, modalities, beta/private/superseded behavior, and metadata inspection.
- **Load or validate a model**: Use `sub-skills/models-and-encoders/SKILL.md` for `mteb.get_model(...)`, `ModelMeta`, SentenceTransformers/CrossEncoder compatibility, custom encoder/search protocols, prompts, cache/compression wrappers, BM25, and optional model dependencies.
- **Use the CLI or automate shell workflows**: Use `sub-skills/cli-and-automation/SKILL.md` for `mteb run`, `available-tasks`, `available-benchmarks`, `create-model-results`, `leaderboard`, help checks, and CI-safe command validation.
- **Inspect results or leaderboard outputs**: Use `sub-skills/results-and-leaderboard/SKILL.md` for result cache layout, `ResultCache`, `BenchmarkResults`, dataframes, model-card result metadata, result submission, and local leaderboard caveats.
- **Contribute to MTEB**: Use `sub-skills/contributing-to-mteb/SKILL.md` for adding tasks/datasets, benchmarks, model metadata/implementations, citations, descriptive stats, and pre-PR validation.

## Minimal Evaluation Pattern

```python
import mteb

model = mteb.get_model("mteb/baseline-random-encoder")
tasks = mteb.get_tasks(tasks=["Banking77Classification.v2"])
cache = mteb.ResultCache(cache_path="mteb-results-cache")

results = mteb.evaluate(
    model,
    tasks=tasks,
    cache=cache,
    overwrite_strategy="only-missing",
    co2_tracker=False,
)
print(results.model_name, len(results.task_results))
```

## Minimal CLI Pattern

```bash
mteb run \
  --model sentence-transformers/all-MiniLM-L6-v2 \
  --tasks Banking77Classification.v2 \
  --output-folder mteb-results-cache \
  --overwrite-strategy only-missing \
  --no-co2-tracker
```

## Shared References And Scripts

- `references/api-surface.md` summarizes the top-level APIs and CLI command surface used by multiple sub-skills.
- `references/troubleshooting.md` covers cross-cutting failures before routing to a sub-skill-specific troubleshooting file.
- `scripts/check_mteb_environment.py` verifies package import, version, CLI availability, and key API signatures without running benchmarks or downloading datasets.

## Decision Points

- **Python vs CLI**: Use Python for fine-grained filtering, custom encoders, and result dataframes; use CLI for reproducible shell runs and simple automation.
- **Task names vs filters**: Named `tasks=[...]` selection takes precedence over broad filters; for combined logic, select/filter explicitly and inspect metadata.
- **Benchmarks vs ad hoc tasks**: Benchmarks encode official task/split/language selections; do not mix benchmark selection with task/language filters unless intentionally ignoring the filters.
- **Cache overwrite mode**: Use `only-missing` for resumable work, `only-cache` for offline inspection, `never` to protect existing results, and `always` for forced recomputation.
- **Optional dependencies**: Install extras only for the selected workflow; many model, audio, image, leaderboard, and provider integrations are optional and can be heavy.
- **Private/beta/superseded tasks**: Defaults hide or warn about risky tasks; opt in only when the user requests them and has dataset access.

## Validation Checklist

- `import mteb` and `mteb --help` both work in the target environment.
- The selected tasks and benchmarks are visible with the same filters the user will run.
- The model object satisfies the protocol required by the chosen task type and modality.
- The cache path is explicit and points to the intended local or remote result root.
- Optional extras are installed only when the workflow needs them.
- Result or leaderboard workflows validate folder layout before publishing or comparing scores.

Files in this skill

  • SKILL.md5.5 KB
  • references/api-surface.md3.2 KB
  • references/repo-provenance.md2.2 KB
  • references/repo-routing-metadata.json535 B
  • references/troubleshooting.md5.1 KB
  • scripts/check_mteb_environment.py4.6 KB
  • sub-skills/cli-and-automation/SKILL.md4 KB
  • sub-skills/cli-and-automation/references/automation-patterns.md4.7 KB
  • sub-skills/cli-and-automation/references/cli-reference.md6 KB
  • sub-skills/cli-and-automation/references/troubleshooting.md5.5 KB
  • sub-skills/cli-and-automation/scripts/check_mteb_cli.py5.4 KB
  • sub-skills/contributing-to-mteb/SKILL.md3.3 KB
  • sub-skills/contributing-to-mteb/references/contribution-workflows.md5.9 KB
  • sub-skills/contributing-to-mteb/references/task-implementation-guide.md6.9 KB
  • sub-skills/contributing-to-mteb/references/troubleshooting.md6.5 KB
  • sub-skills/contributing-to-mteb/scripts/check_task_metadata.py9.3 KB
  • sub-skills/evaluation-workflows/SKILL.md4.7 KB
  • sub-skills/evaluation-workflows/references/evaluation-api.md5.2 KB
  • sub-skills/evaluation-workflows/references/evaluation-recipes.md6.2 KB
  • sub-skills/evaluation-workflows/references/troubleshooting.md6.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.