AI Development
Assistants built on your data, model integration and routine automation. With control over what the model may and may not do.
There is a lot of noise around AI and very little of it in daily operation. Most companies have tried something, some use it to write emails, and that is as far as it goes. The difference between a toy and a tool is not the model — it is whether the model has access to your data and whether anyone checks what it answers.
I build the second kind. And I always start with the question of which task this is meant to take off a person’s desk, and how we will know that it really did.
Pick the service you need
AI product development
An assistant or tool as a real part of the product, not as an experiment.
AI integration
A model as a feature inside a system you already use.
Prompt engineering
Prompts written, versioned and tested like code.
Model API integration
OpenAI and other providers, together with limits and a spending cap.
RAG and knowledge bases
Answers grounded in your documents, with a source under every statement.
Agents and workflows
Processes that run themselves and end with a proposal for a person.
Vector search
Search by meaning, for when people look using different words than the ones written.
Practical AI products and processes
Assistants over your documents
The model works with your contracts, price lists and internal rules, not with the internet at large.
- A link to the source
- An honest "I do not know"
- Respects access rights
- Measurable accuracy
Search and findability
For when staff search internal material and do not find it.
- Search by meaning
- Synonyms and typos
- Filters by metadata
- Query suggestions
Document work
Pulling data out of invoices, contracts and forms into a structured form.
- Field extraction
- Classification and sorting
- Checks against rules
- Export into your system
An assistant for editorial work
A draft, a summary or a proposed reply that a person checks and sends.
- Writes in your tone
- Works with your content
- Always only a suggestion
- A history of changes
Support for clients and the team
Answers to repeated questions from your own documentation.
- Hand-off to a person
- Admits the limits of what it knows
- Conversations recorded
- Unknown questions become content
Agents on a leash
Automation allowed to do exactly what is explicitly allowed.
- A list of permitted actions
- Approval on irreversible steps
- A spending cap per run
- A full log for audit
Reliable AI starts with the data being ready
The model is not what takes the time — the data is. Collecting documents, cleaning them, cutting them into meaningful pieces and resolving access rights is, in my experience, most of the work.
Mapping the sources
What you actually have, where it lives and who is allowed to read it. This is often where it turns out half the documents are out of date and the rest exist in three versions.
Preparation and indexing
Documents are cut into pieces that make sense on their own. Bad chunking is the most common cause of answers that look right and are not.
Assembling the context
Relevant fragments are selected for the question, and only those go to the model. What does not reach the context the model will not see — which is good, because otherwise it invents.
Freshness and access rights
When a document changes, the index has to be rebuilt. And if someone is not allowed to read a source, they must not see it through the assistant either; that gets tested rather than assumed.
Integrations, agents and automation around your process
Inside the product you have
As a feature of your system, not a separate chat window nobody opens.
- In your interface
- With your sign-in
- In your design
- No extra tool to learn
Connecting permitted tools
The model can call only what you have explicitly allowed.
- A list of tools
- Validated parameters
- Rate limits
- Error messages that make sense
State and checkpoints
Where the process waits for a person, and where it may carry on alone.
- Approval on irreversible steps
- Progress saved
- A way to step in
- A history you can read
Built for failure
A model provider will go down or put its prices up. That is not an exception, it is operations.
- Retry with back-off
- A fallback model
- A queue instead of a loss
- An alert before the client calls
Evaluation, monitoring and safeguards
Evaluation for the specific task
A set of questions with correct answers that runs after every change.
- Exists before the final version
- Runs automatically
- Watches the cost per run too
- Without it, tuning is guesswork
Monitoring in production
What the model answers, how long it takes and what it costs.
- A log of prompts and answers
- Latency and spend
- Refusal rate
- Alerts on drift
Limits and an honest "I do not know"
Where there are no grounds, the assistant has to say it does not know.
- An answer only with a source
- Hand-off to a person
- No guessing
- The behaviour is tested
Privacy and data minimisation
Only what is needed for the answer goes out — and you know exactly what that is.
- A list of outgoing data
- Personal data masked
- A retention period
- The provider chosen in advance
Application security
A model is one more way into the system, and ways in are not trusted.
- Permissions at user level
- Limits on the number of calls
- Separate keys
- An audit log
Testing for abuse
Attempts to make the model break its rules belong in the tests, not in the surprises.
- Instructions hidden in data
- Attempts to extract data
- Out-of-scope requests
- Re-tested after changes
How I work
1. Define the task and its boundary
What this is meant to take away, and how we will know it works. Without a measure I will not take it on — otherwise in six months nobody can say whether it paid off.
2. Audit of data and architecture
What state the material is in, where it lives, who is allowed to read it and where this plugs in. This is often where it turns out the data has to be cleaned up first.
3. A prototype on real cases
Two to four weeks, real data, one task. It shows cheaply whether to go further — and costs a fraction of a large engagement.
4. Build, integration and measurement
Rolled into your system with permissions, limits and a spending cap. The test set works from the start, not at the end.
5. Launch, documentation and improvement
Models change, and behaviour changes with them. After launch we watch quality and cost, and the test set grows with cases from real work.
Quality measured against verified cases
Without a test set, any prompt edit is guesswork. This is what the measurement that runs after every change looks like:
1 of 2
evals/support-assistant.test.ts
for (const item of goldenSet) {
test(item.question, async () => {
const answer = await assistant.ask(item.question, { user: item.user });
// The answer must stand on a document, not on the model's memory
expect(answer.sources).not.toHaveLength(0);
expect(answer.sources.every((s) => item.allowedDocs.includes(s.id))).toBe(true);
// Facts are checked against what a person approved
expect(await factsMatch(answer.text, item.expectedFacts)).toBe(true);
// The cost of one request is part of the brief, not a surprise on the invoice
expect(answer.costUsd).toBeLessThan(0.02);
});
}The cases are written by a person who understands these answers. The set grows with real questions from daily work.
src/ai/answer.ts
export async function answer(question: string, user: User) {
const chunks = await retrieve(question, { permissions: user.permissions });
// With no grounds we do not even ask the model — it saves money and an invented answer
if (chunks.length === 0) {
return { text: NO_ANSWER[user.locale], sources: [], costUsd: 0 };
}
const result = await model.complete({ system: SYSTEM_PROMPT, chunks, question });
// A statement without a citation does not leave the building
if (result.citations.length === 0) {
return { text: NO_ANSWER[user.locale], sources: [], costUsd: result.costUsd };
}
return { text: result.text, sources: result.citations, costUsd: result.costUsd };
}When there are no grounds for a statement, the assistant answers that it does not know. That behaviour is tested like any other feature.
When I will advise against AI
I will say it even when the answer means a smaller job for me:
- The task comes up a few times a month — the build will not pay for itself.
- You need absolute accuracy, in calculations for instance. That is what a rule or a formula is for, not a model.
- The data is in a state that has to be cleaned up first. Then let us start there.
- You want the tool because a competitor has one. That is not a brief anything useful comes out of.
What the price depends on
The state of the data. Tidy documentation is not the same as a folder with four hundred PDFs of varying age.
How many tasks. One done well is usually worth more than three left unfinished.
Accuracy requirements. A higher bar means a larger test set and more rounds of tuning.
Where it plugs in. A standalone tool is faster than integrating into a system already running in production.
Running costs. Every model call costs something. I estimate monthly spend in advance and put a cap on it.
Common questions
What if the model makes something up?
That is the main risk, and it is treated by how the system is built, not by which model you pick. I ground answers in your documents and attach a source to every statement so it can be checked. Where there are no grounds, the assistant has to answer that it does not know — and that behaviour is tested like any other feature.
Where does our data go?
It depends on the model provider we choose, and we settle that in advance rather than along the way. For sensitive data, part of the processing can stay with you, and the model only receives what it genuinely needs. I document exactly what leaves and to whom, so you can explain it to your own clients.
Will this even pay for itself?
Sometimes it will not, and I will say so. AI makes sense where a language task repeats: answering the same questions, sorting enquiries, searching internal rules, preparing material. If the task comes up twice a month, it is cheaper to keep doing it by hand.
Will it replace a person?
Not in the work I do. What works is cutting the preparation: a draft, an extract, a proposed reply that a person checks and sends. I do not drop the approval step from a solution even when a client asks me to — without it, a mistake reaches the customer before anyone notices.
How will we know it works?
With a set of test questions and correct answers that runs after every change. Without it, any prompt edit is guesswork. Results show up in a report rather than in a feeling that it answers better today.
Does this always start with a big project?
No, and I do not recommend it. Most often we start with a single task whose result can be measured and build it over two to four weeks. That shows whether further investment is worth it, and it costs a fraction of a large engagement.
Selected work
The first projects appear here as soon as clients approve publication.
Let us get started
Leave your address and I will come back with the next steps, a timeline and a price.