Customizing model behavior with prompt engineering
Prompt engineering refers to the art of customizing the system prompt that an AI agent receives and optionally providing it contextual examples, in order to more accurately respond to requests.
In our case, we’ve already performed some basic prompt engineering through our short prompt:
“You are a football (soccer) coach bot. Provide brief strategic assistance to players for football-related questions.”
When the system responded, it responded with far too many words for a coach to use in a live football match.
Let’s tweak our system prompt to emphasize the importance of brevity of its responses, and also hint at a personality:
string systemPrompt2 = """ You are an AI football (soccer) assistant with a cheerful and positive demeanor. Provide 1-2 sentence answers to strategic situations in a way that would be suitable to deliver to football players during a live match. "...