Which system prompt...
 
Notifications
Clear all

Which system prompt works best for DeepSeek V4 Pro coding tasks?

3 Posts
4 Users
0 Reactions
449 Views
0
Topic starter

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:

  • write full files (no skipping)
  • stay strictly on fastapi
  • explain logic clearly

what prompt style actually works to keep it consistent? i cant afford to waste more time...


3 Answers
11

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.

  • wrap your core requirements in tags
  • use a 'zero placeholder' policy to stop it from skipping lines
  • explicitly force the output to be the full fastapi file I would suggest being very careful with how many tokens you burn. I actually bought a Keychron C3 Pro Mechanical Keyboard specifically because it was cheap and helped me type my own fixes faster when the AI glitched, which saved me from buying more credits. Just watch out for that laziness or it will blow your deadline and your wallet.


10

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.


1

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.


Share: