Justine Acosta
JUSTINE ACOSTA · GMT+8 ·
All services
SERVICES / 05

AI agent and RAG chatbot development

Models wired to your real data, past the impressive demo and into something you can ship and measure.

LLM APIsRAGVectors05 / 10

What you get

  • A retrieval pipeline tuned to your documents, with sources on every answer
  • An eval set that scores real questions, so changes are measured, not guessed
  • Guardrails and a hand-off to a person when the answer is not in your data
  • Tracing, so a bad answer can be found and fixed
  • A cost and latency budget tied to the levers that move it

AI agent and RAG chatbot development is about one thing: getting a model to give useful, checkable answers from your own data, and act safely when it should. I build assistants grounded in your documents and systems, with the evals, guardrails and cost controls that keep them honest after launch.

The problem

AI demos are easy. Ten minutes with an API key and a PDF produces something that looks remarkable in a meeting. Then real questions arrive. The assistant answers confidently from the wrong document, or from no document at all. A price changes and the bot keeps quoting the old one. A customer asks something slightly outside the script and gets an invented policy. Nobody can say whether last week's prompt change made it better or worse, because nobody is measuring.

Agents raise the stakes. A chatbot that answers wrongly is embarrassing; an agent that books, refunds or emails wrongly is expensive. The gap between a demo and a feature you can put in front of customers is almost entirely engineering, not model choice.

If you're not sure which one you need, start with AI agent vs chatbot: what your business actually needs.

How I approach it

I start with the questions, not the model. We collect real questions your customers or staff ask, and what a good answer looks like for each. That list becomes the eval set: the test every later change has to pass. It turns "it seems better" into a score you can compare, which is the subject of how to know your AI feature actually works.

Then retrieval. Most of what separates a reliable RAG system from a demo is ordinary information retrieval: how documents are split, how they're labelled, how search combines keywords with embeddings, and how results are filtered by what the user is allowed to see. Every answer cites its source, so a person can check it in one click. When the answer isn't in your data, the assistant says so and hands over to a person instead of guessing. I go deeper on this in retrieval that survives production.

For agents, each tool gets the narrowest permission that does the job. Reading is cheap; writing is gated. Anything that can't be undone, a payment, a cancellation, an email to a customer, waits for a person to approve it. Every step is traced, so when something goes wrong you can see exactly what the agent saw and why it chose what it did.

Model choice comes last: Claude, OpenAI or an open model, picked per task on quality, cost and where your data is allowed to go. The code keeps the model swappable, so you can change provider without a rebuild.

Costs and response times are budgeted from the start. Caching, smaller models for simple steps and sensible context sizes keep a popular feature from becoming a surprising invoice.

I build for teams in the US, EU and Canada, and keep your documents in your own database and accounts.

Where it usually goes wrong

The first mistake is shipping without evals. Without a test set, every prompt tweak is a guess, and regressions reach customers before anyone notices.

The second is blaming the model for a retrieval problem. When answers are wrong, the cause is usually the wrong passage being found, not the model misreading the right one.

The third is giving an agent broad permissions "for now". The narrow version takes an extra day; cleaning up after the broad one takes much longer.

The fourth is no way out. Every assistant needs a clear hand-off to a person, and a log of the questions it couldn't answer, which doubles as your list of documents to write next.

What you walk away with

A working assistant or agent connected to your real data, with sources on every answer. An eval set and the scripts to run it, so every future change is measured. Guardrails, approval steps and a hand-off to a person. Tracing and a cost budget, so you can see what it does and what it costs. And everything, from documents to keys, in accounts you own.

If you have documents your customers keep asking about, or a process an agent could take on, let's talk it through.

Questions

  • A chatbot answers; an agent acts, calling your tools to look things up, book, update or send. Agents get narrow permissions and a person approves anything that cannot be undone.