Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
paulkon
· 3y ago · 0 comments
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?
Comments
[–]
nnechm
3y 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.