Skip to the content
hinny

Dev log

How the numbers moved

Hinny’s benchmarks commit by commit, from the initial comparison against other embedded databases through the paired-protocol rerun: what changed and what each change measured. Every figure comes directly from the repository’s benchmark results and commits.

Query time against the first measurement

BEIR FiQA (57,638 documents), median time of a top-10 query from Python. The numbered markers are the changes below; the rise at the end is the corrected protocol, which fuses deeper to measure quality and speed at one setting, not a slowdown.

0.1×0.2×0.5×1×2×06:0012:0018:00corrected protocol123456789101112131415161718■ 1.05× Full text, as written■ 0.53× Full text■ 0.32× Hybrid■ 0.23× Vector
Hybrid, English analyzerVectorFull text, English analyzerFull text, words as written
BEIR FiQA, median query time from Python, relative to each configuration's first measurement; a dot per version of the results.

First and now

Each configuration's first BEIR row and the corrected run, on FiQA.

FiQA, median timeFirstNowChange
Hybrid, English analyzer0.91 ms0.29 ms0.32×
Vector0.53 ms0.12 ms0.23×
Full text, English analyzer0.19 ms0.10 ms0.53×
Full text, words as written0.24 ms0.26 ms1.05×
FiQA, nDCG@10FirstNowChange
Hybrid, English analyzer0.3400.336−0.004
Vector0.2900.290+0.000
Full text, English analyzer0.2510.256+0.004
Full text, words as written0.2370.238+0.001

“First” is each configuration’s first BEIR row (24 Oct, 00:45 for vectors and words as written, two hours later for the English analyzer); “now” is the corrected run. The hybrid’s quality fell because the earlier rows scored it fused 400 deep while timing it 40 to 100 deep; measured at one setting it fuses 200 and 100. Full text with words as written is the one that got slower: scoring term at a time chose short queries with stopwords and lost, which the term-at-a-time fix mostly undid. The hybrid rows are slower than their best because they now fuse 200 text candidates for quality; text_candidates=40 buys the time back for FiQA nDCG@10 0.370 → 0.358 on dev queries.

Changes

