인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

similarity-search

similarity-search

Score text pairs and run dense or BM25 retrieval with text2vec.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: similarity-search description: "Score text pairs and run dense or BM25 retrieval with text2vec." disable-model-invocation: true metadata: disco-role: operating license: Apache 2.0

Similarity Search

Use this sub-skill when you need sentence similarity, pair scoring, semantic search, or lexical BM25 retrieval in text2vec.

Route here for

  • Pairwise similarity with Similarity, SimilarityType, EmbeddingType, get_score, get_scores, and similarity.
  • Dense retrieval helpers with cos_sim and semantic_search for tensor or NumPy embeddings.
  • Raw-text BM25 retrieval with Jieba segmentation and top-k ranking.
  • Aligned pair scoring from JSONL, CSV, or TSV without accidentally building a full cross-product matrix.
  • Query-to-corpus retrieval workflows where you want either no-network BM25 now or dense search from cached embeddings later.

Do not handle here

  • Embedding initialization, batch vector generation, or CLI embedding export: route to embeddings.
  • Fine-tuning, training data validation, and negative mining: route to training-finetuning.
  • Benchmark-style model quality evaluation and leaderboard comparison: route to evaluation-benchmarks.
  • HTTP serving, FastAPI, Jina, or Gradio deployment: route to serving-deployment.

Operating workflow

  1. Decide whether the task is pair scoring or retrieval.
  2. For pair scoring, choose vector-only scoring or model-backed scoring.
  3. For retrieval, choose BM25 when you want a no-network lexical path, or dense search when you already have embeddings or a cached model.
  4. Read the API shapes in references/api-reference.md.
  5. Use the bundled helpers in scripts/ for safe JSONL/CSV/TSV workflows.
  6. Check references/troubleshooting.md if scores, shapes, or downloads look wrong.

Bundled scripts

Start with references/workflows.md for ready-to-run patterns and references/api-reference.md for return shapes.

저장한 Skills