Optimizing product image alt text with an agentic cosine-similarity loop against Google embeddings

dejanseo · x · 2026-10-30

SEO practitioner dejanseo demonstrates an agentic optimization loop for e-commerce: pick a product image, embed image + alt text, score via cosine similarity against Google's embedding model, then iteratively rewrite captions to maximize the match.

His DEJAN App showcases the workflow on a Nike Mercurial product page, where each candidate caption is ranked by how closely Google's model places it next to the image. Users can paste a URL or upload an image to get rewritten alt text—directly reusable for e-commerce SEO/AEO.

Original post →

More from coding & agent

coding & agent channel →