Good ideas deserve good execution.
  • WhatApplied AI and agents, shipped into live products
  • WhatSolution architecture, pre-sales, customer success, delivery
  • ProofCI/CD build time cut ~80%
  • ProofLighthouse 95+ / 85+
  • Proof500+ product lines on one platform
  • Scale68+ projects, 52+ freelance engagements
  • ReachClients across 7 countries
  • Stack175 technologies, .NET to PyTorch to UiPath
  • Open toRemote worldwide - PKT, UK and US hours
  • Delivered3 US-based products delivered end to end, with cross-functional teams
  • WhatApplied AI and agents, shipped into live products
  • WhatSolution architecture, pre-sales, customer success, delivery
  • ProofCI/CD build time cut ~80%
  • ProofLighthouse 95+ / 85+
  • Proof500+ product lines on one platform
  • Scale68+ projects, 52+ freelance engagements
  • ReachClients across 7 countries
  • Stack175 technologies, .NET to PyTorch to UiPath
  • Open toRemote worldwide - PKT, UK and US hours
  • Delivered3 US-based products delivered end to end, with cross-functional teams
← All notes

Production RAG over a company's own content

2 min readAI, RAG, Delivery, Evaluation

Retrieval is the easy half. The hard half is what you index, what you refuse to answer, and how you prove the answer was right.

The most common way to fail at retrieval-augmented generation is not a bad model. It is a bad corpus.

On Half Price Packaging - Salsoft's custom-packaging commerce platform, serving 500+ product lines across custom boxes, rigid boxes, mailer boxes, bakery, cosmetics and a dozen more collections - the useful answer was never "what is a rigid box". It was "what do I sell, what is it made of, and where does the customer find it". That answer lives in the catalogue, in the location pages, and in the client stories. None of it is on a marketing page that a model can read once and remember.

Start with the corpus, not the model

Before choosing an embedding model, the questions the platform actually has to answer are these:

  • Which product lines fit this customer's order?
  • What is the difference between a mailer box and a chipboard box?
  • Where does a customer in Lahore see the bakery collection?
  • What do the client stories say about the experience of ordering?

Every one of those has a home in the company's own content. None of them has a home in a PDF someone uploaded once. Index the content the business already keeps current, and the answer stops being a retrieval problem and starts being a plumbing one.

Ground the answer, and show the ground

The retrieval layer answers product-discovery and support questions from the catalogue and the business content, and every answer carries the source it came from. Two reasons, and the second one matters more:

A support answer a human cannot check is a support answer that gets ignored.

If the source is visible, the content team can see which page is being relied on - and fix it. That feedback loop is worth more than a clever prompt.

Measure the answers, not the vibes

An evaluation report - answer accuracy and citation quality, measured - is part of the deliverable, not an afterthought. I kept a set of real questions from the catalogue, answered them against the corpus, and checked whether the answer was right AND whether the citation was the passage a human would have pointed at.

That is what turned a demo into something a team could run: a run-book they could maintain after the handover, an evaluation report they could re-run when the catalogue changed, and a retrieval design that survives a corpus larger than the demo.

What it does not do

Retrieval does not invent answers, and it should not. When the corpus does not have it, the honest response is "we do not have that on the site yet" - which is a business answer, not a model failure. It also does not replace the work of keeping the content organised; a catalogue that is a mess indexes into a mess.

The unglamorous truth: most of the effort is in the corpus, the evaluation and the handover. The model is the easy part.

Contact

How to reach me

Email, LinkedIn, Upwork, GitHub - one click each.

Lahore first, worldwide remote. PKT, UK and US hours. Open to sponsorship.

Open to

Two ways to work together.

Pick the shape that fits what you are trying to move.

  • Full-time rolesLahore first, worldwide remote
    • A role inside a team, owning a product or a platform end to end
    • PKT working hours, with the US and UK reachable in the evening
    • Sponsorship considered for the right role
  • Contractual engagementsA defined piece of work
    • Production RAG over your own content, or a CI/CD and delivery rescue
    • Delivered against a written scope, with the outcome agreed up front
    • The project catalogue is released on request, case studies included
See the engagements