semantic-search-embeddings

semantic-search-embeddings is a skill for Claude Code, Codex from vikasudasi/skill-vault. It costs 28 tokens per session (443 once invoked), scanned A, original, Apache-2.0.

A guide to semantic search, which finds information by meaning rather than exact keywords. It explains turning text into numerical representations called embeddings, storing them, and ranking results by similarity.

In plain words
What is it for?
Use it when building a search system with embeddings, a vector store, similarity ranking, metadata filters, and either local or hosted embedding models.
Why use it?
It helps searches find relevant items when the user's wording differs from the words used in the stored descriptions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when building a search system with embeddings, a vector store, similarity ranking, metadata filters, and either local or hosted embedding models.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vikasudasi/skill-vault/semantic-search-embeddings
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add vikasudasi/skill-vault --skill semantic-search-embeddings
Clone the repo
git clone --depth 1 https://github.com/vikasudasi/skill-vault

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for semantic-search-embeddings

README.md
[![agentmods](https://agentmods.dev/badge/skills/vikasudasi/skill-vault/semantic-search-embeddings/github.svg)](https://agentmods.dev/skills/vikasudasi/skill-vault/semantic-search-embeddings)
Your own site
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/semantic-search-embeddings"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/semantic-search-embeddings/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for semantic-search-embeddings

Your own site · 80×15
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/semantic-search-embeddings"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/semantic-search-embeddings.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 443 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00443
Opus 5 $0.00014 $0.00221
Sonnet 5 $0.00006 $0.00089
Haiku 4.5 $0.00003 $0.00044

Measured 9d ago against content hash 7325736b406b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

semantic-search-embeddings scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/embedding_search.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skill_vault/data/skills/semantic-search-embeddings/SKILL.md · 48 lines

What it actually says

Semantic Search with Embeddings

Use when keyword search is too brittle and you want to retrieve by meaning.

Pipeline

  1. Embed documents → vectors.
  2. Store in a vector index (SQLite sqlite-vec, pgvector, FAISS, Qdrant…).
  3. Query → embed the query, compute cosine similarity, take top-k.
  4. Filter → apply scope/trust/visibility after similarity.

Embed the right text

Embed discovery metadata (title, description, tags, trigger phrases), not the full body. This mirrors Skill Vault's approach: it keeps indexes small and retrieval focused on what it's for, not every word. Weight: name + description

  • a few keywords is usually enough for good recall.

Pick a model

  • Local, cheap, deterministic: all-MiniLM-L6-v2 (384-dim) — good for self-hosted, private searches (Skill Vault uses this, same as agent-knowledge-graph).
  • Higher quality, bigger: OpenAI/Mistral embedding APIs (1536+ dims) — needs a key + network.

Ranking

Cosine similarity is standard; normalize vectors so dot product == cosine. Round scores for stable display (Skill Vault rounds to 4 dp).

Pitfalls

  • Embedding garbage in → garbage out: dedupe/normalize text first.
  • Keep the vector dimension fixed to the model; switching models orphans old vectors.
  • Store only metadata embeddings; return full content by id on demand (progressive disclosure) to keep the index small.
Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 48 lines · 28 tokens per session scan A 7325736b406b

Subscribe to this mod's changes

semantic-search-embeddings is a skill published in the GitHub repository vikasudasi/skill-vault (0 stars, last pushed 24d ago), licensed Apache-2.0. It adds 28 tokens to every session and 443 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

vector-databases

Vector database operations — embed, store, search, and build RAG pipelines.

furkangonel/cowrangler · 21 tokens

sentence-transformers

Framework for state-of-the-art sentence, text, and image embeddings. Provides 5000+ pre-trained models for semantic similarity, clustering, and retrieval. Supports multilingual, domain-specific, and multimodal models. Use for generating embeddings for RAG, semantic search, or similarity tasks. Best for production…

davila7/claude-code-templates · 67 tokens

llm-ops

LLM Operations -- RAG, embeddings, vector databases, fine-tuning, prompt engineering avancado, custos de LLM, evals de qualidade e arquiteturas de IA para producao.

davila7/claude-code-templates · 44 tokens

rag-retrieval

Retrieval-Augmented Generation patterns for grounded LLM responses. Use when building RAG pipelines, embedding documents, implementing hybrid search, contextual retrieval, HyDE, agentic RAG, multimodal RAG, query decomposition, reranking, or pgvector search.

yonatangross/orchestkit · 58 tokens

gno

Search local documents, files, notes, and knowledge bases. Index directories, search with BM25/vector/hybrid, get AI answers with citations. Use when user wants to search files, find documents, query notes, look up information in local folders, index a directory, set up document search, build a knowledge base, needs…

gmickel/gno · 86 tokens

chroma

Open-source embedding database for AI applications. Store embeddings and metadata, perform vector and full-text search, filter by metadata. Simple 4-function API. Scales from notebooks to production clusters. Use for semantic search, RAG applications, or document retrieval. Best for local development and open-source…

davila7/claude-code-templates · 63 tokens