{"by":"unixpickle","descendants":22,"id":43373163,"kids":[43376482,43373454,43374953,43375647,43375332,43373523,43375116,43374572,43373398,43376657,43373842,43389581,43373490],"score":76,"text":"I made this website with my wife in mind; it makes it possible to browse for similar fashion products over many different retailers at once.<p>The backend is written in Swift, and is hosted on a single Mac Mini. It performs nearest neighbors on the GPU over ~3M product images.<p>No vector DB, just pure matrix multiplications. Since we aren&#x27;t just doing approximate nearest neighbors but rather sorting all results by distance, it&#x27;s possible to show different &quot;variety&quot; levels by changing the stride over the sorted search results.<p>Nearest neighbors are computed in a latent vector space. The model which produces the vectors is also something I trained in pure Swift.<p>The underlying data is about 2TB scraped from <a href=\"https:&#x2F;&#x2F;www.shopltk.com&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;www.shopltk.com&#x2F;</a>.<p>All the code is at <a href=\"https:&#x2F;&#x2F;github.com&#x2F;unixpickle&#x2F;LTKlassifier\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;unixpickle&#x2F;LTKlassifier</a>","time":1742052801,"title":"Show HN: Fashion Shopping with Nearest Neighbors","type":"story","url":"https://vibewall.shop/"}