← Back to context

Comment by gregw134

3 years ago

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

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