Skip to content
ZLZaid Lattouf
WorkCapabilitiesContact ↗

How I build
AI and data
systems.

The engineering behind a useful answer, a reliable dataset and a system you can operate.

Agent systems and integrations

Typed tools, checked scope and context that stays attached.

Platform co-lead; voice and messaging owner; two Cloud Run MCP deployments.

Read-only request
WhatsAppLINEWeb

Find the relevant
source passage.

Question + account context
Source passage returned ↗
Context stays attached.
Typed tool contract

Read a source.

query
required
account scope
missingchecked
access
read only
Allowed inputs. Bounded access.
Scope requiredScope checkedRuntime boundary
Source-linked responsePassage + retained context
Following scroll
A typed contract and a checked scope connect the request to its source-linked response.Request. A read-only question arrives through an interface. The task is to find a relevant source passage.Contract. The proposed tool call is incomplete: the account scope is missing. It cannot execute yet.Check. The required scope is supplied and checked against the tool contract before execution.Return. A checked source passage returns to the interface. The contract and scope remain attached.

Conceptual read-only example. Interface labels illustrate the contract rather than a public API.

Agents & integrationsMemory & retrievalEvaluation & model selectionData engineeringApplied ML & scientific dataSoftware & cloud delivery

I build agents that retrieve information, carry context between specialist steps and use tools with explicit approval boundaries. My integration work includes AI agents that call service providers on a person’s behalf, alongside WhatsApp and LINE messaging.

  • Orchestration. Coordinate specialists and multi-step workflows with typed inputs and structured outputs.
  • Tool contracts. Expose scoped capabilities through MCP and APIs; validate arguments before execution.
  • Controlled action. Separate a proposed action, permission to call, the provider’s response and a confirmed calendar booking. These are distinct states.

Google ADK · LangGraph · MCP · FastAPI · OpenAI · Claude / Anthropic · Gemini

Production platform and integrations ↗Inspect a public tool-agent implementation ↗

Memory, retrieval and context

I was the primary engineer on a standalone memory service. The challenge is more than storing conversations: facts change, relationships matter, and a useful answer needs the right context now.

Primary engineer on the standalone memory service.

Same entityIdentity retainedRelated recordRelationship retainedVERSION 1 · HISTORYLINEVERSION 2 · ACTIVEWhatsAppCurrent preference?Select active versionRETURNED CONTEXTWhatsAppCurrent facts and retained versions inside a service boundary.Memory serviceSame entityIdentity retainedRelated recordRelationship retainedV1 · HISTORYLINEV2 · ACTIVEWhatsAppCurrent preference?Select active versionRETURNED CONTEXTWhatsApp
Standalone memory serviceSame entityIdentity retainedRelated recordRelationship retainedActive preferenceWhatsApp · version 2Retained historyLINE · version 1Current preference?Select active versionReturned contextWhatsApp · active version
Annotated service view
Following scroll
A new fact becomes current while the earlier version and unchanged relationships remain available.Context. One entity, a related record and an active preference share a service boundary.Update. A newer preference becomes active. The entity and its relationship stay the same.History. The earlier version is retained as history rather than overwritten.Retrieve. A current-preference query selects the active version. The returned context leaves the service; history stays available.

Conceptual service view. Depth distinguishes retained versions, not physical database storage. The LINE → WhatsApp preference update is illustrative.

  • Service design. Separate memory from the orchestrator so it can be queried and maintained independently.
  • Changing facts. Version updates and retain relationships and earlier context.
  • Retrieval choices. Combine structured context and vector retrieval, then test representation and ranking decisions.

PostgreSQL · pgvector · Python · FastAPI · RAG

Inside the memory service ↗Historical retrieval experiment ↗

Evaluation, model selection and cost

I build the harness as well as the agent. Retrieval scores, task outcomes, latency and cost answer different questions; choosing a configuration means examining the tradeoffs together.

Authored the memory evaluation harness; independent Agent Cost Down build.

Before the runAllowance reservedUncertain usage retains its reservation.
Original task snapshot

Store state

Preserved for a clean restart
First attempt

Nemotron
Nano

Proposed action
Runtime checkAction rejected
Policy permits another attempt

Nemotron Ultra

Clean restart from original snapshot
Independent outcome check

Accepted ≠ correct.

RuntimeAccepted
OutcomeMismatch found
Following scroll
A rejected attempt can restart cleanly; runtime acceptance and independent correctness remain separate.Reserve. A conservative allowance is reserved before the run. The original task snapshot stays available.Reject. A deterministic runtime check rejects the attempted action. That verdict governs the retry policy.Restart. The larger model starts clean from the original snapshot, within the run allowance.Evaluate. The runtime accepts the final action, but independent outcome checks can still find a mismatch.

Conceptual Agent Cost Down trace, not a measured run. Routing, runtime acceptance and outcome correctness are separate.

  • Evaluation design. Author datasets, adversarial cases and independent checks. Inspect category failures behind Recall@k and MRR.
  • Model routing. In Agent Cost Down, deterministic runtime checks control retries and escalation between NVIDIA Nemotron models.
  • Cost accounting. Record attempts, token usage and latency; reserve budget before execution and retain uncertain charges.

Python · pytest · NVIDIA Nemotron · Nebius Token Factory · SQL

Inspect Agent Cost Down ↗April 2026 retrieval evaluation ↗

Data engineering and document intelligence

I built an eight-stage platform for manufacturer manuals. It used inexpensive models for clear classifications and reserved deeper checks for uncertain cases. A separate identity check determined which appliance each manual described.

