Remix.run Logo
riskassessment 7 hours ago

> html

Would be willing to bet this is the issue. Adding html files to context for gemini models results in a ton of token use.

gcr 6 hours ago | parent [-]

why?

EDIT: why must users care?

kulahan 6 hours ago | parent | next [-]

Gotta learn all the quirks of the model before it's replaced in 8 minutes.

NaomiLehman 6 hours ago | parent [-]

Quirks? like context window?

kulahan 5 hours ago | parent [-]

I'm saying it's egregious to expect all users to know the fact that an HTML document, for some reason, uses an enormous amount of context in an LLM designed specifically for working with code.

SPICLK2 6 hours ago | parent | prev [-]

https://stackoverflow.com/questions/1732348/regex-match-open...

croes 6 hours ago | parent [-]

The accepted answer is one that doesn’t care about the questioner‘s use case and instead gives a pretty excessive "Don‘t do it"

lukan 4 hours ago | parent [-]

It does also give the right solution, using an xml parser.

croes 2 hours ago | parent [-]

We don’t know the use case.

Maybe the questioner is also in full control of the HTML creation and they don’t need a parser for all possible HTML edge cases.