Generative AI & Agentic AIModel adaptation and multimodal tasks

Prepare instruction examples without duplicating evaluation data

PK
Pankit Kumar
Sr. Data Scientist at Parexel (a Goldman Sachs–backed company) · 20 September 2026 · 2 min read
Technically reviewed by Ishaan Sharma
In this article (4 sections)

Instruction examples and evaluation rows often come from the same documents, conversations or templates. A random row split can put near-duplicates on both sides and inflate the apparent gain from tuning.

Group the source first

The adaptation lab gives two rows to each synthetic source. A naive split leaks S2; the grouped split does not.

python
from adaptation_cases import instruction_split_case

result = instruction_split_case()
assert result["naive_overlap"] == ["S2"]
assert result["grouped_overlap"] == []
assert result["eval_ids"] == ["I7", "I8"]
assert result["eval_labels_hidden"] is True

Exact source separation is necessary but not sufficient. Translated, paraphrased or template-derived examples may still carry the same answer.

Preserve provenance

Give every example an immutable ID, source ID, collection method, consent/rights status, authoring method, language and label history. Normalize and hash exact text, then review semantic-near duplicates and shared source passages. Split by customer, document, incident or template before generating variations.

Keep visible development examples, known regressions and a sealed final holdout. Prompt authors and annotators can use the development set. Restrict holdout labels and log every exposure. If a holdout row is inspected to fix a failure, move it into regression and replace it from the same sampling frame.

Audit instruction/response pairs for conflicting policies, sensitive data, unsupported facts and style shortcuts. Balance task slices deliberately; multiplying one template does not add equal information. Retain rejected and corrected examples with reasons.

The Generative & Agentic AI course treats data provenance and evaluation integrity as part of adaptation engineering.

Exercise

Create twenty source-grouped instruction pairs, inject two paraphrased duplicates and one conflicting label, then prove the split and audit catch them before any training job.

Continue learning

This article is part of the Model adaptation and multimodal tasks sequence. Use the neighbouring tasks when you need the prerequisite or the next application.

Reference: OpenAI Evals API.

PK
Pankit Kumar
Lead Instructor, NeuraPath Academy

Pankit Kumar has 10 years in Data Science & AI, building and shipping production systems in regulated pharma and clinical environments. He is a freelance trainer at Boston Institute of Analytics, AnalytixLabs and Scaler, and has taught this material to thousands of working professionals.

This article is part of our Generative & Agentic AI programme — 3 months. Add practical GenAI, retrieval and agent-building skills to your existing toolkit.

Explore Generative & Agentic AI
Counselling is free · no obligation

Not sure which programme fits?

Tell us your background and we will map it to the right entry point — including saying so when a cheaper programme is the better fit. A counsellor replies within one working day.