Designed, built and operated the processing and recovery systems at eeva.

Original source · kept

Manufacturer
manual.

Model: A-240

Text PDFScanned PDF
Example manual · page 04
Extraction choices

Read what
is there.

Text PDFLocal extraction
Scanned PDFNeeds OCR
Escalate when quality requires it
Richer processingOCR + layout

Recover text from the scan.

Document-grounded identity

Check the source.

Printed on page 04: A-240

Proposed A-204Supported A-240
Unresolved identity stays flagged
Separate release decisionQuality review

Preservation checks
and human review

Prepared example

# Care
and cleaning

Keep the heading and its passage together.

Manual A-240 · page 04
Outside the accepted setNeeds review

Identity unresolved.
Candidate held.

Source identity stays attached
Separate backend delivery Approved manifest + verification
Following scroll

Start with the original file

A text PDF and a scanned PDF enter with their source identities attached. The originals remain available for inspection.

Spend richer processing where it helps

The text PDF uses local extraction. The scan needs OCR. A difficult file takes a different route instead of forcing every document through the most expensive method.

Check the identifier against the page

The filename suggests A-204. The model plate on page 04 says A-240, so the record keeps A-240. Filename evidence can help fill a missing field under additional checks.

Keep unresolved work outside the release

The prepared passage retains its manual and page reference. A separate candidate with unresolved identity stays in review. Publication and backend delivery are separate workflows.

Illustrative documents and decisions. This is a read-only explanation of the production workflow.

  • Economical extraction. Start with local tools, then use OCR or layout analysis when the document needs it. Language-aware checks help distinguish valid text from corruption.
  • Source-grounded identity. Check brand and model against the manual. A filename can supply a missing field under strict checks. An unsupported model stays flagged.
  • Targeted recovery. Repair missing structure, damaged extraction or conflicting metadata through different paths. Reuse trustworthy work and preserve the original source.

Python · PostgreSQL · Azure Container Apps Jobs · Blob Storage · Document Intelligence

Document platform at scale ↗Operating the collection platform ↗

These examples describe production manuals work. Independent advertising-data projects separately exercise reconciliation and dataset-release patterns using synthetic records.

Applied ML and scientific data

In independent projects using NASA datasets, I connect scientific data preparation, evaluated models and AI-assisted exploration. The model's scope and the origin of its evidence stay visible.

Independent projects using NASA datasets, including catalog classification experiments.

Preserved NASA catalog source

Records with
provenance.

Source · retrieval · version
TrainFit baselines
ValidationSelect configuration
Held outAssess after selection
Star A
Observation A1Observation A2One group stays together
Star B
Observation B1Observation B2One group stays together
Star C
Observation C1Observation C2One group stays together
Validation-led selectionBaseline → chosen configuration
Held out, untouchedAssess after selection
Following scroll
Observations from one star stay together; validation selects configuration before held-out assessment.Source. Catalog records retain source identity. Multiple observations can belong to the same star.Group. All observations from each star stay together when assigning experiment partitions.Select. Validation supports baseline and configuration choices. The held-out group stays untouched.Assess. Only after configuration selection is the held-out group used for assessment.

Illustrative catalog grouping informed by independent work. No split proportions or measured accuracy are depicted; this is not raw-light-curve discovery.

  • Reproducible inputs. Preserve source URLs, retrieval details and dataset versions through preparation.
  • Experiment design. Use baselines, grouped or held-out splits and validation-led choices to limit leakage.
  • Grounded exploration. Let AI tools request bounded calculations and return cited evidence, with prepared fallbacks when live AI is unavailable.

Python · pandas · scikit-learn · DuckDB · pvlib · OpenAI

Software, cloud and delivery

I connect application engineering with the environment it runs in. At eeva, that included cloud ownership across development, staging and production, alongside migrations, recovery and handover.

Cloud ownership at eeva across environments, deployment, access and recovery.

DevelopmentModernised
StagingCreated
ProductionModernised
Delivery

Configuration
you can repeat.

Terraform + BicepGitHub Actions

Scoped access.

Identity · secrets · private connections

Recover. Retain.

Monitoring · migration recovery · runbooks
Following scroll
Separate environments expose delivery, access and recovery responsibilities.Environments. Development, staging and production are separate environments with their own configuration.Delivery. Infrastructure definitions and delivery controls support the environments without implying a promotion order.Access. Identity, secrets and private access are explicit responsibilities alongside the application.Recovery. Monitoring, recovery and runbooks retain operating knowledge beyond a deployment.

Conceptual responsibilities across separate environments. This is neither a deployment order nor a combined Azure and Google Cloud topology.

  • Software foundations. Build Python APIs and TypeScript interfaces with tests, typed contracts and database-backed services.
  • Repeatable delivery. Define infrastructure, automate deployments and manage identity, secrets and private connections.
  • Operational ownership. Diagnose failures, recover migrations and turn the findings into monitoring and runbooks.

Python · TypeScript · PostgreSQL · Docker · Azure · Google Cloud · Terraform · Bicep · GitHub Actions

Cloud foundation and migrations ↗Shared operating controls ↗

Claude Certified Architect - Foundations

Anthropic · issued 5 November 2026 · expires 5 November 2027

Certification coverage: agentic architecture and orchestration, tool design and MCP, Claude Code workflows, structured output and prompt design, context management and reliability.

An assessed foundation alongside the implementation evidence above.

View credential ↗

Let's build it.

zaid.lattouf@gmail.com ↗
GitHub ↗