hackhaton-space-stackHackhaton Space Stack
AcademyBuilder
Get Started
All terms
The Basics
  • Stack
  • Frontend & Backend
  • CLI
  • Monorepo
  • Server
  • Localhost
How AI Works
  • Context Window
  • Hallucination
  • Token
  • Prompt Caching
  • Session
  • Compaction
  • Embedding
  • Vector Database
  • RAG
  • Fine-tuning
  • Temperature
  • Inference
  • Reasoning
  • Multimodal
Building With AI
  • Agent
  • MCP
  • System Prompt
  • Skill
  • CLAUDE.md
  • Slash Command
  • Harness
  • Computer Use
  • Agents SDK
  • Voice Agents
  • OAuth
  • Vibe Coding
  • Permission Scope
  • Tool Calling
  • Prompt Injection
  • Eval
  • Guardrails
  • Sandbox
  • Progressive Disclosure
Code & Collaboration
  • Git
  • Commit
  • Branch
  • GitHub
  • Pull Request
  • Open Source
  • Markdown
  • Dependency
  • Merge
  • Fork
APIs & Connections
  • API
  • Auth
  • Database
  • ORM
  • SDK
  • Webhook
  • Endpoint
  • REST
  • HTTP Methods
  • Env File
  • Schema
  • JSON
  • YAML
  • Secret
  • Rate Limit
  • CORS
  • Cookie
  • Encryption
Shipping & Running
  • Deploy
  • Headless
  • Cron
  • DNS
  • CDN
  • Object Storage
  • Serverless
  • Edge
  • Worker
  • Runtime
  • Process
  • Daemon
  • Queue
  • Job
  • State
  • Cache
  • SSH
  • Build
  • Staging
  • Rollback
  • Docker
  • Feature Flag
  • Test
  • CI/CD
  • The Cloud
Debugging & Errors
  • Trace
  • Type Error
  • Stack Trace
  • Log
  • Bug
  • Patch
  • Latency
How Developers Think
  • DRY
  • YAGNI
  • KISS
  • Refactoring
  • Technical Debt
  • Async
← All terms

Type-safe, modern TypeScript scaffolding for full-stack web development

ThreadsGitHub

Info

  • Academy
  • Docs

Legal

  • Terms of Service
  • Privacy Policy

© 2026 Dzulhelmy Nazri

How AI Works

$definetemperature--plain-english

Temperature

TLDRThe dial between a careful clerk and a jazz solo.

Every reply is a sequence of bets.

The model ranks the next token. First place is the safe brick. Tenth place is the weird one. Temperature is the rule for how often it skips first place.

That is not a personality. It is not "smarter" or "dumber." It is a sampling setting on inference. Most chat apps hide it and pick a middle value. The moment you call an API yourself, you own the rule.

Treat it as a product decision:

  • Low when the next machine has to parse the output. Code you will run. A JSON body an agent will hand to a tool. Classification, extraction, "what is the exact flag." Ask twice, you want the same receipt twice.
  • Higher when you are generating options on purpose. Ten app names. Five taglines. A pile of demo scripts. You want second place to win sometimes, or every reroll is the same beige sentence.

People blame "the model" for two opposite sins. It repeats itself — the rule was too strict. It invents a package name — the rule was loose, and hallucination got a bigger door. Turning the number is not a fix for missing docs. It is a fix for how adventurous the next brick is.

Do not tune by feel on demo day. Change one setting, keep a tiny eval set — five prompts you already know — and look at whether the answers got more usable or just louder.

What this unlocks

You stop treating every bad output as a model problem. Sometimes the stack is fine and the sampling rule does not match the job: a clerk for the payload, a wanderer for the brainstorm.

Related

  • Inference
  • Hallucination
  • Eval
PrevFine-tuning

How AI Works

NextInference