embedding-strategies

Select, implement, and optimize embedding models for RAG applications.

2|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/bcastelino/agent-skills-kit --skill embedding-strategies-bcastelino
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: embedding-strategies
Source: https://github.com/bcastelino/agent-skills-kit/tree/main/skills/embedding-strategies
Command: npx skills add https://github.com/bcastelino/agent-skills-kit --skill embedding-strategies-bcastelino

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users select, implement, and optimize embedding models, which are crucial for semantic search and Retrieval Augmented Generation (RAG) applications, ensuring efficient and accurate information retrieval.

Core Features & Use Cases

  • Model Selection: Provides a comparison of various embedding models based on dimensions, performance, and cost.
  • Chunking Strategies: Offers methods for splitting text into optimal chunks for embedding, including token-based, sentence-based, and semantic section-based approaches.
  • Pipeline Implementation: Includes templates for both OpenAI and local embeddings using Sentence Transformers, along with a domain-specific pipeline.
  • Quality Evaluation: Provides functions to evaluate retrieval quality and compute embedding similarity.
  • Use Case: When building a RAG system, use this Skill to choose the best embedding model (e.g., text-embedding-3-small for cost-effectiveness) and implement a robust chunking strategy (e.g., chunk_by_tokens) to maximize retrieval accuracy.

Quick Start

Use the embedding-strategies skill to select an embedding model for a new RAG application.

Frequently Asked Questions about embedding-strategies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the best embedding model for a RAG application?

To choose an embedding model for a RAG application, compare available options based on dimensions, performance, and cost. For example, select text-embedding-3-small for cost-effectiveness or evaluate local Sentence Transformers for localized pipelines.

What are the best text chunking strategies for semantic search?

The best text chunking strategies for semantic search include token-based, sentence-based, and semantic section-based approaches. Implementing chunk_by_tokens helps split text into optimal chunks to maximize retrieval accuracy in embedding pipelines.

Can I use local embeddings with Sentence Transformers instead of an API?

Yes, you can use local embeddings with Sentence Transformers instead of an API. This Skill provides pipeline implementation templates for both local models and OpenAI APIs, allowing you to implement domain-specific embedding solutions.

How do I evaluate embedding quality and retrieval performance?

You evaluate embedding quality and retrieval performance by computing embedding similarity and using provided quality evaluation functions. These metrics ensure efficient and accurate information retrieval in semantic search applications.

What is the difference between token-based and semantic chunking for embeddings?

Token-based chunking splits text by fixed token counts, while semantic section-based chunking divides text by meaning. Choosing the right chunking strategy optimizes embedding models for accurate information retrieval in RAG systems.