TrainingExample#
- class scikitplot.corpus.TrainingExample(example_id, prompt, completion, chunk=None, metadata=<factory>)[source]#
A single example in an LLM fine-tuning dataset.
- Parameters:
- example_idstr
Unique identifier for this training example.
- promptstr
Input prompt / instruction text.
- completionstr
Expected model completion / response.
- chunkChunk or None
Source chunk this example was derived from (for provenance).
- metadataMetadataDict
Task type, dataset split, difficulty, …
- Parameters:
Notes
This schema is intentionally format-agnostic. Serialisation to OpenAI JSONL, Anthropic HH, or Alpaca format is handled by the
_exportsubmodule, not here.