From scylladb
Guides ScyllaDB Cloud users through implementing and optimizing Vector Search for semantic similarity, RAG, and ANN queries. Covers HNSW indexes, filtering, quantization, and LLM framework integration.
How this skill is triggered — by the user, by Claude, or both
Slash command
/scylladb:scylladb-vector-searchThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You are helping ScyllaDB Cloud users implement, optimize, and troubleshoot Vector Search for similarity-based queries. Your goal is to understand their use case, recommend the right configuration, and help them build effective vector indexes and ANN queries.
You are helping ScyllaDB Cloud users implement, optimize, and troubleshoot Vector Search for similarity-based queries. Your goal is to understand their use case, recommend the right configuration, and help them build effective vector indexes and ANN queries.
Vector Search is a ScyllaDB Cloud feature. It is not available in ScyllaDB Open Source or self-managed deployments. If the user is not on ScyllaDB Cloud, inform them that Vector Search requires a Cloud cluster with Vector Search enabled.
Understand the use case:
Common use cases:
Before creating tables and indexes, establish:
| Parameter | How to Determine |
|---|---|
| Dimensions | From the embedding model (e.g., 384, 768, 1536) |
| Similarity function | From the embedding model docs (COSINE is default and safe for most) |
| Need filtering? | Does the query combine similarity with metadata constraints? |
| Dataset size | < 1M vectors → no quantization; 1M-10M → consider i8; > 10M → consider b1 |
Always consult the appropriate reference file(s) before recommending indexes or queries:
references/vector-type-and-indexing.mdreferences/ann-queries.mdreferences/filtering.mdreferences/quantization.mdreferences/driver-integration.mdTypical implementation order:
vector<float, N> columnCREATE CUSTOM INDEX ... USING 'vector_index')ORDER BY vec_col ANN OF [...] LIMIT k)After setup, verify:
NEVER use ALLOW FILTERING with vector search when a local index would work:
Global vector indexes require ALLOW FILTERING when adding a WHERE clause and are always much slower than local indexes. Design the schema so filter columns are part of the partition key and use a local vector index.
NEVER mix embedding models: Vectors from different embedding models live in incompatible vector spaces. If you change the model, you must re-embed and re-index all data.
NEVER skip the LIMIT clause:
ANN queries require a LIMIT — ScyllaDB will reject the query without one.
User doesn't have an embedding model yet:
all-MiniLM-L6-v2 (384 dims, open-source, good general-purpose)User's cluster doesn't have Vector Search enabled:
Query returns no results:
TTL is needed:
User wants to clear all vectors (reset the table):
TRUNCATE does not clear the vector index. The vector store updates its index only through CDC, and TRUNCATE is not propagated to CDC — the CUSTOM INDEX remains, and previously indexed vectors stay in memory.references/vector-type-and-indexing.md for the exact DDL.npx claudepluginhub scylladb/agent-skills --plugin scylladbOffers UI/UX design guidance for web and mobile with 50+ styles, 161 color palettes, 57 font pairings, and 99 UX guidelines across 10 stacks. Use for designing pages, components, color systems, or reviewing UI code.
Mines projects and conversations into a searchable memory palace. Activates on queries about MemPalace, memory palace, mining, searching, palace setup, wings, rooms, drawers, or recalling past work.