embedding-strategies

embedding-strategies is a skill for Claude Code from sickn33/agentic-awesome-skills. It costs 17 tokens per session (3,607 once invoked), scanned A, original, MIT.

A guide to choosing and improving embedding models, which turn text into numbers so software can find related content by meaning. It covers their use in vector search and RAG, a method for giving an AI model relevant documents before it answers.

In plain words
What is it for?
Use it to compare embedding models, choose chunk sizes, adapt embeddings to a specialist field, reduce vector size, and handle multilingual content in semantic search or RAG systems.
Why use it?
It helps avoid choosing a model or text-splitting method that gives poor search results, wastes resources, or mishandles languages and specialist content. It also prompts checks for limits, licensing, privacy, and source text preservation.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agentic-awesome-skills plugin — 197 skills, 1 plugin shipped together

Good fit Use it to compare embedding models, choose chunk sizes, adapt embeddings to a specialist field, reduce vector size, and handle multilingual content in semantic search or RAG systems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sickn33/agentic-awesome-skills/embedding-strategies
About the project

AAS Core is a local control plane for coding agents that lets them search a large catalogue of skills, choose a stack, validate it, and create a reproducible plan. It is used to assemble and review agent workflows through its CLI, local MCP server, catalogue, plugins, and Workbench. The catalogue add-ons provide the skills, plugins, bundles, and workflows that AAS Core helps agents select and validate.

sickn33/agentic-awesome-skills · 49,614 stars · on GitHub · aaskills.tech

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sickn33/agentic-awesome-skills --skill embedding-strategies
Clone the repo
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills

Made for: Claude Code.

Or install agentic-awesome-skills, the plugin that ships this one along with the rest of its 197 skills, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for embedding-strategies

README.md
[![agentmods](https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/embedding-strategies/github.svg)](https://agentmods.dev/skills/sickn33/agentic-awesome-skills/embedding-strategies)
Your own site
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/embedding-strategies"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/embedding-strategies/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for embedding-strategies

Your own site · 80×15
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/embedding-strategies"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/embedding-strategies.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,607 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.03607
Opus 5.5 $0.00007 $0.01443
Sonnet 5.5 $0.00003 $0.00721
Haiku 4.5 $0.00002 $0.00361

Measured yesterday against content hash 10dec7bf34cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

embedding-strategies scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

3 near-identical copies found in the catalogue:

plugins/aasb-aas-data-engineering-platform/skills/embedding-strategies/SKILL.md · 491 lines

How it starts

The opening of the file, as written. The whole thing — 491 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Embedding Strategies

Guide to selecting and optimizing embedding models for vector search applications.

Do not use this skill when

  • The task is unrelated to embedding strategies
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Use this skill when

  • Choosing embedding models for RAG
  • Optimizing chunking strategies
  • Fine-tuning embeddings for domains
  • Comparing embedding model performance
  • Reducing embedding dimensions
  • Handling multilingual content

Core Concepts

Model table is a historical candidate list, not a current leaderboard. Verify exact model-card token limits, dimensions, license, revision and query/document prefixes before use; count tokens with that model’s tokenizer. Approve private-document transfer/provider cost. Preserve original text and source offsets; stripping symbols can destroy code, monetary signs, equations and identifiers.

1. Embedding Model Comparison

Model Dimensions Max Tokens Best For
text-embedding-3-large 3072 8191 High accuracy
text-embedding-3-small 1536 8191 Cost-effective
voyage-2 1024 4000 Code, legal
bge-large-en-v1.5 1024 512 Open source
all-MiniLM-L6-v2 384 256 Fast, lightweight
multilingual-e5-large 1024 512 Multi-language

2. Embedding Pipeline

Document → Chunking → Preprocessing → Embedding Model → Vector
                ↓
        [Overlap, Size]  [Clean, Normalize]  [API/Local]

Templates

Template 1: OpenAI Embeddings

from openai import OpenAI
from typing import List
import numpy as np

client = OpenAI()

def get_embeddings(
    texts: List[str],
    model: str = "text-embedding-3-small",
    dimensions: int = None
) -> List[List[float]]:
    """Get embeddings from OpenAI."""
    # Handle batching for large lists
    batch_size = 100
    all_embeddings = []

    for i in range(0, len(texts), batch_size):
        batch = texts[i:i + batch_size]

        kwargs = {"input": batch, "model": model}
        if dimensions:
            kwargs["dimensions"] = dimensions

        response = client.embeddings.create(**kwargs)
        embeddings = [item.embedding for item in response.data]
        all_embeddings.extend(embeddings)

    return all_embeddings


def get_embedding(text: str, **kwargs) -> List[float]:
    """Get single embedding."""
    return get_embeddings([text], **kwargs)[0]


# Dimension reduction with OpenAI
def get_reduced_embedding(text: str, dimensions: int = 512) -> List[float]:
    """Get embedding with reduced dimensions (Matryoshka)."""
    return get_embedding(
        text,
        model="text-embedding-3-small",
        dimensions=dimensions
    )

Read the full file on GitHub · 491 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 491 lines · 17 tokens per session scan A 10dec7bf34cf

Subscribe to this mod's changes

embedding-strategies is a skill published in the GitHub repository sickn33/agentic-awesome-skills (49,614 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 3,607 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.

Related

embedding-strategies compared with skills from other repositories

embedding-strategies next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
embedding-strategiessickn33/agentic-awesome-skillsSkill50ktodayMITA17Claude Code
rag-builderAtulPurohit/Antigravity-Awesome-SkillsSkill54mo agononeA25Claude Code, Codex
semantic-searchAtulPurohit/Antigravity-Awesome-SkillsSkill54mo agononeA26Claude Code, Codex
vector-databaseAtulPurohit/Antigravity-Awesome-SkillsSkill54mo agononeA25Claude Code, Codex
rag-retrieval-auditalivirgo/Major-AI-SkillsSkill2yesterdayMITA66Claude Code
ai-engineering-toolkitmarysatasselshaped667/skills-collection-1Skill11mo agoMITA47Claude Code, Codex
ai-content-filterAtulPurohit/Antigravity-Awesome-SkillsSkill54mo agononeA28Claude Code, Codex