How Prompt Composability Works
Create base prompt components
Reference components in parent prompts
@@@abvdevPrompt syntax. You can reference by specific version or by label for dynamic resolution.Reference by label (recommended for production):ABV resolves references at fetch time
Update base prompts to propagate changes
production label to the new version, all parent prompts that reference it via label=production automatically use the updated content on their next fetch.Use Cases and Patterns
Shared System Instructions
Shared System Instructions
Common Few-Shot Examples
Common Few-Shot Examples
Company-Wide Guidelines and Policies
Company-Wide Guidelines and Policies
Multi-Language Prompt Components
Multi-Language Prompt Components
Version-Specific Testing
Version-Specific Testing
Nested Composition (Components Referencing Components)
Nested Composition (Components Referencing Components)
Implementation Examples
Create Composed Prompt via UI
Create Composed Prompt via UI
- Navigate to Prompt Management in ABV dashboard
- Create or edit a prompt
- Position your cursor where you want to insert a component reference
- Click Add prompt reference button
- Select the component prompt from the dropdown
- Choose reference type:
- Label (recommended): Select a label like
productionorstaging - Version: Select a specific version number
- Label (recommended): Select a label like
- Save the prompt
@@@abvdevPrompt:name=ComponentName|label=production@@@When you fetch this prompt via SDK or API, ABV automatically resolves the reference.Create Composed Prompt via Python SDK
Create Composed Prompt via Python SDK
Create Composed Prompt via JavaScript/TypeScript SDK
Create Composed Prompt via JavaScript/TypeScript SDK
Reference by Version (Testing)
Reference by Version (Testing)
label=production and reassign the production label from v1 to v2.