Inspiration

Lost-property descriptions rarely use the same words as a desk's inventory. Someone remembers a drink container with a green cap; the inventory lists a black metal water bottle with a green lid. Found Again explores a private, browser-side way to compare those descriptions while keeping staff responsible for the final return.

What it does

Enter a short English description and search a fictional campus inventory. The app ranks possible leads, supports simple color and item-type exclusions, and can return no confident match. Staff can edit the anonymous inventory and search it immediately. Complex negatives ask for clarification. Matching never establishes ownership: a staff member should verify a private identifying detail before returning an object.

How we built it

A quantized Xenova/all-MiniLM-L6-v2 sentence encoder runs on the browser CPU through Transformers.js and ONNX Runtime Web. Mean pooling and normalization produce 384-dimensional vectors; cosine similarity ranks inventory items. A separate, deliberately limited rule layer handles explicit exclusions such as ‘not red’ and ‘not a bag’. Inventory edits invalidate the stored embeddings.

The main search calls the model locally. The original TF–IDF search with a small synonym dictionary remains available as a comparison. The sentence encoder supplies the semantic representation used by the main search; exclusion rules do not replace the model.

Validation and what we learned

We froze 18 hand-written synthetic cases before evaluation, including paraphrases, negation, absent items, blank input and unsupported negatives. The combined new system returned the expected top result or abstention in 15 of 18 cases, compared with 10 of 18 for the original word matcher. Both used the same eight fictional inventory entries.

That headline needs context: on the eight paraphrase/ordinary-search cases alone, the new system scored 5/8 and the word matcher 7/8. The overall gains mainly came from exclusions and abstention. Two paraphrases fell below the unchanged 0.40 threshold, and an unsupported negative triggered clarification. We do not claim universal semantic-search superiority, calibrated confidence or a real-world recovery rate. This is a small development fixture, not a user study.

The browser test also verified inventory re-embedding, search in an already loaded offline tab, exclusion behavior, mobile layout without horizontal overflow, and inert rendering of HTML-like item text. During the recorded test sequence, all 12 observed asset requests were same-origin GETs; no query POST or third-party request occurred.

Privacy, dependencies and limits

The app host supplies approximately 45 MB of model, tokenizer and runtime assets on first use. The host sees asset-request connection metadata. Query and inventory text stay in the browser; there is no analytics service, cloud inference call, account, GPU requirement or paid API. A loaded tab can continue searching without a connection. Offline first visits and reloads are not promised.

The model and Transformers.js use Apache-2.0; ONNX Runtime uses MIT. Versions, exact model revision, checksums, notices and reproduction instructions are supplied. The model and runtime are obtained from their public distribution sources during deployment preparation, then served from the application's own origin.

Current limits include English-only input, a small inventory, limited exclusion grammar, false negatives from the heuristic threshold, and state that resets on reload. All demo items are fictional. No face, voice or owner identities are included.

What's next

Test a separate, independently collected and consented evaluation set; improve paraphrase recall without forcing unrelated matches; and validate the matching workflow with lost-property staff before making impact claims.

Built With

Share this project:

Updates

Submission history