Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual search: Update grid with similar images using vector search #167

Open
akamil-etsy opened this issue May 5, 2023 · 7 comments
Open

Comments

@akamil-etsy
Copy link

akamil-etsy commented May 5, 2023

Description

is there a way to do something similar to https://same.energy/ by using typesense vector search and InstantSearch.js, i.e. when user clicks on an image update the hits grid with similar images retrieved via ANN. In other words image search from within the grid so users can refine the selection visually

i.m aware of typesense-instantsearch-semantic-search-demo but it has different functionality with click on Find Similar opening a separate window, and semantic search by text query rather than image.

@akamil-etsy akamil-etsy changed the title Update grid with similar images using vector search Search by image: Update grid with similar images using vector search May 5, 2023
@akamil-etsy akamil-etsy changed the title Search by image: Update grid with similar images using vector search Visual search: Update grid with similar images using vector search May 5, 2023
@jasonbosco
Copy link
Member

I'm actually working on a demo that is going to have a very similar "Pinterest-style" UI. But I wasn't planning to use Instantsearch.js for it, given that it wasn't designed to do this natively...

Any reason you want to use Instantsearch.js for it, vs building your own UI?

@akamil-etsy
Copy link
Author

akamil-etsy commented May 5, 2023

i dont have much experience with front end dev. looking forward for your pinterest style demo!

i think https://same.energy/ kind of UI would be ideal demo for Typesense, it has this 'wow factor' people like to share

@jasonbosco
Copy link
Member

jasonbosco commented May 5, 2023

Ha! I just noticed a search bar on top of same.energy, which I wasn't planning on initially. I'll try to see if I can do this with instantsearch.js first.

My dataset is going to be HN comments, so all text. But the concept is the same - take some data (in my case HN comments, in same.energy's case - images), generate embeddings for it, index it in Typesense and then do an ANN search as each result (text / image) is clicked.

@akamil-etsy
Copy link
Author

yeah, starting from text search and then refining visually is the most natural interaction it seems. The other option btw is starting from image and add text tags to refine

@jasonbosco
Copy link
Member

I do like the idea of starting from text search and then drilling down from there visually.

@akamil-etsy
Copy link
Author

akamil-etsy commented May 5, 2023

btw same.energy has text demo for tweets as well https://t.same.energy/ (blog post)

@jasonbosco
Copy link
Member

Oh interesting! Thank you for sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants