Contact

Have a product to build or a system to untangle? I help teams build LLM applications and make them reliable in production. My work spans applied AI engineering, application infrastructure, and distributed systems.

Currently building at Zoca. We can discuss scope and availability once the problem is clear. Founding and staff engineering conversations are welcome too.

Working together

I like to start with a concrete question: what should the system do, what is it doing instead, and what would make the difference measurable? From there, we can agree on a small, useful piece of work—an architecture review, an implementation, or a focused investigation.

Read about a focused LLM infrastructure review →

LLM Application Development Services

Turn an LLM prototype into a useful, maintainable product.

An AI prototype can work well and still be difficult to ship. My applied AI engineering work connects existing models to the rest of a product: useful context, permitted actions, output checks, and a backend that keeps the workflow running. We can start with an existing prototype or one well-defined feature.

What needs to work before this becomes a real product?

The prototype works, but the workflow is unfinished.

A model response still needs input validation, useful product states, persistence, error handling, and a way for the user to correct or reject it. Those boundaries are part of the feature, not cleanup after the demo.

The answer is only as useful as the context.

For retrieval-augmented generation (RAG) and personalization, I look at source quality, relevance, freshness, and user scope before adding more context or another database. Full-text search and structured filters may be enough; semantic retrieval should earn its place.

A prompt or model change is hard to judge.

Define a useful result with representative examples, output contracts, and user feedback. For agentic workflows, check the resulting state and tool actions as well as the final answer. Keep quality separate from token usage and latency.

How I approach the work

  1. Understand the task.

    Map the user’s workflow, available data, and the failure cases that matter. Decide where AI helps and where ordinary code is the better fit.

  2. Build one end-to-end path.

    Connect retrieval, model calls, validation, and product state around a bounded use case. Keep provider-specific behavior behind explicit interfaces.

  3. Make changes testable.

    Agree on representative cases and acceptance criteria. Record prompt and model versions, inspect failures, and leave a practical route for iteration and handover.

What we can scope together

  • A scoped product and architecture plan with explicit data boundaries.
  • An implemented workflow or focused integration in your existing codebase.
  • Representative evaluation cases and output validation for the agreed task.
  • Operational notes covering failures, measurement, and the next iteration.

This is application engineering around existing models, not foundation-model training or a promise that every task needs an autonomous agent. The implementation and evaluation scope depend on the product and the evidence available.

Relevant engineering work

AI content and website workflows at Zoca ↗

In my role at Zoca, I built content generation for 1,000+ businesses, config-driven website generation, and queue-backed AI workflows.

Context-aware personalization at Brihaspati ↗

Dynamic prompting and memory retrieval inside an AI-powered mobile product, with a Django and PostgreSQL backend.

Context, queues, and the cost of personalization ↗

A first-hand account of context selection, prompt contracts, asynchronous execution, and measuring a useful result.

A retrieval system built with SQLite ↗

A practical example of combining full-text and semantic search without starting with a separate vector database.

A few practical questions

Can you work with an existing prototype?

Yes. The first step is to understand what already works, what users need, and which missing boundaries prevent a release. A focused integration may be more useful than a rewrite.

Do we need RAG or an AI agent?

Not necessarily. Retrieval is useful when relevant information is missing from the model’s context. An agent is useful when the task needs a sequence of actions with clear limits. Neither is a default requirement.

What should I send in an inquiry?

Describe the user’s task, what you have built, and one example of where it fails. Share the stack, data constraints, and timeline if available. A sanitized example is more useful than confidential data.

LLM Infrastructure Consulting

Give an LLM application room to grow without losing control of cost or latency.

Scalable AI infrastructure starts with the work around the model call: who owns a job, how much can run at once, and what happens when the provider slows down. I help teams examine those application boundaries, then make focused changes to capacity, recovery, and deployment. This work applies to applications using hosted model APIs; it does not require running your own model fleet.

Where does the system reach its limit?

Long generations are tying up the API.

Separate user-facing requests from work that needs to survive timeouts and deployments. Design queue and worker boundaries around durable job state, cancellation, and observable progress.

More workers are not fixing queue latency.

Inspect queue age, workload mix, concurrency, provider limits, and slow stages. Separate long-running jobs from interactive work and measure capacity before adding infrastructure.

Cost grows faster than useful output.

Measure cost per completed, useful job. Review context budgets, repeated preprocessing, scoped caches, and model routing against a quality baseline rather than optimizing token cost alone.

Deployments and incidents are difficult to explain.

Make infrastructure reproducible and connect job identifiers, application errors, and system metrics. Queue age, latency percentiles, and failure rates should point to an operational decision.

How I approach the work

  1. Find the limiting stage.

    Follow a job through the API, data access, model provider, workers, and persistence. Establish a baseline for throughput, tail latency, failures, and cost.

  2. Change the smallest useful boundary.

    Agree on a capacity or latency target, then address workload isolation, concurrency, caching, or deployment configuration where the evidence points.

  3. Leave the system operable.

    Check the change against representative traffic and failure cases. Document operating limits, dashboards, deployment steps, and recovery procedures.

