﻿# As We May Search: what a million local passages demonstrate

A local-first IR study separates ranking quality, embedding startup and approximate indexes. Its constructed benchmarks do not guarantee private-archive relevance.

Author: Retrivium editorial team
Updated: 2026-11-05
Canonical URL: https://retrivium.ai/journal/as-we-may-search-local-ir-scaling-evidence/
Language: en

## A local-search scaling study with a constructed corpus

[As We May Search](https://arxiv.org/html/2606.29652) evaluates dense, lexical and hybrid retrieval on consumer hardware. Its main scaling condition grows MS MARCO subsets while retaining the evaluation queries' known relevant passages. This is a useful controlled distractor experiment, rather than a randomly sampled private archive in which the desired document might be absent.

The distinction matters before reading the headline ranking scores. Local execution determines where computation happens; the relevance protocol determines what the quality number means. Neither property alone establishes useful search over every personal collection.

## Ranking quality is not answer accuracy

At 100000 passages the paper reports dense nDCG@10 of 0.910. At 1000000 passages its exact flat search reaches 0.736, while HNSW reaches 0.719. These are author-reported ranking metrics under pooled relevance judgments, not percentages of correct generated answers.

The HNSW difference is a comparison against exact search at the same corpus size. It should not be confused with the larger degradation from adding distractors. A local archive can additionally contain duplicates, scanned documents, partial extraction and specialized terms. Those changes can affect both the searchable representation and whether the judgment set covers the user's actual question.

## Cached embeddings change the startup question

The paper separates embedding the corpus from constructing a vector index. Its million-passage example reports 47.5 minutes for embeddings, while building HNSW from those embeddings takes 3.2 minutes. Cached vectors therefore help when changing index structures; they do not erase the first embedding pass.

The [released artifact](https://github.com/searchsim-org/ictir26-localfirst-ir) exposes native retrieval, generation, browser and analysis components separately. A fair startup report should identify which artifacts already exist. Loading a saved index, rebuilding from cached vectors and preparing a new corpus are different operations. The [inference benchmark guide](/journal/inference-benchmark-method/) provides the corresponding distinction between preparation and measured warm requests.

## Approximate search does not automatically compress vectors

The [official FAISS index documentation](https://github.com/facebookresearch/faiss/wiki/Faiss-indexes) identifies IndexHNSWFlat as graph search over uncompressed vector storage, with additional graph memory. Its approximation comes from searching a restricted neighborhood, rather than guaranteeing that the representation itself becomes smaller.

Consequently, query speed, construction time, resident memory and relevance loss need separate columns. An index that searches faster may still require substantial memory. The existing [filtered HNSW guide](/journal/qdrant-payload-index-filtered-hnsw/) adds another boundary: search restricted by metadata or permissions is a different workload from an unfiltered global ranking test.

## Interpret implementation and privacy claims narrowly

The paper's BM25 latency uses a pure-Python scorer. That comparison cannot establish the speed of every optimized lexical engine. Its fixed hybrid fusion also helps some domain datasets while trailing dense retrieval on others. A local system should compare the actual candidate and ranking configuration rather than assume fusion always improves relevance.

Hardware results are likewise reported for a limited set of conditions. The repository describes a resource-limiting wrapper; an imposed processor-and-memory envelope is not itself a complete identification of the physical machine. Reproduction needs actual platform details and the selected backend.

Finally, keeping documents and queries local avoids sending them through the measured remote path. An optional embedding-only bridge has a different exposure boundary, because derived vectors can still carry information. The study provides a substantive feasibility case for local search, while archive-specific relevance, incremental updates and end-to-end confidentiality remain separate properties to establish.
