█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

Spice

SQL, search और inference इंजन, जिसे आप अपने database के साथ चलाते हैं ताकि agents ताज़ा लोकल डेटा query कर सकें

Data-Platform AIओपन सोर्स
भाषा
Rust
लाइसेंस
Apache-2.0
$curl https://install.spiceai.org | /bin/bash
संक्षेप में

Spice क्या है?

Spice SQL, search और inference इंजन, जिसे आप अपने database के साथ चलाते हैं ताकि agents ताज़ा लोकल डेटा query कर सकें. यह Cloud AI Platforms टूल्स की Data-Platform AI श्रेणी में आता है; ओपन सोर्स है, Rust में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: cLI इंस्टॉल करें.

सारांश

Spice एक open-source इंजन है, जो Rust में लिखा गया है। इसे आप किसी application या agent के sidecar के रूप में deploy करते हैं और उन databases, object stores और warehouses की ओर इंगित करते हैं जो आप पहले से चला रहे हैं। यह SQL, full-text और vector queries का जवाब लोकल स्तर पर देता है, अक्सर माँगे जाने वाले डेटा के हिस्सों को मटेरियलाइज़ करता है, और एक OpenAI-compatible endpoint देता है, ताकि किसी model को अलग retrieval service के बिना वह डेटा दिया जा सके। प्रोजेक्ट का लक्ष्य है कि पहले ETL pipeline खड़ी किए बिना data-grounded AI apps और agents बनाए जा सकें।

Hand-drawn before-and-after diagram: without Spice an application sends many high-latency requests to a data store of S3, MySQL and a vector store; with Spice, the application talks to a co-located Spice instance with its own cache and only a single request for new data leaves for the data store
The sidecar idea in one picture: chatty, high-latency calls to the data store become local reads, with one request out for new dataSpice README ↗

यह engine किसी नए storage format पर नहीं, बल्कि स्थापित open-source घटकों से बना है: query planning के लिए Apache DataFusion, in-memory डेटा के लिए Apache Arrow, और acceleration targets के रूप में DuckDB, SQLite, PostgreSQL या प्रोजेक्ट का अपना Vortex-आधारित Cayenne format। तीस से अधिक connectors PostgreSQL, MySQL, MongoDB, Snowflake, Databricks, S3, Iceberg, Kafka, GitHub और अन्य को कवर करते हैं। PostgreSQL write-ahead logs, MySQL binlogs और MongoDB change streams से change-data-capture replication होता है, इसलिए बीच में Debezium या Kafka के बिना भी replica स्रोत के करीब रहता है।

क्योंकि यह एक ही binary है, वही engine तीन अलग-अलग काम संभालता है: production database के आगे एक लोकल cache, जो analytical load को उससे दूर रखता है; एक hybrid search layer, जो BM25 (Tantivy), vector indexes और reciprocal rank fusion को जोड़ती है; और एक gateway, जो OpenAI, Anthropic, Azure, Bedrock, xAI या Hugging Face के models और embeddings एक ही API के पीछे से देता है। Spice MCP server के रूप में भी चल सकता है, और इसी तरह agent frameworks इसकी tables और search indexes तक पहुँचते हैं।

वीडियोThe maintainers walk through Cayenne, the Vortex-based acceleration engine that stores the materialised working setSpice AI ↗

यह क्या करता है

  • 30+ connectors पर Federated SQL — PostgreSQL, MySQL, MongoDB, Snowflake, Databricks, S3, Iceberg, Kafka, GitHub — जिसकी query planning Apache DataFusion करता है
  • Acceleration engines (Cayenne on Vortex, Arrow, DuckDB, SQLite, PostgreSQL), जो स्रोत को बार-बार query करने के बजाय hot डेटा को लोकल स्तर पर मटेरियलाइज़ करते हैं
  • PostgreSQL WAL, MySQL binlog और MongoDB change streams से native change-data-capture, बिना Debezium या Kafka deployment के
  • Hybrid search: Tantivy से BM25, DuckDB HNSW, Elasticsearch kNN या Amazon S3 Vectors से vector search, साथ ही SQL table functions के रूप में rerank और RRF
  • Hosted और लोकल models के लिए OpenAI-compatible API gateway, और एक MCP server ताकि agents उन्हीं tables और indexes को call कर सकें
  • एक single binary, Docker image, Helm chart, या distributed query के लिए scheduler/executor cluster के रूप में deploy होता है

