Minifying HTML for GPT-4o: Remove all the HTML tags
11–20 of 52 posts
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#12Is .8 or .9 considered good enough accuracy for something as simple as this?
Chain of thought or some similar strategies (I hate that they have their own name and like a paper and authors, lol) can help you push that 0.9 to a 0.95-0.99.
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#13Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#14Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#15I use more or less this code as a starting point for a variety of use cases and it seems to work just fine for my use cases (scraping and processing travel blogs which tend to have pretty consistent layouts/structures).
Some variations can make this better by adding logic to look for the `main` content and ignore `nav` and `footer` (or variants thereof whether using semantic tags or CSS selectors) and taking only the `innerText` from the main container.
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#16Isn't GPT-4o multimodal? Shouldn't I be able to just feed in an image of the rendered HTML, instead of doing work to strip tags out?
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#17If I was not a human but some other kind of being suspended above this situation, with no skin in the game so to speak, it would all seem so terribly inefficient... But as fleshy mortal I do understand how we got here.
Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#18I 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
#19Re: Minifying HTML for GPT-4o: Remove all the HTML tags
#20I 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…
Instead, using some random, messy, scattered-with-spam site would be a much more realistic test environment.