# `LangExtract.Template.Example`
[🔗](https://github.com/mdepolli/lang_extract/blob/v0.10.0/lib/lang_extract/template.ex#L20)

A single few-shot example: a sample `text` paired with the extractions
expected from it.

The extractions are the answer key for the sample text. They pin down
everything the template description leaves open: the class vocabulary,
the span granularity, which attributes to attach, and the output shape
itself — the class name becomes the JSON key in the model's reply.

Each extraction's `text` must appear verbatim in this example's `text`:
examples double as alignment ground truth, and `LangExtract.template!/2`
checks this at construction.

# `t`

```elixir
@type t() :: %LangExtract.Template.Example{
  extractions: [LangExtract.Extraction.t()],
  text: String.t()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
