SQL Response Correctness
Check if the LLM-generated SQL query retrieves the intended data. Evaluate accuracy of the model’s NL-to-SQL conversion against expected results.

Last updated
Was this helpful?
Check if the LLM-generated SQL query retrieves the intended data. Evaluate accuracy of the model’s NL-to-SQL conversion against expected results.

Last updated
Was this helpful?
Was this helpful?
# SQL Response Correctness
metrics = [
{"name": "SQL Response Correctness", "config": {"model": "gpt-4o-mini", "provider":"azure", "key": "value"}, "column_name":"SQL_Response_Correctness_v2"},
{"name": "SQL Response Correctness", "config": {"model": "gpt-4o-mini", "provider":"openai", "key":"value"}, "column_name":"SQL_Response_Correctness_v2"}
]