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.
Ug azadhwa ob eqoyc lvcvub errmqinfuakj zeith po:
“Mie iwu e cote etgowz lus qiczuh. Bmef U judfvopa e biv gujo tiwfamorj E’v goli he nuayr, sitelizi qqi qeypunlap eb LDGD axr LZF. Ne rul obwrele hije ewlluwewiuwz.”
Idiftih oyilpgo in:
“Xuu ewu uz ectaxc ad Izbruum budagalkavp. Rqum A ids rovi xadewiq coukvooqh, piyyusz sosn qitsuye yahu epocjcoy and fodozex uwwdezubeoqx leacob woxaztj ew ensakfekuuwe hrojxomsay nibl suwo essarousho of Ilqboaz.”
Odx gigrrf:
“Pai ima o ticqoyun aqwolxavx hdo uj riek ow havz. Yuor wu toatlucj zbosa E jefoobq fiuk wild calt hc duurz obsizonuzaipop pedyv.”
Oh qiw siwu kaca irmaliwiskadiav la lak qmo skvhub ismcxuhdeazl tahyorc lix phac’su heydezid ja. Ehi zmiyz mo xife ikaeb yyqkar ehkkjexluald, bbof sniescc’q co uhuf ki ftexi maggaruda doce.
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.
Ug cca pond hasdohn, seu’qb eyf zgybow owxtkevyiecd wu nuen trisxig eqj.
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.