█

AI/TLDR

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

Vearch

हाइब्रिड वेक्टर और स्केलर सर्च वाला क्लाउड-नेटिव डिस्ट्रीब्यूटेड वेक्टर डेटाबेस

Vector Databasesओपन सोर्स
ताज़ा
v3.5.9
अपडेट किया गया
4 फ़र॰ 2026
भाषा
Go, C++, Python
लाइसेंस
Apache-2.0
$helm repo add vearch https://vearch.github.io/vearch-helm

नया क्या है

v3.5.94 फ़र॰ 2026

Added real-time searching, slow-search isolation, a memory circuit breaker that kills slow queries, pagination, search by partition name, GPU IVFPQ index search and Prometheus metrics for the Master and PartitionServers.

संक्षेप में

Vearch क्या है?

Vearch हाइब्रिड वेक्टर और स्केलर सर्च वाला क्लाउड-नेटिव डिस्ट्रीब्यूटेड वेक्टर डेटाबेस. यह Retrieval & Knowledge (RAG) टूल्स की Vector Databases श्रेणी में आता है; ओपन सोर्स है, Go, C++, Python में लिखा गया है और Apache-2.0 लाइसेंस के तहत है। शुरू करने के लिए: helm से Kubernetes पर डिप्लॉय करें.

अपडेट किया गया Markdown वर्शन ↗

सारांश

Vearch एक क्लाउड-नेटिव डिस्ट्रीब्यूटेड वेक्टर डेटाबेस है, जो AI ऐप्स में embedding vectors पर similarity search के लिए बना है। यह एक ही query में vector search को scalar filtering के साथ जोड़ता है, ताकि आप किसी embedding के nearest neighbours माँग सकें और नतीजों को नाम या संख्या जैसे सामान्य fields तक सीमित कर सकें। प्रोजेक्ट अपने लक्ष्य को इस तरह बताता है: मिलीसेकंड में मिलियन ऑब्जेक्ट्स खोजना, और भरोसेमंदी के लिए replication व elastic scale-out।

एक Vearch क्लस्टर तीन भूमिकाओं में बँटा होता है। Master स्कीमा मैनेजमेंट, cluster-level metadata और resource coordination संभालता है। Router RESTful API देता है — upsert, delete, search और query — हर request को रूट करता है और आंशिक नतीजों को मर्ज करता है। PartitionServers, Raft-based replication के साथ document partitions होस्ट करते हैं, और हर एक पर Gamma चलता है, जो Vearch का core vector search engine है और faiss पर बना है। यह vectors और scalar fields दोनों को स्टोर, इंडेक्स और रिट्रीव करता है।

Vearch architecture diagram: clients call the Router's REST API, which sends DDL to the Master and DML to Raft-replicated Partition Servers holding vector and scalar indexes
How a Vearch cluster splits work between the Router, the Master and the Partition ServersVearch README ↗

डेटा databases के रूप में व्यवस्थित होता है, जिनमें spaces होते हैं। space typed fields का एक schema है — strings, integers और fixed-dimension vectors, जिनमें से हर एक का अपना index होता है। REST API के अलावा आधिकारिक Python, Go, Java और Rust SDKs उपलब्ध हैं, और LangChain, LlamaIndex, Langchaingo व LangChain4j के लिए integrations हैं, जो Vearch को vector store के रूप में जोड़ देते हैं। प्रोजेक्ट जिस पेपर को cite करने के लिए शोधकर्ताओं से कहता है, वह 2019 का है और JD e-commerce platform पर बने एक real-time visual search system का वर्णन करता है।

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

  • हाइब्रिड सर्च: nearest-neighbour vector search और scalar filtering को एक ही request में जोड़ना
  • अलग-अलग Master, Router और PartitionServer भूमिकाओं वाला डिस्ट्रीब्यूटेड आर्किटेक्चर
  • Partitions की Raft-based replication और elastic scale-out
  • Gamma, एक faiss-based इंजन जो vectors और scalars को स्टोर, इंडेक्स और रिट्रीव करता है
  • RESTful API के साथ Python, Go, Java और Rust SDKs
  • LangChain, LlamaIndex, Langchaingo और LangChain4j के लिए vector-store integrations

शुरू करें

Vearch एक सर्वर क्लस्टर के रूप में चलता है — इसे Helm के साथ Kubernetes पर डिप्लॉय करें या Docker Compose के साथ लोकल रूप से चलाएँ — और आप उसके Router से REST के ज़रिए या किसी SDK के ज़रिए बात करते हैं। नीचे दिए गए स्टेप्स README और Python SDK README का पालन करते हैं।

Helm से Kubernetes पर डिप्लॉय करें

प्रोजेक्ट एक Helm chart repository प्रकाशित करता है।

bashbash
helm repo add vearch https://vearch.github.io/vearch-helm
helm repo update && helm install my-release vearch/vearch

या Docker Compose से चलाएँ

repository के clone से config को cloud directory में कॉपी करें और standalone या cluster mode चुनें।

bashbash
git clone https://github.com/vearch/vearch.git && cd vearch

# Standalone mode
cd cloud && cp ../config/config.toml .
docker-compose --profile standalone up -d

# Cluster mode (instead of the above)
# cd cloud && cp ../config/config_cluster.toml .
# docker-compose --profile cluster up -d

Python SDK इंस्टॉल करें और कनेक्ट करें

क्लाइंट को अपने Router एड्रेस की ओर पॉइंट करें।

bashbash
pip3 install pyvearch

एक database और एक space बनाएँ

space typed fields का एक schema है; यहाँ दो scalar fields हैं जिनके scalar indexes हैं, और एक 512-dimension vector field है जिसमें flat inner-product index है।

pythonpython
from vearch.core.vearch import Vearch
from vearch.config import Config
from vearch.schema.field import Field
from vearch.schema.space import SpaceSchema
from vearch.utils import DataType, MetricType, VectorInfo
from vearch.schema.index import FlatIndex, ScalarIndex

config = Config(host="your router path", token="secret")
vc = Vearch(config)

vc.create_database("database_test")

book_name = Field("book_name", DataType.STRING, desc="the name of book", index=ScalarIndex("book_name_idx"))
book_num = Field("book_num", DataType.INTEGER, desc="the num of book", index=ScalarIndex("book_num_idx"))
book_vector = Field("book_character", DataType.VECTOR, FlatIndex("book_vec_idx", MetricType.Inner_product), dimension=512)
space_schema = SpaceSchema("book_info", fields=[book_name, book_num, book_vector])

vc.create_space("database_test", space_schema)

Documents upsert करें और सर्च करें

एक document insert करें, vector search चलाएँ, फिर scalar filter से query करें।

pythonpython
import random
from vearch.filter import Filter, Condition, FieldValue

data = [{"book_name": "Write", "book_num": 7, "book_character": [random.uniform(0, 1) for _ in range(512)]}]
ret = vc.upsert("database_test", "book_info", data)
document_ids = ret.get_document_ids()

vi = VectorInfo("book_character", [random.uniform(0, 1) for _ in range(512)])
ret = vc.search("database_test", "book_info", vector_infos=[vi], limit=7)
print(ret.documents)

filters = Filter(operator="AND", conditions=[
    Condition(operator=">", fv=FieldValue(field="book_num", value=0)),
    Condition(operator="IN", fv=FieldValue(field="book_name", value=["Write"])),
])
ret = vc.query("database_test", "book_info", filter=filters)
print(ret.documents)

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

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

  • जब आपको एक self-hosted vector database चाहिए जो replicated partitions के साथ कई nodes पर स्केल हो, तब इसे चुनें।
  • जब similarity search को उसी query में ordinary fields पर scalar filters के साथ जोड़ना हो, तब इसे चुनें।
  • LangChain, LlamaIndex, Langchaingo या LangChain4j RAG pipeline के पीछे vector store के रूप में इसे इस्तेमाल करें।
  • बड़े पैमाने पर visual search system बनाने के लिए इसे चुनें — README के अनुसार Vearch अरबों images इंडेक्स करने वाले visual search system का बैकएंड बन सकता है, और object detection व feature extraction के लिए एक अलग image-retrieval plugin भी है।

How Vearch compares

Vearch alongside other open-source vector databases tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Supabase★ 116kManaged Postgres backend whose Vector toolkit (pgvector) stores, indexes, and queries embeddings next to transactional data.
Redis Cloud★ 77.9kFully-managed Redis with built-in vector search, offering low-latency similarity and hybrid queries over any embeddings.
Milvus★ 46.8kअरबों embeddings में बड़े पैमाने पर खोज के लिए एक ओपन सोर्स वेक्टर डेटाबेस
FAISS★ 42kdense vectors पर कुशल similarity search और clustering के लिए लाइब्रेरी
Qdrant★ 35.9kRust में लिखा, समृद्ध payload फ़िल्टरिंग वाला सिमेंटिक सर्च के लिए वेक्टर सर्च इंजन
Chroma★ 29.8kओपन सोर्स एम्बेडिंग डेटाबेस, जो रिट्रीवल और RAG फ़ीचर बनाने में मदद करता है
pgvector★ 23.9kPostgres के लिए ओपन सोर्स वेक्टर similarity search
Vearch★ 2.3kहाइब्रिड वेक्टर और स्केलर सर्च वाला क्लाउड-नेटिव डिस्ट्रीब्यूटेड वेक्टर डेटाबेस