embedding-strategies

Compare embedding models and implement chunking strategies for RAG applications.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/drgaciw/academic-compliance-hub-glm --skill embedding-strategies-drgaciw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: embedding-strategies
Source: https://github.com/drgaciw/academic-compliance-hub-glm/tree/main/agents/plugins/llm-application-dev/skills/embedding-strategies
Command: npx skills add https://github.com/drgaciw/academic-compliance-hub-glm --skill embedding-strategies-drgaciw

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill helps you select the most effective embedding models and fine-tune their application for tasks like semantic search and Retrieval Augmented Generation (RAG), ensuring your AI can accurately understand and retrieve information.

Core Features & Use Cases

  • Model Selection: Compares various embedding models (OpenAI, Sentence Transformers, Voyage) based on dimensions, cost, and performance.
  • Chunking Strategies: Provides methods for splitting text into optimal segments for embedding, including token-based, sentence-based, and recursive splitting.
  • Domain Adaptation: Offers guidance and templates for preprocessing and embedding documents specific to your domain.
  • Quality Evaluation: Includes metrics and methods to assess the performance of your embedding strategies.
  • Use Case: When building a RAG system for legal documents, you can use this Skill to choose a model suited for legal text, implement a sentence-based chunking strategy, and evaluate retrieval accuracy.

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 choose the best embedding model for semantic search?

Choosing the best embedding model for semantic search requires comparing options like OpenAI and Sentence Transformers based on dimensions, cost, and performance. This Skill provides templates to evaluate and select models for RAG applications.

What is recursive character splitting for text chunking?

Recursive character splitting for text chunking is a method to segment documents into optimal pieces for embedding. This Skill implements it alongside token-based and sentence-based splitting to improve retrieval accuracy in RAG systems.

How do I evaluate embedding quality for RAG applications?

Evaluating embedding quality for RAG applications involves using specific metrics to assess retrieval performance. This Skill includes evaluation methods to measure how accurately your embedding strategies retrieve relevant domain information.

Can I use Sentence Transformers with OpenAI embeddings?

Yes, you can use Sentence Transformers alongside OpenAI embeddings. This Skill provides Python templates for both frameworks, allowing you to compare their performance and dimensions for your specific semantic search use case.

What is the best way to preprocess legal documents for vector search?

The best way to preprocess legal documents for vector search is applying domain adaptation techniques and sentence-based chunking strategies. This Skill offers guidance and templates to optimize legal text segmentation before embedding.