Manraj Sidhu
Open on TikTok

AI engineer infrastructure: what to know in week 2

3 min readReel, Consultant to BuilderCareer & tech684 views

As an AI engineer, you need to understand infrastructure.

My first two weeks as an AI engineer: why understanding how your tools, databases and documentation connect matters as much as the agent itself. Enterprise databases (PostgreSQL, separate machines, Azure) are nothing like a personal project.

How to build it

This page gives you the infrastructure checklist from the post: what an AI engineer needs to understand about how tools, data and documentation connect before building the agent.

The infrastructure checklist

  1. Infrastructure of the tools, not just the agent: know how the tools you build will cooperate, because that matters as much as the agent itself.

  2. Data map: write down where data goes, which tool handles this step and which handles the next.

  3. Connecting code: use code to join the tools together.

  4. Documentation of each tool you connect to: be clear on how every tool works before you wire it in.

  5. Personal versus enterprise databases: a personal project's database is easy, but enterprise ones are very different.

  6. Where enterprise data lives: it might be on PostgreSQL, on a separate database machine, or stored in Azure environments.

  7. Agent access: know how your agent will interact with these systems.

  8. Context: know how the agent will get the context it needs to form a task.

How to set it up

  1. Sketch the build on one page: where the data starts, which tool handles each step and where results end up.

  2. Pick one tool per job on that sketch, so there is a tool for this and another tool for that.

  3. Read the documentation for every tool or database you will connect to before you write any code.

  4. Find out where each database actually lives: PostgreSQL, a separate database machine or an Azure environment.

  5. Write the code that connects the tools, one link at a time.

  6. Decide how your agent will reach each system and what it is allowed to do there.

  7. Decide how the agent gets the context it needs to form its task.

  8. Run one small task from start to finish and fix any link that breaks before adding more.

Watch out: don't focus only on the agent. Enterprise databases are nothing like a personal project, so find out what you are building on before you build.

Prompt to build your own

You are helping me plan an AI agent project before I build it. I am working on <describe your project or job> and I use <ChatGPT / Codex / Claude Code> to build. My data lives in <database or system, e.g. PostgreSQL, a separate database machine, Azure, or a spreadsheet>.
Do not write the agent yet. First produce an infrastructure plan:
1. A step-by-step map of where the data starts, which tool handles each step, and where results end up.
2. A list of every tool or database involved, with the documentation I should read for each and the questions I should answer from it.
3. A description of where each database is hosted and how the agent will connect to it, including what access it needs and what it should not be allowed to do.
4. How the agent will get the context it needs to form each task.
5. The code needed to connect the tools, as a short list of connection points.
Keep it in plain English, flag anything you have to assume, and ask me for any detail you are missing before you answer.

Follow for the next one

The longer version, by email

Or subscribe on Substack