본문으로 건너뛰기
cccskills
무료GitHub에 공개

embeddings-guide

Work with text embeddings — choosing models, pooling, similarity measures, evaluation, and multilingual considerations. Use when building semantic search, clustering, or any similarity-based feature.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Embeddings Guide

Embeddings turn text into vectors where similarity means relatedness. They're the foundation of semantic search, RAG retrieval, clustering, and recommendations. The skill is choosing the right model, using it correctly, and evaluating on your data.

Overview

An embedding model maps text to a dense vector; cosine similarity (usually) measures relatedness. Quality varies by domain, language, and text length — a model great at English Wikipedia may fail on your support tickets. Key choices: the model itself, how you handle long texts (chunk + pool), whether to use task-specific instructions (asymmetric search: query vs. document phrasing differs), and how you evaluate (on your data, not the leaderboard).

When to use

  • Semantic search or RAG retrieval over your corpus.
  • Clustering, deduplication, or topic discovery on text.
  • Recommendation: "similar items" features.
  • Anywhere you need "find text like this text."

Core concepts

  • Model selection: size/quality/speed trade-offs; domain fit matters more than leaderboard rank. Evaluate candidates on your own query-document pairs.
  • Asymmetric vs. symmetric: search queries differ from documents (short question vs. long passage). Instruction-tuned models handle this with task prefixes; test whether yours needs them.
  • Pooling long texts: embed chunks and aggregate (mean, max) or retrieve at chunk level. Don't truncate long documents to the model's limit and hope.
  • Similarity measures: cosine (standard, normalize vectors), dot product (with unnormalized, scale-sensitive), Euclidean (less common for text). Be consistent between indexing and querying.
  • Normalization: L2-normalize vectors so cosine = dot product; many vector DBs assume this. Mismatched normalization silently breaks ranking.
  • Evaluation: build a small set of query → known-relevant documents from your corpus. Measure recall@k per candidate model. This beats any public benchmark for your decision.

Practical workflow

  1. Collect 30–50 representative queries with known-relevant documents from your corpus.
  2. Shortlist 3–4 embedding models (varying size); embed your corpus with each.
  3. Measure recall@k and MRR on your eval set; also measure embedding latency and cost.
  4. Decide chunking: chunk documents first, embed chunks, retrieve chunks — tune chunk size on the eval set.
  5. Normalize consistently; verify the similarity metric matches between index and query time.
  6. Monitor: sample production queries periodically; re-evaluate when the corpus or model changes.
Embedding eval template:
QUERIES:  30-50 real queries + known-relevant docs
MODELS:   3-4 candidates (note dims, latency, cost)
METRICS:  recall@5, recall@20, MRR
DECIDE:   best quality within latency/cost budget

Common pitfalls

  • Leaderboard shopping: picking the top benchmark model without testing on your data. Domain mismatch is common.
  • Truncating long documents: embedding only the first 512 tokens of a 10-page doc. Chunk properly.
  • Ignoring the query/document asymmetry: same embedding approach for both when the model expects task prefixes. Read the model's docs.
  • Normalization mismatch: indexing normalized, querying unnormalized (or vice versa). Ranking breaks silently.
  • No eval set: "embeddings feel good." Build the query-relevance set; it's a day's work that pays forever.
  • Embedding everything at query time: precompute document embeddings; embed only the query live. Obvious but often missed under deadline.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

aicodedecode/awesome-muse-skills252026년 10월 10일 업데이트

aicodedecode의 스킬 모두 보기

이 스킬의 문제 신고