Minifying HTML for GPT-4o: Remove all the HTML tags
1–10 of 52 posts
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#2https://github.com/pugjs/pug?tab=readme-ov-file#syntax
It is whitespace sensitive though, but essentially looks like that. I doubt this is the only unique template engine like this though.
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#3https://news.ycombinator.com/item?id=41428274
Edit: looks like it's actually the same author
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#4I think a much better test would be something like "List of elements by atomic properties" [1] that has a lot of adjacent numbers in a similar range and overlapping first/last column types. However, the danger with that table might be easy for the LLM to infer just from the element names since they're well known physical constants. The table of counties by population density might be less predictable [2] or list of largest cities [3]
The test should be repeated with every available sorting function too, to see if that causes any new errors.
[1] https://en.wikipedia.org/wiki/List_of_elements_by_atomic_pro...
[2] https://en.wikipedia.org/wiki/List_of_countries_and_dependen...
[3] https://en.wikipedia.org/wiki/List_of_largest_cities#List
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#5Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#6I don't think that Mercury Prize table is a representative example because each column has an obviously unique structure that the LLM can key in on: (year) (Single Artist/Album pair) (List of Artist/Album pairs) (image) (citation link) I think a much better test would be something like "List of elements by atomic properties" [1] that has a lot of adjacent numbers in a similar range and overlapping first/last column t…
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#7Is .8 or .9 considered good enough accuracy for something as simple as this?
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#8if you want the AI to be able to select stuff, give it cheerio or jQuery access to navigate through the html document;
if you need to give tags, classes, and ids to the llm, I use an html-to-pug converter like https://www.npmjs.com/package/html2pug which strips a lot of text and cuts costs. I don't think LLMs are particularly trained on pug content though so take this with a grain of salt
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#9I found that reducing html down to markdown using turndown or https://github.com/romansky/dom-to-semantic-markdown works well; if you want the AI to be able to select stuff, give it cheerio or jQuery access to navigate through the html document; if you need to give tags, classes, and ids to the llm, I use an html-to-pug converter like https://www.npmjs.com/package/html2pug which strips a lot of text and cuts costs. I…
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#10Is .8 or .9 considered good enough accuracy for something as simple as this?