Y
Hacker News
new
|
ask
|
show
|
jobs
by
paulkon
1049 days ago
Could you share more about the prompt you use to get GPT-4 to return a query from the user's question? This is fed into postgres full text search?
1 comments
nnechm
1049 days ago
I am using openai's latest functions api, so you can get it to return arguments that will ensure that you get a json, it works pretty well most of the time. The json would then be used to fetch a report from a database.
link