Re:Embeddings are a good starting point for the AI curious a...
by charlieyuan on Wednesday April 17, 2024 @03:06PM
(#40068844)
Lantern seems really cool! Interestingly we did try CLIP (openclip) image embeddings but the results were poor for 24px by 24px icons. Any ideas?
Charlie @ v0.app
Re:Embeddings are a good starting point for the AI curious a...
by ngalstyan4 on Wednesday April 17, 2024 @04:28PM
(#40069731)
I have tried CLIP on my personal photo album collection and it worked really well there - I could write detailed scene descriptions of past road trips, and the photos I had in mind would pop up. Probably the model is better for everyday photos than for icons
You can generate CLIP embeddings locally on the DB server via:
Then you can search for embeddings via: The approach significantly decreases search latency and results in cleaner code. As an added bonus, EXPLAIN ANALYZE can now tell percentage of time spent in embedding generation vs search.The linked library enables embedding generation for a dozen open source models and proprietary APIs (list here: <https://lantern.dev/docs/develop/generate>, and adding new ones is really easy.