Vector Search Patterns
Implementing semantic search and similarity search using vector embeddings and vector databases.
Profile →npx skills add majiayu000/claude-skill-registry --skill vector-search-patterns --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
Conveys how to perform vector (semantic) search using embeddings, covering concepts like embeddings, vector databases, distance metrics, indexing, and evaluation for a range of backends. It also provides practical code sketches for common tasks such as embedding generation, upserting vectors, and querying across several vector stores.
How it works
The skill explains a four-step flow: Embedding (convert text/images to vectors via ML models), Indexing (store vectors in a vector database with an efficient index), Querying (convert the user query to a vector and find nearest neighbors), and Ranking (return results by similarity). It then demonstrates concrete setup and usage patterns for multiple backends: Pinecone, Weaviate, Qdrant, Milvus, Chroma, pgvector (PostgreSQL), and Redis Vector Search. For each backend, it shows typical operations: initializing the client, creating a collection/index, upserting vectors with metadata, and performing a semantic search with optional filters. It also covers distance metrics like Cosine, Euclidean, and Dot Product, and lists common embedding models and example code blocks.
When to use it
The skill outlines prerequisites and triggers across contexts where semantic similarity is needed, such as locating items by meaning, enabling hybrid search, or utilizing RAG approaches. It implies use when your task involves converting data to vectors, storing them efficiently, and retrieving by similarity with optional constraints.
What it can touch
The skill references tools and libraries for various backends: Pinecone, Weaviate, Qdrant, Milvus, Chroma, pgvector, and Redis Vector Search. It includes code snippets that demonstrate how to interact with these backends, upsert vectors, query embeddings, and apply filters (e.g., category and price). It also shows embedding generation using text models like all-MiniLM-L6-v2 and text-embedding-ada-002, and includes snippets for Python and SQL.
Caveats
It notes several prerequisites and limitations, such as understanding vector mathematics, embeddings, and database concepts, plus familiarity with cloud services. It lists potential model and vector dimension details (e.g., 1536-dimensional embeddings, 384-1536 dimensions depending on model) and common filtering capabilities in queries. No outcomes are promised beyond the described steps, and no subjective judgments are made about the method quality beyond factual descriptions.
# Vector Search Patterns ## Overview Vector search (also known as semantic search or similarity search) enables finding similar items based on their meaning rather than exact keyword matches. It uses vector embeddings to represent data as points in high-dimensional space, where similarity is measured as distance between points. ## Prerequisites - Understanding of vector mathematics and linear algebra - Knowledge of machine learning and embeddings - Familiarity with Python and numerical computing (numpy, scikit-learn) - Understanding of database concepts and indexing - Basic knowledge of cloud services (AWS, GCP, Azure) - Experience with vector databases or similarity search ## Key Concepts - **Vector/Semantic Search**: Finding similar items based on meaning rather than exact keyword matches - **Embeddings**: Converting text/images to vectors for similarity comparison - **Vector Databases**: Specialized databases for efficient vector storage and retrieval - **Distance Metrics**: Cosine similarity, Euclidean distance, dot product for measuring vector similarity - **Indexing Algorithms**: HNSW (graph-based), IVF (clustering), PQ (quantization) for efficient search - **Hybrid Search**:
- Overview
- Prerequisites
- Key Concepts
- What is Vector Search / Semantic Search
- Traditional vs Vector Search
- How It Works
- Embeddings Fundamentals
- Text Embeddings
- Image Embeddings
- Multi-Modal Embeddings
- Vector Databases
- Pinecone
- Weaviate
- Qdrant
What does the Vector Search Patterns skill do?
Implementing semantic search and similarity search using vector embeddings and vector databases.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill vector-search-patterns --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.