# Design Better Embedding Pipelines

Choosing an embedding model and chunking strategy without evidence can reduce retrieval quality and increase cost. This skill provides comparison criteria, implementation patterns, and evaluation metrics for vector search.

## Install

```bash
npx skillstore add sickn33/embedding-strategies
```

## Metadata

- Status: approved
- Slug: sickn33-embedding-strategies
- Skillstore revision: r2
- Version status: missing
- Tree hash: 63ef207461a799c4b4f04b5b7f878e41b70655a66e08d835c7d5627849a23807
- Author: sickn33
- GitHub username: sickn33
- License: MIT
- Repository: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/embedding-strategies
- Ref: 88a8e9a07f4c54ab105c1c41b6267c287146b07b
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network
- Quality score: 78
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/sickn33-embedding-strategies
- Manifest: https://skillstore.pages.dev/api/skills/sickn33-embedding-strategies/manifest

## Capabilities

- Compares six hosted and local embedding models by dimensions, token limits, and intended use.
- Explains token, sentence, semantic section, and recursive character chunking approaches.
- Provides implementation patterns for OpenAI embeddings and Sentence Transformers.
- Outlines domain-specific and code-specific embedding pipeline structures.
- Defines precision, recall, MRR, NDCG, cosine, Euclidean, and dot-product evaluation methods.

## Use Cases

- Plan a RAG Index: Select a model and chunking method for a document collection with clear cost, language, and latency constraints.
- Compare Embedding Models: Create an evaluation plan using labeled queries and retrieval metrics before changing production models.
- Improve Semantic Search: Diagnose weak retrieval by reviewing preprocessing, chunk overlap, normalization, and model suitability.

## Prompt Templates

### Choose an Embedding Model

```
Recommend an embedding model for [content type] in [languages]. Compare quality, latency, hosting, dimensions, token limits, and estimated cost.
```

### Design a Chunking Strategy

```
Design a chunking strategy for [document format] with [average length]. Specify chunk size, overlap, semantic boundaries, metadata, and validation checks.
```

### Build a Retrieval Evaluation

```
Create an offline evaluation plan for [search task]. Define a labeled dataset, baseline, precision, recall, MRR, NDCG, and acceptance thresholds.
```

### Plan a Domain Embedding Pipeline

```
Design a production embedding pipeline for [domain]. Include preprocessing, batching, model choice, dimension strategy, caching, versioning, monitoring, privacy, and migration testing.
```

## Limitations

- Example code requires dependency installation, credentials, and environment-specific validation.
- Model dimensions, limits, pricing, and availability can change after publication.
- The skill does not provide a complete vector database integration or benchmark runner.
- The referenced implementation playbook is not included in this package.

## Best Practices

- Evaluate models on representative queries and labeled relevant documents before production use.
- Preserve semantic boundaries and useful metadata when chunking documents.
- Version models, preprocessing, dimensions, and indexes together for reproducible migrations.

## Anti Patterns

- Do not choose a model only from public leaderboard scores.
- Do not mix vectors from different models or dimensions in one index.
- Do not send sensitive documents to hosted APIs without approved privacy controls.

## Security Audit

- Audited at: 2026-07-23T23:24:36.258\+00:00
- Summary: All 17 static findings are false positives caused by Markdown formatting, documentation links, ordinary Python dictionary access, or prose. No prompt injection, malicious command execution, system reconnaissance, or semantic security issue was found.

## Stats

- Views: 106
- Downloads: 9
- Favorites: 0
- Popularity score: 0
