Slide 28
Slide 28 text
© 2024, Amazon Web Services, Inc. or its affiliates. All rights reserved.
chatbot = Chatbot(
default_reply_length = 20,
bot_persona = pmodel[‘friendly’],
users_name =“User”,
bots_name = “Chatbot”,
topic = “tech support”
)
prompt = """This is a friendly and safe
chat session between a user and a
computer called Chatbot.
User:I am a real person with a question
to ask. Who are you?
Chatbot:I am a chatbot, and I am here
to help.
User:What kind of questions will you
answer?
Chatbot:I will answer questions about
tech support.
User:My computer has crashed. What
should I do?
Chatbot:"""
A new way to program…