<a id="vs-index"></a>

# 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. A
hybrid search query combines both, using semantic similarity and term matching
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.

For the ScyllaDB version each feature needs, see
[Feature Compatibility Matrix](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-clusters.md#vs-feature-compatibility).

### 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](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-concepts.md#vs-concepts-use-cases) in the Concepts page for
more details.

## Getting Started

* [Quick Start Guide](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-quick-start.md)
  <br/>
  Walk through setting up a vector-enabled table, inserting data, and running
  your first similarity search in minutes.
  <br/>

## Understanding Vector and Text Search

* [Vector and Text Search Concepts](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-concepts.md)
  <br/>
  Architecture overview, HNSW algorithm, CDC-based indexing, and data flow
  between storage and indexing nodes.
  <br/>
* [Glossary](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-glossary.md)
  <br/>
  Definitions of key terms including ANN, HNSW, embeddings, similarity
  functions, quantization, filtering, and more.
  <br/>

## Deployment and Operations

* [Vector and Text Search Deployments](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-clusters.md)
  <br/>
  Create, enable, resize, disable, and monitor Vector and Text Search
  clusters in ScyllaDB Cloud via the UI or API.
  <br/>
* [Sizing and Capacity Planning](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-sizing.md)
  <br/>
  Estimate memory requirements, understand quantization impact, and choose
  instance types for your workload.
  <br/>
* [Security](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-security.md)
  <br/>
  Authentication, authorization, service-level isolation, and network
  security for vector search.
  <br/>

## Working with Vectors and Text

* [Working with Vector and Text Search](https://cloud.docs.scylladb.com/stable/vector-search/work-with-vector-search.md)
  <br/>
  CQL usage guide covering the vector data type, vector indexes, similarity
  functions, index tuning, ANN queries, and driver integration.
  <br/>
* [Working with Full Text Search](https://cloud.docs.scylladb.com/stable/vector-search/full-text-search.md)
  <br/>
  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.
  <br/>
* [Vector Search with Alternator](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-alternator.md)
  <br/>
  Use Vector Search through the DynamoDB-compatible Alternator API —
  vector indexes, `SearchVectors`, and `SearchSchema` filtering — with
  Python examples, a comparison with CQL, and migration steps from the
  earlier Alternator API.
  <br/>
* [Filtering Vector and Text Search Results](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-filtering.md)
  <br/>
  Combine similarity search with metadata constraints using global and local
  vector indexes.
  <br/>
* [Quantization and Rescoring](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-quantization.md)
  <br/>
  Reduce index memory usage with quantization (f16, i8, b1) and recover
  precision with oversampling and rescoring.
  <br/>
* [LangChain and CassIO Compatibility](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-langchain.md)
  <br/>
  Use the LangChain Cassandra connector (CassIO) with ScyllaDB through
  Storage Attached Index (SAI) compatibility, including requirements,
  limitations, and a runnable RAG example.
  <br/>

## Troubleshooting and Reference

* [Troubleshooting](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-troubleshooting.md)
  <br/>
  Common issues and solutions for index creation, query results, data
  insertion, performance, and connectivity.
  <br/>
* [FAQ](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-faq.md)
  <br/>
  Frequently asked questions about similarity functions, dimensions,
  latency, filtering, quantization, and more.
  <br/>
* [Reference](https://cloud.docs.scylladb.com/stable/vector-search/reference-vector-search.md)
  <br/>
  Technical reference for instance types, CQL syntax, index options,
  and Cloud API endpoints.
  <br/>

## Examples

* [Example Applications](https://vector-search.scylladb.com/)
  <br/>
  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.
  <br/>
* [LangChain and CassIO Compatibility](https://cloud.docs.scylladb.com/stable/vector-search/vector-search-langchain.md)
  <br/>
  Run the LangChain Cassandra connector against ScyllaDB, with a complete
  Retrieval-Augmented Generation (RAG) example.
  <br/>
