AI and LLM integration, from pilot to production.

We connect language models to your data, tools and workflows so they do real work reliably, then hand you the code, the evaluation scripts and the runbook.

01AI & LLM

What LLM integration actually involves

LLM integration wires a large language model into a product or internal process, supplying context, letting it call tools and checking its output. Many projects follow one of three patterns: retrieval from your documents, agents acting through tools, or NL2SQL turning plain English into database queries. Each carries a different main risk that should shape the build.

Many projects fall into one of three patterns. The model answers from your documents, it takes actions through tools, or it turns a plain-English question into a database query. Each has a different main risk, which should shape the build.

The three common integration patterns
PatternUse it whenMain risk to design for
Retrieval (RAG)Answers must come from your own, changing documents, with sourcesBad retrieval, stale or leaked content
Agents with toolsThe model must do things: query, send, update, scheduleUnsafe or runaway actions, cost
NL2SQLPeople need answers from a database without writing SQLWrong joins, unsafe queries
02AI & LLM

How a pilot runs, week by week

Week one freezes scope to one end-to-end user journey, with an out-of-scope list and staging up on day two. Week two builds the slice, setting expected behaviour on a small golden question set before prompt polishing, and logs every request. Weeks three and four cover authentication, rate limits, personal data handling, logging and a runbook, ending with handover.

  1. Week 1: freeze scope, pick one vertical slice

    One user journey end to end, with an explicit out-of-scope list. Staging goes up on day two with real anonymised data, not synthetic data only. If anonymising is hard, that is a week-one finding, not a launch surprise.

  2. Week 2: build with evaluation gates

    Whether it is RAG, agents or NL2SQL, expected behaviour on a small golden question set comes before prompt polishing. Every request is logged with the prompt, retrieved chunks, latency and token cost.

  3. Weeks 3 and 4: harden, comply, hand over

    Auth, rate limits, PII handling, structured logging and a runbook, not just a Docker image. EU clients default to region-specific hosting. You receive the repos, infra notes, eval scripts and a short walkthrough.

03AI & LLM

What we put in place before production traffic

Before production traffic, we put in place a golden question set, refusal paths for out-of-scope questions, a nightly evaluation that blocks releases when accuracy or citation rate falls below the agreed threshold, visible p95 latency and cost per query, and redacted request logging with a cost dashboard.

  • A golden question set, even 20 rows, drafted before any prompt tuning marathon
  • Refusal paths for out-of-scope questions, which cut hallucination risk and satisfy legal review faster than disclaimers alone
  • A nightly evaluation that blocks a release when accuracy or citation rate drops below the agreed threshold
  • p95 latency and cost per query visible before go-live, not after finance asks
  • Request logging with redaction, and a cost dashboard
04AI & LLM

The stack we reach for first

The usual starting stack is the OpenAI or Claude APIs, one provider at first, with LangGraph where state and human-in-the-loop steps matter and simpler tool loops otherwise. The backend is Python with FastAPI, or Next.js API routes for frontend-heavy teams. PostgreSQL with pgvector holds data, and observability covers redacted request logs, cost dashboards and evaluation hooks.

Typical stack for an LLM integration pilot
LayerWhat we use
ModelsOpenAI and Claude APIs, one provider to start
OrchestrationLangGraph where state and human-in-the-loop matter, simpler tool loops otherwise
BackendPython with FastAPI, or Next.js API routes for frontend-heavy teams
DataPostgreSQL with pgvector, hybrid search when exact IDs and SKUs matter
ObservabilityRedacted request logs, cost dashboards, evaluation hooks
05AI & LLM

When three to four weeks is not enough

Some work can need a second cycle, including fine-tuning, multi-tenant isolation at scale and novel hardware bring-up, and we state that in the estimate rather than over-promising a first version. The calendar can also stretch when internal IT is slow to grant VPC access or a data protection officer has not signed off, even when engineering is ready.

Fine-tuning, multi-tenant isolation at scale and novel hardware bring-up can need a second cycle. We say so in the estimate instead of over-promising a first version. Calendar time can also stretch when internal IT is slow on VPC access or a data protection officer has not signed off, even when engineering is ready.

06Common questions

Questions we get asked.

Straight answers about ai & llm integration.

How long does it take to build an AI MVP?

A scoped pilot takes three to four weeks at PAI Technologies. Week one freezes the scope and picks a single vertical slice, week two builds it against evaluation gates, and weeks three and four harden it and hand it over. Fine-tuning, multi-tenant isolation at scale or new hardware can need a second cycle, and the estimate says so.

What does an AI pilot cost?

Pilots are fixed price after a 30-minute call. Cost depends on data access, compliance scope and whether hardware is involved. A written estimate follows within one business day of a brief. There is no public rate card, and the pilot checklist helps you get an accurate estimate faster.

Which language models do you use?

We build on the OpenAI and Claude APIs, and start with one provider to keep the first version simple. An evaluation set lets you measure any later change of model against your own questions.

Who owns the code?

You do. Full source handover is the default on every engagement: application code, infrastructure notes, evaluation scripts and a short walkthrough.

Tell us what you are trying to ship.

Send a one-paragraph brief and we will come back with a recommended approach within one business day.