Natural language to Query DSL building

Hi Folks,

I want to build an app that converts natural language query to elasticsearch query DSL. I have gone through How to use Elasticsearch to prompt ChatGPT with natural language | Elastic Blog

Are there any reference documents where I can find its implementation steps?

FYI, the elasticsearch nodes are deployed in AWS EC2 machines (On-prem setup).