title: 'Search Functionality' sidebar_label: 'Search' description: 'Learn how Spice can search across datasets using database-native and vector-search methods.' sidebar_position: 10 pagination_prev: null pagination_next: null tags:
import DocCardList from '@theme/DocCardList';
🎓 For a practical walkthrough, see the: Amazon S3 Vectors with Spice engineering blog post.
Spice provides comprehensive search capabilities enabling developers to query datasets beyond traditional SQL, including semantic (vector-based) search, full-text keyword search, and hybrid search methods.
Spice supports multiple search methods:
Vector search uses embeddings—numerical representations of data—to identify similar or related content based on semantic meaning.
Requirements:
Getting Started:
Example SQL Vector Search:
For complete SQL UDTF specifications, see Vector-Based Search SQL UDTF.
Multi-vector search operates on columns that store many vectors per row, such as per-tag or per-section embeddings. It also supports ColBERT-style late-interaction queries where the query itself is an array of strings.
Requirements:
List<Utf8>) embedded with a multi-vector aggregationGetting Started:
Example SQL Multi-Vector Search:
Full-text search efficiently retrieves records matching specific keywords.
Requirements:
Getting Started:
Example SQL Full-Text Search:
For detailed SQL UDTF instructions, see Full-Text Search SQL UDTF.
Reciprocal Rank Fusion (RRF) combines results by merging rankings from multiple search methods to improve relevance. This is useful when neither vector search nor full-text search alone provides optimal results.
Requirements:
When to use hybrid search:
Example SQL Hybrid Search:
For complete RRF syntax and parameters, see Search SQL Reference.
Reranking reorders search results using a dedicated reranker model (Cohere, Voyage, Jina, or a custom HTTP endpoint) or any registered chat model as an LLM-as-reranker. This two-stage retrieve-then-rerank pattern improves relevance beyond initial retrieval scores.
Requirements:
rerankers: spicepod section) or a registered chat modelGetting Started:
Example SQL Rerank:
For complete rerank syntax and parameters, see Search SQL Reference.