> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xkat.space/llms.txt
> Use this file to discover all available pages before exploring further.

# V4 Generator

> The AI engine that builds lesson content node by node.

The **V4 Generator** is xkat's AI content engine. Given an approved outline, it
generates lesson content for each node — explanations, examples, and runnable
exercises — under tight quality controls.

## How it generates reliably

The generator isn't a single prompt. It layers controls so AI output stays within
intended bounds:

<CardGroup cols={2}>
  <Card title="Golden Templates" icon="stamp">
    A few perfectly-built example lessons act as a reference the AI must match —
    far more effective than long instructions.
  </Card>

  <Card title="Validation & retry" icon="rotate">
    Structured-output checks reject content that breaks the rules and make the AI
    self-correct.
  </Card>

  <Card title="Integrity checks" icon="circle-check">
    Required nodes (such as title and language config) are verified as present and
    connected before content is accepted.
  </Card>

  <Card title="English-Pivot" icon="language">
    Content is generated in English first for the highest quality, then translated.
  </Card>
</CardGroup>

## Your role

You guide the generator with the outline, constraints, and templates — then review
and refine its output. The result is course-quality content produced far faster
than writing everything by hand.

## Learn more

<CardGroup cols={2}>
  <Card title="AI control pipeline" icon="gears" href="/en/platform/ai-pipeline">
    The full picture of how reliability is enforced.
  </Card>

  <Card title="The Harness" icon="shield-check" href="/en/studio/harness">
    How generated code is validated.
  </Card>
</CardGroup>
