submit_query_feedback
Submit feedback on generated SQL queries to improve accuracy. Incorrect SQL is classified and used for automatic learning.
Instructions
Submit feedback on generated SQL. Incorrect SQL is automatically classified and may be promoted to a few-shot example.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data_source_id | Yes | Data source ID | |
| question | Yes | Original natural-language question | |
| generated_sql | Yes | Generated SQL | |
| correct_sql | No | Correct SQL (provide when rating=down for automatic learning) | |
| rating | Yes | Rating: up (correct) or down (incorrect) |