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

- **GitHub URL**: https://github.com/infiniflow/infinity
- **Official Docs / Website**: https://infiniflow.org
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: C++
- **License**: Apache-2.0
- **Engineering Health**: A+ (94/100 · Maintenance 35/35 · Adoption 19/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.7.5 (2026-11-05) — https://github.com/infiniflow/infinity/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, API
- **Momentum**: 4,786 ★ total (+4 24h / +11 7d) · 462 forks
- **Topics**: `ai-native`, `approximate-nearest-neighbor-search`, `bm25`, `cpp20`, `cpp20-modules`, `full-text-search`, `hnsw`, `hybrid-search`, `information-retrival`, `multi-vector`, `nearest-neighbor-search`, `rag`
- **When to Use**: Best for: RAG and search teams that want full-text, dense, sparse, and multi-vector retrieval with metadata filtering in one self-hosted database and can own its operations. Skip if: You need the provider to handle database operations, your hosts do not meet the documented x86_64/AVX2 baseline, or you need verified failover and tenant isolation before you can adopt a system.

## Overview
```text
### Architecture & Core Mechanics
Infinity is a C++ retrieval database with a single-binary server and an embedded Python option. In the remote example, a Python client connects to port 23817, writes text and vectors to a typed table, and issues a dense top-k query through match_dense. Keeping searchable representations and structured fields in one table lets the application combine retrieval with metadata filtering without maintaining a separate metadata store for that query path.

CMakeLists.txt, vcpkg.json, and src/ describe the native build surface. The thrift/ directory and the SDK's thrift dependency show a Thrift integration surface; a separate HTTP API is documented. The SDK also declares sqlglot[rs], pandas, PyArrow, and polars-lts-cpu. The example uses to_pl() to materialize results for Python-side processing. The presence of rust_engine/, rust_poc/, and RUST_REWRITE_PLAN.md does not establish that the v0.7.5 server runs on a Rust engine.

### Key Capabilities & Differentiators
The engine supports dense and sparse vectors, multi-vector tensors, and full-text search alongside structured filtering. RRF combines result ranks, while weighted sums combine scores and require attention to score scales across retrieval methods. ColBERT provides a multi-vector reranking option. The dense example shows explicit query controls: it searches a four-dimensional float field using inner product and requests two results.

Published benchmarks report 0.1 ms query latency and 15K+ QPS on million-scale vector datasets, and 1 ms and 12K+ QPS for full-text search over 33 million documents. Those figures cover vector and text paths, not a complete hybrid pipeline with filters and reranking. Measure recall and tail latency on representative data, especially with selective filters and realistic reranking candidate counts.

### Trade-offs & Limitations
Compared with a managed alternative such as Pinecone, Infinity's appeal is control over where retrieval runs and the ability to keep lexical, semantic, and multi-vector retrieval in one engine. That may reduce synchronization work compared with operating separate text and vector stores. The trade-off is that your team owns capacity, persistence, network exposure, upgrades, and recovery. If automatic failover or a particular tenant-isolation model is an adoption requirement, verify it for the intended deployment rather than assuming it from the single-binary packaging.

Start with dense and full-text retrieval and a rank-fusion baseline. Add sparse or multi-vector representations only when an evaluation set shows a meaningful quality gain: they add stored data and can raise memory, disk, and reranking cost. A shared database simplifies data management, but it also makes it important to test mixed workloads, not just isolated query benchmarks.

### Hardware & Deployment Guide
The Docker quickstart runs client and server separately on x86_64 with AVX2. Linux requires glibc 2.17 or later; macOS x86_64 and Windows 10+ through WSL/WSL2 are listed paths. The container example uses infiniflow/infinity:nightly, bind-mounts /var/infinity, sets --ulimit nofile=500000:500000, and enables host networking. Treat the networking choice as an exposure decision, and verify mount permissions and data retention across container replacement.

A standalone server binary and a source build are also available. For infinity-sdk==0.7.5, use the package's Python requirement of >=3.13,<3.16 rather than relying on the quickstart's broader Python 3.11+ prerequisite. The tagged release progressed from v0.7.4 to v0.7.5, and a nightly is published separately. For reproducible rollout, pin a tested server artifact and verify it with the pinned SDK rather than deploying a floating nightly tag.
```

## Key Capabilities
```text
- Retrieval: Dense vectors, sparse vectors, multi-vector tensors, and full text share one database with structured filters.
- Ranking: Reciprocal rank fusion (RRF), weighted sums, and ColBERT cover rank fusion and multi-vector reranking.
- Integration: Remote Python example uses port 23817 and materializes results with to_pl(); an HTTP API is also documented.
- SDK compatibility: infinity-sdk 0.7.5 declares Python >=3.13,<3.16, narrower than the quickstart's Python 3.11+ prerequisite.
- Deployment: The Docker example mounts /var/infinity, uses host networking, and sets the open-file limit to 500000.
- Performance baseline: Published results report 0.1 ms and 15K+ QPS for million-scale vector search, and 1 ms and 12K+ QPS for full-text search over 33 million documents.
```

## Quick Start / Clone
```bash
sudo mkdir -p /var/infinity && sudo chown -R $USER /var/infinity
docker pull infiniflow/infinity:nightly
docker run -d --name infinity -v /var/infinity/:/var/infinity --ulimit nofile=500000:500000 --network=host infiniflow/infinity:nightly
```
