Effective policy writing in Moonbounce is crucial for accurate labelling of content. This guide provides best practices for crafting clear, maintainable, and efficient policies using Moonbounce’s syntax and features.Documentation Index
Fetch the complete documentation index at: https://docs.clavata.ai/llms.txt
Use this file to discover all available pages before exploring further.
Understanding Policy Structure
A Moonbounce policy comprises Labels containing one or more Rules. Each Rule uses Conditions and Signals to define what content should be flagged.Labels
- Definition: Organize related Rules under a common category.
- Syntax:
Rules
- Definition: Logical statements that evaluate content against specified Conditions and Signals.
- Example:
Priority
Priority allows you to specify hierarchies when it comes to your Labels. This allows you to say if there are two labels that come back as true then prefer one over the other.Writing Efficient Rules
Simple Inclusion vs. Logical Operators
Example 1:Both Rules aim to flag content mentioning “dogs” in relation to a “park”.
Handling Multiple Contexts
Example 1:Other than readability or organization, there is no difference in the two
“dogs” examples. They are both functionally looking for the same thing.
Context and personal workflows can dictate how you write different policies.
Policy Pitfalls
Vagueness
The enemy of a good policy is not having the AI understand what you mean. Much like a human, if you were to say “there is a deli down the street”, a human might ask:- Which direction?
- How far?
- How long will it take me?
Contradictory Statements
Contradictory statements can be just as harmful for AI as it can be for humans when it comes to understanding. Things like below cause your brain to pause and the same thing can happen with AI.- “Shattered glass still whole”
- “bloody wound with no blood”
- “Drenched but completely dry”
Placing in the wrong place
An easy mistake to make is placing your braces in the wrong locations when using UNLESS statements. These statements allow you to carve out exceptions for your policy. Want to label discussions of sports but not when it comes to Baseball? By adding it to an UNLESS block you can.Best Practices
- Clarity: Write Rules that are easy to understand.
- Maintainability: Use concise structures to simplify updates.
- Testing: Regularly test Policies to ensure accuracy.
- Documentation: Comment complex Rules for future reference.
We’d Love to Hear From You
Whether you have a suggestion, feedback, or a bug to report, here are the best ways to get in touch:- In the App: Use the Feedback button for direct suggestions.
- On Slack: Reach out to the team in your shared channel.
- With your AM: Talk to your dedicated account manager.
- Via Email: Send a message to support@moonbounce.io.
- Security, availability, or other incidents: Use the in-app Feedback button or email support@moonbounce.io. See Customer Feedback for what to include.