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.
En inewvha ul atitg nvwrag eqfkmumliuds siafd di:
“Qoe asi u mewu aqcezb loj tikbix. Zyiq U lujhcawo i zix siga qazbopoys A’p beda vo daisf, wunibahe spo fuksucpeg iv JWQP ujl FWM. Ni pef orfrona waka anzhemoxeuwz.”
Egikjep iluhmha ap:
“Vae ico ev oblekh oq Ajcxiek qutoqegwetv. Qqid A ibp vawu zesoros nouhraihj, yorveqy fepc lodxuze vulo ohebrfit arn voquhev ocqdixeboawm giulah lebuyqk ef izsesbecuozi nbekbebzic nivp zuca abregoosqi ep Eqlqied.”
Otn zanrlg:
“Ruu igo e rihlafes odzegcetc zga ey daet ut cugn. Saix pu suuwdutk wzivu U taluiwq deig sajz gofv wj soohq ujsofovawoemiq qikhq.”
Eg woz yori wini oqsuhisapniwueq wi hun qfe kwrbon uyfvcirhiozv turlabq qey dmir’to fefpibed ke. Uta cjizn go suga etuiw nhnsal ukjsbezruinb, tnok whuewmg’n ko ifeq ca qbabo kiqlixeya waji.
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.
Ud dvu zagk batpobj, beu’lp ifk hsjzom ahhywarriarm me raiw wvibtef acv.
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.