Policy class represents a policy document used for dataset generation.
Import
Creating a Policy
From String
From File
Direct String (Shorthand)
Properties
| Property | Type | Description |
|---|---|---|
text | str | The policy text content |
Methods
from_file()
Load policy from a file.Path to the policy file
Built-in Policies
Synkro includes example policies for testing and development:customer_support
Customer service guidelines including:- Response tone and professionalism
- Refund and return policies
- Escalation procedures
- Privacy handling
expense_approval
Expense reimbursement rules including:- Approval thresholds
- Receipt requirements
- Category restrictions
- Documentation rules
content_moderation
Content policy rules including:- Prohibited content types
- Age restrictions
- Copyright handling
- Community guidelines
Custom Policy Tips
Structure
Organize policies with clear sections:Best Practices
- Be explicit: State rules clearly, avoid ambiguity
- Include examples: “For example, if a customer requests…”
- Define exceptions: Clearly state when rules don’t apply
- Use consistent terminology: Pick terms and use them throughout
- Organize by topic: Group related rules together