SproutStackSproutStack home

What is AI Engineering?

7 min readBeginner-friendlyFree to read

Read a little, play a little. No scary maths, and no rush.

Share:

The 30-second answer

AI engineering = building useful products with AI models. You take a model (like an LLM), connect it to your data, give it tools, test it, and ship it so real users can rely on it.

Think layers:

  1. Models — the brain (LLMs, vision, audio)
  2. Infrastructure — GPUs, APIs, vectors, queues
  3. Applications — chatbot, search, agent that solves a job

You will mostly work in layer 3.

AI vs ML vs DL vs GenAI

  • AI: any machine doing a smart task (rules count too)
  • ML: AI that learns from data instead of hand-rules (spam filter)
  • Deep Learning: ML with neural nets, great at images/speech/language
  • GenAI / LLMs: models that generate text, code, images from prompts

Beginner rule: if someone says “AI”, ask “which kind, and what data does it use?”

What you actually do daily

  • Write prompts with clear contracts (format, constraints)
  • Build retrieval so answers use fresh docs, not memory
  • Add tools (search order status, create ticket) with guardrails
  • Measure: accuracy, citations, cost, latency
  • Iterate: eval → fix retrieval → fix prompt → ship

A worked example: the returns assistant

Say an online store wants an assistant that answers "can I return this?" Here is how the work actually unfolds, layer by layer.

Version 1 sends the customer's question straight to an LLM. It answers confidently, and it is wrong: it describes a generic 14-day policy because it has never seen this store's rules. The model is fine. The application around it is missing.

Version 2 adds retrieval. The policy documents are split into chunks and indexed, and every question first fetches the most relevant chunks and pastes them into the prompt with an instruction to answer only from them. Now the assistant quotes the real 30-day electronics window and cites the page it came from.

Version 3 adds a tool. "Can I return order 4417?" needs the order date, which no document contains, so the assistant calls an order-lookup function and combines that live fact with the policy text.

Version 4 adds measurement. You collect 50 real questions with known answers, run them after every change, and track how many are correct, how many cite a source, what each answer costs, and how long it takes. Without this you cannot tell whether a prompt tweak helped or quietly broke ten other answers.

Notice that nobody trained a model. Every improvement came from data, prompts, tools, and evaluation. That is the shape of most AI engineering work.

Tiny code taste

# your first AI app in 20 lines (pseudocode)
from openai import OpenAI
client = OpenAI()
resp = client.chat.completions.create(
  model="gpt-4o-mini",
  messages=[
    {"role": "system", "content": "Answer only from provided context."},
    {"role": "user", "content": "Return policy? Context: Electronics 30 days..."}
  ],
  temperature=0.2,
)
print(resp.choices[0].message.content)

That is the whole loop you will master: context in → grounded answer out.

Who does this job

The titles overlap, so it helps to separate the work:

  • ML researchers invent new model architectures and training methods.
  • ML engineers and data scientists train and tune models on a company's own data, such as fraud scores or demand forecasts.
  • AI engineers take models that already exist, usually through an API, and turn them into reliable products.

The third role is the fastest-growing, and it rewards ordinary software skills more than heavy math: clean APIs, good logging, careful testing, and the habit of asking "how will this fail?" before users find out. If you can build a web app, you are closer to AI engineering than you might think. What you add is a feel for how models behave, and that is exactly what this track teaches.

Next

Continue to “How to Learn AI Without Math Fear”, then “What are LLMs?”.

Check your understanding

5 questions · first-try answers earn the most XP

1. Where does most day-to-day AI engineering actually happen, according to this chapter?
2. Which layer of the stack is RAG, and what does it do?
3. How do AI, ML, deep learning, and generative AI relate to each other?
4. What does the chapter's beginner rule say to do when someone uses the word 'AI'?
5. Why does the chapter insist on measuring accuracy, citations, cost, and latency rather than just answer quality?

My notes

Saved in this browser. Highlight a line above and save it, or write it in your own words.

Nothing saved yet. Your highlights will live here.

References

Finished reading?

Ticking it here also ticks the chapter in the sidebar, the section count and your streak — it is all one number.

Related chapters

Spotted a mistake or want a topic covered? Report an issue

📬 An occasional email when new lessons land

New lessons and showdowns, no more than a few times a month. No spam, unsubscribe anytime. We store your email only to send the newsletter.