﻿# CodeFeedback-Filtered-Instruction: distinguish seed queries from trajectories

Use CodeFeedback-Filtered-Instruction as a selected single-turn seed pool, retaining source and language fields without confusing complexity filtering with correctness.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-codefeedback-filtered-instruction-seeds/
Language: en

## Choose seed records rather than dialogue records

The [official filtered-instruction resource](https://huggingface.co/datasets/m-a-p/CodeFeedback-Filtered-Instruction) exposes `query`, `answer`, `resource`, and `lang` in a training artifact. Its unit is a selected single-turn instruction/answer pair. The separate [Code-Feedback release](https://huggingface.co/datasets/m-a-p/Code-Feedback) instead exposes dialogue `messages`. These representations serve different purposes. If studying instruction selection or generating new conversations, preserve the seed artifact. If studying revision after execution, use the actual trajectories rather than manufacture a revision history from one query and answer.

## Trace the four contributing collections

The owner documentation identifies Magicoder-OSS-Instruct, a Python ShareGPT subset, Magicoder-Evol-Instruct, and Evol-Instruct-Code as sources. The `resource` field preserves this distinction after concatenation, while `lang` records the language annotation. Retain both for mixture analysis and do not infer human authorship from the presence of conversational wording. Source collections have different generation and curation histories. A selected subset inherits those histories; its new host label does not independently resolve every upstream content or usage condition.

## Interpret the complexity selection precisely

The [original construction paper](https://arxiv.org/html/2402.14658) describes a model judging queries together with their responses using complexity prompts. High-rated examples form the seed pool for later construction. This is a selection procedure, not an independent execution test or a human-certified difficulty scale. A sophisticated-looking answer can influence the assessment of an instruction. An editorial comparison should therefore distinguish length, requested capability, and executable validity rather than treating the filtering result as an objective ranking of programming tasks.

## Keep retained answers separate from later use

The card explicitly states that responses are retained for convenient reuse, while later processing generally uses queries alone except for single-turn packing. Supplying `answer` to a new task generator is a different input condition from the query-only construction. Record that choice with [provenance metadata](/journal/document-markdown-json-provenance/). For direct supervised tuning, an answer is a target requiring its own quality review; its presence in the filtered artifact does not imply that it was regenerated, executed, or corrected by the later feedback pipeline.

## Partition by source relationships before new evaluation

The released training artifact is not a prescribed independent code-generation test. Shared instructions can reappear in source datasets or resulting dialogues. Keep those relationships together when creating experimental partitions, applying [leakage checks](/journal/document-level-data-split-leakage/) to normalized text and available source identities. This resource is useful for controlled studies of seed selection and instruction mixtures. It does not by itself provide execution traces, successive repairs, or a correctness benchmark; those require separate data and an explicit evaluation procedure.
