Artificial intelligence

AI application development

A complete application with AI inside, designed around the answers the model gets wrong.

How we do it

Overview

Most software rests on the assumption that the same input gives the same output, and that a wrong output means the code has a bug. An application with a model inside it breaks that assumption, because the model returns something plausible every time, some of it is wrong, the application cannot always tell which part, and the response takes seconds to arrive where ordinary code would take milliseconds. If the product is designed as though the model were an ordinary function, it will show wrong answers with the same confidence as right ones.

For that reason, most of the work is product and application engineering. For each place where AI output appears, we decide what the user can do when it is wrong, which might mean editing it, rejecting it, seeing where it came from or carrying on without it. We also decide what the screen shows while a response is being generated and what happens when the provider is slow or unavailable, and we make sure each correction a user makes is captured so the team learns which outputs fail, since none of these questions can be settled by improving the prompt.

We build the whole application, which covers the interface, the backend, the model calls, the data access, the tests and the operations around it. The AI parts sit behind clear interfaces, so they can be tested, measured and changed without touching the rest of the code. Where ordinary code can do a step reliably we write ordinary code and use the model only in the places where its value justifies its cost and its uncertainty.

Challenges we address

The failures we are usually called in to fix
  1. Wrong answers presented like right ones

    The interface shows every output in the same clean card, and users cannot see what it was based on or how sure the system is. As a result they either trust everything including the errors or learn to trust none of it and stop using the feature.

  2. A blank screen while the model works

    Because the application waits for the complete response before it shows anything, users assume it has frozen, click again and start a second request. The generation was running the whole time, but nothing in the design told them so.

  3. No way to correct or work around output

    When a suggestion is wrong, the user can only accept it or abandon the task, since there is no edit, no retry with a hint and no manual path. A single bad output can therefore block the work the application was built to support.

  4. Model calls scattered through the codebase

    Prompts are kept as strings inside request handlers, and each one has its own parsing and error handling. Changing the model means editing dozens of files, none of the model logic can be tested in isolation, and nobody can produce a list of every place where the application calls a model.

  5. User corrections that are never recorded

    Users correct the output every day by rewriting a summary, changing a category or deleting a suggestion, and the application records none of it. The team therefore has no data on what fails, and decisions about what to improve rest on anecdotes from the most vocal users.

Our approach

How the work runs, in order
  1. Design for the wrong answer first

    Before anything is built, we go through each place where AI output appears and decide what the user sees and can do when it is wrong, slow or missing. Those decisions shape the interface, which ends up with editable drafts, visible sources, confidence shown only where it has been checked, and a manual path for every task.

  2. Draw the application architecture

    We separate the deterministic parts of the application from the parts that depend on the model, and put the model behind a typed internal interface. Prompts, output schemas and model choices are kept in one versioned place, and long-running generation is moved to background jobs whose state the application can resume.

  3. Build a thin slice through everything

    The first release to staging is a single user task that works from the interface to the database to the model and back, using real data and real permissions. It is rough at that stage, but it brings latency, cost and data problems to light in the second week of the work rather than the tenth.

  4. Instrument feedback and behavior

    We log every AI output with its inputs and capture how the user responded to it, whether by accepting, editing, rejecting or retrying, and edits are stored as a before and after pair. This record becomes the test set and shows the team which outputs to work on next.

  5. Harden, test and hand over

    We then add the failure handling, including timeouts, fallbacks, rate limits and validation of model output before it reaches a user or a database, and the agreed tests run in the delivery pipeline. Your team receives the code and the runbooks, along with a walkthrough of how to change a prompt or a model safely.

Technical capabilities

What we design, build and operate
  • Interaction design for uncertain output

    Interface patterns for output that may be wrong, including editable suggestions, visible sources, side-by-side comparison, clear labels on generated content and an undo for every action the AI takes.

  • Streaming interfaces

    Responses rendered as they are generated over server-sent events or WebSockets, with cancel, retry and handling of partial results, including the awkward case where the stream carries structured data.

  • Structured output handling

    Model responses are constrained to a schema and validated before use. When validation fails there is a repair or retry path, and there is a defined behavior for the case where it keeps failing.

  • Model access layer

    A single internal interface handles every model call, with versioned prompts, timeouts, fallbacks and logging, which means no other part of the application talks to a provider directly.

  • Feedback capture

    We capture explicit ratings where they are useful and implicit signals throughout, meaning accepts, edits, rejections and retries, each stored against the output that prompted it.

  • Background and long-running generation

    Work that takes longer than a request runs as a queued job, so the user can see its progress and return to the result later, and the job behaves safely if it is restarted.

  • Conversation and session state

    History, context and user preferences are stored and retrieved across sessions, with rules that set out what is kept, what is summarized and what is discarded.

  • Application-level testing

    Unit tests for the deterministic code, tests against recorded responses for the model layer and scored test sets for output quality, all running in the delivery pipeline.

Where it applies

Business applications
  • Customer-facing AI products

    A new product, or a new feature in a portal, where customers work with generated output directly and any wrong answer appears under your name.

  • Internal decision support tools

    Applications that gather the relevant information and propose a decision to an underwriter, planner or analyst, who then accepts, adjusts or overrides it.

  • Review and drafting workbenches

    Screens built for specialists who work through a queue of generated drafts, extractions or classifications and correct them as they go.

  • Rebuilding a prototype for production

    A demo built in a notebook or a low-code tool has shown that the idea works, and it now needs authentication, tests, error handling and a codebase that can be maintained.

  • AI features in an existing product

    A substantial new capability in software you already sell or run, designed together with the product team so that it fits the product rather than being bolted on.

