Show HN: Infino – BM25, vector and SQL search where the index is a Parquet file Infino 0.11.26, a Rust search library from Infino AI, completed top-k queries in 0.46× the time of Lucene on the Search Benchmark, the Game, according to the company's published benchmark. Infino stores its BM25 and vector indexes inside ordinary Parquet files on local disk or object storage, so a single copy of the data answers keyword, vector, hybrid and SQL queries, with Python, Node.js and Rust bindings and an Apache-2.0 OpenSearch plugin that replaces Lucene per shard. The library lacks Lucene features such as fuzzy matching, highlighting, geo queries and a wider set of language analyzers. Infino is a search library built as an alternative to Lucene, and more: its full-text and vector indexes live inside ordinary Parquet files, on local disk or object storage, so one copy of the data answers BM25, vector, hybrid, and SQL queries. On Search Benchmark, the Game https://infino-ai.github.io/search-benchmark-game/full/ , as of this writing Infino 0.11.26 takes 0.46× of Lucene's time on top-k queries repro https://github.com/infino-ai/search-benchmark-game : Try it live in your browser https://infino.ai/parquet/ try , no account needed. Keyword, vector and hybrid search over one Parquet table of 45,012 arXiv abstracts, running on Infino Cloud: pip install infino python import infino import pyarrow as pa DIM = 16 def embed text : Stand-in embedding. Use a real model in your app, such as all-MiniLM-L6-v2 384 dims . v = 0.0 DIM v len text % DIM = 1.0 return v db = infino.connect "memory://" schema = pa.schema pa.field "body", pa.large utf8 , nullable=False , pa.field "embedding", pa.list pa.float32 , DIM , nullable=False , docs = db.create table "docs", schema, infino.IndexSpec .fts "body" .vector "embedding", DIM, "cosine" , texts = "disk full on the build server", "rotate the logs to free disk space", "the login page times out", docs.append {"body": t, "embedding": embed t } for t in texts BM25 and vector in one call, fused ranking. q = "disk full" hits = docs.hybrid search "body", q, "embedding", embed q , k=3, projection= "body", "score" for hit in hits.to pylist : print f"{hit 'score' :.4f} {hit 'body' }" It prints: 0.0328 disk full on the build server 0.0320 rotate the logs to free disk space 0.0161 the login page times out pip install infino Python npm install @infino-ai/infino Node.js cargo add infino Rust or in Cargo.toml: dependencies infino = "0.13" Lucene is the engine inside Elasticsearch, OpenSearch, and Solr. Infino does the same job, an in-process library you index into and search, but with a different storage design: the index is Parquet, it can live on object storage, and you can query it in SQL. | | Lucene | Infino | |---|---|---| | Index format | Segment files, readable only by Lucene | Parquet files with the BM25 and vector indexes inside; DuckDB, pyarrow, and DataFusion read the same files | | Documents | Stored fields and doc values in Lucene's own files | Parquet columns, in the same file as the indexes | | Storage | A directory on local disk; Elasticsearch and OpenSearch copy each shard to replicas on other nodes | Local disk or object storage S3, GCS, Azure ; a cache keeps the byte ranges queries touch | | Commits | Segments, refresh, background merges | Immutable files and an atomic manifest swap; optimize compacts | | Full-text | BM25 with Block-Max WAND | BM25; picks WAND, Block-Max WAND, MaxScore, stored counts, or bitsets per query | | Vectors | An HNSW graph per segment, fastest when held in memory | IVF with 1-bit codes paged from object storage by default; HNSW and flat modes optional | | SQL | None; Elasticsearch and OpenSearch translate a SQL dialect into their query DSL | Full SQL on Apache DataFusion, with joins and aggregates, and search as table functions | | Runtime | Java | Rust, with Python and Node.js bindings | Lucene has some features Infino does not have: fuzzy matching, highlighting, geo queries, and a wider set of language analyzers. If you need one of them, open a feature request https://github.com/infino-ai/infino/issues/new . opensearch-infino https://github.com/infino-ai/opensearch-infino is an Apache-2.0 plugin that replaces Lucene in each OpenSearch shard with an Infino table. Index, bulk, get, search, aggregations, and Dashboards work unchanged; the documents live on local disk or object storage, and the same indices answer SQL. A node with an empty data directory brings every index back from storage. It installs into released OpenSearch versions, with no fork. The tables can live on your own storage or on an Infino Cloud account. Warm p50, tables on object storage: | | 1M docs | 10M docs | |---|---|---| | Vector top-10 recall@10 0.992 at 1M | 591 µs | 5 ms | | BM25 top-10, including row fetch | 125 µs | 2 ms | | SQL, metadata → crosstab shapes | 186 µs – 7.6 ms | 260 µs – 75 ms | Every battery's full recorded tables — per-shape rows, RSS, cold GET counts, the 1M run these summaries quote — live in benches/README.md https://github.com/infino-ai/infino/blob/main/benches/README.md . Reproduce cargo bench -- supertable vector warm cold Bare cargo bench runs the 10M tier; the 1M rows what CI runs are INFINO BENCH SUPERTABLE DOCS=1000000 prefixed to the same command. Reproduce cargo bench -- supertable fts warm cold Bare cargo bench runs the 10M tier; the 1M rows what CI runs are INFINO BENCH SUPERTABLE DOCS=1000000 prefixed to the same command. Reproduce cargo bench -- supertable sql warm Bare cargo bench runs the 10M tier; the 1M rows what CI runs are INFINO BENCH SUPERTABLE DOCS=1000000 prefixed to the same command. Reproduce INFINO BENCH SUPERTABLE DOCS=1000000 cargo bench -- supertable build One command, all three modalities' ingest cells. - Cold first query = file opens + cache fill: 114 ms 1M and 314 ms 10M for vector, 16 ms and 275 ms for BM25. Warm and cold sit ~200× apart; the charts use a log scale. - 1M: CI — Azure Blob, 4 pinned cores, commit 3aaffb64 run 33245831329 https://github.com/infino-ai/infino/actions/runs/33245831329 . - 10M: same harness at its default scale — 8-vCPU AMD EPYC 9V74 AVX-512, 62 GiB , Azure Blob, commit 339e621 . Compare each scale against its own baseline. Methodology: config, real corpora, matching CI Engine behavior is configured in YAML only; environment variables never override it. The shipped defaults are what the charts measure: cp src/config/config.yaml infino.yaml or $XDG CONFIG HOME/infino/config.yaml The vector: block holds probe depth, rerank codec, and cell counts. The supertable: block holds commit and cache behavior. Leave both alone to reproduce the published charts. Corpus size is the one bench knob that reads an environment variable, and it takes a plain integer 1000000 , not 1M ; each chart's own Reproduce fold carries its exact command. To run against a real dataset instead of the synthetic corpus, pass a corpus= spec. It applies to one selected cell, so name a single tier and modality: Hugging Face parquet dataset — downloaded once into corpus-dir, reused after INFINO BENCH SUPERTABLE DOCS=1000000 \ cargo bench -- supertable vector \ corpus=hf:KShivendu/dbpedia-entities-openai-1M corpus-dir=./corpora Any local parquet shards e.g. Cohere embeddings you already hold cargo bench -- supertable vector corpus=parquet:/path/to/shards INFINO BENCH SUPERTABLE DOCS caps how many rows are ingested from the dataset. Recall is graded against brute-force exact ground truth on held-out queries, real corpus or synthetic. That runs against a local RustFS daemon, an HTTPS S3 stand-in, by default. To match CI: INFINO BENCH SUPERTABLE DOCS=1000000 \ INFINO BENCH STORE=azure \ INFINO REAL AZURE CONTAINER=$CONTAINER \ AZURE STORAGE ACCOUNT NAME=$ACCOUNT \ AZURE STORAGE ACCOUNT KEY=$KEY \ cargo bench -- supertable vector warm cold Reading the output: vector is the post-drain default row; BM25 is single rare under Supertable FTS; the SQL shapes are agg max title metadata , WHERE key = ? lookup , AVG rating GROUP BY category scan , and COUNT GROUP BY bucket, category crosstab . Structured results land in target/infino-bench/ .json . Methodology is in benches/README.md https://github.com/infino-ai/infino/blob/main/benches/README.md . Full-text against Lucene is above infino-and-lucene . Vector search against the Lucene-based services and vector databases: SQL against search engines, Elasticsearch included: - One Parquet file per data batch, with the BM25 and vector indexes inside it. DuckDB, pyarrow, and DataFusion open the same file as a normal table example https://github.com/infino-ai/infino/blob/main/infino-python/examples/parquet interop.py . - The storage target is determined by a connection string: memory:// , a local path, or s3:// , gs:// , Azure. - No daemon, no cluster, no lock service is necessary. Infino writes append-only, immutable files so readers pin a snapshot and never block on writers. - Tables much larger than RAM work: queries read byte ranges. How each part works: indexes inside Parquet, byte-range reads, the per-query text scorer, the vector funnel, manifest commits, and optimize optimize - Each write produces one Parquet file with the BM25 and vector indexes embedded in it. - Any Parquet reader — DuckDB, pyarrow, DataFusion — opens that file and sees a normal table. Infino opens the same file and also finds its indexes. - There is no separate index artifact to build, ship, or keep in sync, and nothing to load at startup. A Lucene index is its own copy of the data; teams that also want it in a data lake run a pipeline to keep the two in step. - The indexes are sorted by term and by vector cluster, so a top-10 turns into a short list of byte offsets. On object storage, that is a few HTTP range requests, not a download. - One object-store request takes 20–100 ms. - Fetched ranges are kept in a local disk cache and memory-mapped. A repeated query makes zero network requests and answers in 125 µs. - The cache shrinks under memory pressure and empties on an idle table. Queries refill it. Posting lists store, for each term, how many documents contain it and the best possible score in each block. With that on hand, the engine picks the cheapest correct algorithm for each query: - A query mixing a rare word and a common word skips through the common word's list instead of reading it WAND / Block-Max WAND . - A query of comparably common words scores documents in fixed-size windows, dropping words that can no longer reach the top 10 as the threshold rises MaxScore . - Counting matches for a query dominated by one very common word reads a stored count instead of walking the posting list. - Very dense queries switch to bitsets. Very sparse ANDs walk the shortest list and probe the others. - The switch points were set by benchmark, and every algorithm is tested against a brute-force BM25 implementation. The choice changes speed, never results. - Vectors are grouped into clusters. A query is compared to the cluster centers first, and only the nearest clusters are read — 62 of 255, for a top-10 on a 1M-row table. - Rows in those clusters are scored with 1-bit-per-dimension codes: 192 bytes per 1536-dimension vector, instead of 6 KiB as float32. - The best candidates — 155 rows for that same top-10 — are re-scored with 2-byte-per-dimension codes to get the exact order. - How many clusters to read and how many rows to re-score are measured per table when the index is built, and measured again when the data changes shape. - Measured recall@10 at 1M rows: 0.992, tested against exact brute-force nearest neighbors. - Distance kernels are runtime-dispatched: AVX-512, AVX2, a portable 256-bit path, and an int8 VNNI kernel for graph navigation. - A table is a set of immutable files plus a manifest that lists them. A commit writes new files, then replaces the manifest in one atomic step: all of its rows appear, or none. - A reader keeps the manifest it opened and finishes on that version. It never waits on a writer and never sees half a commit. - No lock service, no leader election. - You set one number — target recall: 0.99 . optimize measures the table and sizes everything else: how many clusters, how many a query reads, how many rows get re-scored. - If you select the graph or flat index mode, it is built and its recall is measured. It serves only if it reaches the bar on this data; otherwise the default index keeps serving and nothing changes for the caller. - The measurements are redone whenever compaction or a cluster split changes the data. infino.yaml vector: target recall: 0.99 search mode: ivf ivf default | hnsw ivf | flat ivf table.optimize drain, compact, recalibrate, sweep Every knob, and the measurement behind each default, is documented inline in src/config/config.yaml https://github.com/infino-ai/infino/blob/main/src/config/config.yaml . You can trade memory for latency, depending on your workload. A million 1536-dimension vectors are 5.7 GiB of RAM as float32. flat ivf serves them from 841 MiB, all-in. Memory and latency per mode flat ivf , ivf , hnsw ivf , with charts, measured figures, and how to reproduce them flat ivf , ivf , hnsw ivf , with charts, measured figures, and how to reproduce them Reproduce printf 'vector:\n search mode: flat ivf\n' infino.yaml or hnsw ivf; rm for ivf INFINO BENCH SUPERTABLE DOCS=1000000 \ cargo bench -- supertable vector build warm \ corpus=hf:KShivendu/dbpedia-entities-openai-1M corpus-dir=./corpora One run per mode: the config line selects it, optimize builds it, the battery reports serving RSS and latency. Measured serving figures, each row on its own corpus: | Mode | Corpus | RAM to serve | recall@10 | warm p50 | |---|---|---|---|---| | flat ivf | dbpedia 1M × 1536d | 841 MiB, pinned | 0.938 | 20 ms | | ivf default | dbpedia 1M × 1536d | 3.16 GiB working set, 109 MiB pinned | 0.988 | 6.2 ms | | hnsw ivf | Cohere 1M × 768d | 2.5 GiB, pinned | 0.995 | 0.59 ms | - flat ivf — exhaustive scan over a 4-bit plane; no clusters, no graph, no rerank plane. Fetches nothing to serve, so cold equals warm and the quoted latency is a worst case. Linear in rows: 1.6 ms at 100K, 20 ms at 1M. Recall is codec-set ~0.94 and does not move with scale. Faster than the routed path below ~130K rows chart above . Cosine only. - ivf default — the only mode that scales past RAM. The index lives on object storage and pages through the reclaimable cache; pinned memory stays near 100 MiB at any scale. - hnsw ivf — graph walk on an int8 plane, exact re-rank on the final beam. Needs the graph resident, which bounds it to ~10M rows. - Every mode falls back to the routed scan when it cannot serve a query; changing the mode can cost recall or latency, never correctness. SQL planning and execution is Apache DataFusion. Infino leverages the indexes it maintains for FTS to accelerate SQL queries by pruning bytes it does not need to touch. For example, DataFusion prunes ordered, numeric columns via min/max limits, but Infino uses Bloom filters, FSTs, bitmaps, and other data structures not usually available in DataFusion. For example, when a WHERE clause hits a column that has a full-text index, Infino looks the value up in that index first and hands DataFusion the matching row numbers, so the scan decodes only those rows instead of the whole column. The index lookup on and off: chart, measured numbers, and how to reproduce them The chart is that lookup switched on and off — same query, same files: Reproduce INFINO BENCH SUPERTABLE DOCS=1000000 cargo bench -- supertable sql warm The battery emits both arms — the same query through the index lookup and through the plain scan. - Equality on an unsorted column, where Parquet min/max stats can't skip anything: 21.9 ms without the index lookup, 1.44 ms with it. COUNT and AVG over the same predicate: ~22.5 ms → ~1.8 ms. - Before any of that, per-file min/max, Bloom, and term summaries drop whole files, and an aggregate fully answered by the table's statistics never scans at all. The combination of SQL and search functions makes it simpler to express complex queries. bm25 search , bm25 search fields , vector search , hybrid search , token match , and exact match are SQL table-valued functions that let search results compose as ordinary SQL tables. The ranked result sets are relations so operations like retrieval, filters, joins, and aggregation compose in one statement against one pinned snapshot. SELECT id, title, score FROM hybrid search -- FTS + vector, fused by RRF 'logs', 'body', 'disk full', -- the text side 'embedding', :q, 50 -- the vector side, top 50 WHERE level = 'error' -- pushed-down filter AND ts now - interval '24 hours' -- on the same pass ORDER BY score DESC -- one fused ranking LIMIT 10; Follow-up questions can stay in SQL, inline in the same query. Getting from “find disk-full errors” to “which team had them” takes a single query. SELECT s.team, count AS hits, avg h.score AS relevance FROM hybrid search 'logs', 'body', 'disk full', 'embedding', :q, 1000 AS h JOIN services s ON s.id = h.service id WHERE h.ts now - interval '7 days' GROUP BY s.team ORDER BY hits DESC; - Tables are append-only and time-ordered. Updates are delete plus insert via tombstones, and there are no cross-table transactions. This is not an OLTP store. - Writes go through a single writer slot, so there is one writer per table at a time. Readers are unbounded and are never blocked. - The open-source engine is a library with a SQL and Arrow surface: no daemon, no REST endpoint, and no cluster to operate. For a hosted service, Infino Cloud https://infino.ai/docs/cloud runs the same engine fully managed, with the same API; a program moves to it by changing its connect target. The crate is 0.x and the API can still move. The public surface is pinned by public-api.txt . Infino is a powerful agent data layer. Hybrid search and SQL allow more expressive queries in more compact form, with less token spend on LLMs. Use for agent memory, storing corpora for searching, or agent exhaust in general. Transcripts, embeddings, and metadata can be stored in one table, recalled by meaning, keyword, or SQL — in memory or over object storage, with no service to run: - infino-mcp https://github.com/infino-ai/infino-mcp — give any MCP client Claude Code, Claude Desktop, Cursor, VS Code keyword, semantic, hybrid, and SQL retrieval over your tables. Local embedding model, read-only by default, writes behind one flag. npm i @infino-ai/mcp-server , or straight from the MCP Registry. - infino-cli https://github.com/infino-ai/infino-cli — the same tables from your shell: SQL, full-text, and vector search against a path or bucket. Inspect what the agent stored, script the parts that don't need a model. - infino-analytics https://github.com/infino-ai/infino-analytics — a reference kit for building analytics products on Infino: visualization and dashboard API, plus Fino, a conversational layer — a complete worked example of an agent over Infino tables. Full documentation is at infino.ai/docs https://infino.ai/docs . Start here: - Quickstart https://infino.ai/docs/quickstart — connect, create a table, run your first search - Core concepts https://infino.ai/docs/core-concepts — one table, four ways to query it - Search guide https://infino.ai/docs/guides/search — full-text, vector, and hybrid retrieval - Hybrid search on Parquet https://infino.ai/docs/guides/hybrid-search-on-parquet — BM25 and vector in one ranked pass over a Parquet file - SQL reference https://infino.ai/docs/sql-reference — the search table-valued functions and how to combine them - Agent memory https://infino.ai/docs/use-cases/agent-memory — retrieval as an agent's long-term memory over object storage - MCP integration https://infino.ai/docs/integrations/mcp — hybrid and SQL retrieval for Claude, Cursor, and VS Code - Parquet interop https://infino.ai/docs/guides/parquet-interop — read the same file with DuckDB, pyarrow, and DataFusion - Embeddings https://infino.ai/docs/guides/embeddings and storage https://infino.ai/docs/guides/storage — bring your own vectors; run on local disk, S3, GCS, or Azure The same pages are available as Markdown source on GitHub: quickstart https://github.com/infino-ai/docs/blob/main/quickstart.mdx , core concepts https://github.com/infino-ai/docs/blob/main/core-concepts.mdx , search https://github.com/infino-ai/docs/blob/main/guides/search.mdx , hybrid search on Parquet https://github.com/infino-ai/docs/blob/main/guides/hybrid-search-on-parquet.mdx , SQL reference https://github.com/infino-ai/docs/blob/main/sql-reference.mdx , agent memory https://github.com/infino-ai/docs/blob/main/use-cases/agent-memory.mdx , MCP https://github.com/infino-ai/docs/blob/main/integrations/mcp.mdx , Parquet interop https://github.com/infino-ai/docs/blob/main/guides/parquet-interop.mdx , embeddings https://github.com/infino-ai/docs/blob/main/guides/embeddings.mdx , storage https://github.com/infino-ai/docs/blob/main/guides/storage.mdx . In this repo: - FAQ https://github.com/infino-ai/infino/blob/main/docs/faq.md — short answers to common questions - How Infino compares https://github.com/infino-ai/infino/blob/main/docs/comparisons.md — how it relates to Lucene and search engines, vector databases, and query engines Design references in this repo : - Overview https://github.com/infino-ai/infino/blob/main/docs/architecture/overview.md — the mental model, and how this compares - Superfile format https://github.com/infino-ai/infino/blob/main/docs/architecture/superfile.md — how indexes fit inside Parquet - Supertable layer https://github.com/infino-ai/infino/blob/main/docs/architecture/supertable.md — manifest, commit, query fan-out | Language | Package | Examples | |---|---|---| | Python | infino-python/ https://github.com/infino-ai/infino/blob/main/infino-python | examples/ https://github.com/infino-ai/infino/blob/main/infino-python/examples | | Node.js | infino-node/ https://github.com/infino-ai/infino/blob/main/infino-node | examples/ https://github.com/infino-ai/infino/blob/main/infino-node/examples | | Rust | docs.rs/infino https://docs.rs/infino | examples/ https://github.com/infino-ai/infino/blob/main/examples | - Questions, ideas, and things you've built: GitHub Discussions https://github.com/infino-ai/infino/discussions - Bugs and feature requests: issues https://github.com/infino-ai/infino/issues - Contributing: CONTRIBUTING.md https://github.com/infino-ai/infino/blob/main/CONTRIBUTING.md git clone git@github.com:infino-ai/infino.git && cd infino cargo build cargo run --example demo make ci gates before a PR make readme-charts regenerate the charts above Note: infino installs the mimalloc https://github.com/microsoft/mimalloc global allocator by default. If you embed infino in a process that already sets a global allocator, turn it off to avoid a second one: infino = { version = "0.13", default-features = false } . MSRV 1.95. Python and Node version on their own SemVer lines docs/versioning.md https://github.com/infino-ai/infino/blob/main/docs/versioning.md . See CONTRIBUTING.md https://github.com/infino-ai/infino/blob/main/CONTRIBUTING.md . Licensed Apache-2.0 https://github.com/infino-ai/infino/blob/main/LICENSE .