Skip to content

v4.15.0 — Search by meaning is on: free, in three languages, and in the demo

Choose a tag to compare

@Alexandr-Paleev Alexandr-Paleev released this 20 Nov 13:26
b37b608

Search by meaning is on in production, on the free path, and the demo can try it. A search by meaning finds a file by what it is about rather than by its name: "contrato de alquiler" finds a lease written in Russian. It runs on Cloudflare's Workers AI, under the daily budgets the database keeps (migration 017). Open the demo, type a few words in any of three languages, and press By meaning.

The eval scores, and the free model failed it. evals/, in Python, now computes recall@k, reciprocal rank and nDCG@k, and ranks as match_files does, ties broken by id so that two runs give the same table. It scores three models on every CI run from vectors kept in the repository, with no key. Over its 120 queries in English, Spanish and Russian, recall@5 is 0.974 for Voyage voyage-4 and 0.564 for Workers AI bge-large-en-v1.5, the model the app fell back to without paid keys. That model is English-only: a Russian query found its file about one time in four (0.263), and a query in one language almost never found a file in another (0.251). Workers AI bge-m3, free on the same account, with the same 1024 dimensions, scores 0.979.

So the free path embeds with bge-m3 now, and each model has its own floor. Files indexed with the old model show as not indexed and are offered again. The minimum similarity turned out to belong to the model: 0.25 cuts 73% of the pairs for Voyage and almost none for bge-m3, whose every search then returned all fifteen results. It is 0.25 for Voyage and 0.40 for bge-m3, with the same recall. See decision 0016.

Pictures are described again. Cloudflare retired llava-1.5-7b on 2026-11-20 and has answered 410 for it since, so the free path could index no picture. Pictures go to mistral-small-3.1-24b-instruct as a data URI, picked on the demo's pictures over llama-4-scout (as accurate, five times slower) and gemma-4-26b (answered nothing). It writes the sentences of text files too, since llama-3.1-8b-instruct is gone from Cloudflare's catalog. No model on this path writes in the file's language; search does not suffer, because bge-m3 matches across languages.

A demo can search. Demo accounts are never indexed, since anyone can open one, so a demo's search by meaning found nothing. The seed comes indexed now: three small sample documents, a Spanish electricity bill, a Russian lease and an English itinerary, and the descriptions and vectors of everything the free path can read. "счёт за электричество" finds the Spanish bill.

Search by meaning can be found. Its switch appears only once a term is typed, and the first person to try it on production did not find it. The field says "Search by name or meaning", and a search by name that finds nothing offers "Search by meaning instead", which keeps the words. Neither that nor "No files match" shows before the search has answered. A search by meaning keeps to the type tab, where "Images" listed text files, and a demo no longer offers indexing it would be refused.

AGENTS.md. What every coding agent working here reads first: git stays with the owner, when to ask, what not to touch, what done means and what CI holds a merge to, with four patterns that had been written nowhere in the repository.

What it costs: the first load is 377.4 kB gzipped, 0.5 kB over 4.14.0, all of it the updates of supabase-js, TanStack Query and Vite; all assets are 472.6 kB. The unit tests went from 1,802 to 1,831, and the site's stay at 74. The end-to-end suite passed 48 of 48 on each of the 11 runs on main since 4.14.0, none on a retry.