Skip to main content

The Template Ecosystem

miStudio uses JSON templates for scientific reproducibility across four systems:

Template TypeWhat It SavesUse Case
Extraction TemplatesSample count, token filters, context window settingsStandardize extraction methodology
Training TemplatesAll SAE hyperparameters, architecture, layer/hook configShare exact training recipes
Labeling Prompt TemplatesLLM persona, analysis instructions, output formatConsistent labeling across teams
Steering Prompt TemplatesReusable prompt series for steering experimentsReproducible steering tests

All templates support: create, edit, duplicate, export (JSON), import, and favorites.

Extraction Templates

Extraction Templates — Standardize extraction methodology

Extraction templates capture sample counts, token filtering settings, context window configuration, and other extraction parameters for consistent methodology across experiments.

Training Templates

Training Templates — Save and reuse training configurations

Save any training configuration as a template for reproducibility. Export as JSON to share with colleagues, import templates from other researchers, and mark favorites for quick access.

Labeling Prompt Templates

Labeling Prompt Templates — Customize LLM analysis prompts

Customize how the LLM analyzes features by editing labeling prompt templates. Change the "persona" of the labeling assistant, adjust analysis instructions, and add domain-specific context.

Template Types

miStudio supports two template formats, controlled by the Template Type field:

TypePlaceholderData Shown to LLMBest For
legacy{tokens_table}Token → occurrence count tableFast, token-focused labeling
mistudio_context{examples_block}Full context: prefix << token >> suffix per exampleSemantic pattern labeling

The Context-Aware System Template

The built-in "Context-Aware Labeling (Semantic Pattern)" system template uses mistudio_context format and is the recommended starting point for new labeling jobs. It:

  • Shows full context windows for each activation example (not just token frequencies)
  • Instructs the LLM to identify the shared semantic pattern across all examples, not just name the prime token
  • Includes 3 negative (low-activation) counter-examples for contrastive grounding
  • Produces labels structured as {category, specific, description} where specific names the pattern

You cannot delete system templates, but you can duplicate them to create customized variants.

Labeling Prompt Templates panel — Context-Aware template at top, with miStudio Brand templates below

Clicking the eye icon on any template shows a full preview of its system message and user prompt:

Context-Aware template preview — system message instructs the model to identify semantic patterns, not token names

Steering Prompt Templates

Creating a Steering Prompt Template

Steering prompt templates store reusable series of prompts for batch steering experiments. Create a template with multiple prompts, then apply it across different features and strength configurations for systematic testing.