Low Gravity

Solving problems with algorithms, expressing ideas in code.

中EN

Lately I’ve been working on retrieval for a local knowledge base. The setup isn’t complicated: notes are spread across dozens or hundreds of Markdown files, and when you ask a question, the relevant records may be spread across a dozen of them. Reach for standard Top-K and you hit a wall quickly.

Turn K down and you miss things. Turn it up and the context fills up, with tokens growing faster than quality. At first I tried to find the balance point in K, and after a few tries realized the direction itself was wrong: K is a single number carrying two conflicting jobs, and no setting makes both ends happy.

Read more »

If all you remember about a picture is roughly what’s in it, but not its filename, how do you find it again? That’s the problem I built PicIndex for.

The idea isn’t complicated: use a multimodal embedding to map images and text into the same vector space, so a search for “cyberpunk rainy street” or “cat sitting by the window” can follow visual semantics to similar pictures.

The demo came together quickly. As soon as I used it as a real tool, the flaws showed up: order numbers in images were missed, a multi-megabyte original image took forever through the model, and the same popular query recomputed its vector every single time.

After a round of tinkering I found that none of these were solved by “switching to a stronger model.” Almost every change that actually mattered in PicIndex happened in the engineering pipeline around the model.

Read more »

Lately there’s been a barbed little coinage going around on the Chinese internet: 妈人旷. It’s a sour four-character compression of a slogan everyone has heard a few hundred times too many:

Mom, life is a wilderness, not a track.

Fifteen years ago, people would have called the slogan stirring, and they would have been right. Not everyone has to walk the standard assembly line — elite school, big tech company, promotion, mortgage, marriage. There are many roads to Rome, and choosing a different one is fine.

The logic itself is flawless.

Read more »
0%