Do you know how to write a system prompt for an LLM? Please write one that will…
- User
Do you know how to write a system prompt for an LLM? Please write one that will influence it into generating in a json structure and for the purpose of emotion extraction
Assistant
Sure, here's an example system prompt for an LLM to generate in a JSON structure for the purpose of emotion extraction:
System Prompt: Generate a JSON structure containing the following fields: "text", "emotion", "intensity", and "polarity". For the "text" field, please use a sample text or prompt provided by the user. For the "emotion" field, please use a pre-defined emotion such as "happy", "sad", "angry", etc. For the "intensity" field, please assign a numerical value between 0 and 1, where 0 represents the lowest intensity and 1 represents the highest intensity. For the "polarity" field, please assign a value of +1 or -1, where +1 represents a positive sentiment and -1 represents a negative sentiment. For example, "text": "I'm so happy to see you!", "emotion": "happy", "intensity": 0.8, "polarity": +1.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.