Best AI/NLP model for converting natural language to OpenSearch queries

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):2.17.1

Describe the issue:

Hi all,

I’m exploring ways to generate valid OpenSearch queries (JSON format) from natural language text.

**Goal:**

Users type prompts like “show me tunnels with latency > 50 ms” and an AI model converts that to a valid OpenSearch query that my Java backend can send to OpenSearch.

**Setup:**

- OpenSearch 2.17

- Backend: Java

- Frontend: Angular

- Considering small or offline LLMs Model

**Question:**

Which open-source AI or NLP models are recommended for this kind of query generation task?

Any example projects, best practices, or accuracy comparisons would be great!

Thanks in advance.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.