1 hour ago · Tech · 0 comments

Over the weekend, I was checking Is Your Site Agent Ready? by Cloudflare, and one of the recommendations is to set up content negotiation to allow agents to consume Markdown instead of HTML. I recently wrote about serving Markdown to LLMs in Eleventy. We’ll build upon it for content negotiation, so if you haven’t read the first article, now is a good time. If you just want to get the code for the Netlify function, head to the repository. Content negotiation Content negotiation is a mechanism for serving different representations of the same resource at the same URL depending on the context. It’s not a novel idea, and is used all over the place, from image formats to internationalization purposes. When applied to AI, there is this idea that LLMs could be requesting Markdown by sending an Accept: text/markdown HTTP header, and servers would return a Markdown response instead of the usual HTML resource. This should significantly reduce token consumption, at least in theory. I think it’s…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.