ive been banging my head against the wall trying to get deepseek v4 pro to follow instructions for this inventory app im building for a warehouse here in ohio. the deadline is next friday and im super stressed. i saw one post saying to just say "you are an expert" but then some guy on discord said you need specific xml tags for v4 to stop it from being lazy and skipping code. idk what to believe.
i need it to:
what prompt style actually works to keep it consistent? i cant afford to waste more time...
I went through this exact same panic last month while trying to build a shipping tracker on a shoestring budget. Spent way too much on tokens before I realized the model was just cutting corners to save processing. You might want to consider a very rigid XML structure because if you dont, you will literally throw money away on broken code. Make sure to keep your instructions grounded so it doesnt skip logic to save time.
TL;DR: Force a scratchpad. In my experience, telling v4 to reason step-by-step before generating full files kills laziness. Tried many variants over the years. ASUS ProArt PA329C 4K Monitor helps.
Just saw this thread and yeah, the scratchpad suggestion is totally the way to go. I would suggest you also watch your token consumption though, especially if you're trying to stay under budget. v4 gets pricey when you demand full files every time. One thing to add is to tell the model to provide complete functional code without any placeholders right at the start. I've noticed it sometimes tries to save space with comments like // your code here, which is super frustrating when you're paying for the output. Be careful about asking for too much at once, as the context window might cut you off mid-file. I usually break the FastAPI routes into smaller chunks to keep things manageable and cheaper. It's a bit tedious but it definitely keeps the logic more consistent for a warehouse app.