# Applied AI Engineering, in public — with proof

Raphael Budin — PHP/Laravel developer (strong in n8n) moving to Applied AI Engineer,
aiming at international interviews. A topic is only **Verified** when it points to
public, concrete evidence — never because it was studied.

Canonical page: https://brag.raphaelbudin.com.br/learning · Portfolio: https://brag.raphaelbudin.com.br/ · GitHub: https://github.com/RaphaelBudin

## Now

Phase 0 — Baseline & environment

Actually own the rag-support-agent: read every module, write the architecture map, and be able to explain it in English without a script.


- [Building] Own the rag-support-agent (read every module, explain it in my own words)
- [Building] Honest spoken-English baseline (5 min explaining the RAG, no script)
- [Building] Public learning-log + API budget cap (US$100)

**Next experiment:** Run the eval harness on the current dataset and record Recall@k, cost and latency as an honest baseline.

## Evidence ledger (1 of 4 Verified)

### [Verified] Hybrid retrieval (BM25 + dense + RRF) — measured, not assumed

**Tracks:** AI Engineer

**Claim:** I can explain when BM25 complements dense search, fuse them with Reciprocal Rank Fusion and measure the result.

**Result:** Paid path measured at ~US$0.39 per 1,000 queries; keyless mode runs at US$0. Hybrid beats BM25-only or dense-only on the current dataset.

**Trade-off:** RRF adds latency and operational complexity over a single retriever.

**Revisit when:** Corpus size or query distribution shifts enough to change the BM25/dense balance.

**Evidence:**
- case-study — Public repository — hybrid retrieval + eval harness: https://github.com/RaphaelBudin/rag-support-agent
- adr — README — technical explanation of the retrieval design: https://github.com/RaphaelBudin/rag-support-agent#readme

The real starting point of this journey: `rag-support-agent` already runs in
production with hybrid retrieval, an eval harness and observability. This topic
is `verified` because the capability is demonstrable today — public code, a
measured result and an explicit trade-off — not because a course was watched.

The open delta (tenant isolation and reranking) lives in Phase 3 and shows up as
`not-started` under Projects, not here.

### [Building] Honest spoken-English baseline (5 min explaining the RAG, no script)

**Tracks:** Interview & English

**Claim:** I can explain the RAG architecture for 5 minutes in English, unscripted, and watch it back without cringing.

**Result:** To be recorded. No fabricated URL until the video actually exists.

**Revisit when:** After recording and reviewing; if it stalls, a fixed slice of the weekly 2h goes to fluency (shadowing/mocks).

English is already confirmed at C1, so this is calibration, not a gap: recording
the baseline is how the live technical explanation gets measured — the "explain
it for 5 minutes without a script" gate of the Definition of Done. The evidence
field is deliberately empty while the video does not exist: the schema requires
evidence for `verified`, never for `building`.

### [Building] Own the rag-support-agent (read every module, explain it in my own words)

**Tracks:** AI Engineer

**Claim:** I can walk through every module and explain why it exists, not just that it exists.

**Result:** Architecture map being written; test failures being reproduced and explained.

**Revisit when:** After the Phase 0 baseline video, once the explanation fits in 5 minutes without a script.

**Evidence:**
- case-study — Repository under module-by-module review: https://github.com/RaphaelBudin/rag-support-agent

A direct answer to the risk of "I only directed the AI, I did not write the
code": before anything new, read every module, run the tests, fix and explain
the failures, and write the architecture map. It only becomes `verified` when
all four Definition-of-Done gates are met — including explaining it in English.

### [Building] Public learning-log + API budget cap (US$100)

**Tracks:** AI Engineer

**Claim:** I have a public record of progress and a spend alert that fires before the cap is hit.

**Result:** This page is part of the learning-log. Budget alert still being configured.

**Revisit when:** When the first paid provider enters the rotation and the alert needs a real test.

The minimum infrastructure to sustain the whole roadmap: a public place to record
evidence (this ledger) and a cost ceiling with an alert, starting at the US$100
cap. Without both, "study in public" degrades into a diary with no proof, and
the cost becomes a surprise.

## Learning map

3 tracks + 3 continuous · 9 phases · 660h of deliberate practice

