embedding-strategies

Compare and optimize embedding models for semantic search and RAG applications.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users select, configure, and optimize embedding models for various applications, ensuring efficient and accurate semantic search and Retrieval Augmented Generation (RAG).

Core Features & Use Cases

  • Model Selection: Compares various embedding models (Voyage AI, OpenAI, Sentence Transformers) based on dimensions, cost, and best use cases (code, finance, legal, multilingual).
  • Embedding Pipeline: Provides templates for creating embeddings, including preprocessing, chunking, and model integration.
  • Chunking Strategies: Offers diverse methods for splitting text into manageable chunks (tokens, sentences, semantic sections, recursive splitting).
  • Quality Evaluation: Includes functions to evaluate retrieval quality and compare embedding model performance.
  • Use Case: Choosing the best embedding model for a new RAG application that needs to handle both general text and code snippets efficiently.

Quick Start

Use the embedding-strategies skill to get embeddings for the provided list of texts using the 'voyage-3-large' model.

Frequently Asked Questions about embedding-strategies

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

FAQPage Schema
How do I select the best embedding model for a RAG application handling text and code?

Optimize RAG retrieval quality by applying diverse chunking strategies like token-based splitting, sentence boundaries, semantic sections, or recursive splitting to create manageable text chunks before generating embeddings.

How do I evaluate embedding model performance for semantic search?

Evaluate embedding model performance for semantic search by using included quality evaluation functions to measure and compare retrieval quality across different models and diverse data types like text and code.

Can I use Sentence Transformers with OpenAI models in the same embedding pipeline?

You can integrate Sentence Transformers and OpenAI models within the same embedding pipeline by using provided templates that standardize preprocessing, chunking, and model integration for your semantic search application.

What are the best chunking strategies for processing code snippets and general text?

The best chunking strategies for code and text involve splitting data into manageable chunks using tokens, sentences, semantic sections, or recursive splitting to optimize embedding accuracy for retrieval augmented generation.