Hi there oão Conceição
Thanks for using QandA platform
Yes, it’s possible to build a chatbot that generates SQL queries from natural language inputs and then processes the query results in natural language using Azure OpenAI and Azure AI Search. to do this, the file used by Azure AI Search should be structured to include metadata about your database schema. You could structure the data to include the table name and a list of columns along with their distinct values. For chunking, you index the schema metadata separately from the data rows to avoid losing critical information, especially for large tables. The "Total" column representing aggregated values can be included in the index as well to help with generating queries involving sums
If this helps kindly accept the answer thanks much.