HITARTH DESAIAI SYSTEMS ENGINEERWRITING—— —— IST OPEN TO ROLES

← Writing

Jun 20, 2026 · 5 min read

Beyond Prompt Engineering: The AI Systems Layer Production LLM Apps Need

Most LLM products start with a prompt.

Also on Medium: Beyond Prompt Engineering: The AI Systems Layer Production LLM Apps Need.

That is a sensible place to start. The prompt is where the first prototype happens, where the first internal demo lands, and where the first stakeholder starts to believe the product might work.

But the prompt is not where production reliability comes from.

The moment an LLM feature touches real inputs, downstream systems, or customer-facing workflows, the real engineering problem changes. The question is no longer only "can the model do the task?" It becomes:

  • Can the output be shaped into a contract another service can trust?
  • Can failures be detected instead of silently accepted?
  • Can the same run be inspected and explained later?
  • Can cost stay bounded when usage spikes?
  • Can the product say what it measured, what it skipped, and where the result came from?
  • Can the workflow survive model drift, schema drift, and ugly real-world inputs?

That is the layer I care about: the AI systems layer after prompt engineering.

Prompt engineering is necessary, not sufficient

Prompt engineering matters. Better instructions, better examples, and tighter task framing can improve output quality quickly.

The mistake is treating the prompt as the reliability boundary.

A prompt can ask a model to return JSON. It cannot guarantee the JSON is valid, typed, semantically correct, complete, or safe for downstream use. A prompt can ask for citations. It cannot guarantee the product actually inspected and tracked the underlying sources. A prompt can ask for consistency. It cannot replace schema versioning, retry budgets, validation telemetry, or replayable traces.

In production, the model is one probabilistic component inside a system that has to behave predictably anyway.

That is the distinction I care about:

  • Prompt engineering improves model behavior.
  • AI systems engineering makes the product reliable even when the model is imperfect.

The output contract is the real product boundary

If a model is writing prose for a human, the human can interpret the ambiguity.

If a model is returning data to software, the software needs a contract.

In extraction systems, that contract might be an invoice schema, a claims schema, or a lead-enrichment object. In agent systems, it might be a tool-call contract with typed arguments and bounded action shapes. In AI visibility products, it might be a ranked report with source metadata, scoring, provider coverage, and explicit failure states.

The exact schema changes by product. The principle does not:

Model output should not cross into the rest of the system until it has been constrained, validated, and made observable.

That is why I built confident-extract, an open-source Python library for deterministic, schema-constrained extraction from LLMs. It packages a boundary I kept needing in real systems: schema in, constrained generation, strict validation, typed output out.

The specific library is less important than the pattern. Every serious LLM product eventually needs a hard boundary between probabilistic generation and deterministic system behavior.

If this topic is useful, the more extraction-specific version of the argument is in my earlier post on deterministic structured outputs for production LLM pipelines.

Reliability is mostly unglamorous work

The parts that make AI systems dependable rarely look exciting in a demo.

They look like:

  • versioned schemas
  • field-level validation
  • retry budgets
  • idempotent jobs
  • dead-letter paths
  • source coverage metadata
  • model-version tracking
  • cache keys built from the right inputs
  • cost guards
  • validation failure dashboards
  • replayable inputs for debugging

This is the work that turns "the model worked once" into "the system can be trusted under load."

It is also where real product defensibility often lives. Competitors can imitate a prompt much faster than they can replicate a production-grade control layer around the workflow.

confident-extract as shipped proof

I care about this topic enough to have built and shipped part of that reliability layer.

confident-extract exists because I kept rebuilding the same boundary in extraction systems: define the contract, constrain the generation path, validate hard, and only then hand typed data to the rest of the pipeline. The library is intentionally small and opinionated because reliability work benefits from sharp interfaces, not vague abstractions.

For me, open source matters here because it is visible proof of engineering taste. It shows the kind of boundary I believe should exist in production LLM systems.

Its sibling project, promptcrucible, is still unpublished and in active development. I am not treating it as public proof yet because it has not earned that status.

AnswerRank AI as product evidence

AnswerRank AI shows the same systems thinking in a different product shape.

The surface-level prompt for that product sounds easy: analyze how visible a product is inside AI-generated buying answers.

The actual product is not just a prompt.

It needs page extraction, answer generation, mention parsing, competitor comparison, scoring, source metadata, caching, and a usable explanation of what happened during the run. The result should not be a mysterious number. It should tell the user what was measured, which providers were used, and what can be improved next.

That is the same engineering principle again: uncertainty should be surfaced, bounded, and made inspectable instead of hidden behind a confident interface.

You can see the project context on the AnswerRank AI repository and in the selected work section on the homepage.

The hiring signal I want this to send

The industry does not just need people who can make a model say something interesting on a hand-picked input.

It needs engineers who can build the layer around the model:

  • the contract
  • the validation boundary
  • the workflow
  • the observability
  • the cost controls
  • the product logic
  • the failure handling
  • the honest explanation of limits

That is the kind of work I want to be known for.

I am most interested in AI systems and founding-engineer roles where the hard problem is not merely adding an LLM, but making AI reliable enough to become part of the product itself.

If that is the kind of system you are building, my work is here on hitarthdesai.com and the best contact point is the site contact section.

Prompt engineering starts the conversation.

AI systems engineering is what ships.