← All posts
Careers

How to become an AI engineer, from a full-stack developer who is doing it

What the AI engineer job actually is, what carries over from web development, what is new, a learning order, three portfolio projects, and the security basics I wish I had known.

If you want to know how to become an AI engineer, here is the short version: learn to call a model from code, wrap it in retrieval, evaluation, tool use and guardrails, and ship the result inside a normal application. That is the job. Most of it is integration, not training. I have been a full-stack developer for six years and I am roughly a year into making this move, so this is a report from the middle of the road.

What the AI engineer job actually is

Students picture an AI engineer training models on a GPU cluster. Some people do that; they are usually called ML engineers, and they are a small minority of the postings I see. The role most companies are hiring for looks like this:

  • Calling a model through an API, with the streaming, retries, timeouts and rate limits that come with it.
  • Retrieval: chunking documents, embedding them, and pulling the right context into the prompt. If that is new to you, read my earlier post on what RAG is first.
  • Prompt and tool design: the system prompt, the functions the model may call, and what it may do with the results.
  • Evaluation: proving the thing works, and keeps working after you change a prompt.
  • Cost and latency: tokens are money and time.
  • Guardrails: input filtering, output checks, and limits on what the model can touch.
  • Shipping all of that behind a normal endpoint with normal auth, logging and deploys.

Most of that is work a web developer already does. That is why the "you need a PhD" advice is wrong for this role.

What transfers from full-stack, and what does not

APIs. A model call is an HTTP request with a JSON body. Idempotency, back-off when the provider returns a 429, streaming partial responses to the browser: all familiar.

Data modelling. Retrieval is a data problem before it is an AI problem. Which documents, what metadata, how to chunk, what to store next to the vector so you can filter by tenant or date. If you have designed a schema, you have done the hard thinking.

Testing and observability. The same instinct, pointed at a noisier system.

Now the parts that were genuinely new to me.

Non-determinism. The same input can produce a different output. My first instinct was to set temperature to zero and call it fixed. It is not fixed, only less variable, and the provider can change the model under you. You design for a range of outputs rather than one.

Evaluation is the hard part. In web work, a test passes or fails. Here, "the answer is good" is a judgement. You end up building a set of inputs with expected properties, scoring outputs with exact checks, heuristics and sometimes a second model as judge, and tracking the score over time. I am still working out how big an eval set needs to be before I trust it.

The model reads untrusted input as instructions. This changed how I think about the whole stack, so it gets its own section.

The security basics I wish I had known on day one

As a web developer I learned early never to put user input into a SQL string. The AI equivalent is that every piece of text the model reads is potentially an instruction, and the model cannot reliably tell yours from the attacker's. Simon Willison named this prompt injection, and Kushagra's post on what prompt injection really is explains the mechanism better than I can.

What it meant for my code:

  • A retrieved document can contain text telling the model to do something else. The retrieval pipeline is an input channel, not a trusted store.
  • A tool result is also an input. If a web fetch returns a page saying "ignore previous instructions", that text lands in the context with the same standing as my system prompt.
  • The system prompt is neither a secret nor a security control. It is a hint the model usually follows.
  • Anything the model can do with a tool, an attacker who can get text in front of the model can attempt. The permission on the tool is the real boundary, not the wording of the prompt.

I did not know any of this when I built my first chat feature. I gave the model a tool that could read anything the service account could read, and relied on the prompt to keep it polite. That is the pattern the OWASP Top 10 for LLMs spends several entries warning about.

The defence is cheap to describe and tedious to do: scope every tool to the minimum data and action, run the model with the user's permissions rather than the service's, put anything that writes or sends behind a confirmation, and log every tool call with its arguments. The cost is plumbing, plus the argument with product about why the agent cannot "do everything".

How to become an AI engineer: the learning order that worked for me

I tried theory first and stalled. Building, then backfilling theory at each wall, worked.

  1. Make one model call from your preferred language. Stream the response to a page. Handle the error cases.
  2. Add structured output: ask for JSON, validate it against a schema, handle the case where the model ignores you.
  3. Build retrieval over a small set of documents you know well, so you can tell when it pulls the wrong thing.
  4. Write your first eval: twenty inputs, a scoring function, a number you can watch.
  5. Add one tool the model can call. Then reread the section above and reduce what that tool can do.
  6. Only now go to the fundamentals. Yash's machine learning roadmap covers the maths and the classic models in a sensible order, and it made far more sense to me once I had a working app to hang it on.

Step 4 is the one people skip, and it is the one that separates a demo from a product.

Three portfolio projects with evaluation built in

Hiring managers have seen a thousand "chat with your PDF" demos. What they rarely see is a README that says how you know it works. Make the eval the headline of each project.

A support assistant over real documentation. Pick an open-source project with a large docs site. Build retrieval, answer questions, cite the page. The eval: questions with known correct pages, and a retrieval hit rate you report honestly, failures included.

A structured extraction service. Turn messy text (invoices, job adverts, meeting notes you write yourself) into validated JSON. The eval is nearly free because you can hand-label the expected output. Show what happens when the input is adversarial and how schema validation catches it.

A small agent with one or two tools, and a threat model. Give it a to-do list you control, let it act, then write down what an attacker could do by putting text in front of it. Build the controls. Run the finished thing through the AI Audit and put the before-and-after score in the README. That section will say more about your judgement than any certificate.

Keep each one small enough to finish. I say that with a graveyard of ambitious ones behind me.

Frequently asked questions

Do I need a maths or ML degree to become an AI engineer? Not for the integration role described here. You need to be a solid software engineer first, comfortable with APIs, data and testing. The maths matters more if you move towards training or research, and you can backfill it later, as I am doing.

How long does the transition take? I cannot give you a number that would be true for you. For me, a working side project took a few weeks of evenings; being able to defend my design choices in a review has taken most of a year and is still in progress. Evaluation and security are the slow parts.

What is the first thing to do today? Make one model call from a script and write one test for it. Then read the OWASP LLM post before you add a tool. If you already have an LLM feature in production, run it through the AI Audit this afternoon and see which questions you cannot answer; those are the things to learn next.

CareersAI explained
Forty questions, and the follow-up each one invitesCareers

Machine learning interview questions, with the answers interviewers want to hear

Forty machine learning interview questions with short answers, what a good answer must contain, and the follow-up each one invites. Fundamentals to LLMs to AI security.

Real data you collected, a baseline you beat, something deployedCareers

AI/ML final year project ideas from someone who builds apps for a living

Twenty-one AI/ML final year project ideas filtered the way a hiring manager reads them: real data you collected, a baseline you beat, and something deployed.

Seven stages from Python to deployed modelsCareers

Machine learning roadmap for beginners (2027)

A seven-stage machine learning roadmap from Python to deployed models, with a free resource type per stage, a done test for each, and three portfolio projects.