embedding-strategies

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

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ACGSpgp/ACGS --skill embedding-strategies-acgspgp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: embedding-strategies
Source: https://github.com/ACGSpgp/ACGS/tree/main/.agent/workflows/llm-application-dev/1.2.1/skills/embedding-strategies
Command: npx skills add https://github.com/ACGSpgp/ACGS --skill embedding-strategies-acgspgp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires openai, sentence-transformers, nltk, tiktoken, numpy, scipy, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of selecting and fine-tuning embedding models to achieve optimal performance for semantic search and Retrieval Augmented Generation (RAG) applications.

Core Features & Use Cases

  • Model Selection: Compares various embedding models (e.g., OpenAI, Sentence Transformers) based on dimensions, token limits, and suitability for different data types (code, legal, multilingual).
  • Pipeline Optimization: Provides templates for embedding pipelines, including chunking strategies (token-based, sentence-based, semantic sections, recursive splitting) and preprocessing.
  • Quality Evaluation: Includes methods for evaluating retrieval quality using metrics like Precision@K, Recall@K, MRR, and NDCG.
  • Use Case: When building a RAG system for a legal document database, use this Skill to select the voyage-2 model, implement a sentence-based chunking strategy, and evaluate the retrieval performance with relevant legal queries.

Quick Start

Use the embedding-strategies skill to get embeddings for the text 'This is a sample document.' using the text-embedding-3-small 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 right embedding model for semantic search and RAG?

Select an embedding model for semantic search by comparing OpenAI and Sentence Transformers based on dimensions, token limits, and data type suitability. This ensures accurate vector representations for your specific RAG application.

What is the best way to chunk text for an embedding pipeline?

The best way to chunk text for an embedding pipeline is using strategies like token-based, sentence-based, semantic sections, or recursive splitting. Proper chunking optimizes retrieval quality in vector databases.

How do I evaluate semantic search retrieval quality in a vector database?

Evaluate semantic search retrieval quality by calculating metrics like Precision@K, Recall@K, MRR, and NDCG. These calculations measure how accurately your embedding pipeline retrieves relevant documents from the vector database.

Does this embedding optimization approach work for specialized data like legal documents?

Yes, embedding optimization works for specialized data like legal documents. You can select specific models such as voyage-2, implement sentence-based chunking strategies, and evaluate retrieval performance using targeted legal queries.

What text preprocessing dependencies are needed to implement chunking strategies?

To implement chunking strategies you need text preprocessing dependencies like nltk and tiktoken. These libraries support token-based and sentence-based splitting to prepare text data for generating embeddings.