Newest first. A number is the change's marker on the chart; the others are reliability work, which the chart does not mark.

  1. 25 Oct, 21:4303bb9f018

    Deeper searches probe deeper

    Each segment calibrates its probe budget for the 10 nearest of all its vectors. Measured on real queries, choosing on BEIR’s dev and train queries and checking once on the test queries, a top 1000 or a filtered top k reached into clusters it never probed: Quora, k=1000 with a 10% filter against the query’s direction, recall 0.970. The budget now grows with how deep a search must look, (k / 10s)^0.1 for a share s of vectors passing, and leaves the calibrated case alone. Held out, no cell got worse and the worst rose to 0.997; k=1000 unfiltered 0.983–0.994 → 0.998–0.999, for 13% more time at the median cell. A hybrid’s vector side asks for 100, so it probes a little deeper too: FiQA vector recall@100 0.620 → 0.623.

  2. 25 Oct, 21:05e697efe17

    An exact top k of items

    A text search kept four times k passages and then each item’s best, so one item’s strong passages could hide the next (asked for 2, it returned 1 of 2 matches), and all-words queries past 63 words let wrong documents through in memory. It now keeps the best k items, each at its best passage, and prunes against the k-th item: a higher bar, sooner. Same results on BEIR, and the hybrids 20–35% faster: FiQA English 0.378 → 0.294 ms, words as written 0.510 → 0.385, English full text 0.133 → 0.102. Attribute-only queries keep only their limit (1M documents by date 31.8 → 3.2 ms, 38 MB → 0.1 MB), and exact filtered vector searches stopped building scan caches they don’t use.

  3. 25 Oct, 20:218b2d497reliability

    Memory and work budgets

    Batches are checked against the widths the log writes them in and a size limit before anything is written; memory flushes by bytes as well as passages; stats show what snapshots pin; queries take a deadline or a cancel handle and fail rather than return part of their results.

  4. 24 Oct, 22:32cc059d716

    Term at a time only where pruning can’t skip

    Scoring term at a time fired whenever a query’s posting lists added up to the segment, so short queries with stopwords chose it and lost: their long lists have tiny bounds that MaxScore skips. Up to 32 results it now counts only the lists MaxScore can’t skip, against a share of the segment that grows with its size; a deeper top k keeps the old rule. Full text with words as written: FiQA 0.280 → 0.268 ms, SciDocs 0.116 → 0.109, Quora at 11 results 0.65 → 0.47 ms. Most of FiQA’s earlier 0.22 ms is back; the rest would cost Quora’s tail. (Correction, 25 Oct: from Python the new rule didn’t apply yet. The search asked its collector for four times 11 passages, past 32, so the Python numbers here moved by noise; the Quora figure is the Rust harness’s. The rule has applied since e697efe.)

  5. 24 Oct, 21:532795c2015

    A sparse budget, and explain()

    A sparse field searched without text gets a candidate budget of its own, chosen on dev queries: at 200 against 100, SciFact nDCG@10 0.939 against 0.928, FiQA 0.391 against 0.392 for 0.47 against 0.38 ms. Query::explain shows what fusion saw: each retriever’s depth, how many it found and their score range, and how many both found.

  6. 24 Oct, 20:22750e5b0reliability

    Killing the writer, 40 times

    A child process writes batches while flushes and merges run, and is killed with SIGKILL at a random moment. A process crash keeps what reached the OS, so every acknowledged batch must survive, whole and in order. With the log flush on each write removed, the test fails at once.

  7. 24 Oct, 19:395d7903c14

    BEIR rerun: quality and speed from the same queries

    The earlier runs measured nDCG@10 with requests for 100 results and speed with requests for 10, which fused at different depths, so FiQA’s 0.341 at 0.26 ms described two settings. Measured together: 0.334 at 0.38 ms. Hinny’s hybrid still ranks first on all five datasets, in 9 to 16 times less time than LanceDB’s.

  8. 24 Oct, 19:1466a66d9reliability

    Every I/O failure, one at a time

    Each place the engine writes or syncs can be made to fail. A sweep fails each one at every point a workload reaches it (296 cases, 344 once torn log appends were added), crashes and reopens. Reintroducing the deletion bug fixed an hour earlier makes it fail.

  9. 24 Oct, 19:046558e5freliability

    Checksummed metadata (format 4)

    A manifest damaged in a way that still parsed used to be believed, and could open an index empty. The manifest and deletion files now carry CRC32s and are refused when they fail; indexes from 0.3 open unchanged.

  10. 24 Oct, 18:52f9cc7f113

    Candidate budgets, chosen on dev splits

    Hybrid retrievers looked four times the limit deep, so asking for 10 or 11 results changed the ranking. Now fixed budgets of 200 text and 100 vector candidates, chosen on dev and train queries, never test ones: FiQA nDCG@10 0.358 → 0.370 for 0.28 → 0.39 ms, SciFact 0.908 → 0.927, Quora 0.877 → 0.884.

  11. 24 Oct, 18:424c224d5reliability

    Recovery fails safe, and sync()

    An audit found that an unreadable manifest opened as an empty index and deleted its segments, and that a failed deletion save could be retried as if saved. Both fixed; writes gain an explicit sync(), and the benchmark protocol now measures quality and speed at one setting.

  12. 24 Oct, 16:5077b377412

    Calibration stops where recall stops

    At a recall target of 0.997, a million synthetic vectors never reached it and probed every cluster: 2.6 ms. Calibration now also stops where more probes stop helping: 0.13 ms. The higher target is the one deliberate slowdown on this page: SciDocs vector search 0.056 → 0.073 ms, for nDCG@10 0.166 → 0.167.

  13. 24 Oct, 16:4737c7ed111

    Vector search 1.6× faster: FastScan

    Codes regrouped in blocks of 32 and scored with 4-bit lookup tables, as Faiss’s FastScan does: FiQA vector p50 0.150 → 0.094 ms at the same recall, hybrid 0.30 → 0.26 ms.

  14. 24 Oct, 16:3439c4c1a10

    Snowball’s stopwords

    The English analyzer drops Snowball’s 127-word stopword list instead of the earlier 33-word list: FiQA full text nDCG@10 0.250 → 0.256 and p50 0.20 → 0.13 ms. Full text now matches or beats LanceDB’s on all five datasets.

  15. 24 Oct, 04:436acaf099

    Term at a time where pruning can’t win

    When a query’s posting lists are about as long as the segment, block-max pruning skips nothing; such queries are scored term at a time instead: ArguAna full text 0.40 → 0.21 ms, FiQA hybrid p99 0.68 → 0.42 ms.

  16. 24 Oct, 04:339606dad8

    Fusing vectors deeper

    Vectors fused at least 100 deep, text 40: the mailbox benchmark’s right-email-first rate 45.4% → 50.4%, FiQA hybrid at 0.32 ms.

  17. 24 Oct, 03:44a5143127

    Full-precision vectors in half precision

    They’re only read to rerank, so f16 costs no recall (FiQA 0.993 either way) and halves a segment: FiQA 64 → 34 MB.

  18. 24 Oct, 03:40059a1fc6

    Segments searched at once

    A query’s segments are searched in parallel on the query threads: FiQA in five segments, vector p50 0.31 → 0.18 ms.

  19. 24 Oct, 03:358fc96e85

    Both retrievers at once

    A hybrid query’s text and vector searches run on threads of their own: FiQA hybrid p50 0.53 → 0.33 ms (1.0 ms before that night’s vector work).

  20. 24 Oct, 03:2923e5fcf4

    Indexing 2–3× faster

    k-means as matrix products, seeding from a sample, cached stems and Fx hashing: FiQA’s upserts 1.7 → 1.1 s.

  21. 24 Oct, 03:17ad33e6d3

    Vector search 3× faster

    Requantizing the query for each probed cluster had been 70% of the time; now it’s done once, without allocations or branches, with NEON bit counts: FiQA vector p50 0.53 → 0.16 ms at recall 0.993, exact search 4.4 → 1.0 ms.

  22. 24 Oct, 02:557df3bc02

    Query term frequency in BM25

    Repeated query words are now weighted by how often they appear (query term frequency): ArguAna nDCG@10 0.425 → 0.482 with the English analyzer.

  23. 24 Oct, 00:4524aa5701

    First comparison with other embedded databases

    Four BEIR datasets against LanceDB, Chroma, Qdrant, SQLite and Tantivy, with the same vectors for all. Convex fusion beat reciprocal rank fusion everywhere (the mailbox’s right-email-first rate 38.7% → 48.7%), and calibrated probing lifted vector recall@10 from 0.913 on FiQA with a fixed budget to 0.990–0.999 on real queries.

  24. 23 Oct, 21:102a21677method

    The first commit

    A library-first hybrid search database: BM25 and 1-bit RaBitQ vectors over per-segment clusters in one index, one query builder for text, vectors or both (then fused by reciprocal rank), and filters checked during the search.