← Back to Leaderboard
Vvearch

vearch/vearch

Self-hosted, Raft-replicated vector database for filtered RAG retrieval

Engineering Health (Methodology)
B+ · 64/100
Maintenance Activity
● Updated 4mo ago
Latest Release
v3.5.9
Commercial License Check
Apache-2.0 · Commercial Friendly

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance12/35
Fork Adoption21/25
Release Cadence11/20
License Clarity20/20
DockerSelf-HostedAPI
Total Stars
★ 2,334
24h Growth
+0
7d Growth
+1
Forks
365

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

vearch/vearch Star History (2020-01-12 - 2026-12-04) ALL-TIME STAR HISTORY (2020-01 – 2026-12) +2k in 2518d · avg +1/day 2.4k 1.3k 101 2020-01-12: ★ 3752020-06-13: ★ 5582020-11-14: ★ 7362021-04-17: ★ 9112021-09-18: ★ 1,0992022-02-19: ★ 1,2332022-07-23: ★ 1,3372022-12-24: ★ 1,4152023-05-27: ★ 1,5372023-10-28: ★ 1,7062024-03-30: ★ 1,8522024-08-31: ★ 1,9852025-02-01: ★ 2,0842025-07-05: ★ 2,1682025-12-06: ★ 2,2272026-05-09: ★ 2,2942026-12-04: ★ 2,334 ★ 2.3k 2020-01 2023-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & 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.

Cluster roles: Master manages schema and metadata; Router handles REST requests; PartitionServer hosts Raft-replicated partitions.
Search engine: Faiss-based Gamma stores and indexes vectors and scalar fields on partition servers.
Filtered retrieval: Vector similarity search can be constrained by scalar fields in the same request.
Client integrations: REST and OpenAPI documentation, Python, Go, Java, and Rust SDKs, and adapters for four AI frameworks.
Release progression: v3.5.7 added incremental RocksDB backup and index rebuilding; v3.5.8 added GPU IVFFLAT support; v3.5.9 added real-time search and slow-search isolation.
Deployment: Docker Compose provides standalone and cluster profiles; Helm provides a Kubernetes installation path.
Best For

Teams that need self-hosted, metadata-filtered retrieval for frequently updated RAG corpora and can operate a replicated database.

Skip If

You want a managed retrieval service, need built-in lexical and vector ranking fusion, or cannot staff cluster upgrades and recovery.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

DockerSelf-HostedAPI
# 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 →
RepositoryStars7d TrendStackLicenseCore Positioning
vearch ★2.3k+1PythonApache-2.0Self-hosted, Raft-replicated vector database for filtered RAG retrieval
txtai13.8k+33PythonApache-2.0A Python embeddings database for vector, SQL, and graph retrieval in self-hosted
LightRAG41k+110PythonMITGraph-backed RAG for cross-document retrieval and multimodal indexing
weaviate17k+17Go—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.

Raw .md ↗
curl -sL https://repoforai.com/repo/vearch/vearch.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

vearch/vearch Star History on RepoForAI

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?

Generate embeddings in your application or embedding pipeline, then use the Router's REST API or a client SDK to upsert vectors and associated scalar fields. At query time, send a query vector and any relevant scalar filters. The Router dispatches the search to partition servers and merges their results. LangChain and LlamaIndex integrations provide vector-store adapters for existing RAG pipelines.

Do I need a GPU, and how should I size the deployment?

GPU acceleration is an option rather than a prerequisite for basic vector search. Size CPU, RAM, and disk against your vector count, dimensions, index choice, and scalar payloads; include replica overhead and test under concurrent writes and searches. If you evaluate GPU IVFFLAT, measure VRAM use on the intended dataset and workload rather than assuming a fixed hardware requirement.

Can I self-host Vearch in a commercial product?

Yes. Apache-2.0 permits commercial use and self-hosting. If you redistribute Vearch or a modified build, comply with the license's redistribution terms, including preserving applicable notices and marking modified files. Check the licenses of any bundled third-party components separately.

When should I choose Vearch over Pinecone?

Choose Vearch if running the database in your own environment is important and your team can operate a replicated cluster. Prefer a managed service such as Pinecone if reducing database operations is the priority. Before switching, compare metadata-filter behavior and recall on the same corpus, measure tail latency during writes, and rehearse backup restoration on the self-hosted deployment.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining vearch/vearch? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature vearch/vearch on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

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

Saved in your browser · Export Markdown RFC tables or jump into /vs compare