> For the complete documentation index, see [llms.txt](https://docs.raga.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.raga.ai/ragaai-catalyst/ragaai-metric-library/text-to-sql.md).

# Text-to-SQL

Overview of Text-to-SQL metrics in RagaAI Metric Library, covering SQL correctness, query ambiguity, and alignment with user intent.

**Text-to-SQL Metrics** are essential for assessing how well your natural language queries get translated into accurate and efficient SQL statements within **RagaAI Catalyst**. These metrics help ensure that your agents generate reliable, performant SQL and faithfully reflect user intent in data-intensive workflows.

### Text-to-SQL metrics are :

{% content-ref url="/pages/9YkvKc3J95jEamrGbbtl" %}
[SQL Response Correctness](/ragaai-catalyst/ragaai-metric-library/text-to-sql/sql-response-correctness.md)
{% endcontent-ref %}

{% content-ref url="/pages/nwA6WVIcIHsYDj8oySH9" %}
[SQL Prompt Ambiguity](/ragaai-catalyst/ragaai-metric-library/text-to-sql/sql-prompt-ambiguity.md)
{% endcontent-ref %}

{% content-ref url="/pages/JHtQS2t1cnrYhQpLsVWj" %}
[SQL Context Ambiguity](/ragaai-catalyst/ragaai-metric-library/text-to-sql/sql-context-ambiguity.md)
{% endcontent-ref %}

{% content-ref url="/pages/VJM6DNeA1GXj5njxH8Ki" %}
[SQL Context Sufficiency](/ragaai-catalyst/ragaai-metric-library/text-to-sql/sql-context-sufficiency.md)
{% endcontent-ref %}

{% content-ref url="/pages/yC7uAmrfdkNNl0r65PgA" %}
[SQL Prompt Injection](/ragaai-catalyst/ragaai-metric-library/text-to-sql/sql-prompt-injection.md)
{% endcontent-ref %}
