Converting natural language to elasticsearch query using LLM

Hello,
I am trying to convert the natural language into elasticsearch query using LLM(GPT-3.5-Turbo).I have some doubts in conversions.

1)Can we add the description of the fields in the mapping?
2)How to use the all the index while doing the conversion?

Please share your thoughts .

Thank you!

Hi,

Did you get far with this? I am exploring something similar and can find this project from elastic (elasticsearch-chatgpt-php) but it requires index to be provided.

Any luck trying to use all available indexes to generate the relevant query from correct index.

Thank you