Hi everyone,
I’m working on a project that requires generating SQL and MongoDB queries dynamically based on user inputs. I’m considering using OpenAI models (GPT-4-turbo or others) for this task and would love some recommendations.
The key requirements are:
- Generating complex SQL queries (joins, aggregations, conditions, etc.)
- Constructing MongoDB queries with filters, aggregations, and nested structures
- Ensuring accuracy and optimization of the generated queries
- Potential fine-tuning or prompt engineering for better results
Has anyone used OpenAI models for similar use cases? Which model or approach would be best suited for SQL and NoSQL query generation? Also, are there best practices for refining the output?
Looking forward to your insights!
Thanks.