[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F194K8XFTB8MTBBXJ2AP4Z":3,"skill-same:01M7F194K8XFTB8MTBBXJ2AP4Z":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7F194K8XFTB8MTBBXJ2AP4Z","embedding-strategies",null,"Choose an embedding model and a chunking strategy for semantic search and RAG. Use when choosing embedding models, splitting documents into chunks, reducing embedding dimensions, or evaluating embedding quality on a specific domain.","shotcowboystyle\u002Fag-skills","shotcowboystyle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62471?v=4","01M7EZTCFCZJ6K3MYW8BPM4X6R","Curtis Blanton","01M7EZTCG1S5M04J90A931X9BX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fllm-application-dev\u002Fskills\u002Fembedding-strategies\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: embedding-strategies\ndescription: Choose an embedding model and a chunking strategy for semantic search and RAG. Use when choosing embedding models, splitting documents into chunks, reducing embedding dimensions, or evaluating embedding quality on a specific domain.\nlast_verified: 2026-10-27\n---\n\n# Embedding Strategies\n\nChoosing embedding models and chunking documents for vector search.\n\nThis skill owns embedding model choice and chunking. Related topics:\n\n| Topic | Owner |\n| --- | --- |\n| Vector store clients, distance metrics | [similarity-search-patterns](..\u002Fsimilarity-search-patterns\u002FSKILL.md) |\n| Hybrid search, RRF, reranking | [hybrid-search-implementation](..\u002Fhybrid-search-implementation\u002FSKILL.md) |\n| Index parameters, quantization | [vector-index-tuning](..\u002Fvector-index-tuning\u002FSKILL.md) |\n\n## When to Use This Skill\n\n- Choosing an embedding model for RAG or semantic search\n- Choosing chunk size, overlap and split boundaries\n- Reducing embedding dimensions (Matryoshka truncation)\n- Handling code, multilingual or domain-specific content\n- Comparing embedding models on your own queries\n\n## Embedding Models (as of 2026-10)\n\nModel lineups change often. Dimensions, context limits and prices are configurable or\nchange between releases: check the provider's docs before you size an index.\n\n| Model family | Provider | Notes |\n| --- | --- | --- |\n| `voyage-4-large`, `voyage-4`, `voyage-4-lite` | Voyage AI | General text; Anthropic's docs point to Voyage for embeddings with Claude |\n| `voyage-code-4` | Voyage AI | Code search |\n| `voyage-context-4` | Voyage AI | Contextualized chunk embeddings (chunk encoded with its document context) |\n| `voyage-finance-2`, `voyage-law-2` | Voyage AI | Finance and legal domains |\n| `text-embedding-3-large`, `text-embedding-3-small` | OpenAI | Supports `dimensions` to truncate output |\n| `BAAI\u002Fbge-*`, `intfloat\u002Fmultilingual-e5-*`, `sentence-transformers\u002Fall-MiniLM-L6-v2` | Open source | Run locally; check each model card for query\u002Fpassage prefixes and token limit |\n\nPick by measured retrieval quality on your own labeled queries (Template 6 in the\nreferences), not by leaderboard rank alone.\n\n## Chunking\n\n| Strategy | Use when |\n| --- | --- |\n| Recursive character\u002Ftoken splitting (`RecursiveCharacterTextSplitter`) | Default for prose |\n| Header-aware (`MarkdownHeaderTextSplitter`, then size-limit) | Markdown, docs sites; keeps the header path as metadata |\n| Sentence packing | Short-form text where sentence boundaries matter |\n| Syntax-aware (tree-sitter functions\u002Fclasses) | Source code |\n| Fixed token windows with overlap | Uniform inputs, or when you need exact token budgets |\n\nRules:\n\n- Size chunks in **tokens of the embedding model's tokenizer**, and stay under its input\n  limit. Truncation silently drops text.\n- Overlap must be smaller than the chunk size. Start around 10–20% and measure.\n- Keep `document_id`, `chunk_index` and the section\u002Fheader path as metadata on every chunk.\n- Re-chunking or switching models means re-embedding the whole corpus. Vectors from\n  different models are not comparable.\n\n## Pipeline\n\n```\nDocument → Clean → Chunk → Embed (batched) → Store with metadata\n                     ↑\n       size + overlap in model tokens\n```\n\n## Templates\n\n[references\u002Fdetails.md](references\u002Fdetails.md) has: Voyage and OpenAI embedding clients,\nlocal sentence-transformers (BGE \u002F E5 prefixes), chunkers with runnable self-checks,\ndomain and code (tree-sitter) pipelines, and a retrieval-quality evaluator (precision,\nrecall, MRR, nDCG).\n\n## Best Practices\n\n### Do's\n\n- **Match model to content**: code vs prose vs multilingual\n- **Use the model's query\u002Fdocument modes**: `embed_query` vs `embed_documents`, or the\n  model's documented prefixes (E5 `query:` \u002F `passage:`)\n- **Normalize embeddings** when the store uses dot product\n- **Batch requests and cache** embeddings for unchanged content\n\n### Don'ts\n\n- **Don't ignore token limits**: truncation loses information\n- **Don't mix embedding models** in one collection\n- **Don't strip meaningful characters** in preprocessing (code symbols, units, IDs)\n- **Don't forget metadata**: needed for filtering, citations and debugging\n","# Embedding Strategies\n\nChoosing embedding models and chunking documents for vector search.\n\nThis skill owns embedding model choice and chunking. Related topics:\n\n| Topic | Owner |\n| --- | --- |\n| Vector store clients, distance metrics | [similarity-search-patterns](..\u002Fsimilarity-search-patterns\u002FSKILL.md) |\n| Hybrid search, RRF, reranking | [hybrid-search-implementation](..\u002Fhybrid-search-implementation\u002FSKILL.md) |\n| Index parameters, quantization | [vector-index-tuning](..\u002Fvector-index-tuning\u002FSKILL.md) |\n\n## When to Use This Skill\n\n- Choosing an embedding model for RAG or semantic search\n- Choosing chunk size, overlap and split boundaries\n- Reducing embedding dimensions (Matryoshka truncation)\n- Handling code, multilingual or domain-specific content\n- Comparing embedding models on your own queries\n\n## Embedding Models (as of 2026-10)\n\nModel lineups change often. Dimensions, context limits and prices are configurable or\nchange between releases: check the provider's docs before you size an index.\n\n| Model family | Provider | Notes |\n| --- | --- | --- |\n| `voyage-4-large`, `voyage-4`, `voyage-4-lite` | Voyage AI | General text; Anthropic's docs point to Voyage for embeddings with Claude |\n| `voyage-code-4` | Voyage AI | Code search |\n| `voyage-context-4` | Voyage AI | Contextualized chunk embeddings (chunk encoded with its document context) |\n| `voyage-finance-2`, `voyage-law-2` | Voyage AI | Finance and legal domains |\n| `text-embedding-3-large`, `text-embedding-3-small` | OpenAI | Supports `dimensions` to truncate output |\n| `BAAI\u002Fbge-*`, `intfloat\u002Fmultilingual-e5-*`, `sentence-transformers\u002Fall-MiniLM-L6-v2` | Open source | Run locally; check each model card for query\u002Fpassage prefixes and token limit |\n\nPick by measured retrieval quality on your own labeled queries (Template 6 in the\nreferences), not by leaderboard rank alone.\n\n## Chunking\n\n| Strategy | Use when |\n| --- | --- |\n| Recursive character\u002Ftoken splitting (`RecursiveCharacterTextSplitter`) | Default for prose |\n| Header-aware (`MarkdownHeaderTextSplitter`, then size-limit) | Markdown, docs sites; keeps the header path as metadata |\n| Sentence packing | Short-form text where sentence boundaries matter |\n| Syntax-aware (tree-sitter functions\u002Fclasses) | Source code |\n| Fixed token windows with overlap | Uniform inputs, or when you need exact token budgets |\n\nRules:\n\n- Size chunks in **tokens of the embedding model's tokenizer**, and stay under its input\n  limit. Truncation silently drops text.\n- Overlap must be smaller than the chunk size. Start around 10–20% and measure.\n- Keep `document_id`, `chunk_index` and the section\u002Fheader path as metadata on every chunk.\n- Re-chunking or switching models means re-embedding the whole corpus. Vectors from\n  different models are not comparable.\n\n## Pipeline\n\n```\nDocument → Clean → Chunk → Embed (batched) → Store with metadata\n                     ↑\n       size + overlap in model tokens\n```\n\n## Templates\n\n[references\u002Fdetails.md](references\u002Fdetails.md) has: Voyage and OpenAI embedding clients,\nlocal sentence-transformers (BGE \u002F E5 prefixes), chunkers with runnable self-checks,\ndomain and code (tree-sitter) pipelines, and a retrieval-quality evaluator (precision,\nrecall, MRR, nDCG).\n\n## Best Practices\n\n### Do's\n\n- **Match model to content**: code vs prose vs multilingual\n- **Use the model's query\u002Fdocument modes**: `embed_query` vs `embed_documents`, or the\n  model's documented prefixes (E5 `query:` \u002F `passage:`)\n- **Normalize embeddings** when the store uses dot product\n- **Batch requests and cache** embeddings for unchanged content\n\n### Don'ts\n\n- **Don't ignore token limits**: truncation loses information\n- **Don't mix embedding models** in one collection\n- **Don't strip meaningful characters** in preprocessing (code symbols, units, IDs)\n- **Don't forget metadata**: needed for filtering, citations and debugging\n",{"name":5,"description":7,"last_verified":24},1793059200000,"main","f846d9a97082ff30d613b55a085cef425d822473","plugins\u002Fllm-application-dev\u002Fskills\u002Fembedding-strategies","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle","https:\u002F\u002Fshotcowboystyle.github.io","Building smarter with AI, automation & modern tools. Exploring how far one person can go without a big team using today’s AI.","2026-11-10 04:58:27",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add shotcowboystyle\u002Fag-skills --skill embedding-strategies",{"tool":39,"command":40},"bunx","bunx skills add shotcowboystyle\u002Fag-skills --skill embedding-strategies",{"tool":42,"command":43},"pnpm","pnpm dlx skills add shotcowboystyle\u002Fag-skills --skill embedding-strategies","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fllm-application-dev\u002Fskills\u002Fembedding-strategies\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fdetails.md","REFERENCE","参考文档",15930,"https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fllm-application-dev\u002Fskills\u002Fembedding-strategies\u002Freferences\u002Fdetails.md",[54,60,67,74,81,88],{"skillNo":55,"name":56,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7F1YRY5S5QRJ1V0BJS130QX","no-description","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fno-description\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7F1Y9BV2FJNQJ3NB32JS5CM","good-skill","Fixture skill that satisfies every rule.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7F1XXBQ3NQRXZSS0KAGAR9V","broken-link","Links to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbroken-link\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7F1XBX4R46NR9W0HXQ7XCDX","Bad_Name","Name violates the kebab-case rule and does not match the directory.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-name\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7F1WNAF8WNEQ7S5HKT5VK0D","skill-authoring","Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskill-authoring\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7F1W30TC0XFNSF7YBRGETK2","weigh-bags","Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts\u002Freconcile.py.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-packing-assistant\u002Fskills\u002Fweigh-bags\u002FSKILL.md",[],[]]