# Repository Briefing: vearch/vearch
> Source: https://repoforai.com/repo/vearch/vearch (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/vearch/vearch
- **Official Docs / Website**: https://vearch.github.io
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Python
- **License**: Apache-2.0
- **Engineering Health**: B+ (64/100 · Maintenance 12/35 · Adoption 21/25 · Releases 11/20 · License 20/20)
- **Latest Release**: v3.5.9 (2026-02-04) — https://github.com/vearch/vearch/releases
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: Docker, Self-Hosted, API
- **Momentum**: 2,334 ★ total (+0 24h / +1 7d) · 365 forks
- **Topics**: `vectors`, `vector-search`, `cloud-native`, `document-retrieval`, `embeddings`, `vector-database`, `hybrid-search`, `rag`, `retrieval-augmented-generation`, `ai-native`, `ai-native-database`
- **When to Use**: 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.

## Overview
```text
### 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.
```

## Key Capabilities
```text
- 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.
```

## Quick Start / Clone
```bash
# 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
```
