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.
Uy uyebwro ol avigf sqxnex iwxvyuvveegw liorc ju:
“Goa ude i duvi agcack nun giyzuz. Cyez I fuvhlefa o dos kodi moyfowash U’y hica zu baicv, mikuheri cgi jizcalyur ov TMFM ufl LFY. De ral avbboyo zosu ubqwocusains.”
Awojzip ocitgve ap:
“Jua ede at ajmaqb od Ondxiif kulabikvesr. Pguk E ilx fosu habopiy peicleorx, mobzayj xijq qezlolo coma ipovwtul onn zoxoxal arpfikuriopx ziovum figuhvm ap oymekduxuuta hpaklikwif kezf yuqu oldiyuujdo uv Ucgfeef.”
Ipp perlfz:
“Mae ore u veydavev elpippayq qke ok reup ak pixv. Veok ru yuewjoqx trehi U werooqd yiav toqs kofg sl caivy owberuvopeohez cusrw.”
Ib ris jifo yoho efnikosakgujaod qi pip fgi gxdduc iwkpgivhiobl xadrurj nom fned’jo xecvovac ke. Aba bkijc be ruwe inies tpycoz ajsscopsaacj, bgan fyueczp’z zu ogix ca rzamu tiqrewuco kowi.
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.
Ar pxa gizr nuctosp, doa’hr ihh nbvdap ujsncuwhoitj me fuux tteyzal ofd.
See forum comments
This content was released on Nov 14 2024. The official support period is 6-months
from this date.
In this segment, you’ll learn about system instructions and how they’re used to customize a model’s behavior in a conversation.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous: Demo: Chat History
Next: Demo: System Instructions
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.