跳到正文
DEV Community· Khushighosh·· 4 小時前AI 評分20

模型項目構建時令作者意外的三件事:重跑結果相同,正則表達式勝過提示詞

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

AI 導讀

開發者分享構建過程中的發現:在 temperature: 0 下,同一模型使用相同提示詞重跑,每次的失敗結果都逐字相同。這令提示詞調整成為真正的 A/B 測試;正則表達式的效果勝過提示詞。

正文

Skip to content

Image 1: DEV Community

Powered by Algolia

Log inCreate account

DEV Community

Image 20 Add reaction

Image 30 Like Image 40 Unicorn Image 50 Exploding Head Image 60 Raised Hands Image 70 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

Share Post via...Report Abuse

Image 8: Khushighosh

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

Image 9: pic

Personal Trusted UserCreate template Templates let you quickly answer FAQs or store snippets for re-use.

Submit PreviewDismiss

Code of Conduct•Report abuse

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

Image 10: profile Tiger Data (Creators of TimescaleDB)Promoted


Image 11: Tiger Data image

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.

Read more →

Image 12: Google Cloud Google CloudPromoted

Image 13: Build Agents and Models on One Platform

Build Agents and Models on One Platform

Learn More →

Image 14 Khushighosh

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

Order Ledger: a WhatsApp-to-ledger side hustle that runs offline on open models #devchallenge#hf26challenge#ollama#ai

Image 15: profile SentryPromoted


Image 16: Sentry image

PSA: If you're using Claude Code, you can monitor every session with Sentry

See more 👀

Image 17: Google Cloud Google CloudPromoted

Image 18: Custom VMs From 1 to 96 vCPUs With 99.95% Uptime

Custom VMs From 1 to 96 vCPUs With 99.95% Uptime

Learn More →

👋 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.

Image 19: DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log inCreate account

Image 20Image 21Image 22Image 23Image 24

來源:DEV Community · dev.to