Zvec क्या है?
Zvec Alibaba का इन-प्रोसेस वेक्टर डेटाबेस, जो सीधे आपके ऐप के अंदर चलता है. यह Retrieval & Knowledge (RAG) टूल्स की Vector Databases श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: zvec इंस्टॉल करें.
सारांश
Zvec एक ओपन सोर्स वेक्टर डेटाबेस है, जो अलग सर्वर के बजाय आपकी ऐप्लिकेशन प्रोसेस के अंदर चलता है। आप इसे एक library की तरह इंस्टॉल करते हैं, local path की ओर इशारा करते हैं, और तुरंत vectors स्टोर और सर्च करने लगते हैं। ओपन सोर्स के रूप में जारी होने से पहले इसे Alibaba Group के भीतर बनाया और इस्तेमाल किया गया था।
यह उन डेवलपर्स के लिए है जो अलग डेटाबेस सर्वर चलाए बिना similarity search चाहते हैं। चूँकि यह वहीं चलता है जहाँ आपका कोड चलता है, यह notebooks, backend services, CLI tools और edge devices में फिट बैठता है। Python, Node.js, Go, Rust और Dart/Flutter के लिए SDKs उपलब्ध हैं।
एम्बेडेड / इन-प्रोसेस vector store के रूप में, Zvec dense और sparse vectors, scalar filters और native full-text search को संभालता है, और इन सबको एक ही hybrid query में जोड़ सकता है। Durability के लिए यह write-ahead logging इस्तेमाल करता है और कई concurrent readers को सपोर्ट करता है, जबकि writes केवल एक process तक सीमित हैं।
यह क्या करता है
- इन-प्रोसेस और लोकल: कोई अलग सर्वर, config या नेटवर्क सेटअप की ज़रूरत नहीं
- Dense और sparse vector सपोर्ट, साथ ही कई index types जो memory से disk तक स्केल होते हैं (इनमें disk पर चलने वाला DiskANN index भी शामिल है)
- Natural-language या structured expressions का इस्तेमाल करके string fields पर native full-text search
- Hybrid retrieval, जो एक MultiQuery में vector similarity, full-text search और scalar filters को जोड़ता है
- Write-ahead logging (WAL) से durable storage, जो process crash होने के बाद भी डेटा बचाए रखता है
- Processes के बीच concurrent reads; Python, Node.js, Go, Rust और Dart/Flutter के लिए आधिकारिक SDKs
शुरू करें
Python SDK इंस्टॉल करें, फिर एक collection बनाएँ, documents insert करें, और local path पर vector query चलाएँ।
Zvec इंस्टॉल करें
PyPI से Python package इंस्टॉल करें। Python 3.10 से 3.14 तक की ज़रूरत है। Node.js (npm install @zvec/zvec) और Flutter (flutter pub add zvec) packages भी उपलब्ध हैं।
pip install zvecCollection बनाएँ और search करें
एक schema परिभाषित करें, local path पर collection बनाएँ और खोलें, कुछ documents insert करें, फिर vector similarity से query करें।
import zvec
# Define collection schema
schema = zvec.CollectionSchema(
name="example",
vectors=zvec.VectorSchema("embedding", zvec.DataType.VECTOR_FP32, 4),
)
# Create collection
collection = zvec.create_and_open(path="./zvec_example", schema=schema)
# Insert documents
collection.insert([
zvec.Doc(id="doc_1", vectors={"embedding": [0.1, 0.2, 0.3, 0.4]}),
zvec.Doc(id="doc_2", vectors={"embedding": [0.2, 0.3, 0.4, 0.1]}),
])
# Search by vector similarity
results = collection.query(
zvec.VectorQuery("embedding", vector=[0.4, 0.3, 0.3, 0.1]),
topk=10
)
print(results)कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।
कब इस्तेमाल करें
- अलग vector database सर्वर चलाए और संभाले बिना ऐप में similarity search जोड़ना
- notebooks, CLI tools या edge devices में local या offline RAG और semantic search बनाना
- एक ही hybrid query में keyword full-text search, vector similarity और scalar filters को मिलाना
- DiskANN index के साथ बड़े vector datasets को disk पर स्टोर करना, ताकि memory usage कम रहे
How Zvec compares
Zvec alongside other open-source vector databases tools AI/TLDR tracks, ranked by GitHub stars.
| टूल | स्टार | यह क्या करता है |
|---|---|---|
| Supabase | ★ 116k | Managed Postgres backend whose Vector toolkit (pgvector) stores, indexes, and queries embeddings next to transactional data. |
| Redis Cloud | ★ 77.9k | Fully-managed Redis with built-in vector search, offering low-latency similarity and hybrid queries over any embeddings. |
| Milvus | ★ 46.8k | अरबों embeddings में बड़े पैमाने पर खोज के लिए एक ओपन सोर्स वेक्टर डेटाबेस |
| FAISS | ★ 42k | dense vectors पर कुशल similarity search और clustering के लिए लाइब्रेरी |
| Qdrant | ★ 35.9k | Rust में लिखा, समृद्ध payload फ़िल्टरिंग वाला सिमेंटिक सर्च के लिए वेक्टर सर्च इंजन |
| Chroma | ★ 29.8k | ओपन सोर्स एम्बेडिंग डेटाबेस, जो रिट्रीवल और RAG फ़ीचर बनाने में मदद करता है |
| pgvector | ★ 23.9k | Postgres के लिए ओपन सोर्स वेक्टर similarity search |
| Zvec | ★ 16.3k | Alibaba का इन-प्रोसेस वेक्टर डेटाबेस, जो सीधे आपके ऐप के अंदर चलता है |

