Skip to content
Projetos

Sobre

Adicione um nó de análise em tempo real ao seu banco de dados operacional. O Spice é um mecanismo portátil e acelerado de consultas SQL, pesquisa e inferência de LLM, escrito em Rust, para aplicações e agentes de IA fundamentados em dados.

Dados e análise

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
+3
em 7 dias
+17
em 15 dias
-13
em 1 mês
+20

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Spice.ai

The portable data lakehouse for every agent.

Serve enterprise data to agents securely and at scale on object storage.

License: Apache-2.0 GitHub stars Slack Follow on X

Docs · Quickstart · Cookbook · AI Skills · Blog

Spice gives each app and agent fast, sandboxed access to only the data it needs, through a single SQL endpoint for retrieving, accelerating, searching, and reasoning over operational and analytical data. It's incrementally adoptable, deploys anywhere from a laptop to a cluster, and stays simple to operate from one deployment to thousands.

This repository contains Spice.ai Open Source: the Apache-2.0 runtime (spiced) and CLI (spice), a single Rust binary built on Apache DataFusion, Apache Arrow, Apache Ballista, Apache Iceberg, and Vortex. Spice.ai Cloud and Spice.ai Enterprise are managed and enterprise distributions built on it.

Spice.ai Open Source runtime architecture: a SQL Query API and an OpenAI-compatible API over query federation, accelerated data with Spice Cayenne, catalogs, hybrid search, indexes, embeddings, AI inference, tools and memory, and evals and observability, on top of data sources: databases, warehouses, data lakes, streams, and APIs

Quickstart

Install the CLI on macOS, Linux, or WSL:

curl -fsSL https://install.spiceai.org | sh   # or: brew install spiceai/spiceai/spice

The installer checks the sha256 of each download before installing it, and in an interactive session offers to add the Spice skills to the coding agents it finds.

Or let your coding agent set it up. Install Spice Skills, and your agent can write and run the Spicepod for you:

Agent Install
Claude Code /plugin marketplace add spiceai/skills, then /plugin install spiceai@spiceai
Codex codex plugin marketplace add spiceai/skills, then codex plugin add spiceai@spiceai
Other agents npx skills add spiceai/skills -a <agent>
Or paste this prompt into any coding agent
Install the Spice.ai skills from github.com/spiceai/skills, using one method:
- Claude Code: `claude plugin marketplace add spiceai/skills`, then `claude plugin install spiceai@spiceai`
- Codex: `codex plugin marketplace add spiceai/skills`, then `codex plugin add spiceai@spiceai`
- Other agents: `npx skills add spiceai/skills -a <agent-id>`
Then follow the setup skill (skills/setup/SKILL.md) to run Spice in this project and show me a SQL query result.

To run it yourself, create an app, add the sample Spicepod, and start the runtime:

spice init spice_qs && cd spice_qs
spice add spiceai/quickstart
spice run

The spiceai/quickstart Spicepod declares one dataset, Parquet files in S3 accelerated locally with Spice Cayenne:

datasets:
  - from: s3://spiceai-demo-datasets/taxi_trips/2024/
    name: taxi_trips
    params:
      s3_auth: public
      file_format: parquet
    acceleration:
      enabled: true

In a second terminal, open the SQL REPL with spice sql and query the ~3M accelerated rows:

SELECT trip_distance, total_amount FROM taxi_trips ORDER BY trip_distance DESC LIMIT 10;

Next, connect your own sources with the data connector docs or browse end-to-end recipes in the Cookbook. On Windows, run the runtime under WSL or Docker; see the installation docs.

The data primitives agents need in one runtime

  • SQL federation and acceleration. One SQL endpoint federates across databases, warehouses, data lakes, and APIs, with materialized, auto-refreshed datasets that accelerate the hot path.
  • RAG and agentic retrieval. Vector, keyword, and full-text search in SQL with vector_search and text_search, then reranked by a reranker, chat, or decision model into results that ground agents in data.
  • Analytics replica. Run large analytical queries against an analytics replica of your operational database, kept current through high-throughput CDC.
  • AI router and SQL functions. An OpenAI-compatible API that routes to local and hosted models, with AI SQL functions, decision functions such as ai_if, ai_classify, and ai_score, MCP tools, memory, evals, and observability built into the runtime.

Use cases

  • Agent data serving. Serve each agent federated SQL across its sources, with hot datasets accelerated locally for sub-second queries and search and tools built in. Each agent sees only the datasets it declares, and Spice holds the source credentials. MCP recipe
  • Query across sources without ETL. Run federated SQL across operational databases, warehouses, and APIs, and accelerate the hot path with fewer pipelines to maintain. Federation recipe
  • Real-time analytics on operational data. Give dashboards, BI tools, and agents near real-time analytical queries over operational data, served from the replica instead of the production database. CDC docs
  • Per-tenant agent standardization. Define the lakehouse once in a Spicepod and deploy it for each customer, team, or agent, each with its own sources and settings. Multi-tenancy patterns

Interfaces

Interface Protocols and APIs
SQL query and search HTTP, Arrow Flight, Arrow Flight SQL, ODBC, JDBC, ADBC
AI inference OpenAI-compatible chat, responses, and embeddings; local GPU inference
Agents and tools MCP server and gateway (Streamable HTTP), NSQL text-to-SQL
Open table formats Iceberg REST Catalog API for query and write
SDKs Python, Go, Rust, Java, JavaScript, .NET

Integrations

40+ integrations with databases, warehouses, data lakes, HTTP APIs, and AI providers. See them all at spice.ai/integrations.

Component Highlights
Data connectors PostgreSQL, MySQL, MongoDB, Snowflake, Databricks, BigQuery, Iceberg, Delta Lake, S3, Kafka
Data accelerators Spice Cayenne (Vortex), in memory or on disk
Catalogs Unity Catalog, AWS Glue, Databricks, Iceberg, DuckLake, PostgreSQL, Spice.ai
Models OpenAI, Anthropic, xAI, Amazon Bedrock, Google Vertex AI, Databricks, Hugging Face, local files
Embeddings OpenAI, Amazon Bedrock, Google Vertex AI, Azure OpenAI, Hugging Face, Model2Vec
Vector search Spice Cayenne vector indexes, Amazon S3 Vectors, Elasticsearch
Secret stores Environment, Kubernetes, OS keyring, AWS Secrets Manager, HashiCorp Vault, Azure Key Vault

Each component page lists every supported option and its release status. Spice Cayenne is the default accelerator. The Arrow, DuckDB, PostgreSQL, SQLite, and Turso accelerators were removed in v2.5. See the migration guide.

Deploy anywhere

Run Spice.ai Open Source locally, at the edge, or on the fully managed Spice.ai Cloud Platform. Spice runs as a single node, as a sidecar next to each app or agent (spiced --role sidecar, see the cluster-sidecar docs), or as a multi-node cluster.

docker pull spiceai/spiceai                                                             # Docker
helm repo add spiceai https://helm.spiceai.org && helm install spiceai spiceai/spiceai  # Kubernetes

Spice is also available on the AWS Marketplace. For multi-node deployments, see the distributed query docs, the cluster-sidecar architecture, and how Spice runs distributed queries on Apache Ballista.

Learn more

Contributing

Contributions are welcome. Read CONTRIBUTING.md to get started, browse open issues, or file a new one.

Community

Join us on Slack, follow @spice_ai on X, connect on LinkedIn, or email [email protected]. We're hiring.

⭐️ Star this repo to follow new releases.

Explore projetos relacionados

Carregando…