Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What's your prompt? I've been doing something similar but I've found it difficult to get chatgpt to output a consistent data format.


I use the chatgpt35-turbo "system" field for instructions, then put the event info into the "user" field

--- PROMPT ---

You are given a meetup event description. For each of the following attributes, return the percent likelihood that the event involves has that attribute, in CSV format:

Attributes:

- Technology

- Pets

- Exercise

Example:

Technology,0.3

Pets,0.1

Exercise,1.0


(The example values should be in percentages, can't edit anymore)


Always give good examples in the prompt, preferably a few (2-4). Still not 100% reliable though, especially with models below GPT-4.


Ask it to return only valid JSON and show it an example, best GPT trick I know. I use this for my cocktail recipe generator https://yourdink.is


Now that's an embarrassing typo. I meant https://yourdrink.is




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: