vearch/vearch
Self-hosted, Raft-replicated vector database for filtered RAG retrieval
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Vearch separates cluster coordination, API routing, and storage. Master owns schema, cluster metadata, and resource coordination. Router exposes REST operations for upsert, delete, search, and query; it routes requests to the relevant partitions and merges search results. PartitionServer hosts document partitions with Raft-based replication. Its Faiss-based Gamma engine stores, indexes, and retrieves vectors and scalar fields.
The server module targets Go 1.22.0. Its manifest includes Gin, rpcx, and the Prometheus Go client, consistent with a Go service layer around the vector engine. Python is a supported client path, not a server runtime requirement. Applications can integrate through REST or an SDK without embedding Gamma in their own processes.
Key Capabilities & Differentiators
Vearch's hybrid search combines vector similarity with scalar filtering. In a RAG pipeline, that lets an application restrict candidate chunks by fields such as source or document type while retrieving semantically similar content. Here, hybrid search means filtered vector retrieval; it does not establish support for lexical ranking or BM25 fusion. Embedding generation and answer generation remain outside this retrieval layer.
Clients are available for Python, Go, Java, and Rust, with integrations for LangChain, LlamaIndex, Langchaingo, and LangChain4j. Version 3.5.8 added GPU IVFFLAT support; v3.5.9 added real-time search and slow-search isolation. For frequently updated corpora, test how quickly writes become searchable and whether slow queries affect tail latency under concurrent load.
Trade-offs & Limitations
Compared with a managed service such as Pinecone, Vearch gives teams control over where the database runs and how it is configured, but leaves them responsible for replication, upgrades, capacity planning, and recovery. The separate Router and PartitionServer roles support partitioned retrieval, but a query that touches multiple partitions adds fan-out and result merging. Slow partitions can therefore affect end-to-end tail latency even when individual vector searches are fast.
Size the deployment using vector count and dimensionality, scalar payloads, index choice, replica count, and concurrent traffic. Benchmark recall and p95/p99 latency with realistic filters and ongoing writes rather than extrapolating from an unfiltered test. Apache-2.0 permits commercial self-hosting; teams shipping a build to customers still need to meet the applicable redistribution and notice requirements.
Hardware & Deployment Guide
Use Docker Compose for a standalone evaluation or a cluster deployment. In cloud/, copy ../config/config.toml for standalone and run docker-compose --profile standalone up -d; for a cluster, copy ../config/config_cluster.toml and run docker-compose --profile cluster up -d. Kubernetes deployments can use the vearch/vearch Helm chart. The server is self-hosted; embedding generation can be deployed separately.
Use standalone to check schema and API behavior, then validate replication, persistent storage, and failure recovery in the clustered topology before production. Version 3.5.7 added incremental RocksDB backup and index rebuilding; exercise restoration and measure the load from rebuilding indexes rather than assuming either operation will be transparent to queries. For v3.5.9, the release lists Python SDK v3.5.5 and Go SDK v3.5.3, so server and client versions should be tracked separately.
Teams that need self-hosted, metadata-filtered retrieval for frequently updated RAG corpora and can operate a replicated database.
You want a managed retrieval service, need built-in lexical and vector ranking fusion, or cannot staff cluster upgrades and recovery.
Quick Start & Installation
# Via Helm Repository $ helm repo add vearch https://vearch.github.io/vearch-helm $ helm repo update && helm install my-release vearch/vearch # Or from Local Charts $ git clone https://github.com/vearch/vearch-helm.git && cd vearch-helm $ helm install my-release ./charts -f ./charts/values.yaml
Comparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| vearch ★ | 2.3k | +1 | Python | Apache-2.0 | Self-hosted, Raft-replicated vector database for filtered RAG retrieval |
| txtai | 13.8k | +33 | Python | Apache-2.0 | A Python embeddings database for vector, SQL, and graph retrieval in self-hosted |
| LightRAG | 41k | +110 | Python | MIT | Graph-backed RAG for cross-document retrieval and multimodal indexing |
| weaviate | 17k | +17 | Go | — | Go vector database for filtered hybrid retrieval in production RAG stacks |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/vearch/vearch.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about vearch
How does Vearch fit into a RAG retrieval pipeline?
Do I need a GPU, and how should I size the deployment?
Can I self-host Vearch in a commercial product?
When should I choose Vearch over Pinecone?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy