Skip to main content

Overview

System prompts define the behavior mode of the AI assistant, including character settings, language styles, task modes, and specific behaviors. Qwen-1.8B-Chat and Qwen-72B-Chat have been specifically trained with enhanced system prompt capabilities.
Model Support:System prompt enhancement is currently available in:
  • ✅ Qwen-72B-Chat
  • ✅ Qwen-1.8B-Chat
Other models have basic system prompt support but not the enhanced training.

What are System Prompts?

System prompts set the foundational behavior of the AI assistant:
  • Character Settings: Define who the assistant is (e.g., “You are a helpful assistant”)
  • Language Style: Control tone, formality, and expression style
  • Task Modes: Specify specialized tasks (e.g., translation, summarization)
  • Behavioral Rules: Define specific behaviors and constraints
System prompts remain stable across multiple conversation turns, allowing consistent customization of the AI assistant’s behavior.

Basic Usage

Simple System Prompt

English System Prompt

System Prompt Use Cases

1. Role Playing

Create immersive character interactions:

2. Language Style Control

Adjust tone, formality, and expression:

3. Task-Specific Configuration

Optimize for specific tasks:

4. Behavior Control

Define specific behavioral rules:
1

Define Constraints

2

Test Boundaries

3

Verify Consistency

Advanced System Prompt Patterns

Multi-Aspect System Prompts

Combine multiple aspects for complex behavior:

Dynamic System Prompts

Adjust system prompts based on context:

Context-Aware System Prompts

Best Practices

Be Specific

Provide clear, detailed instructions rather than vague directives

Test Stability

Verify the system prompt maintains effect across multiple turns

Use Examples

Include examples in system prompts to demonstrate desired behavior

Keep Reasonable Length

Balance detail with token efficiency; very long system prompts may impact performance

Common Patterns

Example-Based System Prompts

Rule-Based System Prompts

Persona-Based System Prompts

Debugging System Prompts

1

Test Incrementally

Start with basic system prompt and add complexity gradually:
2

Measure Compliance

3

Iterate and Refine

Refine based on test results until desired behavior is achieved.

Limitations and Considerations

Important Limitations:
  • Model Variations: Enhanced system prompt support is only in Qwen-1.8B-Chat and Qwen-72B-Chat
  • Token Cost: System prompts consume tokens from your context window
  • Not Foolproof: Models may still deviate from system prompts in edge cases
  • Stability: More complex system prompts may be harder to maintain across long conversations

Complete Example

Next Steps

Function Calling

Combine system prompts with function calling

Agent Building

Use system prompts to define agent behavior

Long Context

Manage system prompts in long conversations