Was this page helpful?
Vector and Text Search¶
Vector and Text Search in ScyllaDB¶
ScyllaDB’s Vector and Text Search feature combines two complementary ways of searching your data: vector search, which retrieves data by similarity, and full text search, which retrieves data by matching terms in text.
Vector search is a powerful method for efficiently searching and retrieving high-dimensional data based on similarity rather than exact matches. It is particularly useful in AI and machine learning applications, where data is often represented as vectors — mathematical representations of objects such as text, images, audio, or video. In these applications, you typically need to retrieve data that is similar to a given query, rather than relying on keyword-based search or exact matches.
Full text search complements this by matching and ranking documents against the terms in a query, which is what you want when the exact words matter. Combining both lets you build hybrid search, where semantic similarity and term matching are used together to improve relevance.
Vector and Text Search allows you to store, index, and query high-dimensional vector data at scale. It is built to work within your existing ScyllaDB infrastructure, taking advantage of its high-performance and highly available architecture.
Note
The full text search part of Vector and Text Search is available in ScyllaDB Cloud starting with ScyllaDB version 2026.3.0. Vector search is available on clusters running ScyllaDB 2025.4.3 or later.
Common Use Cases¶
Semantic search — Find documents or passages that match the meaning of a query, not just the keywords.
Retrieval-Augmented Generation (RAG) — Provide relevant context to an LLM by retrieving similar documents from a vector store.
Recommendation systems — Find items similar to those a user has interacted with.
Image and audio search — Find visually or acoustically similar media.
Anomaly detection — Identify outliers far from all clusters in vector space.
Deduplication — Find near-duplicate records by identifying vectors that are very close together.
See Common Use Cases in the Concepts page for more details.
Getting Started¶
- Walk through setting up a vector-enabled table, inserting data, and running your first similarity search in minutes.
Understanding Vector and Text Search¶
- Architecture overview, HNSW algorithm, CDC-based indexing, and data flow between storage and indexing nodes.
- Definitions of key terms including ANN, HNSW, embeddings, similarity functions, quantization, filtering, and more.
Deployment and Operations¶
- Create, enable, resize, disable, and monitor Vector and Text Search clusters in ScyllaDB Cloud via the UI or API.
- Estimate memory requirements, understand quantization impact, and choose instance types for your workload.
- Authentication, authorization, service-level isolation, and network security for vector search.
Working with Vectors and Text¶
- CQL usage guide covering the vector data type, vector indexes, similarity functions, index tuning, ANN queries, and driver integration.
- CQL usage guide for full text search: creating a full-text index, the
BM25()query shape, boolean and phrase queries, relevance ranking, and combining text search with vector search. - Use Vector Search through the DynamoDB-compatible Alternator API, with Python examples and a feature-availability comparison with CQL.
- Combine similarity search with metadata constraints using global and local vector indexes.
- Reduce index memory usage with quantization (f16, i8, b1) and recover precision with oversampling and rescoring.
- Use the LangChain Cassandra connector (CassIO) with ScyllaDB through Storage Attached Index (SAI) compatibility, including requirements, limitations, and a runnable RAG example.
Troubleshooting and Reference¶
- Common issues and solutions for index creation, query results, data insertion, performance, and connectivity.
- Frequently asked questions about similarity functions, dimensions, latency, filtering, quantization, and more.
- Technical reference for instance types, CQL syntax, index options, and Cloud API endpoints.
Examples¶
- Learn how to use ScyllaDB vector search to build RAG applications, semantic caching layers, and how it integrates with popular LLM libraries like LlamaIndex and LangChain.
- Run the LangChain Cassandra connector against ScyllaDB, with a complete Retrieval-Augmented Generation (RAG) example.