# Text-to-SQL

**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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.raga.ai/ragaai-catalyst/ragaai-metric-library/text-to-sql.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
