Contract engineering · Retrieval

A senior retrieval engineer inside your team, working your backlog

If you already own a knowledge assistant or enterprise search product and need senior hands to improve retrieval quality, permission handling and answer evaluation, you can contract me as a RAG engineer. I join your team under your engineering manager, work in your repositories and review process, and leave a prioritised retrieval backlog, a relevance evaluation plan and a written handover.

This is a good fit if…

  • You have a RAG or enterprise search system in production or late pilot, and an engineering team that owns it.
  • Answer quality complaints are piling up, but nobody on the team has time to build a proper retrieval evaluation.
  • You need permission-aware retrieval (per-user or per-tenant access) and want someone who has handled access control in AI systems before.
  • You have an approved contract requirement and want to engage the person doing the work directly.

Look elsewhere if…

  • You want a fixed-price fix with acceptance criteria rather than capacity under your manager. Use RAG quality rescue instead.
  • You have no retrieval system yet and need someone to design and deliver one end to end. Use RAG and enterprise search engineering instead.
  • You need a generalisable research finding about retrieval conflicts rather than a working system. That is a validation study, not a contract.

What you get

Retrieval backlog, relevance evaluation plan, access-control tasks and handover

  • A retrieval backlog your team agrees with, ranked by measured impact on answers rather than by opinion.
  • A relevance evaluation set and harness your team can run in CI before every retrieval change.
  • Access-control gaps found, written up and either fixed or ticketed with an owner.
  • Chunking, indexing and re-ranking changes shipped through your normal review process.
  • A handover document that lets your team continue without me.

Responsibilities I can own

  • Profile the current pipeline: ingestion, chunking, embeddings, index, retrieval, re-ranking and prompt assembly.
  • Build a labelled relevance set with your domain experts and wire it into an evaluation harness.
  • Trace permission enforcement from source system to retrieved passage and close gaps.
  • Implement and measure retrieval changes: hybrid search, metadata filters, re-rankers, query rewriting.
  • Add freshness and re-indexing controls so answers do not quietly go stale.
  • Pair with your engineers on each change so the knowledge stays in the team.

Stack fit

  • Python
  • TypeScript
  • PostgreSQL / pgvector
  • Elasticsearch / OpenSearch
  • Vector databases
  • Embedding models
  • Cross-encoder re-rankers
  • LLM APIs
  • Evaluation harnesses
  • CI pipelines

Onboarding I need from you

  • Repository and staging access under your normal joiner process.
  • A named engineering manager who sets priorities and reviews work.
  • Two or three domain experts who can label relevance for an hour or two a week.
  • Read access to query logs or a representative sample, with personal data handled under your policy.

Reporting

I report to your engineering manager, work your sprint cadence, and send a short written update each week covering what changed in retrieval quality and what is next.

How it runs

  1. 01

    Brief and fit check

    You send the role brief. I reply with questions, an honest view on fit, and confirmed availability before anything is signed.

  2. 02

    Baseline in the first weeks

    I map the pipeline, build the first relevance set with your experts and measure where answers fail: retrieval, ranking, permissions or generation.

  3. 03

    Work the backlog

    Changes ship through your review process, each with a before-and-after evaluation run. Priorities stay with your manager.

  4. 04

    Handover

    A written handover: evaluation harness, remaining backlog, known risks and the runbook for re-indexing and access changes.

What needs to be in place

  • An existing retrieval or search system, or a committed design your team owns.
  • An engineering manager with authority over the backlog.
  • Agreed access to data and logs, and a written basis for handling personal or confidential data.
  • A contract basis agreed up front: direct, via your agency, and your IR35 or equivalent assessment.

Not included

  • Ownership of the product roadmap or team management. That is a leadership mandate, not a contract role.
  • Guaranteed answer-accuracy figures. Evaluation shows what improved and what did not.
  • Out-of-hours on-call support unless agreed separately in writing.
  • Substitution by another engineer. Any specialist help is disclosed and approved by you first.

When a RAG contract is the right buy

Most teams that ask for a “RAG engineer” are not starting from scratch. A knowledge assistant or internal search product already exists. It answers most questions, but users have stopped trusting it: it cites the wrong policy version, misses documents everyone knows exist, or (worse) surfaces a passage the user should never have been able to see. The team that built it is now busy with the next feature, and nobody owns retrieval quality as a discipline.

That is the situation this contract is for. You do not need a new system or a consultancy. You need a senior engineer who has done retrieval work before to sit inside your team, find out where answers actually fail, and fix it in your codebase, under your manager’s priorities.

What the work involves

Retrieval problems hide behind generation problems. When an answer is wrong, the cause is usually one of four things, and each needs a different fix:

  • Nothing relevant was retrieved. Chunking split the answer across boundaries, the embedding model does not understand your domain vocabulary, or the document was never indexed.
  • The right passage was retrieved but ranked too low to make it into the context window. That calls for re-ranking, hybrid lexical-plus-vector search, or metadata filters.
  • The passage was retrieved but should not have been. Permission metadata was lost at ingestion, or filters are applied after retrieval rather than in the query.
  • Retrieval was fine; generation was not. The model ignored or misread good context. This is a prompt or model problem, and retrieval changes will not help.

