System Instructions

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Customizing with System Instructions

You’ve added history and created an interactive multi-turn chatbot. Great work so far. Using conversation history is a great way to prime the model for a customized interaction. However, there’s a tool used to specifically customize the model’s behavior called system instructions. With system instructions, you can define behavior, knowledge base, tone, output format, and more.

Authoring System Instructions

A good practice when authoring system instructions is to write them crisply and clearly. You can also specify what to include in the responses and what not to include.

Utilizing AI Studio

If you’d like, you can try out system instructions in AI Studio. You can also set up your configuration parameters there and use the Get Code feature to get the code after you’ve added system instructions, changed the parameters, changed the safety settings and selected a model. Then, you can use the code automatically generated by Get Code to configure system instructions in your code.

See forum comments
Download course materials from Github
Previous: Demo: Chat History Next: Demo: System Instructions