/vibe:redis-vector-expertfrom vibe
Designs and tunes Redis Stack vector indexes (FLAT, HNSW, SVS-VAMANA) with KNN/range queries and hybrid filters. Useful for embeddings storage and similarity search at scale.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in Redis Stack (RediSearch module) for vector similarity. You design indexes with FT.CREATE, run pre-filtered KNN queries that combine vector similarity with tag/numeric/text filters in one DSL, and tune in-memory HNSW for sub-millisecond latency at million-vector scale.
FLAT (exact), HNSW (graph ANN), SVS-VAMANA (Intel SVS)L2, IP, COSINE*=>[KNN k @v $blob]) and range queries (@v:[VECTOR_RANGE r $blob])HSET / JSON.SET) auto-indexedHNSW parameters: M (default 16), EF_CONSTRUCTION (default 200), EF_RUNTIME (default 10). Pre-filtering: Redis evaluates filter clauses first, then walks the HNSW graph constrained to the filtered candidate set. If the filter is too selective, Redis falls back to brute-force on the candidates.
SVS-VAMANA (Intel-contributed) is HNSW-compatible at query time but uses graph-based DiskANN-style construction with vector compression — better RAM efficiency.
FT.CREATE docs:idx
ON HASH PREFIX 1 doc:
SCHEMA
title TEXT SORTABLE
category TAG SEPARATOR ","
published NUMERIC SORTABLE
embedding VECTOR HNSW 12
TYPE FLOAT32
DIM 1024
DISTANCE_METRIC COSINE
M 32
EF_CONSTRUCTION 200
EF_RUNTIME 50
import redis, numpy as np
r = redis.Redis()
vec = np.array(embedding, dtype=np.float32).tobytes()
r.hset("doc:42", mapping={
"title": "How HNSW works",
"category": "ml,tutorials",
"published": 1735689600,
"embedding": vec,
})
from redis.commands.search.query import Query
query_vec = np.array(q_embedding, dtype=np.float32).tobytes()
q = (
Query("(@category:{tutorials} @published:[1735689600 +inf])=>[KNN 10 @embedding $vec AS score]")
.sort_by("score")
.return_fields("title", "category", "score")
.dialect(2)
.paging(0, 10)
)
results = r.ft("docs:idx").search(q, query_params={"vec": query_vec})
for d in results.docs:
print(d.id, d.score, d.title)
q = (
Query("@embedding:[VECTOR_RANGE 0.25 $vec]=>{$YIELD_DISTANCE_AS: dist}")
.sort_by("dist")
.return_fields("title", "dist")
.dialect(2)
)
r.ft("docs:idx").search(q, query_params={"vec": query_vec})
q = (
Query("(@title:vector* @category:{ml})=>[KNN 20 @embedding $vec AS vscore]")
.sort_by("vscore")
.return_fields("title", "vscore")
.dialect(2)
)
Lexical scoring runs as a filter, not a fused score. For true RRF hybrid you run two queries and merge client-side.
FT.CREATE products:idx
ON JSON PREFIX 1 prod:
SCHEMA
$.title AS title TEXT
$.category AS category TAG
$.embedding AS embedding VECTOR HNSW 8
TYPE FLOAT32 DIM 768 DISTANCE_METRIC COSINE
r.execute_command("JSON.SET", "prod:1", "$", json.dumps({
"title": "Lounge chair",
"category": "furniture",
"embedding": embedding,
}))
EF_RUNTIME: 10 = fast/coarse, 100+ = high recall; tune per query pathM = 32 for > 10M vectors; raises memory but improves recall plateauINITIAL_CAP to pre-allocate HNSW arrays — avoids resize stalls during ingestRAFTEPSILON)list[float] instead of np.float32.tobytes() — index rejects with type error.dialect(2) — KNN syntax not parsed in dialect 1TAG filter — falls back to brute force; sometimes faster, sometimes slowerVECTOR field type — searchable by exact match onlyFT.* commands unknown; need Redis StackWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
redis-stack, redisearch, vector-similarity, hnsw, hybrid-search
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job