/scylladb:scylladb-vector-searchfrom scylladb
Implements and optimizes ScyllaDB Vector Search (HNSW, ANN) and full-text search (BM25) for semantic similarity, RAG, keyword search, and hybrid search. Covers embeddings, vector indexes, filtering, quantization, Docker local testing, and LangChain integration.
Ships in scylladb. 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.
Read when SKILL.md points to them.
If the task goes beyond this skill, use the parent scylladb skill for a ScyllaDB overview and the list of other ScyllaDB skills. If it is not installed, fetch it from https://raw.githubusercontent.com/scylladb/agent-skills/main/skills/scylladb/SKILL.md.
Vector Search stores embeddings in a vector<float, N> column and answers approximate nearest neighbor (ANN) queries from an HNSW vector index. Full-text search ranks rows by BM25 from a fulltext_index on a text column (ScyllaDB 2026.3.0+). Both index types run on the same indexing nodes, so the deployment rules below apply to both. For production they are available only on ScyllaDB Cloud. The indexes are maintained outside the table, so TRUNCATE does not clear them.
vector CQL typeFor adjacent topics, use the sibling skill instead:
scylladb-data-modelingscylladb-cloud-setupscylladb-alternatorscylladb/vector-store container (the indexing service) connected to it. Full-text search also needs this container. See local-docker.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 matching file in the Quick Reference before recommending indexes or queries.
Typical 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 weights, good general-purpose)User's cluster doesn't have Vector Search enabled (queries fail with Vector Store is disabled):
vector-store container is running and ScyllaDB has --vector-store-primary-uri set (see local-docker)Query returns no results:
TTL is needed:
USING TTL, default_time_to_live) is accepted, but expired rows stay in the vector or full-text index and use slots against LIMIT.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.vector type, the tablets requirement, CREATE CUSTOM INDEX ... USING 'vector_index', similarity functions, HNSW parameters, and why TRUNCATE does not clear the index. Consult before creating a vector table or index, or when the user wants to reset vector data.ORDER BY ... ANN OF ... LIMIT syntax, similarity scores, write-to-query latency, and CQL features that ANN queries do not support. Consult when writing or debugging an ANN query.WHERE clause.f16, bf16, i8, b1), oversampling, rescoring, and why index options cannot change after creation. Consult when the dataset is over about 1M vectors or index memory is a concern.vector type and insert/query examples in Python, Java, Go, and Node.js. Consult when writing application code that reads or writes vectors.BM25() query rules, and hybrid search with Reciprocal Rank Fusion. Consult before creating a fulltext_index, writing a BM25() query, or combining keyword and semantic results.references/ann-queries.md (opens in a new tab)references/driver-integration.md (opens in a new tab)references/filtering.md (opens in a new tab)references/full-text-search.md (opens in a new tab)references/local-docker.md (opens in a new tab)references/quantization.md (opens in a new tab)references/vector-type-and-indexing.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
scylladb, vector-search, full-text-search, hnsw, ann, bm25, rag, embeddings
npx claudepluginhub scylladb/agent-skills --plugin scylladb8 skills in this plugin
/scylladbOverview of ScyllaDB and a map of the ScyllaDB agent skills, with instructions to install or fetch a skill that is missing. Use this skill when starting a project on ScyllaDB or moving an existing project to ScyllaDB, when a task covers more than one ScyllaDB area, or when no more specific ScyllaDB skill matches. Child skill scylladb-data-modeling wins for CQL schemas, keys, indexes, TTL, and compaction. Child skill scylladb-cloud-setup wins for connections, drivers, and credentials. Child skill scylladb-java-driver-migration wins for moving Java driver 3.x code to 4.x. Also use to find the skill for vector, full-text, and hybrid search, the DynamoDB API (Alternator), Kubernetes and the ScyllaDB Operator, the ScyllaDB Cloud MCP server, or benchmarks and load tests of ScyllaDB Cloud. Triggers on "ScyllaDB", "Scylla", "ScyllaDB Cloud", "get started with ScyllaDB", "use ScyllaDB", "migrate to ScyllaDB", "switch to ScyllaDB"./scylladb-alternatorGuide users building against ScyllaDB's DynamoDB-compatible API (Alternator). Use this skill when a user is porting a DynamoDB application to ScyllaDB, using boto3/AWS SDK clients against ScyllaDB, or asking about Alternator setup, write isolation, or load balancing. CQL schema design goes to scylladb-data-modeling. Triggers on "Alternator", "DynamoDB API", "DynamoDB compatible", "boto3 with ScyllaDB", "migrate from DynamoDB", "aws-sdk against ScyllaDB", "alternator_port", "alternator_write_isolation"./scylladb-benchmarkRun a repeatable load test of a ScyllaDB Cloud cluster on AWS with cassandra-stress, from loader VMs in a peered VPC, and write a report with a fixed results table. The default fast path measures the maximum 50/50 read/write rate at p99 ≤ 10 ms on a pinned X Cloud cluster; a user profile tests the schema and queries of the user's application. Use this skill when a user asks to benchmark, load test, or stress test ScyllaDB Cloud, to measure p50, p90, and p99 latency at a target rate, to find the maximum throughput under a latency SLA, or to check if a cluster size is enough. It does not benchmark other databases; for a comparison it gives advice only. App connections go to scylladb-cloud-setup, and schema design goes to scylladb-data-modeling. Triggers on "benchmark ScyllaDB", "load test my cluster", "stress test", "cassandra-stress", "user profile", "ops/s", "max throughput", "p99 latency", "latency SLA", "read/write ratio", "loader", "benchmark report", "benchmark comparison"./scylladb-cloud-mcpHelp users set up and use the ScyllaDB Cloud MCP server to manage ScyllaDB Cloud clusters via AI agents. Use this skill when a user wants to manage ScyllaDB Cloud programmatically through an AI agent, configure the MCP server, create, delete, or monitor clusters via MCP, or integrate ScyllaDB Cloud management into an agentic workflow. Connecting an application to a cluster goes to scylladb-cloud-setup. Triggers on "ScyllaDB Cloud MCP", "MCP server ScyllaDB", "manage ScyllaDB with AI agent", "ScyllaDB MCP setup"./scylladb-cloud-setupGuide users through connecting to a ScyllaDB Cloud cluster, choosing the correct driver and version, and configuring authentication. Use this skill when a user needs to connect to ScyllaDB Cloud, pick a CQL driver, check a driver version, configure credentials, set the default consistency level, size the connection pool, or troubleshoot connection issues. Cluster management through an AI agent goes to scylladb-cloud-mcp. Triggers on "connect to ScyllaDB Cloud", "ScyllaDB connection", "ScyllaDB driver setup", "which driver", "driver version", "Java driver", "Python driver", "CQL connection", "DC-aware load balancing", "ScyllaDB credentials", "connection bundle", "shard-aware", "tablet-aware", "consistency level", "LOCAL_QUORUM", "too many connections"./scylladb-data-modelingScyllaDB CQL data modeling patterns and anti-patterns, including compaction strategy choice, TTL-based expiration, tombstone management, and lightweight transactions. Use when designing tables, reviewing schemas, migrating from SQL or MongoDB, setting data retention, or troubleshooting performance issues caused by schema problems or deletes, or writing conditional (LWT) statements. Vector and full-text indexes go to scylladb-vector-search; DynamoDB API tables go to scylladb-alternator. Triggers on "design schema", "ScyllaDB data model", "partition key", "clustering column", "primary key", "CQL table design", "ALLOW FILTERING", "large partitions", "hot partitions", "query-first design", "secondary index", "materialized view", "schema review", "wide partition", "tombstones", "time series", "BATCH", "paging", "fetch size", "TTL", "default_time_to_live", "compaction strategy", "TWCS", "gc_grace_seconds", "tombstone_gc", "LWT", "lightweight transaction", "IF NOT EXISTS", "LOCAL_SERIAL".Other plugins' skills for the same job