Rezaul Islam
All articles
AI & Automation

Shipping Your First RAG Feature Without Regret

Retrieval beats fine-tuning for most product teams. The hard parts are not the model — they are chunking, evaluation, and knowing when to say no.

Rezaul Islam2 min read
Share

Every company I have worked with in the last two years has wanted the same feature: ask questions of our own documents. Retrieval-augmented generation is the sensible way to build it, and it is also where teams burn a quarter learning the same three lessons.

Chunking is a product decision

How you split documents determines what the model can ever cite. Fixed 500-token windows are easy and wrong for structured content — they cut tables in half and orphan headings from the text beneath them. Split on the document's own structure first, then pack to a size budget.

Build the evaluation set before the pipeline

Thirty real questions with known-good answers, written by someone from the business, is worth more than any benchmark. Without it you cannot tell whether last week's prompt change helped or quietly broke citation accuracy.

  • Measure retrieval and generation separately — most failures are retrieval
  • Log the retrieved chunks with every answer, in production, from day one
  • Track refusal rate; a system that never says 'not in the documents' is lying somewhere
A confident wrong answer costs more trust than ten honest refusals.

Know what not to build

If the answer must be exactly right every time — pricing, compliance, medical dosing — do not put a language model between the user and the source of truth. Use retrieval to find the document and show it. Generation is for synthesis, not for arithmetic.

  • #RAG
  • #LLM
  • #Product
Share

Ratings & reviews

Rate the article and leave a note — useful pushback is as welcome as agreement.

Reader rating

5.0out of 5

Based on 1 review

  • 51
  • 40
  • 30
  • 20
  • 10

Rate this article

Write a review

Was this useful, or did it miss something? Both are worth saying.

Your rating

1 review

  • Elena VasquezProduct Manager
    25 Jun 2026

    The evaluation-set-first advice would have saved us six weeks. Wish I had read this in January.

Keep reading

Let's Build Something Great.

I'm always open to discussing new opportunities, collaborations and interesting projects.

Rezaul Islam

Engineering ManagerSoftware Architect