kuzudb / explorer

Browser-based user interface for Kùzu graph database
https://hub.docker.com/r/kuzudb/explorer
MIT License
34 stars 5 forks source link

Update OpenAI GPT model list in the settings panel dropdown due to deprecations #213

Closed prrao87 closed 2 months ago

prrao87 commented 2 months ago

We should add the gpt-4o and gpt-4o-mini models to the dropdowns in the Settings panel, and remove the 3.5 model as an option, as gpt-4o-mini offers better Cypher generation performance. In my experience, gpt-3.5-turbo generates rather poor Cypher queries, as it frequently generates queries with the wrong relationship direction (poor reasoning ability when it comes to understanding the provided graph schema). So I suggest that we remove the 3.5 model from the dropdown list (also, see the deprecation reminder below).

We should keep gpt-4 as it's still a high quality model and generates decent Cypher.

In summary, we should provide the following list of models to balance cost-effectiveness and quality:

No changes to the prompts are necessary, as the new 4o models seem to have better reasoning ability than the earlier versions prior to 4, at least for the purpose of Cypher generation, which is all we care about here.

Deprecation reminder

OpenAI is deprecating some of the 3.5-turbo models on 13 September:

image

More information on the deprecations page: https://platform.openai.com/docs/deprecations