I asked “what are the top 5 stories of all time” and it pushed out the current five top stories in the home page :/
Tried with “most voted”, same result.
Tried with “most voted”, same result.
https://github.com/steven-tey/chathn/blob/main/app/api/chat/...
I wonder whether it is possible to create "atomic" functions to build high level queries from a user chat. Or maybe even create adapters to virtual db tables, and then tell ChatGPT to convert your query to SQL to be run on said tables.
In this case we'll have to define a "timeframe" variable in the `get_top_stories` function that takes in values like "now", "week", "alltime" etc. to make that work