Token导航 LogoToken导航TokenDH.com
开发执行命令github未标认证来源可访问clear审计通过

mteb-retrievemteb 检索

Agent Skill

mteb-retrieve 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

840

周安装

35

GitHub Stars

93

下载量

280
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mteb-retrieve(mteb 检索)
来源仓库:https://github.com/letta-ai/skills
仓库路径:skills/mteb-retrieve
安装命令:
npx skills add https://github.com/letta-ai/skills --skill mteb-retrieve
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/letta-ai/skills --skill mteb-retrieve

简介

mteb-retrieve 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行整理和分析。
  • 通过 npx skills add 命令安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或命令执行。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

MTEB Retrieve

Overview

This skill provides guidance for text embedding retrieval tasks that involve encoding documents and queries using embedding models, computing similarity scores, and retrieving or ranking documents based on semantic similarity.

Workflow

Step 1: Inspect and Parse Data

Before writing any code, carefully inspect the raw data format:

  1. Read the data file and examine actual line contents
  2. Identify formatting artifacts such as:

- Line number prefixes (e.g., 1→, 2→, 1., 1:) - Whitespace or tab characters - Quote characters or escape sequences - Header rows or metadata

  1. Design parsing logic that strips all non-content artifacts

Common data format issues:

  • Files with line numbers prepended (e.g., 1→Document text here)
  • CSV/TSV files with headers
  • JSON files with nested structures
  • Files with trailing whitespace or newlines

Verification: Print 2-3 parsed documents to confirm they contain only the actual text content.

Step 2: Load the Embedding Model

  1. Identify the model specified in the task (e.g., sentence-transformers/all-MiniLM-L6-v2)
  2. Load the model using the appropriate library (typically sentence-transformers)
  3. Verify model loading succeeded before proceeding
from sentence_transformers import SentenceTransformer
model = SentenceTransformer('model-name')

Step 3: Encode Documents and Query

  1. Encode all documents using the model's encode method
  2. Encode the query using the same model
  3. Ensure consistent encoding - same model and parameters for both

Step 4: Compute Similarities

  1. Use cosine similarity (most common for embedding retrieval)
  2. Compute similarity between query embedding and all document embeddings
  3. Store similarities with corresponding document indices
from sklearn.metrics.pairwise import cosine_similarity
similarities = cosine_similarity([query_embedding], document_embeddings)[0]

Step 5: Rank and Retrieve

  1. Sort documents by similarity score in descending order
  2. Handle the ranking request (e.g., "5th most similar" means index 4 after sorting)
  3. Extract the requested document(s)

Step 6: Validate Results

Critical verification steps before finalizing:

  1. Print top 10 results with similarity scores and document text
  2. Semantic sanity check: Do top results relate to the query?

- If query is "terminal-bench", expect documents containing "terminal", "bench", or "benchmark" - If results seem unrelated, investigate data parsing or encoding issues

  1. Check for anomalies:

- Are similarity scores reasonable (typically 0.0 to 1.0)? - Are there unexpected ties in similarity values? - Do document texts look properly parsed?

Common Pitfalls

1. Data Format Parsing Errors

Problem: Document files often include line numbers, prefixes, or other formatting artifacts.

Example: A file might contain:

 1→Beyond the Imitation Game...
 2→MTEB: Massive Text Embedding Benchmark

If not properly parsed, embeddings are computed on 1→Beyond the Imitation Game... instead of just Beyond the Imitation Game....

Solution: Always inspect raw file contents and strip all formatting artifacts before encoding.

2. Skipping Validation

Problem: Accepting results without verification can lead to incorrect answers.

Solution: Always print intermediate results (top 10 documents with scores) and verify they make semantic sense given the query.

3. Off-by-One Errors in Ranking

Problem: Confusion between 0-indexed and 1-indexed rankings.

Example: "5th most similar" means:

  • Sort by similarity descending
  • Take index 4 (0-indexed) or position 5 (1-indexed)

Solution: Be explicit about indexing when retrieving ranked results.

4. Ignoring Semantic Reasonableness

Problem: Not questioning whether results make logical sense.

Example: If query is "terminal-bench" and the 5th result is "HumanEval: Benchmarking Python code generation", ask: Does this semantically relate to the query? If not, something may be wrong.

Solution: Apply domain knowledge to sanity-check results before finalizing.

Verification Checklist

Before submitting results, confirm:

  • Data was inspected for formatting artifacts
  • Documents were parsed to contain only actual text content
  • Embedding model loaded successfully
  • Query and documents encoded with same model
  • Similarity computation used correct metric (cosine similarity)
  • Top 10+ results printed and reviewed
  • Top results semantically relate to the query
  • Correct document extracted based on ranking request

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.26%
按下载量换算82

Gemini CLI

24.24%
按下载量换算68

Antigravity

18.27%
按下载量换算51

windsurf

14.21%
按下载量换算40

OpenCode

9.13%
按下载量换算26

Codex

3.42%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/letta-ai/skills --skill mteb-retrieve;npx skills add letta-ai/skills --skill "mteb-retrieve" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills