logoalt Hacker News

wg0yesterday at 4:47 AM1 replyview on HN

Curious what your use case is if not confidential.


Replies

lubujacksonyesterday at 5:26 AM

Not confidential, but not super relevant, as this is something I have learned the hard way over the past year across various projects.

A lot of people have become prompt maximalists, asking for complex multi-part solutions or dynamic workflows in a single prompt. You can get this to work sort of reliably with frontier models, but without much confidence or clarity where things might break in practice. My goal is to strip out as much determinism as possible from prompts so the LLM only needs to handle a narrow, well-informed decision, like "Pick one of these three things" and build around the answer. Sometimes you need to fill out a whole JSON payload and LLMs really actually suck at manipulating and adhering to JSON. They do ok now because labs have put in a ton of effort on making harnesses play nice with structured data. But it comes at a high token and context cost because under the hood I suspect the model is churning invalid text repeatedly until it gets around to passing some internal validation.

show 1 reply