- Accuracy: Pre-vetted queries ensure consistent and correct results.
- Performance: Optimized query execution paths for common questions.
- Reusability: Common business questions can be stored once and reused.
- Canonicalization: Standardize the way metrics are calculated and combined.
Create Reviewed Queries
Reviewed queries are created from the chat experience. Each chat response comes with a thumb up/thumb down button to provide feedback. When you click the thumb up icon, a modal to Review the Question opens. Here, you need to add the question that the SQL code answers to. After confirmation, these queries will be listed in the Knowledge > Reviewed Queries tab. The following code block shows an example of a query to calculate the win rate for sales that was validated by clicking the thumb up button.