Skip to content
Skills Library
AI & agents · Planning

embedding-strategy-advisor

/embedding-strategy-advisor

Select and configure embedding models and indexing strategy for a RAG corpus based on domain, language, and quality requirements. Use when working on RAG pipelines, chunking, embeddings, retrieval, or hybrid search.

Repository
APES ↗
Licence
MIT
Last repository change
03.07.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 03.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Select and configure embedding models and indexing strategy for a RAG corpus based on domain, language, and quality requirements. Use when working on RAG pipelines, chunking, embeddings, retrieval, or hybrid search.

Original author description

Select and configure embedding models and indexing strategy for a RAG corpus based on domain, language, and quality requirements. Use when working on RAG pipelines, chunking, embeddings, retrieval, or hybrid search.

How it works

  1. Step 1: Profile the corpus
  2. Step 2: Evaluate embedding options
  3. Step 3: Recommend embedding model
  4. Step 4: Define index configuration
  5. Step 5: Plan re-embedding strategy
  6. Step 6: Validate
Original SKILL.md headings · 142 lines, 503 words
SKILL.md preview
---
name: embedding-strategy-advisor
description: >
  Select and configure embedding models and indexing strategy for a RAG corpus based on domain, language, and quality requirements. Use when working on RAG pipelines, chunking, embeddings, retrieval, or hybrid search.
metadata:
  apes-version: "1.1"
  category: rag
---

# Embedding Strategy Advisor

# Purpose

Select and configure embedding models and indexing strategy for a RAG corpus based on domain, language, and quality requirements.

**Input:** Corpus description, languages, domain (general/technical/legal), budget, latency requirements  
**Output:** Embedding strategy document with model recommendation, dimension trade-offs, and index configuration
**Examples:** See [examples.md](examples.md) for worked input/output.

---

# Workflow

## Step 1: Profile the corpus

- Languages and multilingual needs
- Domain specificity (general, code, medical, legal)
- Corpus size (chunks count)
- Query-document similarity type (semantic, keyword-hybrid)

## Step 2: Evaluate embedding options

| Model | Dimensions | Multilingual | Domain fit | Cost |
|-------|------------|--------------|------------|------|

Compare API models (OpenAI, Cohere, Voyage) vs open-weight (BGE, E5, GTE).

## Step 3: Recommend embedding model

Selection criteria:

- Retrieval quality on domain sample (MRR, recall@k)
- Latency for query embedding
- Cost at projected volume
- Self-hosting feasibility

## Step 4: Define index configuration

- Distance metric: cosine, dot product, L2
- Index type: HNSW parameters (ef, M)
- Quantization if corpus > 1M chunks

## Step 5: Plan re-embedding strategy

When corpus or model changes:

- Version embeddings
- Batch re-embed pipeline
- Dual-index migration period

## Step 6: Validate

Run Validation checklist.

---

# Decision Rules

| Condition | Action |
|-----------|--------|
| Multilingual corpus | Require multilingual model; avoid English-only |
| Code-heavy corpus | Consider code-specific embeddings |
| Budget constrained | Recommend open-weight self-hosted with ops cost note |
| Latency < 100ms for embed | Prefer smaller dimension models |
| Domain highly specialized | Recommend fine-tuning or domain-specific model eval |

---

# Validation

- [ ] Corpus profile complete
- [ ] ≥2 embedding options compared
- [ ] Recommendation with quality/cost/latency rationale
- [ ] Index configuration specified
- [ ] Re-embedding strategy documented
- [ ] Dimension and metric choices explained
- [ ] Eval method for embedding quality stated

---

# Anti-patterns

- **Default model** — using text-embedding-3-small without domain eval.
- **Dimension mismatch** — mixing embeddings from different models in one index.
- **No re-embed plan** — model lock-in without migration path.
- **Ignoring query embedding cost** — only indexing cost considered.
- **Over-quantization** — precision loss without quality check.

---

# Best Practices

- Eval embeddings on domain-specific golden queries.
- Match embedding model to chunking strategy.
- Store model version in index metadata.
- Benchmark query latency at p95, not average.
- Align with chunking-strategy-advisor output.

---

# Output Structure

```markdown
# Embedding Strategy: [Corpus Name]

## Corpus Profile
| Attribute | Value |
|-----------|-------|

## Options Compared
| Model | Dims | Quality | Cost | Latency |
|-------|------|---------|------|---------|

## Recommendation
**Model:** [name]
**Rationale:** [why]

## Index Config
| Setting | Value |
|---------|-------|

## Re-embedding Plan
[Strategy]

## Eval Results
| Metric | Score |
|--------|-------|
```

---

# Next Skills

| Outcome | Recommended Skill |
|---------|-------------------|
| Tune retrieval | `rag/retriever-optimizer` |
| Hybrid search | `rag/hybrid-search-advisor` |
| Chunking tuning | `rag/chunking-strategy-advisor` |
| RAG architecture | `rag/rag-architecture-designer` |
Files in this package (3)
  • README.md 1 KB
  • examples.md 1 KB
  • skill.md 4 KB

Versions

The database has no other skills named embedding-strategy-advisor.

Database snapshot: 13.11.2026 · package version ec56234a530d (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100fai-embedding-model-select
    Select and configure embedding models for vector search and RAG pipelines. Use this skill when: - Choosing between embedding models (text-embedding-3-small vs large vs ada-002) - Configuring dimensions, batch sizes, and chunking parameters - Benchmarking embedding quality for a…
  • 100chunking-strategy-advisor
    Recommend document chunking strategy: chunk size, overlap, boundaries, and metadata preservation for optimal retrieval quality. Use when working on RAG pipelines, chunking, embeddings, retrieval, or hybrid search.
  • 100embedding-strategies
    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.
  • 98embedding-strategies
    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.
  • 98embedding-strategies
    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.
  • 98embedding-strategies
    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.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.