import DocCardList from '@theme/DocCardList';
Spice provides a set of features for building data-driven applications and AI agents. This page gives an overview of each feature area.
Query Federation (opens in a new tab) connects multiple data sources—databases, data warehouses, and data lakes—through a single SQL interface. Write one query that joins data across PostgreSQL, Snowflake, S3, and other sources. Spice pushes query operations to source databases when possible to reduce data transfer.
Data Acceleration (opens in a new tab) materializes remote datasets locally in memory or on disk using engines like Arrow, DuckDB, SQLite, or PostgreSQL. Accelerated datasets stay current through scheduled refreshes, append mode, or Change Data Capture (CDC) (opens in a new tab). Caching (opens in a new tab) stores query and search results in memory with configurable TTLs and eviction policies to avoid redundant computation.
Large Language Models (opens in a new tab) provides an OpenAI-compatible API gateway for hosted models (OpenAI, Anthropic, xAI) and locally served models (Llama, Phi) with CUDA and Metal acceleration. Models can call tools to query datasets, run SQL, and retrieve schemas. Embeddings (opens in a new tab) generates vector representations of text for semantic search and RAG workflows.
Search (opens in a new tab) supports three methods: vector search (semantic similarity using embeddings), full-text search (keyword matching with BM25 scoring), and hybrid search (combining both with Reciprocal Rank Fusion). All search methods are accessible through SQL UDTFs like vector_search() and text_search().
Observability (opens in a new tab) exposes Prometheus-compatible metrics, OpenTelemetry metric export, and distributed tracing with Zipkin. Integrations are available for Datadog, Grafana, and other monitoring platforms.