- **AI Engineer** (roadmap) — Production RAG with evaluation, citations, abstention, security and observability.
- **AI Agents** (roadmap) — Agent loop with tools/MCP, least privilege, human approval and failure recovery.
- **API Security** (roadmap) — Secure API: per-tenant authn/authz, rate limiting, validation, auditing and abuse tests.
- **DSA in Python** (continuous) — 2–3 problems/week, starting once the Python foundation is in place. Comfortable with mediums by the back half of the roadmap.
- **System Design** (continuous) — A fixed slice of the weekly 2h: caching, queues, sharding, back-of-envelope. ~1 written design/month.
- **Interview & English** (continuous) — English C1 confirmed — maintained via live technical explanation and mocks (2 coding, 2 system design, 2 AI design).

### Baseline — Baseline & environment (30h, 0 of 3 Verified, current)

**Goal:** Turn existing projects into a verifiable baseline; set up environment, API budget and a public learning-log.

**Proof:** Video: "How my RAG support agent works — and where it can fail."

### P1 — Python & backend for AI (90h)

**Goal:** Modern Python, FastAPI/Pydantic, Postgres/migrations, Docker, pytest, lint and CI applied to the RAG.

**Proof:** PR/write-up: "Adding an authenticated, tested endpoint to a RAG service."

### P2 — LLM fundamentals in production (60h)

**Goal:** Tokens/context/cost/latency, prompt as a contract, structured output, tool calling, model selection.

**Proof:** Public table with ≥30 cases + video "How I choose an LLM for a production feature."

### P3 — RAG beyond the demo (90h, 1 of 1 Verified)

**Goal:** The delta over what already exists: tenant isolation, reranking and deep ownership of the hybrid retrieval.

**Proof:** "Making a RAG support assistant trustworthy: hybrid retrieval, citations and tenant isolation."

### P4 — Evals, observability & AI security (90h)

**Goal:** Golden datasets, regression in CI, tracing/rollback, injection/PII/moderation, cache/fallback/circuit breaker.

**Proof:** Incident video: regression, trace, hypothesis, fix and a preventive test.

### P5 — Agents: loop, tools & guardrails (90h)

**Goal:** Perceive/plan/act/observe loop, schemas, idempotency, human-in-the-loop and authorization.

**Proof:** "An agent may propose; a human authorizes." (tool calls, approval and block)

### P6 — MCP, agent architectures & evaluation (90h)

**Goal:** MCP and its security, client/server/scopes, when NOT to use multi-agent, evaluation/tracing/cost.

**Proof:** ADR: "Why this agent uses MCP, and why it does not use multiple agents."

### P7 — API Security (45h)

**Goal:** HTTPS/secrets/CORS/headers, OAuth/JWT/rotation, rate limits/quotas/idempotency, tenant and abuse tests.

**Proof:** "Threat-modeling an AI agent API." (threat before/after across both projects)

### P8 — Capstone & portfolio (75h)

**Goal:** Best project in production under a cost cap, professional README, 3 case studies and 6 mock interviews.

**Proof:** Someone else can clone, understand, reproduce and see an honest account of the limits.

## Projects

### [Verified] RAG Support Agent

**Problem:** A support assistant that answers from its own corpus, with citations and abstention when it does not know.

**Architecture:** Python/FastAPI. Hybrid retrieval BM25 + dense with Reciprocal Rank Fusion (RRF). Own eval harness and observability. Keyless by default (runs at US$0).

**Cost per 1,000 queries:** ~US$0.39 (baseline US$0 (keyless mode), USD / 1k queries; dataset: Internal support-question set; Token accounting over the paid provider path; keyless path measured at zero external spend.)

**Limitation / next:** Single-tenant today. Tenant isolation + reranking are the planned delta in Phase 3.

**Repository:** https://github.com/RaphaelBudin/rag-support-agent

### [Not started] Agent with tools / MCP

**Problem:** An agent that proposes actions but requires human approval, with least privilege and failure recovery.

**Limitation / next:** Starts in Phase 5. No fabricated content until real code exists.

### [Not started] API Security service

**Problem:** Threat model both projects, mitigate the top three risks and document residual risk.

**Limitation / next:** Starts in Phase 7. Becomes concrete evidence for the API Security track (control → test → commit).

## Cost & quality

- **RAG Support Agent — Cost per 1,000 queries:** ~US$0.39 (baseline US$0 (keyless mode), USD / 1k queries)
- **Agent with tools / MCP:** not measured yet — starts in Phase 5.
- **API Security service:** not measured yet — starts in Phase 7.

## Failure log

Nothing logged yet. The first honest post-mortem lands in Phase 4 (evals & observability) — no invented incidents before then.