In practice

Two situations this service is built for, and what we would do in each.

Manufacturing

A quoting application for custom-engineered parts

The situation
A manufacturer of custom-engineered parts prepares each quote by reading the customer's specification, finding similar jobs from the past and estimating materials and machine time. The sales director was impressed by a prototype that drafts quotes with a model, but the estimators distrust it, because it presents every figure with the same confidence and offers no way to see where a number came from.
What we would build
We would build a quoting application in which each generated line shows the past jobs it drew on and every figure is an editable field. Arithmetic for materials and machine time would be done in code outside the model, while the draft would stream in section by section. Every estimator edit would be stored as a before and after and feed a test set of real quotes, and any quote could still be completed by hand.
What it is designed to change
Estimators would start from a draft they can check line by line, where today they start from a blank form. We would track the time it takes to prepare a quote, the share of generated lines accepted without edits, and the edit patterns that show where the drafts are weakest.
Financial services

A credit memo workbench for a commercial lender

The situation
A commercial lender's analysts write a credit memo for every loan application, drawing on financial statements, account history and industry notes. Leadership would now like an application that drafts these memos. The risk officers will accept one only if every statement in a draft can be traced to a source document and the analyst stays the author of record.
What we would build
We would build a workbench that generates the memo one section at a time and links each sentence to the passage or figure behind it. Ratios would be calculated in code from extracted figures that the analyst has confirmed first. Any section without source data would be left empty and flagged for the analyst, and the application would record which text was generated, which was edited and who approved the final version.
What it is designed to change
Analysts would spend their time on judgment and much less of it on assembling material, and the risk team could audit how each memo was produced. Success would be judged by the time from a complete file to an approved memo and by the number of unsupported statements found in sampled reviews.

Technologies

We work in your stack and recommend on fit. We resell nothing.
Frontend and streaming
React · Next.js · Vue · Angular · server-sent events · WebSockets
Backend and application frameworks
Python with FastAPI · Node.js and TypeScript · Java with Spring Boot · .NET · Go
Model providers and SDKs
Anthropic Claude · OpenAI · Google Gemini · Amazon Bedrock · Azure OpenAI · open-weight models on your own infrastructure
Data and state
PostgreSQL · Redis · pgvector · Elasticsearch and OpenSearch · object storage
Jobs, tracing and testing
Temporal · Celery · OpenTelemetry · Langfuse · Playwright · pytest

Business outcomes

What changes for the organization
  • A product people keep using

    Because users can see what an output is based on and correct it in place, they tend to keep using the application after it gives its first wrong answer.

  • Mistakes caught at the interface

    The interface is designed so that the person using it notices and corrects a wrong output before it reaches a customer, a record or a decision.

  • An application your team can change

    All model calls go through one interface with versioned prompts and tests, so that switching to a new model or changing a prompt stays a contained piece of work.

  • Improvement driven by real usage

    The edits and rejections that are captured show which outputs fail and how often, and the team orders its backlog by that evidence.

What you hold at the end

  • A production application with source code in your repository
  • Interface designs covering wrong, slow and missing AI output
  • A model access layer with versioned prompts and schemas
  • A feedback store linking user edits to outputs
  • A test suite covering code paths and output quality
  • Architecture documentation and a written decision log
  • Runbooks for model changes, provider outages and rollback

Questions buyers ask

Three things are different from an ordinary software project. Because output is uncertain, the interface has to help users notice errors and correct them. Responses are also slow and priced per use, which makes latency and cost into design constraints from the first week. Quality also cannot be confirmed by ordinary pass-or-fail tests alone, so a scored test set built from real cases is part of the build. The rest is familiar engineering, such as authentication, data access, error handling and deployment, and most of the effort still goes there.

Only when the score has been checked against real outcomes. A model's own report of its confidence often bears little relation to whether it is right, and a number on the screen invites more trust than it has earned, so showing where an output came from is usually more useful. Where a calibrated score does exist, for instance from a classifier measured on your data, we use it to route items for review and keep it off the user's screen.

That depends on how much the framework would do for you. For a few well-defined model calls, the provider's SDK behind your own thin interface is easier to understand, test and debug. A framework is worth adopting when you need what it provides, such as graph-based orchestration or a large number of retrieval integrations. In either case we keep the choice behind an internal interface, so that replacing it later does not require rewriting the application.

The idea, the prompts as a starting point and what the team learned about the data usually carry over, but the code rarely does, because a prototype skips permissions, error handling, tests and anything to do with cost. We read the prototype first because it shows what worked, and then rebuild the same user task as a thin production slice, which tends to be faster than hardening a notebook or a demo script.

Mainly through the design, because users tend to ignore warnings when they appear on their own. Generated content is labeled and editable, claims link to their sources, arithmetic and lookups are done in code and shown that way, and any action with consequences needs an explicit confirmation. We also watch the acceptance rate, because if users accept nearly everything without reading it, the review step is not working and the workflow has to change.

Discuss AI application development with the people who would do the work.

Tell us what you are trying to do and where it is stuck. A principal reads every message and replies within one working day.

How we engage

Start a conversation.

A short paragraph is enough. A principal reads every message and replies within one working day.

Or email hello@farside.works. We use what you send only to reply. Privacy