infino-ai/infino
HN ▲14 ↗Embedded BM25, vector, and SQL retrieval over a single copy of Parquet data
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & 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.
optimize() compacts files and recalibrates vector search against a recall target; the open-source library runs without a daemon.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.
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.
Quick Start & Installation
pip install infinoComparison vs. Top RAG, Data & Memory Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| infino ★ | 173 | +13 | Rust | Apache-2.0 | Embedded BM25, vector, and SQL retrieval over a single copy of Parquet data |
| lancedb | 12k | +34 | Rust | Apache-2.0 | An embedded columnar database for multimodal RAG retrieval. |
| weaviate | 17k | +19 | Go | — | Go vector database for filtered hybrid retrieval in production RAG stacks |
| crawl4ai | 88.3k | +489 | Python | Apache-2.0 | Async browser crawler that turns web pages into Markdown and JSON for RAG |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/infino-ai/infino.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about infino
How do I wire Infino into a RAG application, and can other tools still read the data?
IndexSpec, and append rows with embeddings generated by your application. hybrid_search fuses BM25 and vector rankings and lets you project fields such as text and score. DuckDB and PyArrow can read the Parquet columns directly; use Infino to query the embedded search indexes.Do I need a GPU, and how should I size a retrieval host?
Can we use Infino commercially without subscribing to Infino Cloud?
When would I choose Infino over Lucene, Elasticsearch, or OpenSearch?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
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