Home › Key concepts › Deterministic first

Key concept · Crawl (beginner) · the same on every platform

Deterministic first

If ordinary code can do it, code does it. The model handles only the part that needs judgement.

What it is

Deterministic code gives the same output for the same input, every time, and can be tested completely. A model is flexible but can be wrong in new ways. So route, validate, calculate and look up in code, and use the model only for understanding language or open-ended judgement.

Why it matters

It makes systems cheaper, faster and safer, and it makes failures easy to find.

An example

Checking a policy's excess is a database lookup. Reading a messy accident description to find the date and place is a model's job.

The common mistake

Asking a model to do arithmetic or to decide permissions.

Where you meet it on each platform

The idea stays the same; only the product name changes.

JobAWSAzureGoogle CloudDatabricksOpen source
Model APIcall a large language modelAmazon BedrockAzure OpenAI in Microsoft FoundryGemini on Vertex AIFoundation Model APIsOllama, or a free hosted open model
A language, properlyPython first: functions, classes, tests, packagingPythonPythonPythonPythonPython

Related ideas

Where it shows up

Part of the Crawl level on these paths: AI Engineering (working with models) · Forward Deployed Engineering (understand).