Data Product Question Manager
The Data Product Question Manager agent helps you build and maintain high-quality SQL evaluation sets for your data products. It can generate new question/SQL pairs and audit existing ones for quality and correctness.
How it works
Section titled “How it works”The agent follows this workflow:
- Reviews existing evaluation questions to avoid duplicates and understand terminology
- Explores data schemas and sample values to understand business context
- Generates diverse questions across five complexity categories (complex filters, joins, column transformations, business jargon, complex operators)
- Validates each SQL query by executing it against the data product
- Saves the evaluation set as a CSV and presents it for review
- Uploads the evaluation set after receiving user confirmation
- For auditing tasks, reviews existing questions for SQL correctness, clarity, coverage, and duplicates
Input parameters
Section titled “Input parameters”Required:
message(string): The request to send to the agent (e.g., “Generate 10 new evaluation questions” or “Audit existing questions”)data_product_id(string): The ID of the data product to manage evaluation questions for
Output format
Section titled “Output format”The agent produces a series of thinking, tool call, tool return, and text blocks as it works through the user request.
The final message, assuming no errors, is a string with evaluation set details and upload confirmation.
Available tools
Section titled “Available tools”The agent has access to ten tools organized into three categories:
Evaluation management
Section titled “Evaluation management”- Get SQL Evaluation Set: Retrieve existing question/SQL pairs to avoid duplicates and understand current coverage
- Get SQL Evaluation Case: Retrieve details of a specific evaluation case by ID
- Update SQL Evaluation Case: Modify the question or SQL of an existing evaluation case
- Delete SQL Evaluation Case: Remove an evaluation case from the set
- Upload SQL Evaluation Set: Upload a completed evaluation set to the data product
Data exploration
Section titled “Data exploration”- Get Data Schema: Retrieve schema information to understand available tables and columns
- SQL Execution: Execute and validate SQL queries against the data product
Asset management
Section titled “Asset management”- Save Asset: Save evaluation sets as CSV files for review and upload
- Retrieve Asset: Retrieve previously saved evaluation sets
- List Assets: Discover available saved assets
Behavior notes
Section titled “Behavior notes”- Questions must represent realistic business inquiries, not trivial queries like “how many rows in my data”
- The agent generates no more than 20 questions at a time
- Questions should be concise and sound natural, as if asked by a business user
- All updates and deletions require user confirmation
- Evaluation sets are saved in CSV format with columns:
question,sql,notes