What is Spice?
Spice is a SQL query, search, and LLM-inference engine, written in Rust, for data apps and agents. Spice simplifies building data-driven AI applications and agents by making it fast and easy to query, federate, and accelerate data from one or more sources using SQL, while grounding AI in real-time, reliable data. Co-locate datasets with apps and AI models to power AI feedback loops, enable RAG and search, and deliver fast, low-latency data-query and AI-inference with full control over cost and performance.Four Industry Standard APIs
Spice provides four industry standard APIs in a lightweight, portable runtime (single binary/container):SQL Query & Search
HTTP, Arrow Flight, Arrow Flight SQL, ODBC, JDBC, and ADBC APIs with
vector_search and text_search UDTFs for hybrid search.OpenAI-Compatible APIs
HTTP APIs for OpenAI SDK compatibility, local model serving (CUDA/Metal accelerated), and hosted model gateway.
Iceberg Catalog REST APIs
A unified Iceberg REST Catalog API for data lake integration and Iceberg table writes.
MCP HTTP+SSE APIs
Integration with external tools via Model Context Protocol (MCP) using HTTP and Server-Sent Events (SSE).
Primary Features
Data Federation
SQL query across any database, data warehouse, or data lake. Scale from single-node to distributed multi-node query execution.
Data Materialization & Acceleration
Materialize, accelerate, and cache database queries with Arrow, DuckDB, SQLite, PostgreSQL, or Spice Cayenne (Vortex).
Enterprise Search
Keyword, vector, and full-text search with Tantivy-powered BM25 and petabyte-scale vector similarity search via Amazon S3 Vectors or pgvector.
AI Apps and Agents
An AI-database powering retrieval-augmented generation (RAG) and intelligent agents with OpenAI-compatible APIs and MCP integration.
Why Spice?
Latest Capabilities
- Spice Cayenne Data Accelerator: Simplified multi-file acceleration using the Vortex columnar format + SQLite metadata. Delivers DuckDB-comparable performance without single-file scaling limitations.
- Multi-Node Distributed Query: Scale query execution across multiple nodes with Apache Ballista integration for improved performance on large datasets.
- Acceleration Snapshots: Bootstrap accelerations from S3 for fast cold starts (seconds vs. minutes). Supports ephemeral storage with persistent recovery.
- Iceberg Table Writes: Write to Iceberg tables using standard SQL
INSERT INTOfor data ingestion and transformation—no Spark required. - Petabyte-Scale Vector Search: Native Amazon S3 Vectors integration manages the full vector lifecycle from ingestion to embedding to querying. SQL-integrated hybrid search with RRF.
How is Spice different?
- AI-Native Runtime: Spice combines data query and AI inference in a single engine, for data-grounded AI and accurate AI.
- Application-Focused: Designed to run distributed at the application and agent level, often as a 1:1 or 1:N mapping between app and Spice instance, unlike traditional data systems built for many apps on one centralized database. It’s common to spin up multiple Spice instances—even one per tenant or customer.
- Dual-Engine Acceleration: Supports both OLAP (Arrow/DuckDB) and OLTP (SQLite/PostgreSQL) engines at the dataset level, providing flexible performance across analytical and transactional workloads.
- Disaggregated Storage: Separation of compute from disaggregated storage, co-locating local, materialized working sets of data with applications, dashboards, or ML pipelines while accessing source data in its original storage.
- Edge to Cloud Native: Deploy as a standalone instance, Kubernetes sidecar, microservice, or cluster—across edge/POP, on-prem, and public clouds. Chain multiple Spice instances for tier-optimized, distributed deployments.
Get Started
Quickstart
Get up and running with Spice in minutes
Installation
Install Spice on your platform
Cookbook
Explore examples and recipes
Resources
Documentation
Comprehensive documentation for all features
1.0 Stable Announcement
Read the Spice.ai 1.0-stable announcement
CMU Database Talk
Watch the CMU Databases talk on Spice.ai
GitHub
Star us on GitHub