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

- **GitHub URL**: https://github.com/infino-ai/infino
- **Official Docs / Website**: http://infino.ai
- **Category**: RAG, Data & Memory (知识库 / 爬虫 / 记忆层)
- **Primary Language**: Rust
- **License**: Apache-2.0
- **Engineering Health**: A+ (91/100 · Maintenance 35/35 · Adoption 16/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v0.13.1 (2026-11-30) — https://github.com/infino-ai/infino/releases
- **Review Snapshot**: 2026-12-01
- **Deployment / Stack Signals**: Self-Hosted
- **Momentum**: 173 ★ total (+1 24h / +13 7d) · 34 forks
- **Topics**: `bm25`, `embedded-database`, `full-text-search`, `hybrid-search`, `object-storage`, `parquet`, `rag`, `retrieval`, `rust`, `search-engine`, `vector-database`, `vector-search`
- **When to Use**: Best for: Self-hosted RAG retrieval over batch-ingested, append-heavy corpora where one Parquet copy should serve hybrid search and SQL, and the application can embed the engine and manage the write path. Skip if: You need a turnkey distributed search service, must support heavy concurrent updates or cross-table transactions, or have strict cold-start latency requirements that object-store reads cannot meet.

## Overview
```text
### Architecture & Core Mechanics
Infino is an in-process Rust retrieval engine with Python and Node.js bindings. An indexed batch is written as an ordinary Parquet file with the configured BM25 and vector indexes embedded alongside the columns. DuckDB and PyArrow can read those columns without understanding Infino's indexes. Within Infino, Apache DataFusion supplies SQL joins, aggregates, and search table functions; the library also exposes direct search APIs and an Arrow interface.

A table consists of immutable files tracked by a manifest. A commit writes the files before atomically replacing the manifest, so readers pinned to an older snapshot can finish without waiting for the writer. Queries can fetch just the relevant byte ranges from object storage, then reuse them through a local disk cache backed by memory mapping. The open-source library has no native REST server or cluster layer. The separate `opensearch-infino` plugin embeds an Infino table at the OpenSearch shard boundary.

### Key Capabilities & Differentiators
BM25 execution adapts to the query: term frequencies and per-block score bounds let the engine choose among WAND, Block-Max WAND, MaxScore, bitsets, and stored counts where applicable, without changing scoring results. Default vector search routes to IVF clusters, screens candidates using one-bit-per-dimension codes, and reranks a shortlist with two-byte-per-dimension codes. Hybrid search fuses the lexical and vector rankings; embedding generation stays in the application.

`optimize()` compacts the table and recalibrates vector search to a target such as `target_recall: 0.99`. The `hnsw_ivf` and `flat_ivf` modes are optional and only take over if their measured recall meets the configured target. In the Azure Blob benchmark, warm p50 at 1M and 10M documents was 125 µs and 2 ms for the reported rare-term BM25 top-10 shape including row fetch, and 591 µs and 5 ms for vector top-10. The 1M vector run measured recall@10 of 0.992 against brute force. The two scales used different hosts; these results are reference points, not an SLA or a clean scaling curve.

### Trade-offs & Limitations
The reason to choose Infino over a Lucene-based stack is that the same Parquet files can serve retrieval and analytics without maintaining a separate search copy. It is not a feature-for-feature Lucene replacement: fuzzy matching, highlighting, and geo queries are missing. Tables are append-only and time-ordered, with updates implemented as tombstones plus inserts, one writer slot per table, and no cross-table transactions. This favors batch-oriented corpora rather than OLTP or heavy concurrent mutation.

The infrastructure tradeoff is cache-sensitive latency. Default IVF can serve indexes larger than RAM, but the Azure Blob runs measured cold first vector queries at 114 ms and 314 ms for 1M and 10M documents, versus sub-millisecond to single-digit-millisecond warm figures. Where the index can fit in memory, `flat_ivf` avoids serving-time fetches but scans linearly and supports cosine only. Compare modes on the same corpus: the published HNSW and flat measurements use different embedding datasets and do not establish a head-to-head ranking.

### Hardware & Deployment Guide
Embed Infino with `cargo add infino`, `pip install infino`, or `npm install @infino-ai/infino`. The Rust v0.13.1 manifest specifies edition 2024 and Rust 1.95. The Python quickstart uses PyArrow for schema definition and result handling. Start with `memory://` for an ephemeral integration test or use a local path for a persistent deployment without remote storage. For S3, GCS, or Azure Blob, plan for object-store access, local cache space, and a caller-owned ingestion and compaction workflow. Infino Cloud is optional and uses the same API with a different connection target.

Before rollout, test writer contention, `optimize()` on realistic batches, and cold-start latency on the actual storage backend. v0.12.0 reduced full-text file reads and added vector file pruning based on `WHERE`; v0.13.0 added idempotency tokens for appends and staged commits; v0.13.1 reduced document-ID map reads when ranking within a text `WHERE`. Pin a version and run upgrade tests: the public API is tracked in `public-api.txt`, but the crate is still 0.x.
```

## Key Capabilities
```text
- Storage: BM25 and vector indexes live inside ordinary Parquet files; DuckDB and PyArrow can read the data columns.
- Commit model: Immutable files become visible through an atomic manifest swap, while readers retain their snapshots.
- Text execution: Term statistics and block score bounds guide selection among WAND, Block-Max WAND, MaxScore, and other paths without changing BM25 results.
- Vector execution: Default IVF pages cluster ranges on demand, scores one-bit codes, and reranks a shortlist with two-byte-per-dimension codes.
- Query surface: DataFusion provides SQL joins and aggregates with search table functions; the library also exposes fused BM25/vector ranking.
- Operations: `optimize()` compacts files and recalibrates vector search against a recall target; the open-source library runs without a daemon.
```

## Quick Start / Clone
```bash
pip install infino
```
