Text 2 SQL - Schema too big to fit into completion API request

You can check NLSQL. com approach. They are doing it well with reliable approach, However, some prerequisites required such as first database structure emulation and providing business logic for KPIs calculations