शुरू करें

Spice एक single `spice` binary के रूप में आता है। प्रोजेक्ट एक directory होती है जिसमें `spicepod.yaml` होती है, जो datasets, accelerations, models और search indexes का वर्णन करती है; `spice run` runtime शुरू करता है और SQL, HTTP और OpenAI-compatible endpoints सर्व करता है।

CLI इंस्टॉल करें

macOS, Linux और WSL पर प्रोजेक्ट की script से इंस्टॉल होता है; Homebrew और PowerShell installer भी उपलब्ध हैं।

bashbash
curl https://install.spiceai.org | /bin/bash

# or
brew install spiceai/spiceai/spice

प्रोजेक्ट initialise करें

`spice init` एक Spicepod लिखता है जिसे आप edit कर सकते हैं; quickstart pod एक sample dataset जोड़ता है, ताकि query करने के लिए कुछ हो।

bashbash
spice init spice_qs
cd spice_qs
spice add spiceai/quickstart

Runtime शुरू करें

इसे चालू रहने दें — यह Spicepod लोड करता है, sources से कनेक्ट करता है और आपके declare किए गए किसी भी acceleration को बनाता है।

bashbash
spice run

SQL REPL से query करें

दूसरे terminal में REPL खोलें और accelerated dataset को सीधे query करें।

bashbash
spice sql

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

Container या cluster के रूप में चलाएँ

वही runtime Docker image और Helm chart के रूप में आता है; distributed query के लिए scheduler और executor roles को अलग से शुरू करें।

bashbash
docker pull spiceai/spiceai

helm repo add spiceai https://helm.spiceai.org
helm install spiceai spiceai/spiceai
वीडियोOnce a Spicepod is running, the same instance can be attached to an agent as an MCP serverSpice AI ↗

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • Production PostgreSQL या MySQL database के बगल में एक analytics replica रखें, ताकि dashboards और agents primary database पर लगातार भार डालना बंद कर दें
  • Agent को warehouses, object stores और SaaS APIs पर एक ही SQL और search surface दें, बिना पहले सब कुछ vector database में कॉपी किए
  • Hybrid retrieval बनाएँ — BM25, vectors और reranking — SQL के रूप में, उस डेटा पर जो जहाँ है वहीं रहता है
  • एक ही OpenAI-compatible endpoint से models और embeddings सर्व करें, जिसके पास पहले से application का डेटा मौजूद हो

How Spice compares

Spice alongside other open-source data-platform ai tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Spice★ 3.1kSQL, search और inference इंजन, जिसे आप अपने database के साथ चलाते हैं ताकि agents ताज़ा लोकल डेटा query कर सकें
Dremio★ 1.5kOpen lakehouse platform with an AI semantic layer, text-to-SQL, and a built-in agent for natural-language analytics over Iceberg data.
Google BigQuery ML—Create, train, and run machine learning and generative-AI models inside Google BigQuery using standard SQL, with no data movement.
Amazon SageMaker Lakehouse—AWS unified Iceberg-based lakehouse spanning S3 and Redshift, feeding analytics and AI/ML from a single copy of data.
Amazon Redshift ML—Build, train, and deploy machine learning models in Amazon Redshift using SQL, with SageMaker handling the underlying training.
Microsoft Fabric—Microsoft's unified data platform with Copilot and data agents that answer natural-language questions over OneLake lakehouses and warehouses.
Cloudera AI—Enterprise platform to build, deploy, and govern traditional, generative, and agentic AI across data on Cloudera's open lakehouse.
Teradata ClearScape Analytics—In-database analytics and AI/ML engine in Teradata VantageCloud, with ModelOps and an enterprise vector store for unstructured data.