Slide 30
Slide 30 text
© Recruit Co., Ltd. All Rights Reserved
Answerer
● システムプロンプト、キーワード、Guesserの質問をLLMに入力し、
‘yes’ か ‘no’を出力させる
LLMパート 1/2
30
messages = [
{
"role": "system",
"content": "You are an AI that answers with 'yes' or 'no' to determine
if a statement based on a keyword is true. Answer yes or no only."
},
{
"role": "user",
"content": "Keyword: {keyword}, Question: {question}"
}
]