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.
First and now
Each configuration's first BEIR row and the corrected run, on FiQA.
| FiQA, median time | First | Now | Change |
|---|---|---|---|
| Hybrid, English analyzer | 0.91 ms | 0.29 ms | 0.32× |
| Vector | 0.53 ms | 0.12 ms | 0.23× |
| Full text, English analyzer | 0.19 ms | 0.10 ms | 0.53× |
| Full text, words as written | 0.24 ms | 0.26 ms | 1.05× |
| FiQA, nDCG@10 | First | Now | Change |
|---|---|---|---|
| Hybrid, English analyzer | 0.340 | 0.336 | −0.004 |
| Vector | 0.290 | 0.290 | +0.000 |
| Full text, English analyzer | 0.251 | 0.256 | +0.004 |
| Full text, words as written | 0.237 | 0.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.
- 25 Oct, 21:43
03bb9f018Deeper 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.
- 25 Oct, 21:05
e697efe17An 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.
- 25 Oct, 20:21
8b2d497reliabilityMemory 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.
- 24 Oct, 22:32
cc059d716Term 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.)
- 24 Oct, 21:53
2795c2015A 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.
- 24 Oct, 20:22
750e5b0reliabilityKilling 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.
- 24 Oct, 19:39
5d7903c14BEIR 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.
- 24 Oct, 19:14
66a66d9reliabilityEvery 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.
- 24 Oct, 19:04
6558e5freliabilityChecksummed 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.
- 24 Oct, 18:52
f9cc7f113Candidate 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.
- 24 Oct, 18:42
4c224d5reliabilityRecovery 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.
- 24 Oct, 16:50
77b377412Calibration 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.
- 24 Oct, 16:47
37c7ed111Vector 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.
- 24 Oct, 16:34
39c4c1a10Snowball’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.
- 24 Oct, 04:43
6acaf099Term 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.
- 24 Oct, 04:33
9606dad8Fusing 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.
- 24 Oct, 03:44
a5143127Full-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.
- 24 Oct, 03:40
059a1fc6Segments 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.
- 24 Oct, 03:35
8fc96e85Both 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).
- 24 Oct, 03:29
23e5fcf4Indexing 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.
- 24 Oct, 03:17
ad33e6d3Vector 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.
- 24 Oct, 02:55
7df3bc02Query 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.
- 24 Oct, 00:45
24aa5701First 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.
- 23 Oct, 21:10
2a21677methodThe 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.