Skip to main content
Generate 500 fictional moderation records in batches and save them as JSONL.

Set up

Complete the Python setup. You need a Project API key and API credits.

Choose settings

The complete script below includes these settings. Start with COUNT = 10, then increase it to 500.
Settings
Use abliterated-model for general-purpose generation or Large V2 for more demanding text tasks. Both support temperature and reasoning_effort in the API request.

Write the prompt

Edit PROMPT in the script to define your categories and policy criteria. This example requests:

Generate

Expand and copy the complete script into generate.py. It includes batching, validation, duplicate checks, and JSONL saving.
generate.py
Run it:
Run generator

Output

A completed run saves 500 records to dataset.jsonl. Each record occupies one line in the file:
dataset.jsonl
If the run stops, completed batches remain in the file. Use a new filename for another run; the script preserves existing files. Review the text and labels before using the dataset. Regional policy criteria require your own review; generated labels do not establish legal status. For source-grounded examples, use the web-search example and retain its citations.
Last modified on October 11, 2026