Zenera Logo

Transform instructions and examples help guide the AI reasoning process in Zenera. They provide context and patterns that the AI uses to understand and transform your data corpuses.

Note: If a transform is empty (no instructions or examples are provided), Zenera will use the default AI reasoning without any additional guidance.

Adding a transform

To add a transform to your project:

  1. Open your project in Zenera Studio
  2. Navigate to the Transforms section
  3. Click "Add Transform" to create a new transform
  4. Add instructions and examples to guide the AI reasoning
  5. Test your transform using the Test View

General instructions

General instructions are applied to all examples in a transform. They provide high-level guidance about how the AI should process and understand the data.

Example: Boolean Algebra

Instructions:
- Understand Boolean algebra operations
- Recognize AND, OR, NOT operators
- Simplify Boolean expressions
- Apply De Morgan's laws when appropriate

Examples:
Input: "What is A AND B?"
Output: "A AND B is true only when both A and B are true"

Input: "Simplify NOT(A OR B)"
Output: "Using De Morgan's law: NOT A AND NOT B"

Instructions at the example level

You can also add instructions at the individual example level. These instructions are specific to that example and override or supplement the general instructions.

Example with specific instructions

Example 1:
Instructions: Focus on simplification, show step-by-step process
Input: "Simplify (A AND B) OR (A AND NOT B)"
Output: "Step 1: Factor out A
         Step 2: A AND (B OR NOT B)
         Step 3: Since (B OR NOT B) is always true
         Result: A"

Example 2:
Instructions: Provide truth table format
Input: "Truth table for A XOR B"
Output: "A | B | A XOR B
         0 | 0 |    0
         0 | 1 |    1
         1 | 0 |    1
         1 | 1 |    0"

Keywords in instructions

Zenera supports special keywords in transform instructions to help organize and reuse content:

#extend

The #extend keyword allows you to extend instructions from another transform, inheriting its instructions and examples.

Usage

#extend base-transform

Additional instructions specific to this transform...

#import

The #import keyword allows you to import specific examples or instructions from another transform without inheriting everything.

Usage

#import base-transform.example-1
#import base-transform.example-2

Your own instructions and examples...

See also