模型項目構建時令作者意外的三件事:重跑結果相同,正則表達式勝過提示詞
Three things that surprised me while building this: Re-runs were identical - Same model, same prompt, `temperature: 0`: byte-for-byte the same failures every time. That turned prompt tweaking into real A/B testing. **A regex beat the prompt.** I
開發者分享構建過程中的發現:在 temperature: 0 下,同一模型使用相同提示詞重跑,每次的失敗結果都逐字相同。這令提示詞調整成為真正的 A/B 測試;正則表達式的效果勝過提示詞。
DEV Community
0 Add reaction
0 Like
0 Unicorn
0 Exploding Head
0 Raised Hands
0 Fire
0 Jump to Comments 0 Save Boost
Pick as gem
Copy link
Copied to Clipboard
Share to XShare to LinkedInShare to FacebookShare to Mastodon
Khushighosh Posted on Oct 18
Three things that surprised me while building this:
Re-runs were identical - Same model, same prompt, temperature: 0: byte-for-byte the same failures every time. That turned prompt tweaking into real A/B testing.
A regex beat the prompt. I
Sign in to view linked content
Top comments (0)
Subscribe

Personal Trusted UserCreate template Templates let you quickly answer FAQs or store snippets for re-use.
Submit PreviewDismiss
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
- [x] Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
Tiger Data (Creators of TimescaleDB)Promoted
Agent Memory Is a Search Problem, Not a Storage Problem
Long-term conversational memory is the ability to recall and reason over months of past conversations. It is one of the hardest unsolved problems in AI assistants, and the field has converged on a shared assumption about how to solve it.
Google CloudPromoted
Build Agents and Models on One Platform
Follow
A code explorer | Building web apps, AI experimentations & IoT projects | Currently learning, building and breaking things | Making something new everyday |
- Location Bangalore, Karnataka
- Pronouns Her
- Joined Sep 30, 2026
More from Khushighosh
SentryPromoted
PSA: If you're using Claude Code, you can monitor every session with Sentry
Google CloudPromoted
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime
👋 Kindness is contagious
Take a moment to explore this thoughtful article, beloved by the supportive DEV Community. Coders of every background are invited to share and elevate our collective know-how.
A heartfelt "thank you" can brighten someone's day—leave your appreciation below!
On DEV, sharing knowledge smooths our journey and tightens our community bonds. Enjoyed this? A quick thank you to the author is hugely appreciated.
Okay
DEV Community — A space to discuss and keep up software development and manage your software career
Built on Forem — the open source software that powers DEV and other inclusive communities.
Made with love and Ruby on Rails. DEV Community © 2016 - 2026.

We're a place where coders share, stay up-to-date and grow their careers.
來源:DEV Community · dev.to



Khushighosh