Skip to content

Make it useful. AI features inside your product, grounded in your own data, measured before launch and kept on budget.

◆ Machine · generated · 17 tokens · 1556 ms

Assistants, search, and document answers that cite their sources and say so when they do not know. Built into the product you already run, with evaluations and cost limits from the first sprint.

Grounding
Your data, cited
Quality
Evals before launch
Cost
Capped per request
Models
Swappable

[01] Sound familiar?

Where AI features break.

  1. 01

    The assistant makes things up with confidence.

    Fix Answers come only from retrieved sources, with citations, and a clear refusal when the sources do not cover the question.

  2. 02

    Nobody can say whether a change made it better or worse.

    Fix An evaluation set of real questions runs on every change to the prompt, the model, or the retrieval.

  3. 03

    The bill grows faster than the usage.

    Fix Caching, smaller models where they are good enough, and per-user limits keep the cost per answer known.

  4. 04

    It works in the demo and fails on real documents.

    Fix Ingestion handles the messy inputs — scanned PDFs, tables, stale pages — and re-indexes when the content changes.

  5. 05

    Legal asks where the data goes.

    Fix Data flows, retention, and provider terms are written down, and private data stays out of prompts unless it must be there.

[02] Scope

QUESTION “WHAT IS THE REFUND WINDOW?” RETRIEVE · TOP 3 POLICY §4 0.91 FAQ #12 0.84 BLOG 2023 0.31 · DROP GROUND CITE A SOURCE OR DECLINE MATCH NO MATCH ANSWER 30 DAYS [1][2] DECLINE NOT IN SOURCES EVAL SET · EVERY CHANGE 11 / 12 PASS · ILLUSTRATIVE
Fig. 03 · Retrieve, ground, answer — or decline

Five ways it plugs in.

  1. 03.1

    Document answers

    Ask a question, get an answer quoted from your manuals, policies, or knowledge base — with the source linked.

  2. 03.2

    In-product assistants

    Help inside the app that knows the user's context and can call a small set of safe actions.

  3. 03.3

    Semantic search

    Search that understands what people mean, on top of the database you already run.

  4. 03.4

    Structured extraction

    Turn PDFs, emails, and forms into validated records your existing workflows can use.

  5. 03.5

    Content workflows

    Drafts, summaries, tagging, and translations with a review step before anything is published.

[03] Process

A pilot first, then production.

  1. Step 01

    Pick the use case

    One job, one set of users, and the questions they actually ask — collected before any code.

  2. Step 02

    Build the evaluation set

    Real questions with known good answers, so quality is measured rather than judged by feel.

  3. Step 03

    Pilot

    Retrieval, prompts, and a simple interface, tuned against the evaluation set on your real data.

  4. Step 04

    Harden

    Guardrails, rate and cost limits, logging, and failure handling for when the provider is slow or down.

  5. Step 05

    Launch and watch

    Release to a small group, review real conversations, and keep the evaluation set growing.

[04] Stack

Tools and technologies

Models
ClaudeGPTGeminiOpen-weight
Retrieval
pgvectorPostgreSQLHybrid searchReranking
Orchestration
Vercel AI SDKNode.jsBackground jobs
Front end
ReactNext.jsStreaming UI
Quality
Evaluation setsTracingGuardrails

[05] Fit

Who this is for

A good fit for

  • Products with a large body of content users struggle to search
  • Teams with an AI prototype that is not ready for real users
  • Agencies whose clients ask for AI features they cannot staff

Not the right fit for

  • Training foundation models
  • Features that only make sense with no human able to check them

[06] Related reading

Related articles

[07] Questions

Frequently asked questions

Which model will you use?

The smallest one that passes the evaluation set. The integration keeps the provider behind one interface, so the model can be swapped when a better or cheaper one proves itself.

How do you stop it making things up?

Answers are built only from retrieved sources and must cite them. When nothing relevant is found, the assistant says so instead of guessing, and the evaluation set checks both cases.

Does our data train the model?

Not with the API providers and settings I use: business API traffic is not used for training by default. Retention and region are confirmed against your provider's current terms before launch.

Can it run inside our existing product?

Yes. It is usually a few API routes, a background job for indexing, and a component in your interface, built in your codebase and deployed with the rest of the product.

How is it priced?

As a pilot with a fixed scope first, then a quote for production once the evaluation results show it is worth it.

[08] Other services

Other services

[ Next step ]

What should your product answer?