← Back to Leaderboard
Iinfiniflow

infiniflow/infinity

Self-hosted C++ database for hybrid text, vector, and tensor retrieval in RAG

Engineering Health (Methodology)
A+ · 94/100
Maintenance Activity
● Updated today
Latest Release
v0.7.5
Commercial License Check
Apache-2.0 · Commercial Friendly

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

Maintenance35/35
Fork Adoption19/25
Release Cadence20/20
License Clarity20/20
DockerSelf-HostedAPI
Total Stars
★ 4,786
24h Growth
+4
7d Growth
+11
Forks
462

GitHub Star History

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

infiniflow/infinity Star History (2023-12-19 - 2026-12-03) ALL-TIME STAR HISTORY (2023-12 – 2026-12) +4.8k in 1080d · avg +4/day 5.1k 2.5k 0 2023-12-19: ★ 12024-02-24: ★ 1,0822024-05-04: ★ 1,6342024-07-13: ★ 1,9972024-09-21: ★ 2,3672024-11-30: ★ 2,6472025-02-08: ★ 2,9562025-04-19: ★ 3,4322025-06-28: ★ 3,7152025-09-06: ★ 3,9692025-11-15: ★ 4,1162026-01-24: ★ 4,2922026-04-04: ★ 4,4232026-06-13: ★ 4,5402026-08-22: ★ 4,6612026-12-03: ★ 4,786 ★ 4.8k 2023-12 2025-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

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.

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

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

Quick Start & Installation

DockerSelf-HostedAPI
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

Comparison vs. Top RAG, Data & Memory Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
infinity ★4.8k+11C++Apache-2.0Self-hosted C++ database for hybrid text, vector, and tensor retrieval in RAG
qdrant35.9k+135RustApache-2.0Rust vector database for filtered and hybrid RAG retrieval
weaviate17k+17Go—Go vector database for filtered hybrid retrieval in production RAG stacks
zvec16.3k+29C++Apache-2.0In-process C++ vector database for local hybrid retrieval

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/infiniflow/infinity.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.

infiniflow/infinity Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about infinity

Where does Infinity fit in a RAG pipeline, and how does the application connect?

Create a table with fields for document text, metadata, and the representations you want to search. The remote Python example connects through NetworkAddress on port 23817, inserts text and a dense vector, then calls match_dense and materializes the result with to_pl(). An HTTP API is also documented. Treat embedding generation and answer generation as separate application steps.

What CPU, memory, and GPU resources should I budget?

The documented host baseline is x86_64 with AVX2; Linux requires glibc 2.17 or later. The deployment example does not list a GPU requirement or provide a VRAM budget. Size CPU, RAM, and disk with your vector dimensions, corpus size, indexes, and query concurrency. Benchmark tensor reranking separately and budget any external embedding or generation models independently.

Can we self-host Infinity in a commercial product?

Infinity is Apache-2.0 licensed, which permits commercial use and self-hosting. If you redistribute the software or a modified build, review the license and notice obligations for the artifacts you ship. For internal deployment, separately validate access controls, data retention, and backup policies; the software license does not establish operational compliance.

How should we evaluate Infinity against Pinecone?

The key distinction is operational ownership: Infinity gives you a self-hosted engine for dense, sparse, full-text, and multi-vector retrieval, while a managed service such as Pinecone reduces the database operations your team owns. Compare them on the same corpus and query set, with equivalent filters and ranking goals, and measure recall, tail latency, and total cost.

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 infiniflow/infinity? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature infiniflow/infinity 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