Image Search With CLIP in Python: Tested on 12 Drawings
I searched twelve drawn pictures with sentences. It found the blue square. Left of a square, it got wrong.
Video #55 ยท RAG and vector search
Steps in the video
Files
- compare.py (34 lines)
- pictures.py (46 lines)
Tested with
Python 3.12.15 | fastembed==0.9.1
What this does not show
Twelve pictures drawn by the code, plain shapes on white, with sentences I wrote. One CLIP model of one size, one run. Twelve pictures cannot say how it behaves across thousands of real photos: a pattern, not a verdict.
Sources
Learning IT by Example.