SCM sets its search cutoff with six nonsense queries

SCM embeds junk queries against your own library to find a noise ceiling, then shows no match when the top result falls under the cutoff.

Search bar with the query qwerty gibberish above the words No match, a sticker reading 6 junk queries set the cutoff, and a screenshot of the SCM app

A local search app on Hacker News tunes itself with six queries that mean nothing.

SCM, a Show HN from Sunday, searches every photo and video frame on a Mac with a local vision model.

Vector search always returns the nearest thing, even when nothing fits.

So SCM first embeds nonsense like "qwerty gibberish" and "aaa bbb ccc ddd" against your own library. The best score those reach is the noise ceiling. The cutoff sits at about twice that. If your top result lands under it, the app shows no match.

It repeats this for every embedding model, because each one scores on a different scale. The code says a cutoff tuned for CLIP must not be assumed elsewhere.

Worth copying into a RAG retriever:

  1. Run junk queries against your real index
  2. Set the floor above their best score
  3. Recalibrate after every model swap

A retriever that can't return nothing will always return something.

Watch the video on LinkedIn ↗

Have a problem worth solving?Let's make it reliable

Start a conversation

Open to full-stack and applied AI roles, remote or hybrid.

Tell me about the role, the team and the problem.