{"by":"KhoomeiK","descendants":61,"id":40369319,"kids":[40369904,40370833,40369721,40369614,40369513,40370829,40373310,40378543,40371219,40370571,40373831,40371223,40373893,40370869,40374559,40370957],"score":192,"text":"Hey HN! I built a tool that gives LLMs the ability to understand the visual structure of a webpage even if they don&#x27;t accept image input. We&#x27;ve found that unimodal GPT-4 + Tarsier&#x27;s textual webpage representation consistently beats multimodal GPT-4V&#x2F;4o + webpage screenshot by 10-20%, probably because multimodal LLMs still aren&#x27;t as performant as they&#x27;re hyped to be.<p>Over the course of experimenting with pruned HTML, accessibility trees, and other perception systems for web agents, we&#x27;ve iterated on Tarsier&#x27;s components to maximize downstream agent&#x2F;codegen performance.<p>Here&#x27;s the Tarsier pipeline in a nutshell:<p>1. tag interactable elements with IDs for the LLM to act upon &amp; grab a full-sized webpage screenshot<p>2. for text-only LLMs, run OCR on the screenshot &amp; convert it to whitespace-structured text (this is the coolest part imo)<p>3. map LLM intents back to actions on elements in the browser via an ID-to-XPath dict<p>Humans interact with the web through visually-rendered pages, and agents should too. We run Tarsier in production for thousands of web data extraction agents a day at Reworkd (<a href=\"https:&#x2F;&#x2F;reworkd.ai\">https:&#x2F;&#x2F;reworkd.ai</a>).<p>By the way, we&#x27;re hiring backend&#x2F;infra engineers with experience in compute-intensive distributed systems!<p><a href=\"https:&#x2F;&#x2F;reworkd.ai&#x2F;careers\">https:&#x2F;&#x2F;reworkd.ai&#x2F;careers</a>","time":1715791575,"title":"Show HN: Tarsier – Vision utilities for web interaction agents","type":"story","url":"https://github.com/reworkd/tarsier"}