Skip to content
RailsDev.io
AI-Powered Software Development

AI-powered software development: LLM features that hold up in production

AI software development is the engineering that turns an LLM demo into a dependable feature: retrieval over your own data, tool calling with guardrails, cost and latency control, and evaluation so quality is measured, not hoped for.

An AI demo takes an afternoon. Making it reliable enough for real customers takes engineering: grounding answers in your data, handling failures and slow responses, controlling cost and checking quality over time. That is the part I focus on.

I build AI features into web applications, mostly Ruby on Rails, using Claude, OpenAI or self-hosted models through Ollama. That includes support assistants that answer from your help center, semantic search over your documents with pgvector, data extraction from PDFs and emails, and agents that call your own APIs with a person approving the risky steps.

  • RAG & semantic search
  • Agents & tool calling
  • Evals, cost & latency tuning
Who it's for

Is this the right fit?

You want AI features in your existing product

An assistant, smarter search or automation inside your app, using your users, permissions and data.

Your AI prototype isn't production-ready

It works in a demo, but answers are inconsistent, slow or expensive, and nobody knows how to measure quality.

Your team spends hours on repetitive text work

Reading documents, sorting emails, filling in forms or writing first drafts a model could do with review.

Your data has to stay private

Sensitive data means careful access control, data handling and sometimes self-hosted models.

What's included

What you get

Use-case scoping

Find where AI actually saves time or adds value, and design a small first feature that proves it.

Chat assistants

Assistants that answer from your content, remember the conversation and stream replies as they write.

RAG and semantic search

Your documents chunked, embedded and searched with pgvector, in the PostgreSQL database you already run.

Agents and tool calling

Models that look up orders, create tickets or call your APIs, with human approval for risky actions.

Document and data extraction

Structured data pulled from PDFs, emails and images into your database, with validation.

Evals and monitoring

Test sets, quality checks, cost tracking and fallbacks, so you know whether a prompt or model change helps.

How it works

From first call to launch

  1. 01

    Find the use case

    We pick a task with clear value and a measurable result, and check that your data supports it.

  2. 02

    Prototype on real data

    A working prototype on your own content, to test answer quality before building the full feature.

  3. 03

    Build it into the product

    Background jobs, streaming UI, permissions, logging and error handling, like any production feature.

  4. 04

    Measure and improve

    Evals and usage data guide prompt, model and retrieval changes after launch.

Tools I use for this

  • Ruby on Rails
  • Claude API
  • OpenAI API
  • RubyLLM
  • LangChain
  • Ollama
  • PostgreSQL
  • Python
  • n8n
Related work

Products I've worked on

Pasture.io homepage: aerial view of green farm paddocks with the headline “Know your feed. Back your decisions.”
AgTech / SaaS

Pasture.io – Satellite-Driven Pasture Management SaaS

A single web platform for pasture covers, growth rates, a feed wedge and grazing planner, plus farm records for grazings, fertiliser, spraying, and tasks. The Pio assistant combines satellite imagery, weather, and farm records to show daily pasture changes and forecast conditions.

AU · NZ · UK · US
4 Regions
Needed to Start
No Hardware
Field notes

What makes AI features hold up in production

The demo is never the hard part. The hard part is retrieval quality (chunking, embeddings, pgvector, and citations so wrong answers are catchable), structured outputs (schema-constrained responses, not prose you parse with hope), and tool use behind explicit permission gates — the model proposes, the code disposes, risky actions need a human.

Then there is the unglamorous budget work: eval suites of golden questions run in CI so a prompt or model change cannot silently regress quality; per-request cost and latency budgets; graceful degradation when the model is down (cached answers, a human escalation path); and a model-abstraction layer so swapping Claude for OpenAI — or a self-hosted model via Ollama — is configuration, not a rewrite.

FAQ

Common questions

Which AI models do you work with?

Claude, OpenAI's GPT models, and open models run locally through Ollama. In Rails I use RubyLLM, so the model can be swapped and you're not locked into one provider.

Do we need a separate Python service for AI?

Usually not. Ruby gems like RubyLLM and neighbor cover chat, tools, embeddings and vector search inside Rails. Python makes sense for custom machine learning models, and I can build that service when it’s needed.

Will our data be used to train the models?

Anthropic's and OpenAI's commercial APIs don't train on your data by default, but check the current terms for your plan. For stricter requirements, self-hosted models keep data on your own servers.

How do you keep AI answers accurate?

Retrieval grounds answers in your own content, prompts tell the model to say when it doesn't know, and an eval set catches regressions before they ship. For actions with consequences, a person approves first.

What does it cost to run?

It depends on the model and the volume. I estimate the cost per request during the prototype, then use caching, smaller models for simple steps and usage limits to keep the bill predictable.

From the blog

How I build it

Start a Project

Let’s Build Your Rails or AI Product

Schedule a discovery call or send a direct project brief to get started.

Prefer email? hello@railsdev.io

Strict NDA protection guaranteed