The first job is to tell these apart with evidence. I build a relevance set with two or three of your domain experts (real questions, the passages that should answer them, and passages that must never appear for a given user) and wire it into an evaluation harness your team can run on every change.

The signature deliverable

At the end of the contract you hold a retrieval backlog, a relevance evaluation plan, access-control tasks and a handover. Illustrative example of a backlog extract:

#FindingEvidenceProposed changeOwner
1Policy answers cite superseded versions14 of 60 policy questions retrieve an older version firstAdd effective-date metadata; filter to current version by defaultPlatform team
2Contractor accounts can retrieve HR-only passages3 leaking passages found in permission test setEnforce group ACLs in the vector query, not post-filterSecurity + platform
3Product codes split across chunksRecall on part-number queries well below other categoriesStructure-aware chunking for spec sheetsMe, paired with team

Illustrative example. The numbers are placeholders showing the format, not results from a client.

How acceptance is judged

Your engineering manager sets priorities and accepts each change through your normal review. Every retrieval change is measured against the same relevance set before and after, and the result goes in the pull request. Permission findings get a separate test set that must pass with zero leaks before a change merges. At the end, the evaluation harness, the backlog and the handover are the measurable output: your team can show what improved and keep measuring after I leave.

Ownership and handover

The system, the backlog and the decisions stay with your team throughout. I pair on changes rather than working in a corner, so by the end at least one of your engineers can run the evaluation, interpret it and make the next retrieval change without me. The written handover covers the harness, the remaining backlog in priority order, known risks, and the runbook for re-indexing and access changes.

When to choose something else

If you would rather commission a fixed outcome with acceptance criteria and have me responsible for delivering it, use RAG quality rescue. If you are designing a new retrieval system, start with RAG and enterprise search engineering. If the requirement is wider LLM application work, not just retrieval, the contract LLM engineer role is the better brief. If you only need recurring senior input a few days a week, see part-time AI engineering capacity.

Questions buyers ask

How is this different from commissioning a RAG project?

A contract buys an engineer's time under your manager and priorities. The backlog, the decisions and the product stay yours. A RAG project is a commissioned outcome with acceptance criteria that I am responsible for delivering. If you cannot spare a manager to direct the work, a scoped project is usually the better fit.

Can you work inside our security and data rules?

Yes. I work on your machines or approved devices, through your access controls, and I do not copy data out of your environment. Where evaluation needs real queries, we agree a sample and how personal data is handled before I see it.

What contract basis do you work on?

Directly, through your preferred agency, or through a partner, at the published day rate. Your organisation makes the IR35 or equivalent status determination; I will give you the working-practice facts you need for it, but not tax advice.

How quickly will we see answer quality move?

The first deliverable is a measured baseline, so you know where answers fail before anything changes. After that, every change is evaluated against the same set, so you see real movement or a clear reason why a change did not help. I don't promise a figure in advance.

What if we only need a few days a week?

Part-time contracts are common for retrieval work, because labelling and evaluation cycles create natural pauses. We agree a fixed pattern, such as two days a week, so your team can plan around it.

Related engagements

Contract engineering · LLM applications

LLM engineer

We have a funded LLM backlog and need a senior engineer to implement it within our team. How would a personal contract be scoped?

You get:Named contractor remit, delivery backlog, access prerequisites and handover plan

Contract engineering · Agents

AI agent engineer

We need someone to build tool-using workflows with reliable state, permissions and recovery, not another agent demo. What skills and scope fit?

You get:Contract brief covering tool actions, state, evaluation and production ownership

AI delivery · Retrieval

RAG and enterprise search

We need an internal assistant over private documents. Who can build retrieval that respects access rights and shows its sources?

You get:Retrieval and knowledge-system implementation

AI delivery · Retrieval repair

RAG quality rescue

Our assistant retrieves the wrong documents or answers from outdated sources. How do we find the cause and validate a fix?

You get:Retrieval failure analysis, freshness tests, permission checks and evaluated repair

Contract engineering · Part-time

Part-time AI engineer

We have meaningful work but not a full-time workload. How can a part-time contract avoid fragmented ownership and waiting time?

You get:Agreed weekly capacity, work-in-progress limit, communication window and decision SLA

Contract engineering · Enablement

AI enablement engineer

We need a hands-on engineer who can implement workflows and coach users rather than sell a training-only programme. How should the role be written?

You get:Embedded implementation-and-coaching remit, workflow backlog and adoption handover

Further reading

Send an engineering brief

A short, non-confidential description is enough to start. I read every brief personally and reply within two business days, including when the answer is that I am not the right fit.

Step 1 of 2 · The basics