What we can scope together

  • A bottleneck review with measured constraints and a prioritized architecture plan.
  • Queue, worker, or deployment changes for the agreed workload.
  • A cost-and-latency baseline for representative jobs, with quality checks and explicit capacity assumptions.
  • Monitoring and operating notes for the team maintaining the system.

My focus is the application infrastructure around AI: TypeScript and Python services, queues, databases, AWS, and Terraform. This page does not offer GPU-fleet management, distributed model training, or a guaranteed performance multiplier.

Relevant engineering work

Distributed media processing at Dubverse ↗

Celery and Redis processing, AWS scaling, and application monitoring for an AI dubbing product, with a 50% reduction in content-generation time in that workload.

Queue and deployment infrastructure at Zoca ↗

Message queues and workers for AI features, Terraform infrastructure, and a local AWS development environment.

Scaling LLM applications ↗

How context, latency, cost, and quality budgets compete—and why a model call needs a bounded place in the wider system.

Celery and Redis pipeline design ↗

Workload separation, worker concurrency, intermediate artifacts, and recovery lessons from long-running media jobs.

A few practical questions

Does scalable AI infrastructure mean running our own models?

No. Applications using hosted model APIs still need capacity limits, durable jobs, cost controls, and recovery. Self-hosting is a separate decision that should follow workload and operating requirements.

Can we start with an LLM cost and latency review?

Yes. Start with representative jobs and a definition of a useful result, then compare provider cost, retries, queue time, end-to-end latency, and output quality. The review can identify avoidable work, oversized context, and routing or caching opportunities. Savings depend on your workload; I would establish a baseline before proposing a target.

What information helps with an infrastructure review?

Your architecture, typical job duration, traffic pattern, provider limits, and the symptoms you see are a useful start. Sanitized metrics or a representative job trace are enough for an initial discussion.

Distributed Systems Reliability Consulting

Understand duplicate, stuck, or lost background jobs—and make recovery deliberate.

A background system is easy to trust while every step succeeds. The interesting questions start when a worker exits, a job runs twice, or a provider times out after completing its side effect. I help teams investigate those failure paths and make recovery part of the design.

What happens when this job stops halfway through?

Retries create duplicate work or side effects.

Follow the job’s identity across submission, execution, and persistence. Make repeat execution safe with idempotency boundaries and explicit state transitions; a queue cannot guarantee that an external side effect happens only once.

Worker failures leave jobs stuck or invisible.

Inspect acknowledgements, visibility timeouts, retry budgets, and ownership of durable state. A worker process is temporary; the record of what a job has done should survive it.

A failed stage restarts an expensive pipeline.

Separate stages where intermediate results can be persisted and validated. Resume from a known boundary instead of repeating successful model, transcription, or media work.

Logs do not explain the final outcome.

Connect job identifiers, state transitions, attempts, and error classes. Make it possible to tell the difference between slow work, a transient failure, and a job that needs human intervention.

How I approach the work

  1. Reconstruct a failure.

    Start with one duplicate, stuck, or lost job. Trace its state and side effects through the queue, worker, database, and external service.

  2. Make the failure reproducible.

    Test the relevant interruption: a timeout, worker exit, repeated submission, or partial success. Agree on what recovery should mean before changing retry settings.

  3. Implement and document recovery.

    Add the smallest state, idempotency, or pipeline change that addresses the failure. Leave regression checks and a runbook for retrying or reconciling affected jobs.

What we can scope together

  • A failure analysis with a reproducible scenario and explicit job lifecycle.
  • Targeted retry, idempotency, or durable-state changes.
  • Regression checks for the agreed interruption and recovery paths.
  • A recovery runbook and the signals needed to spot recurrence.

This is a focused review of background workflows and their failure modes, not a general security audit or a promise of exactly-once execution. If the primary problem is throughput or operating cost, the infrastructure service is a better starting point.

Relevant engineering work

Failure-aware Celery and Redis pipelines ↗

First-hand notes on late acknowledgements, visibility timeouts, idempotent stages, and worker-death recovery.

ReelServer’s explicit failure boundaries ↗

A private personal project with observable jobs, bounded retries, and persistent state. The published overview explains the design; the repository is not public.

Distributed processing at Dubverse ↗

Engineering experience with long-running media workloads, Celery workers, Redis, and application monitoring.

A few practical questions

Is this only for AI systems?

No. Media processing, data imports, web automation, and scheduled jobs share many of the same recovery problems. The review follows your workload rather than requiring an AI component.

Can a queue give us exactly-once execution?

Do not assume it. Retries and lost acknowledgements can repeat work. The important question is whether repeated execution and external side effects are safe at each boundary.

Should we replace Celery or Redis?

Not as a first step. Configuration, job ownership, and application state can cause failures independently of the queue technology. Reproduce the failure and establish the required behavior before considering a replacement.

Tell me about the project.

A few sentences about the product, the constraint you’re running into, and the kind of help you need are enough to start. Include your stack and timeline if you know them. Please leave out credentials and confidential customer data.

Email me about a project

This opens a draft in your email app. Nothing is submitted through the website.