Seferehov, measured version by version: more books, a third less time per book

· לקריאה בעברית

🎧 Listen to this post · 12 min

Comic drawing: seven robots stand in a row on a red running track between tall library bookshelves, most of them holding a stack of books, ready for a race

Last week I wrote about an app that works for you: how Seferehov decides which books it can approve by itself. This post is about a harder question. Every client who has an AI system running asks it sooner or later:

did it really get better, or does it only feel better?

Seferehov reads the books on street library shelves from photos. In six weeks it had 17 versions. Each one felt like progress. But “felt” is not a number, and AI systems are good at feeling better while getting worse somewhere you did not look.

A test that never changes

You cannot compare two versions on different photos. A shelf of new paperbacks with big letters is easy. A crowded shelf of old Hebrew books is hard. If the test changes, the score changes, whatever the app does.

So on 23 November I froze a test: 9 shelf photos, with the 58 books on them that I approved by hand, and 40 readings I declined. Before each run, every photo is checked by its fingerprint (a SHA-256 hash, a code that changes if a single pixel changes). The answer file is never edited. New photos make a version 2 next to it, not a change to version 1.

It is a small test. A difference of one or two books can be luck, as you will see below. But it is the same test every time, and that is what makes the numbers mean something.

What to measure: seconds per book found

The first measure I used was seconds per photo. It has a trap. When the app gets better at finding books, it finds more of them in each photo, and reading each one takes time. A better app can look slower per photo.

What matters to a reader is different: how long until each book is on the library’s page. So the main measure is seconds per book found: the time for all 9 photos, divided by the books found.

The results, version by version

Each version ran on the same 9 photos, on the same server, with one graphics card. “Questions” means requests to the big vision model, Qwen3-VL 8B (a model that reads pictures, with about 9 billion weights). The number of questions does not depend on how busy the server is, so it is a good second measure of speed.

VersionWhat changedBooks found (of 58)Seconds per book foundQuestions per book found
v0.14The big vision model finds every spine, then reads it469511.0
v0.15A small trained model cuts out the spines496210.1
v0.16A Hebrew text reader checks each spine first526510.0
v0.17Clean cut-outs, safer merging, Hebrew kept in Hebrew letters52619.3
Today (28 Nov)A newer spine cutter, run twice50618.2

Two bar charts. Books found, of 58: v0.14 46, v0.15 49, v0.16 52, v0.17 52, today 50. Seconds per book found: v0.14 95, v0.15 62, v0.16 65, v0.17 61, today 61.

From the first version on this test to today: 4 more books of 58, about a third less time per book found (95 to 61 seconds), and a quarter fewer questions to the big model per book.

And yes, today finds 50 books, and v0.17 found 52. That is not a mistake in the table. It is the most useful lesson of the month, and I explain it below.

What made the difference

Each step moved work from the big model to something smaller and cheaper, or stopped the big model from wasting effort:

  1. A small model cuts out the spines (v0.15). The app used to ask the big vision model where each book is on the photo. Now a 6 MB model trained for this one job does it, on the processor, not the graphics card. This one step took about a third off the time per photo and found 3 more books. I call it AnchorCutter. How I trained it, mostly on shelves that never existed, is in next week’s post.
  2. A Hebrew text reader goes first (v0.16). Most spines here are in Hebrew. A small text reader (PaddleOCR, trained for Hebrew) checks each cut-out first, in under a second. It replaced a slower checker that took about 7 seconds a spine. This found 3 more books, at a small cost in time per photo.
  3. Clean cuts (v0.17). The app used to turn each cut-out a little more after the cutter had already straightened it. So some cut-outs came out diagonal, with the end of a title missing. After the fix: the same 52 books, with 36 fewer questions to the big model.
  4. Two safety rules (v0.17). Two different books are never merged into one, even if one title contains the other. And when a spine is clearly printed in Hebrew, but the reading switches to Latin or Arabic letters in the middle of a word, the app asks again and shows what was read. On real spines this turned “סטפאנוס קסנakis” into “סטפאנוס קסנאקיס”.
  5. A newer spine cutter (28 Nov). StairsCutter, my second trained cutter, handles leaning books and rows of look-alike books better. On a larger test of 338 spines it cuts 316 of them right, against 293 for AnchorCutter. On these 9 photos it finds the same 50 books as the old cutter, but it is about 9% slower, because it cuts out a few more pieces. I kept it for the larger test, where it matters.

Two mistakes the test caught

52 was a lucky run. On 28 November the lab ran the current app on the frozen test twice, five hours apart: 50 books both times, at 337 and 343 seconds per photo. Then it ran the old spine cutter from v0.17 on the same day: also 50, at 56 seconds per book. So the 52 books of 23 November were a high result, not something the app lost. Either that run was lucky, or a later change cost two books. Nine photos cannot tell which. The big model does not always read a hard spine the same way, so one or two books up or down is normal on this test. The timing noise between two identical runs was about 2%.

My “clean” rerun was not clean. On 23 November I reran four versions back to back, to compare them on the same day. The books found were close to the table above: 46, 48, 52 and 52. But the first two versions ran in the afternoon, when the server was busier, and every step took longer. Their times came out 70 to 80% slower than the same code on 18 November. The server’s load is logged every 10 seconds, so the log showed why. A summary script also divided the time by all 58 books instead of by the books found. Together these made the old versions look much slower than they were, and the app “2.3 times faster”. The honest number is about 1.5 times faster per book found.

I almost published 2.3. Checking how each number was made, not only the number, is what caught it.

Six weeks in versions

The app now has version numbers with names, so changes can be compared and described:

VersionDateName
v0.114 OctStreet library map
v0.215 OctShelf reading
v0.520 OctBoth ways up
v0.621 OctTraces: every AI step recorded
v0.94 NovOne camera for all book photos
v0.116 NovHebrew names from the National Library
v0.1311 NovConfidence levels and automatic tests
v0.1518 NovSpine cutter
v0.1621 NovHebrew reader first
v0.1723 NovClean cuts

The full list, 17 versions, is in the app’s code. Before mid-November there was no fixed test, which is exactly why I made one.

How the lab works while I sleep

Most of the experiments behind these numbers ran at night. Claude Code, an AI coding tool, runs on my home server as a separate user. It can read the app’s data, but it cannot change the live app. Each night it works through a written queue of experiments. An experiment has:

  • a question and, for most experiments, a pass mark, written before it runs. For example: “the Hebrew reader must get at least 85% of Hebrew titles right”;
  • a result and a verdict: pass or fail, with the numbers;
  • a morning report to me, including how much of my Claude subscription it used: usually 1 or 2% of the week’s allowance for a night.

Failed experiments are kept and reported like the good ones. Several of this month’s were failures, and they saved me from shipping changes that would have made the app worse. The 28 November rerun above was one of these experiments.

Where the numbers can mislead

  • Nine photos is a small test. It is good for comparing versions with each other, not for promising a number on every shelf. One or two books up or down is noise.
  • Time depends on the server. The current app’s runs were done when nothing else used the graphics card, and the log shows it. The older rows come from runs on different days. That is why the table also shows questions per book found, which does not depend on the server’s load.
  • The test only knows the 58 books I approved. If the app reads a real book I never approved, the test does not count it. So I check these readings by hand from time to time. On 28 November one of them was a real book that is not in the answer file.

What this means for your business

If you run an AI system (a chatbot, a document reader, a classifier), someone will change it: a new model, a new prompt, a new setting. Each change needs an answer to “better or worse?” that does not depend on who is asking.

  • Freeze a test set before you change anything. 50 real support questions with good answers; 100 invoices with the right fields; 30 contracts with the clauses a lawyer marked. Never edit it; add a version 2 next to it.
  • Measure per useful result. Not “seconds per request” or “cost per call”, but seconds and cost per correct answer, per invoice filed, per book found. This is the number the business feels.
  • Run each version twice, and log the load. Rerun old and new versions on the same machine, on the same day, and record how busy the machine was. Otherwise you compare the weather, not the versions. A second run shows how big the noise is, before you celebrate a gain of one book.

This is how I work with clients: first a test that does not move, then changes, each one measured. All of it on one 8 GB graphics card from 2016. If you have an AI system and are not sure whether the last change helped, book a free 30-minute video call and we will look at how to measure it.

More from me

Get new posts by email.

I write here occasionally — on AI-assisted coding and unusual, practical uses of AI. One email when a new post goes up, nothing else.

Or browse all posts →