embedding-strategies — Claude Code skill: what it does and setup
This skill helps choose embedding models, tune chunking, and assess quality for semantic search and RAG projects.
/plugin marketplace add wshobson/agents
/plugin install llm-application-dev@claude-code-workflowsWhat embedding-strategies does
embedding-strategies covers model selection for code search, prose, financial and legal documents, multilingual content, and local deployment. Its comparison includes Voyage, OpenAI, BGE, MiniLM, and multilingual-e5 models with their dimensions and token limits.
The skill maps the full pipeline from document chunking and preprocessing to vectors created through an API or a local model. It covers overlap, chunk size, cosine-similarity normalization, batch requests, caching, and metadata. Practical templates are stored in references/details.md. Install it when you are designing RAG or vector search; skip it for projects that do not use embeddings.
What it helps with
- choose an embedding model for RAG
- set chunk size and overlap
- compare embedding model quality
- reduce vector dimensions
- handle multilingual content
Example prompts for the agent
- Compare embedding models for my RAG and recommend options for code search.
- Suggest chunk size and overlap for the documents in this project.
- Review the vector-search pipeline and point out where normalization and caching belong.
How to install embedding-strategies
1Plugin marketplace
/plugin marketplace add wshobson/agents/plugin install llm-application-dev@claude-code-workflowsThis installs the whole llm-application-dev plugin with all its skills
2Skills CLI (Vercel)
npx skills add wshobson/agents --skill embedding-strategies -a claude-code3Manually: put the files in place
~/.claude/skills/embedding-strategies/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/embedding-strategies/
1Skills CLI (Vercel)
npx skills add wshobson/agents --skill embedding-strategies -a codex2Manually: put the files in place
.agents/skills/embedding-strategies/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add wshobson/agents --skill embedding-strategies -a cursor2Manually: put the files in place
.cursor/skills/embedding-strategies/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install wshobson/agents embedding-strategies2Manually: put the files in place
.github/skills/embedding-strategies/SKILL.mdPlatform CLI
gemini skills install https://github.com/wshobson/agents --path plugins/llm-application-dev/skills/embedding-strategiesManually: put the files in place
.devin/skills/embedding-strategies/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set213
The whole set →Similar
Questions about embedding-strategies
How do I install embedding-strategies in Claude Code?
Run npx skills add wshobson/agents --skill embedding-strategies -a claude-code. The skill file will be available at ~/.claude/skills/embedding-strategies/SKILL.md.
What does embedding-strategies do?
It guides embedding-model selection, document chunking, and quality tuning for semantic search and RAG. It also covers preprocessing, normalization, batching, caching, and metadata.
Which platforms support embedding-strategies?
The skill is intended for Claude Code, Codex, and Cursor.
Source text
SKILL.md · MIT
---
name: embedding-strategies
description: Select and optimize embedding models for semantic search and RAG applications. Use when choosing embedding models, implementing chunking strategies, or optimizing embedding quality for specific domains.
---
# Embedding Strategies
Guide to selecting and optimizing embedding models for vector search applications.
## When to Use This Skill
- 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
### 1. Embedding Model Comparison (2026)
| Model | Dimensions | Max Tokens | Best For |
| -------------------------- | ---------- | ---------- | ----------------------------------- |
| **voyage-3-large** | 1024 | 32000 | Claude apps (Anthropic recommended) |
| **voyage-3** | 1024 | 32000 | Claude apps, cost-effective |
| **voyage-code-3** | 1024 | 32000 | Code search |
| **voyage-finance-2** | 1024 | 32000 | Financial documents |
| **voyage-law-2** | 1024 | 32000 | Legal documents |
| **text-embedding-3-large** | 3072 | 8191 | OpenAI apps, high accuracy |
| **text-embedding-3-small** | 1536 | 8191 | OpenAI apps, cost-effective |
| **bge-large-en-v1.5** | 1024 | 512 | Open source, local deployment |
| **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 and detailed worked examples
Full template library and detailed worked examples live in `references/details.md`. Read that file when you need the concrete templates.
## Best Practices
### Do's
- **Match model to use case**: Code vs prose vs multilingual
- **Chunk thoughtfully**: Preserve semantic boundaries
- **Normalize embeddings**: For cosine similarity search
- **Batch requests**: More efficient than one-by-one
- **Cache embeddings**: Avoid recomputing for static content
- **Use Voyage AI for Claude apps**: Recommended by Anthropic
### Don'ts
- **Don't ignore token limits**: Truncation loses information
- **Don't mix embedding models**: Incompatible vector spaces
- **Don't skip preprocessing**: Garbage in, garbage out
- **Don't over-chunk**: Lose important context
- **Don't forget metadata**: Essential for filtering and debugging
© Seth Hobson · MIT · wshobson/agents