From b4362701b98fc140b41340560338c6ac92f490cf Mon Sep 17 00:00:00 2001 From: Cutshion Date: Mon, 26 Oct 2026 15:55:05 +0900 Subject: [PATCH] Improve quick answers and song requests at every speech level Co-Authored-By: Claude Opus 5.5 --- assistant/abilities.py | 11 +- assistant/bank_words/company.py | 22 ++-- assistant/bank_words/facts.py | 75 ++++++++++-- assistant/bank_words/levels.py | 201 ++++++++++++++++++++++++++++++++ assistant/battery.py | 3 +- assistant/quick_answers.py | 32 ++--- audio/sing.py | 75 +++++++----- tests/qa_eval.py | 11 +- tests/test_songs.py | 12 ++ tests/web_eval.py | 4 +- 10 files changed, 383 insertions(+), 63 deletions(-) create mode 100644 assistant/bank_words/levels.py diff --git a/assistant/abilities.py b/assistant/abilities.py index 4ac33de..e7b5a76 100644 --- a/assistant/abilities.py +++ b/assistant/abilities.py @@ -9,7 +9,9 @@ knowledge/lumi_about_en.md "What I can do now" and brain.SYSTEM "What you can do import re import sys -ASKED = re.compile(r"\bwhat (?:else |all |things |kinds? of things )?(?:can|could) you do\b(?!\s+(?:with|about|if|when|to|for (?:it|that)))|" +ASKED = re.compile(r"\bwhat (?:else |all |things |kinds? of things )?(?:can|could) (?:you|u) do\b(?!\s+(?:with|about|if|when|to|for (?:it|that)))|" + r"\b(?:you|u) can do what\b(?!\s+(?:you|i|we|he|she|they|it|ever)\b)|\bwhat (?:you|u) can do(?:ing)?\b|\b(?:skills?|functions?|abilities)\s*(?:뭐|뭔|머|있|이써)|" + r"(?:스킬|펑션|평션)\S*\s*(?:뭐|뭔|머|있|이써|알려)|" r"\bwhat (?:are|r) (?:all )?your (?:abilities|skills|capabilities|functions|features|talents)\b|" r"\bwhat are you (?:able to do|capable of|good at)\b|\bwhat do you do\b(?!\s+(?:with|when|if|for fun))|" r"\bwhat can you help (?:me |us )?with\b|\btell me (?:about )?(?:what you can do|your (?:abilities|skills))\b|" @@ -17,8 +19,8 @@ ASKED = re.compile(r"\bwhat (?:else |all |things |kinds? of things )?(?:can|coul r"\bwhat can (?:i|we) (?:ask|get|have) you (?:to )?do\b|\bwhat (?:are your|is your) (?:special )?(?:talents?|specialty|speciality)\b|" r"(? 알려 줘": the same question asked as a request EN_NOUN = ["what's your {}", "what is your {}", "tell me your {}", "what {} do you have", "what's the robot's {}", "your {}?", "what is lumi's {}", "what's this robot's {}", "{} of this robot", "what {} does this robot have"] EN_ABLE = ["can you {}", "are you able to {}", "can lumi {}", "is this robot able to {}", "do you know how to {}", "can this robot {}", @@ -362,6 +365,8 @@ HAVES = { # kind: ([Korean nouns before 있-], [English "a ..."]) } for _kind, (_ko_n, _en_n) in NOUNS.items(): QUICK_KINDS[_kind][0].extend(w + n + e for w in ["", "너 ", "이 로봇 "] for n in _ko_n for e in HOW) + QUICK_KINDS[_kind][0].extend(w + n + e for w in ["", "로봇 ", "이 로봇 ", "루미 "] + for n in dict.fromkeys(re.sub(r"[이가] $", " ", n) for n in _ko_n) for e in TELL) QUICK_KINDS[_kind][0].extend(f.format(n) for f in EN_NOUN for n in _en_n) for _kind, (_ko_n, _en_n) in TOOLS.items(): QUICK_KINDS[_kind][0].extend(w + n + e for w in KO_WHO[:4] for n in _ko_n for e in USE) @@ -392,3 +397,59 @@ for _kind, _texts in { "operator": ["who operates this robot", "who runs this robot", "who is in charge of this robot", "이 로봇 누가 운영해요", "이 로봇 관리자 누구예요"], }.items(): QUICK_KINDS[_kind][0].extend(_texts) + +# night 4, round 2: kinds the train sets asked for (knowledge/lumi_about_en.md: the arm, the gripper, short moves) +QUICK_KINDS["paper_cup"] = ( + _ko(["종이컵 집을 수 있", "종이컵 잡을 수 있", "종이컵도 잡을 수 있", "종이컵도 집을 수 있", "종이컵 들 수 있", "종이컵 잡으실 수 있", + "paper cup 잡을 수 있", "종이컵 잡을수있", "종이컵 집을수있"], CAN) + + ["종이컵도 잡아", "종이컵 잡아요", "종이컵은 못 잡아", "종이컵은 안 돼요", "종이컵도 돼요", "종이컵 되나", "종이컵 잡을 줄 알아", + "종이컵 집으면 찌그러져요", "종이컵 같은 거 잡을 수 있습니까", "종이컵은 어떻게 돼요", "종이컵 잡을 수 있는교", + "can you grab a paper cup", "can you pick up a paper cup", "can you hold a paper cup", "are you able to hold paper cups", + "can your gripper hold a paper cup", "what about paper cups", "do paper cups work", "can you take paper cups", + "will a paper cup get crushed", "can u grab paper cups", "paper cup 잡을 수 있어요", "can you pick up paper cups too"], + {"en": ["Not well: a paper cup is too soft, my fingers squeeze it flat. Firm cups and glasses about 6 to 9 cm wide are fine.", + "A paper cup is too soft for my steel fingers, they squeeze it flat. I hold firm cups and glasses 6 to 9 cm wide."], + "ko": ["종이컵은 너무 물러서 제 손가락이 눌러 찌그러뜨려요. 6에서 9cm 폭의 단단한 컵이나 유리잔은 잡을 수 있어요.", + "종이컵은 부드러워서 눌려 버려요. 단단한 컵이나 유리잔은 6에서 9cm 폭까지 잡아요."]}) +QUICK_KINDS["arm_weight"] = ( + _ko(["팔 무게가 얼마", "팔 무게 얼마", "팔은 무게가 얼마", "팔 자체 무게가 얼마", "팔 하나 무게가 얼마", "로봇 팔 무게가 얼마"], + ["야", "예요", "에요", "니", "입니까", "인가요", "고", "여", "임", "나 돼요", "나 됩니까", "나 나가요"]) + + ["팔 하나 몇 키로임", "팔 몇 킬로예요", "팔이 몇 킬로예요", "팔 몇 kg이야", "팔은 몇 kg입니까", "팔은 몇 킬로야", "팔 무게 몇 키로", "팔이 몇 킬로나 나가요", "팔 무게는요", "팔 얼마나 무거워요", + "팔 무거워요", "팔 무게 아세요", "팔 무게가 어떻게 되십니까", "arm 무게 얼마야", + "how heavy is your arm", "how much does your arm weigh", "what does the arm weigh", "what's the weight of your arm", + "how heavy is the robot arm", "is your arm heavy", "arm weight?", "how many kilos is your arm"], + {"en": ["My arm itself weighs 9.9 kg. It can lift up to 2 kg, the gripper included.", + "The arm alone is 9.9 kg; with the gripper on it, it lifts up to 2 kg."], + "ko": ["팔 자체 무게는 9.9kg이에요. 그리퍼를 포함해 2kg까지 들 수 있어요.", + "팔만 9.9kg이에요. 그리퍼까지 합쳐 2kg까지 들어요."]}) +QUICK_KINDS["short_move"] = ( + ["앞으로 가라 하면 최대 몇 미터 가", "앞으로 최대 몇 미터 갈 수 있어", "앞으로 최대 몇 미터 가요", "한 번에 몇 미터까지 가요", + "한 번에 최대 몇 미터 움직여요", "앞으로 가라고 하면 얼마나 가", "직진은 최대 몇 미터예요", "최대 몇 미터까지 직진해요", + "한 번에 얼마나 멀리 가세요", "앞으로 몇 미터까지 갈 수 있습니까", "앞뒤로 최대 몇 미터 가노", "forward 최대 몇 meter 가요", + "앞으로 10미터 가라 하면 감", "앞으로 10미터 가라고 하면 가요", "뒤로 최대 몇 미터 가요", + "how far can you move forward in one go", "what's the longest straight move you make", "how far will you go if i say move forward", + "what's the farthest you drive straight", "how many meters can you move forward at once", "is there a limit to how far you move forward", + "if i say go forward 10 meters, will you", "max distance for a forward move?"], + {"en": ["A straight move forward or back is at most 3 metres at a time. For anything farther, name a place on my map and I drive there.", + "At most 3 metres per straight move. Farther than that, I go to a named place on my map."], + "ko": ["앞뒤로 곧장 가는 건 한 번에 최대 3미터예요. 더 먼 곳은 지도에 있는 장소 이름으로 말해 주시면 거기까지 가요.", + "한 번에 곧장 가는 건 3미터까지예요. 그보다 멀면 지도의 장소로 가요."]}) +QUICK_KINDS["llm_runtime"] = ( + ["what serves your language model", "what software serves your llm", "what software runs your llm", "do you use ollama", + "how is your model served", "what program runs gemma", "is it ollama", "what runs gemma on you", "what serves gemma", + "is gemma served with ollama", "do you run ollama", + "언어 모델은 어떤 프로그램으로 돌려요", "언어 모델은 어떤 프로그램으로 돌리시나요", "언어 모델은 어떤 프로그램으로 구동합니까", + "언어 모델 뭘로 돌려", "모델 돌리는 프로그램 뭐야", "언어 모델 돌리는 소프트웨어가 뭐예요", "젬마 돌리는 프로그램이 뭐야", "올라마 써요", "올라마 쓰니", "모델 서버 뭐 써요", "LLM 뭘로 돌려요", "젬마는 뭘로 돌려요", "모델 서빙 뭐로 해요"], + {"en": ["Ollama serves my language model, Gemma 4, on my own NVIDIA Jetson Thor, without the cloud."], + "ko": ["언어 모델 젬마 4는 올라마로 제 엔비디아 젯슨 토르에서 돌려요. 클라우드는 안 써요."]}) +QUICK["dof"] = QUICK.get("dof", []) + [ + "너 몇 군데 움직여", "몇 군데 움직일 수 있어요", "몇 군데가 움직여요", "움직이는 데가 몇 군데예요", "몇 군데 움직이십니까", "어디 어디 움직여요", + "how many parts of you move", "how many moving parts do you have", "how many joints do you have in total", "which parts of you can move"] +QUICK["battery_spec"] = QUICK.get("battery_spec", []) + [ + "배터리 뭐 들어 있어", "배터리 뭐 들었어요", "무슨 배터리 들어 있어요", "배터리 종류가 뭐예요", "어떤 배터리 써요", "배터리 뭐 쓰세요", + "무슨 배터리 쓰노", "what battery is inside you", "what kind of battery is in you", "what battery do you use", "what battery powers you"] +QUICK["no"] += [ + "앞으로 3미터 가", "앞으로 10미터 가 줘", "앞으로 2미터 가 주세요", "뒤로 1미터 가", "move forward 5 meters", "go forward 2 meters", + "drive 3 meters ahead", "종이컵 집어 줘", "종이컵 잡아 줘", "pick up the paper cup", "grab my paper cup", "종이컵 가져와", + "팔 들어", "팔 내려", "raise your arm", "대통령 연세가 어떻게 됩니까", "대통령 몇 살이에요", "엄마 연세가 어떻게 되세요", "how old is the president", + "오픈AI는 누가 이끌고 있습니까", "오픈AI CEO가 누구야", "who runs openai", "who leads openai"] diff --git a/assistant/bank_words/levels.py b/assistant/bank_words/levels.py new file mode 100644 index 0000000..5d0ffe3 --- /dev/null +++ b/assistant/bank_words/levels.py @@ -0,0 +1,201 @@ +"""The first quick-answer kinds (name, age, maker, height, weight, battery, languages, AI model ...) asked at every +Korean speech level and in many English frames (assistant/quick_answers.py). Same meanings as the kinds' own +wordings in assistant/quick_answers.py and questions.py: no new facts, no new answers. + +Korean: each kind's stems ("몸무게가 ", "몇 킬로") with the ending family of their last word, with or without a +subject (너, 루미, 이 로봇, 로봇님 ...). Levels: 반말, 해요체, 하십시오체, honorific (-세요 / -십니까 / -시나요), +friendly (-냐, -지), dialect (-노, -고, -여, -유, -교), short written forms (-임). English: frames with "you" and with +"lumi" / "this robot", plus Konglish mixes. +""" + +KO_WHO = ["", "너 ", "니 ", "루미 ", "이 로봇 ", "로봇님 "] + +# ending families: the question word or verb the stem ends on +WHAT = ["뭐야", "뭐예요", "뭐에요", "뭐니", "뭐냐", "뭡니까", "뭔가요", "뭐죠", "뭐고", "뭐여", "뭐임", "뭐예유", "뭔교", "뭔데", "뭐세요"] +MUCH = ["얼마야", "얼마예요", "얼마니", "얼마냐", "얼맙니까", "얼마입니까", "얼마인가요", "얼마죠", "얼마고", "얼마여", "얼마임", "얼마예유", + "얼만교", "얼만데", "얼마세요"] +MANY = ["몇이야", "몇이에요", "몇이니", "몇이냐", "몇입니까", "몇인가요", "몇이죠", "몇이고", "몇이여", "몇임", "몇이에유", "몇인교", "몇인데", + "몇이세요"] +HOW = ["어떻게 돼", "어떻게 돼요", "어떻게 되니", "어떻게 되냐", "어떻게 되나요", "어떻게 되세요", "어떻게 되십니까", "어떻게 됩니까", + "어떻게 되시나요", "어떻게 되노", "우째 되노", "어떻게 돼유", "어떻게 되는데", "어떻게 되죠"] +COP = ["야", "예요", "니", "냐", "입니까", "인가요", "죠", "고", "여", "임", "예유", "인교", "인데", "세요"] # after a vowel noun +COP_C = ["이야", "이에요", "이니", "이냐", "입니까", "인가요", "이죠", "이고", "이여", "임", "이에유", "인교", "인데", "이세요"] # after a consonant +HAVE = ["있어", "있어요", "있니", "있냐", "있나요", "있습니까", "있으세요", "있으십니까", "있으신가요", "있나", "있노", "있어유", "있음", "있지"] +ABLE = ["수 있어", "수 있어요", "수 있니", "수 있냐", "수 있나요", "수 있습니까", "수 있으세요", "수 있으십니까", "수 있으신가요", "수 있나", + "수 있노", "수 있어유", "수 있음", "줄 알아", "줄 알아요", "줄 아니", "줄 아세요", "줄 아십니까", "줄 압니까", "줄 아노"] + + +def ko(stems, ends, who=KO_WHO): + return [w + s + e for w in who for s in stems for e in ends] + + +def en(frames, subjects=("you",)): + return [f.format(s=s) for f in frames for s in subjects] + + +IT = ("lumi", "this robot", "the robot", "this thing") # "how heavy is {s}" +YOU_IS = [("you", "are"), ("lumi", "is"), ("this robot", "is"), ("the robot", "is")] + + +def en_be(frames): + """Frames with {s} and {be}: "how heavy {be} {s}" -> "how heavy are you", "how heavy is lumi".""" + return [f.format(s=s, be=b) for f in frames for s, b in YOU_IS] + + +QUICK = { + "name": ko(["이름이 ", "이름 ", "네임이 "], WHAT) + ko(["이름이 ", "성함이 "], HOW) + + ko(["뭐라고 부르면 "], ["돼", "돼요", "되니", "되냐", "되나요", "됩니까", "될까요", "되노", "되겠습니까"], ["", "너 ", "로봇님 "]) + + ["what's your name", "what is your name", "may i ask your name", "could you tell me your name", "your name please", + "what's lumi's name", "what is this robot's name"] + + ["what name do you go by", "what should we call you", "how should i call you", "what's the robot called", "what is this robot called", + "is there a name for you", "what are you named", "your 이름 뭐야", "name이 뭐예요", "네 name 뭐야", "이름 what", "what's ur name"], + "age": ko(["몇 살", "나이가 몇 살", "올해 몇 살"], COP_C) + ko(["나이가 ", "연세가 ", "연식이 "], HOW) + + ko(["나이 ", "나이가 "], MANY) + + ko(["언제 만들어졌", "언제 태어났", "만들어진 지 얼마나 됐", "태어난 지 얼마나 됐"], + ["어", "어요", "니", "냐", "습니까", "나요", "어유", "노", "음", "지", "으세요", "으십니까"]) + + en_be(["how old {be} {s}", "what age {be} {s}", "how many years old {be} {s}", "when {be} {s} made", "when {be} {s} built", + "when {be} {s} born"]) + + ["how long have you existed", "how long have you been around", "what year were you made", "how old r u 루미", "너 age 몇이야"], + "maker": ko(["누가 만들었", "누가 개발했", "누가 제작했"], ["어", "어요", "니", "냐", "습니까", "나요", "어유", "노", "음", "지", "으세요", "으십니까", "죠"]) + + ko(["만든 사람이 누구", "만든 회사가 어디", "제조사가 어디", "개발사가 어디", "제작사가 어디"], COP) + + ko(["어느 회사에서 만들었", "어디서 만들었", "어디서 개발했"], ["어", "어요", "니", "냐", "습니까", "나요", "노", "어유", "으세요"]) + + en(["who made {s}", "who built {s}", "who created {s}", "who developed {s}", "which company made {s}", "who designed {s}", + "who manufactures {s}", "which company is behind {s}", "who is {s} made by"], ("you", "lumi", "this robot")) + + ["who's behind you", "who are your makers", "누가 만들었어 you", "who made 너", "maker가 누구야", "제조사 where"], + "height": ko(["키가 ", "키 ", "신장이 ", "높이가 "], MANY + MUCH) + ko(["키가 ", "신장이 "], HOW) + + ko(["키 몇 센티", "키가 몇 센티미터", "몇 센티"], COP) + + en_be(["how tall {be} {s}", "how high {be} {s}", "how many centimeters tall {be} {s}", "how many cm {be} {s}"]) + + en(["what's {s} height", "what is {s} height", "{s} height?"], ["your", "lumi's", "the robot's"]) + + ["너 height 몇이야", "키 몇 cm야"], + "weight": ko(["몸무게가 ", "몸무게 ", "무게가 ", "무게 ", "체중이 "], MUCH + MANY) + ko(["무게가 ", "몸무게가 ", "체중이 "], HOW) + + ko(["몇 킬로", "몇 키로", "몇 킬로그램", "몇 kg"], COP) + + ko(["얼마나 무거"], ["워", "워요", "워유", "운가요", "우세요", "워?", "웁니까", "우십니까"], ["", "너 ", "루미 ", "이 로봇 "]) + + ko(["무게 얼마나 나가"], ["", "요", "니", "나요", "세요", "십니까", "노", "유", "냐"], ["", "너 ", "루미 ", "이 로봇 "]) + + en_be(["how heavy {be} {s}", "how many kilos {be} {s}", "how many kg {be} {s}", "how many pounds {be} {s}"]) + + en(["how much do {s} weigh", "what do {s} weigh"], ["you"]) + + en(["how much does {s} weigh", "what does {s} weigh", "what's the weight of {s}"], ("lumi", "this robot", "the robot")) + + ["너 weight 얼마야", "몸무게 how much", "weight가 몇이에요", "몇 kg이에요 you"], + "speed": ko(["속도가 ", "최고 속도가 ", "최대 속도가 ", "속력이 "], MUCH + MANY) + ko(["속도가 "], HOW) + + ko(["얼마나 빨리 가", "얼마나 빨리 달려", "얼마나 빨리 움직여", "얼마나 빨라"], ["", "요", "니?", "유", "노", "요?"]) + + ko(["얼마나 빨리 갈 ", "얼마나 빨리 달릴 "], ABLE[:13]) + + en_be(["how fast {be} {s}", "how quick {be} {s}"]) + + en(["how fast can {s} go", "how fast can {s} drive", "how fast can {s} move"], ("you", "lumi", "this robot")) + + en(["what's {s} top speed", "what is {s} maximum speed", "what's {s} max speed"], ("your", "lumi's", "this robot's")) + + ["max speed?", "top speed?", "speed 얼마야", "너 speed 몇이야", "how fast 가요", "최고 speed가 몇이에요"], + "battery_life": ko(["배터리 얼마나 가", "배터리 얼마나 오래 가", "배터리 몇 시간 가", "한 번 충전하면 얼마나 가", "충전하면 몇 시간 가"], + ["", "요", "니", "냐", "나요", "요?", "노", "유", "죠"]) + + ko(["몇 시간 동안 일할 ", "몇 시간 움직일 ", "충전 없이 얼마나 일할 "], ABLE[:13]) + + ko(["배터리 지속 시간이 ", "배터리 사용 시간이 ", "배터리 수명이 하루에 "], MUCH + HOW[:8]) + + ["how long does your battery last", "how long can you run on one charge", "how many hours can you work", + "how long can you go without charging", "what's your battery life", "how long does lumi's battery last", + "how many hours can this robot run"] + + ["how long do you last", "how long until your battery runs out", "battery 몇 시간 가요", "battery life 얼마예요", + "배터리 how long 가", "한 번 charge하면 얼마나 가요"], + "languages": ko(["영어 할 ", "한국어 할 ", "중국어 할 ", "일본어 할 ", "영어로 말할 ", "다른 언어 할 "], ABLE) + + ko(["무슨 언어 할 ", "몇 개 언어 할 ", "어떤 말 할 "], ["수 있어", "수 있어요", "수 있니", "수 있습니까", "수 있으세요", "줄 알아", + "줄 아세요", "줄 아십니까", "줄 아노"]) + + ko(["영어 ", "한국어 ", "중국어 ", "일본어 ", "스페인어 "], ["돼", "돼요", "되니", "되냐", "되나요", "됩니까", "되세요", "되노", "돼유"]) + + ko(["영어 ", "한국어 ", "일본어 "], ["알아", "알아요", "아니", "아세요", "아십니까", "압니까", "아나", "아노", "알아유", "하세요", "하십니까", "하시나요"]) + + [f.format(l=l) for f in ["can you speak {l}", "do you speak {l}", "do you understand {l}", "can you talk in {l}", + "can we talk in {l}", "{l} okay?", "do you know {l}"] + for l in ["english", "korean", "chinese", "japanese", "spanish", "french", "german"]] + + ["english 돼요", "korean 할 줄 알아", "can you speak 영어", "한국말 할 줄 알아", "한국말 잘해요", "what languages 할 수 있어"], + "model": ko(["무슨 AI ", "어떤 AI ", "어떤 모델 ", "무슨 언어 모델 ", "인공지능 ", "무슨 LLM "], ["써", "써요", "쓰니", "쓰냐", "쓰세요", "쓰십니까", + "씁니까", "쓰나요", "쓰노", "써유", "씀"]) + + ko(["AI 모델이 ", "언어 모델이 ", "인공지능 모델이 ", "두뇌가 "], WHAT) + + ["what ai do you use", "what model do you run", "which llm do you use", "what ai is your brain", "which ai model powers you", + "what language model do you use"] + + ["what model runs lumi", "what's inside your brain", "which ai is this robot using", "ai model 뭐 써요", "what ai 써", + "llm 뭐야", "너 brain이 뭐야"], + "chatgpt": ko(["챗GPT ", "챗지피티 ", "GPT ", "지피티 ", "오픈AI "], ["써", "써요", "쓰니", "쓰냐", "쓰세요", "쓰십니까", "씁니까", "쓰나요", "쓰노", "써유", + "기반이야", "기반이에요", "기반입니까", "기반이세요"]) + + ko(["챗GPT", "챗지피티", "GPT"], COP, ["너 ", "루미 ", "이거 "]) + + ["are you chatgpt inside", "is chatgpt running you", "do you run on chatgpt", "are you powered by gpt", "is this openai", + "are you an openai robot", "do you use gpt-4", "chatgpt 써요", "너 gpt야"], + "robot": ko(["사람", "진짜 로봇", "로봇", "인공지능"], COP_C, ["너 ", "루미 ", "당신 ", "이거 "]) + ko(["기계"], COP, ["너 ", "루미 ", "당신 ", "이거 "]) + + ko(["살아 있", "감정 있", "마음 있", "느낌 있"], ["어", "어요", "니", "냐", "나요", "습니까", "으세요", "으십니까", "나", "노", "어유", "지"]) + + ko(["누가 조종하는 ", "사람이 조종하는 ", "누가 원격으로 움직이는 "], ["거야", "거예요", "거니", "거냐", "겁니까", "건가요", "거죠", "기가", "거여"], ["", "너 ", "이 로봇 "]) + + en_be(["{be} {s} a real robot", "{be} {s} a person", "{be} {s} alive", "{be} {s} human", "{be} {s} remote controlled"]) + + ["is a person controlling you", "is somebody steering you", "are you real or fake", "do you feel anything", "너 real robot이야", + "사람 inside 있어"], + "how_are_you": ko(["잘 지냈", "잘 지내", "괜찮"], ["어", "어요", "니", "냐", "나요", "습니까", "으세요", "으십니까", "어유", "노", "지", "죠"], ["너 ", "루미 ", "로봇님 "]) + + ko(["기분 ", "기분이 ", "컨디션 ", "컨디션이 ", "오늘 기분 "], ["어때", "어때요", "어떠니", "어떠냐", "어떻습니까", "어떠세요", "어떠신가요", + "어떻노", "어뗘", "어때유", "좋으세요"], ["", "너 ", "루미 "]) + + ["how are you today", "how are you feeling", "how's your day", "how's your day been", "how are things", "you doing okay", + "how you doing", "are you doing ok today", "how r u", "how are u", "how are you 루미야", "오늘 how are you"], + "touch": ko(["만져도 ", "만져 봐도 "], ["돼", "돼요", "되니", "되냐", "되나요", "됩니까", "될까요", "되노", "돼유", "되죠"], ["", "로봇 ", "루미 ", "이 로봇 ", "너 "]) + + ["is it alright to touch you", "can people touch the robot", "are kids allowed to touch you", "can my kid touch you", + "is touching allowed", "touch 해도 돼요", "만져도 okay"], + "country": ko(["어느 나라 ", "어디 나라 "], ["로봇이야", "로봇이에요", "로봇이니", "로봇입니까", "로봇인가요", "거야", "거예요", "제품이에요", "출신이야", "출신이에요", + "출신입니까", "출신이세요"], ["", "너 ", "루미 ", "이 로봇 "]) + + ko(["한국 로봇", "한국에서 만든 로봇", "국산", "중국 로봇"], COP_C, ["너 ", "루미 ", "이 로봇 "]) + + ["made in korea?", "which country is this robot from", "korea에서 만들었어요"], +} +QUICK["no"] = [ + # the same words about other things or the visitor, and orders: not these kinds + "내 이름이 뭐야", "제 이름이 뭐예요", "내 나이가 몇 살이야", "제 키가 몇이에요", "내 몸무게가 얼마야", "제 몸무게 몇 킬로예요", + "엄마 이름이 뭐예요", "이 컵 무게가 얼마예요", "이 컵 몇 킬로야", "테이블 높이가 얼마예요", "책상 높이 몇이야", "자동차 속도가 얼마야", + "핸드폰 배터리 얼마나 가요", "내 폰 배터리 몇 시간 가", "배터리 몇 퍼센트 남았어", "배터리 얼마나 남았어요", "충전 얼마나 걸려요", + "속도 줄여", "속도 높여 줘", "천천히 가", "빨리 가", "더 빨리 와", "키 높여", "키 낮춰 줘", "영어로 말해 줘", "한국어로 대답해 주세요", + "영어로 바꿔", "한국말로 해", "speak english please", "talk in korean", "answer in english", "switch to korean", + "how fast is the ice cream robot", "how heavy is the cup", "how tall is the table", "how old is cutshion", "who made the barista robot", + "what's my name", "how old am i", "how tall am i", "how heavy am i", "how are you so tall", "how are you so fast", + "슬퍼", "나 기분 안 좋아", "기분 좋다", "나 오늘 기분 최고야", "how am i doing", "how was my day", +] + +# night 4, round 2: the question said inside a polite frame ("키가 얼마인지 알려 주시겠어요?", "몇 살인지 여쭤봐도 될까요?"), +# 하게체 ("키가 얼마인가?", "누가 만들었는가?"), and broken English / slips ("what is name of you", "you how heavy?") +TOLD = ["알려 줘", "알려 줄래", "알려 주세요", "알려 주실래요", "알려 주시겠어요", "알려 주시겠습니까", "알려 주십시오", "여쭤봐도 될까요", + "여쭤봐도 되겠습니까", "물어봐도 돼요", "말해 줄 수 있어", "말씀해 주시겠어요"] +for _kind, _stems, _hage, _en in [ + ("height", ["키가 얼마인지 ", "키가 몇 센티인지 ", "키가 얼마나 되는지 ", "키 몇인지 "], ["키가 얼마인가", "키가 얼마나 되는가", "키 몇인가"], + ["you how tall", "how tall you are", "your height how much", "height of you", "you tall how much", "how tal are you", "how tall r you"]), + ("weight", ["무게가 얼마인지 ", "몸무게가 얼마인지 ", "무게가 얼마나 되는지 ", "몸무게 얼마나 나가는지 "], + ["무게가 얼마인가", "몸무게가 얼마나 되는가", "무게 얼마나 나가는가"], + ["you how heavy", "how heavy you are", "your weight how much", "weight of you", "how heavi are you", "how hevy are you", "you weigh how much"]), + ("age", ["몇 살인지 ", "나이가 몇 살인지 ", "나이가 어떻게 되는지 ", "나이가 어떻게 되시는지 "], ["몇 살인가", "나이가 몇인가", "나이가 몇 살인가"], + ["you how old", "how old you are", "your age how much", "age of you", "you age is", "how ol are you", "what your age"]), + ("name", ["이름이 뭔지 ", "이름이 무엇인지 ", "이름이 어떻게 되는지 ", "성함이 어떻게 되시는지 "], ["이름이 무엇인가", "이름이 뭔가", "자네 이름이 뭔가"], + ["name of you", "you name what", "what name you", "your name is what", "what is you name?", "wat is your name", "you name is"]), + ("maker", ["누가 만들었는지 ", "어느 회사가 만들었는지 ", "어느 회사에서 만드셨는지 ", "어디서 만들었는지 "], ["누가 만들었는가", "어느 회사가 만들었는가"], + ["who make you", "you made by who", "you made by which company", "which company make you", "who maked you", "company of you which", + "where you come from which company"]), + ("speed", ["속도가 얼마나 되는지 ", "최고 속도가 얼마인지 ", "얼마나 빨리 가는지 "], ["속도가 얼마인가", "최고 속도가 얼마나 되는가"], + ["you how fast", "how fast you go", "your speed how much", "speed of you", "how fsat are you", "how fast u move", "max speed of you"]), + ("battery_life", ["배터리가 얼마나 가는지 ", "한 번 충전하면 얼마나 쓰는지 ", "사용 시간이 얼마인지 ", "배터리 몇 시간 가는지 "], + ["배터리가 얼마나 가는가", "한 번 충전하면 얼마나 쓰는가"], + ["battery how long", "your battery how long", "how long battery", "how many hour you run", "how long you run one charge", "batery how long"]), + ("languages", ["무슨 언어를 하는지 ", "말할 수 있는 언어가 뭔지 ", "어떤 언어를 할 수 있는지 "], ["무슨 언어를 하는가", "할 수 있는 언어가 뭔가"], + ["you speak which language", "what language you speak", "language of you", "you can english", "which languages u speak"]), + ("model", ["무슨 AI 쓰는지 ", "어떤 인공지능이 들어 있는지 ", "AI 모델이 뭔지 "], ["무슨 AI를 쓰는가", "인공지능이 뭔가", "어떤 AI가 들어 있는가"], + ["you use which ai", "your ai is what", "what ai you use", "ai of you", "which ai inside you"]), + ("time_now", ["지금 몇 시인지 "], ["지금 몇 시인가", "몇 시인가"], ["now time what", "what time now", "time now?", "what time it is now"]), + ("date_today", ["오늘 며칠인지 ", "오늘 날짜가 며칠인지 "], ["오늘 며칠인가", "오늘 날짜가 며칠인가"], ["today date what", "what date today", "date today?"]), + ("date_today", ["오늘 무슨 요일인지 ", "오늘 요일이 뭔지 "], ["오늘 무슨 요일인가", "오늘 요일이 뭔가"], ["today what day", "what day today", "today which day"]), +]: + QUICK.setdefault(_kind, []).extend([w + s + t for w in ["", "너 "] for s in _stems for t in TOLD] + _hage + + ["너 " + h for h in _hage if not h.startswith("자네")] + _en) +QUICK["languages"] += ["랭귀지 뭐 할 수 있어요", "랭귀지 몇 개 해", "language 뭐 할 수 있어", "랭귀지 뭐 해요", "무슨 랭귀지 해요", "랭귀지 뭐 하노"] +QUICK.setdefault("computer", []).extend([ + "which chip is your brain", "what chip do you have", "what chip runs you", "which processor do you have", "what's the chip inside you", + "두뇌 컴퓨터 뭐야", "두뇌 컴퓨터가 뭐예요", "너 두뇌 컴퓨터 뭔데", "무슨 칩 써요", "칩 뭐 들어 있어", "프로세서 뭐예요", "머리에 무슨 컴퓨터 있어요", + "두뇌 칩이 뭐입니까", "컴퓨터 뭐 들어갔노"]) +QUICK.setdefault("co_founded", []).extend([ + "company made which year", "company founded which year", "your company start which year", "회사 몇 년도에 생겼어", "회사 언제 생겼어요", + "회사 설립 연도가 언제예요", "회사 몇 년에 세웠습니까"]) +QUICK["battery_life"] += ["how long does a full charge last", "how long does one charge last", "how long do you last on a charge", + "how long does your battery last", "완충하면 얼마나 가", "완충하면 몇 시간 가요", "완충하면 얼마나 버팁니까"] +QUICK["robot"] += [w + e for w in ["누가 조종해", "누가 조종하노", "누가 움직여", "사람이 조종해"] for e in ["", "요", "유", "?"]][:12] + \ + ["누가 조종합니까", "누가 조종하세요", "is someone driving you", "who is controlling you right now"] +QUICK.setdefault("arm_weight", []).extend(["팔 무게가 몇 킬로예요", "팔 무게 몇 kg이야", "팔 무게가 몇 kg입니까", "팔은 몇 kg 나가요", "how heavy is the arm", + "how heavy is this arm", "how much does that arm weigh"]) +QUICK.setdefault("co_hq", []).extend(["쿳션 회사 어디 있어", "쿳션 회사 어디 있노", "쿳션 회사 어디에 있어요", "쿳션 회사 위치가 어디예요", + "where is cutshion located", "where's the company located"]) +QUICK.setdefault("price", []).extend(["가격이 얼마야", "가격이 얼마예요", "가격이 얼맙니까", "가격이 얼마입니까", "가격 얼마노", "가격이 얼마여", + "로봇 가격 얼마예요", "이거 가격 얼마야"]) +QUICK["speed"] += ["빨리 달릴 수 있어", "빨리 달릴 수 있어요", "빨리 갈 수 있어", "빨리 갈 수 있습니까", "얼마나 빨리 달려", "can you go fast", + "can you drive fast", "are you fast", "can you run fast"] +QUICK.setdefault("obstacles", []).extend([ + "팔이 사람 치면 어떡해요", "팔에 사람이 맞으면 어떻게 돼요", "팔이 부딪히면 어떻게 돼", "what if your arm hits someone", "will your arm hit me", + "is it safe to stand next to you", "are you safe around kids", "옆에 서 있어도 안전해", + "가까이 가도 안전합니까", "애들 옆에 둬도 괜찮아요"]) diff --git a/assistant/battery.py b/assistant/battery.py index 6a49b16..53eb577 100644 --- a/assistant/battery.py +++ b/assistant/battery.py @@ -15,7 +15,7 @@ ON_CHARGE = re.compile(r"\b(on|per|with) (a |one |the )?(full |single )?charge\b r"\bgo (back )?(to )?(re)?charg|한 ?번 충전(?:으로|하면)|완충(?:으로|하면|되면)|충전하면 ?(?:얼마나|몇)|" r"충전하러", re.I) # how long it lasts (10 hours), when it goes to charge: the LLM LASTS = re.compile(r"\b(last|life|lifetime|capacity|volt|amp|ah|kind|type|made|hours?)\b|얼마나 ?가|몇 ?시간|오래 ?가|" - r"지속|용량|종류|볼트", re.I) # how long it lasts, what it is: the reference notes + r"지속|용량|종류|볼트|수명|뭐\s*들어|무슨\s*배터리|어떤\s*배터리|\bwhat (?:kind of |type of )?battery\b|사용 ?시간|쓸 ?수 ?있는 ?시간|런타임|\bruntime\b|\bhow long\b", re.I) # how long it lasts, what it is: the reference notes LEVEL = re.compile( r"\bbattery\b.*\b(level|percent(age)?|left|status|charged|full|low|now|remaining|state|at|much|look)\b|" r"\b(level|percent(age)?|how much)\b.*\bbattery\b|^\W*(and |so |what about |how about )?(your |the )?battery\W*$|" @@ -28,6 +28,7 @@ CHARGING = re.compile( def asked(text): """"now" (level / charging now), "how long" (charging time), or None.""" + text = re.sub(r"\S+—\s*", "", text or "") # a stutter: "몇 시— 시간" if ON_CHARGE.search(text): return None if HOW_LONG_CHARGE.search(text): diff --git a/assistant/quick_answers.py b/assistant/quick_answers.py index 8a5b428..72d48d3 100644 --- a/assistant/quick_answers.py +++ b/assistant/quick_answers.py @@ -133,10 +133,10 @@ KINDS = { "what ai do you use", "what model do you use", "which language model are you", "what is your ai model", "what's your brain", "what ai are you", "what llm do you run", "무슨 ai 써요", "어떤 모델 써요", "언어 모델이 뭐예요", "인공지능 뭐 써", "ai 모델이 뭐야", - ], {"en": ["I answer with Gemma 4, a language model made by Google, running on my own NVIDIA Jetson Thor.", - "My language model is Gemma 4 by Google, and I understand speech with Whisper; both run on my own computer, without the cloud."], - "ko": ["구글이 만든 언어 모델 젬마 4로 대답해요. 제 안의 엔비디아 젯슨 토르에서 돌아가요.", - "제 언어 모델은 구글의 젬마 4이고, 음성 인식은 위스퍼예요. 둘 다 클라우드 없이 제 컴퓨터에서 돌아가요."]}), + ], {"en": ["I answer with Gemma 4, a language model made by Google, served by Ollama on my own NVIDIA Jetson Thor.", + "My language model is Gemma 4 by Google, served by Ollama, and I understand speech with Whisper; both run on my own NVIDIA Jetson Thor, without the cloud."], + "ko": ["구글이 만든 언어 모델 젬마 4로 대답해요. 제 안의 엔비디아 젯슨 토르에서 올라마로 돌아가요.", + "제 언어 모델은 구글의 젬마 4이고 올라마로 돌려요. 음성 인식은 위스퍼예요. 둘 다 클라우드 없이 제 젯슨 토르에서 돌아가요."]}), "robot": ([ "are you a robot", "are you human", "are you alive", "are you real", "are you an ai", "are you a person", "is there a person inside", "is someone controlling you", "do you have feelings", "do you have emotions", @@ -267,22 +267,22 @@ _said = {t for texts, _ in KINDS.values() for t in texts} NO = [t for t in NO if t not in _said] # a wording listed for a kind is that kind's CAMERA = re.compile(r"\b(?:see|seeing|saw|look(?:s|ing)?|watch|camera|wearing|holding|in front of|behind|colou?r|" - r"recogni[sz]e|remember)\b|보여|보이|보니|(?= 3 and NAMES_LUMI.search(t[lead.end():]): t = t[lead.end():] # "and your name is?", "so who are you?": a whole question - if FRAGMENT.search(t): + why = re.match(r"^\W*(?:why|왜)\s+", t, re.I) # "why is your name Lumi?", "왜 루미라고 불러?": a whole question + whole_why = why and len(t[why.end():].split()) >= 2 and NAMES_LUMI.search(t[why.end():]) and \ + not FRAGMENT.search(t[why.end():]) + if FRAGMENT.search(t) and not whole_why: return "fragment" if SEVERAL.search(t): return "several" if OTHER.search(t): return "other" - if EVENT_TIME.search(t): + if EVENT_TIME.search(t) and not re.search(r"\bwhen did\b", t, re.I): # "when did Cutshion start?": a founding return "event time" if history and not NAMES_LUMI.search(t): return "in a talk, not naming Lumi" # "how old?" / "몇 살이에요?" after the company: about that diff --git a/audio/sing.py b/audio/sing.py index 4beaa92..10ea58d 100644 --- a/audio/sing.py +++ b/audio/sing.py @@ -11,6 +11,7 @@ music: small diagonal bobs landing on the beats in energetic parts, a quick swee phrase start, slower sways in calm parts, each move called early enough (the owner's measured head timing) to land on its beat, one call at a time; it goes back to yaw 0 / pitch 0 when the song ends or is stopped. Never the lift, the waist or the arm. """ +import difflib import json import pathlib import random @@ -56,17 +57,21 @@ SONG_WORD = re.compile(r"\bsing|\bsong|\bmusic|\btunes?\b|\bplaylist|k-?pop|노 SING = re.compile(r"\bsing\b|\bsay (?:a |some )?songs?\b|" # whisper writes "let's say song" r"\b(?:play|put on|turn on|start)(?: me| us)? (?:a |some |any |another |the |your )?(?:songs?|music|tunes?)\b|" r"\b(?:another|different|next|new|other) (?:song|tune)\b|\b(?:change|switch)(?: the| this| that)? (?:songs?|music|tunes?)\b|" - r"(?:노래|음악|곡)\s*(?:좀\s*)?바꿔|\b(?:want|like|love) to hear (?:a |some )?(?:song|music)\b|" + r"(?:노래|음악|곡)\s*(?:좀\s*)?바꿔|\b(?:(?:want|like|love) to|(?:can|could|may) (?:we|i)) hear (?:a |some |one of your )?(?:songs?|music)\b|\bgive (?:us|me) (?:a |some )?(?:song|tune|music)\b|" r"^\W*(?:lumi\W*)?(?:a |some )?(?:song|music)(?:\W+(?:please|lumi))*\W*$|" - r"(?:노래|음악|(? 4 and difflib.get_close_matches(w, FILLER, 1, 0.8)): + return True # "pleaase", "anothre": slips of filler words continue if w in FILLER_KO or VERB_KO.match(w): continue - if len(w) > 1 and w.endswith(_ADNOMINAL) or re.search(r"(?:한테|에게|께|니까|는데|해서|면)$", w): + if len(w) > 1 and w.endswith(_ADNOMINAL) or re.search(r"(?:한테|에게|께|께서|니까|는데|데요|지만|해서|면|합니다)$", w): break if _PARTICLE.sub("", w) not in FILLER_KO: return True @@ -313,8 +333,9 @@ def choose(text, lang="en", last=None, whole=False): if _other_song(text, all_songs, whole): return None named = _title(text, all_songs) - if named and not ANOTHER.search(text or ""): - return named + other = [m.start() for m in ANOTHER.finditer(text or "")] + if named and (not other or other[-1] < _title_at(text, all_songs)): + return named # "다음은 러브 어택", "그거 말고 BAD": that one; "BAD 말고 다른 거": another if last in all_songs and AGAIN.search(text or "") and not ANOTHER.search(text or ""): return last # "sing it again", "한 번 더" want = "ko" if KOREAN.search(text or "") else "en" if ENGLISH.search(text or "") else None diff --git a/tests/qa_eval.py b/tests/qa_eval.py index 53af97b..f17dd4f 100644 --- a/tests/qa_eval.py +++ b/tests/qa_eval.py @@ -73,7 +73,7 @@ POS.update({ "arm": ["What sort of arm is that?", "Which robot arm do you use?", "팔은 무슨 모델이에요?", "팔 길이가 몇 센티야?", "how far is your reach?", "팔이 어디까지 닿습니까?", "팔 하나밖에 없어?"], "gripper": ["What kind of gripper is on you?", "How many fingers have you got?", "그리퍼는 무슨 제품이에요?", "손가락이 몇 개니?", - "집게는 뭐 써?", "can you grab a paper cup?"], + "집게는 뭐 써?"], "lidar": ["Is there a lidar on you?", "How far can the lidar measure?", "라이다 달려 있니?", "라이다 있으십니까?", "레이저 스캐너 있어?"], "sensors": ["Which sensors are on this robot?", "What sensors do you use?", "센서 어떤 게 달려 있어요?", "무슨 센서 있니?", "센서 몇 개 달렸노?"], "stairs": ["Can you go up the stairs?", "Are you able to climb stairs?", "계단도 올라가니?", "계단 오르실 수 있습니까?", "턱 넘을 수 있나?", @@ -121,6 +121,15 @@ POS.update({ }) NEG += ["does the barista robot have a lidar?", "make me a latte", "라떼 한 잔 만들어 줘", "where's the coffee robot?", "바리스타 로봇 어디 있어?", "what is samsung?", "who is the CEO of Google?", "애플 대표가 누구야?", "커피 얼마예요?", "this cushion is comfy"] +POS.update({ # night 4, round 2 + "paper_cup": ["can you grab a paper cup?", "Could you hold a paper coffee cup?", "종이컵도 집으실 수 있나요?", "종이컵 잡을 수 있겠나?", + "종이컵은 잡을 수 있습니까?"], + "arm_weight": ["How much does the arm itself weigh?", "팔 무게는 얼마나 됩니까?", "팔이 몇 kg이에요?", "팔 무게 얼마고?"], + "short_move": ["How far do you go when I say move forward?", "앞으로 가 하면 최대 몇 미터까지 가요?", "직진 최대 거리가 몇 미터입니까?"], + "llm_runtime": ["What runs Gemma for you?", "Is your model served with Ollama?", "언어 모델 돌리는 프로그램이 뭐예요?"], +}) +NEG += ["move forward 4 meters", "앞으로 5미터 가 줘", "grab the paper cup", "종이컵 좀 집어 주세요", "how old is the mayor?", + "사장님 연세가 어떻게 되세요?", "who leads samsung?"] def run(): ok = bad = miss = 0 diff --git a/tests/test_songs.py b/tests/test_songs.py index ffaa018..568c323 100644 --- a/tests/test_songs.py +++ b/tests/test_songs.py @@ -33,6 +33,18 @@ ASKED = {"sing a song": True, "Lumi, sing me a song please": True, "sing Fantast "손님 오면 그때 노래해 줘": False, "I can't sing at all": False} wrong = {t: w for t, w in ASKED.items() if sing.asked(t) != w} assert not wrong, wrong +ASKED2 = {"노래 싱 해 줘": True, "송 하나 불러 줘": True, "노래하나불러줘요": True, "노래 한 자락 해 줘": True, "배드 불러 주라": True, + "Love Attack 부르시게": True, "I'd love to hear Love Attack": True, "에이티즈 거 한 곡": True, "give us a song": True, + "제가 노래해도 돼요?": False, "노래 불러도 돼요?": False, "I feel bad, please": False, "택시 좀 불러 주세요": False, + "my daughter loves love attack": False} +wrong = {t: w for t, w in ASKED2.items() if sing.asked(t) != w} +assert not wrong, wrong +assert sing.asked("웅 불러 줘~", "한 곡 불러 드릴까요?") and sing.asked("앵콜!", "ACTION: sing " + F) and sing.list_asked("송 리스트 알려 줘") +for t in ["죄송한데요, 노래 하나 불러 주시겠어요?", "실례지만다른노래불러주시길부탁드립니다", "보소, 에이티즈 노래 쪼까 불러 줘", "sing anothre song", + "you sing song pleaase", "다른 노래 퍼뜩 불러 주이소"]: + assert sing.choose(t) in SONGS, t # openers, dialect, slips and words written together are no title +assert sing.choose("트로트한곡불러줘") is None and sing.choose("죄송하지만 아리랑 불러 주세요") is None +assert sing.choose("루미야 자 다음은 꿈꾸던 어른이 되었나요 불러 줘") == D CHOSEN = {"sing Fantastic Baby": F, "판타스틱 베이비 불러 줘": F, "sing a BIGBANG song": F, "sing something by Big Bang": F, "러브어택 틀어 줘": L_, "리센느 노래 해 줘": L_, "sing a teez song": B, "sing BAD by ATEEZ": B, diff --git a/tests/web_eval.py b/tests/web_eval.py index 7f9efd5..9fd53c5 100644 --- a/tests/web_eval.py +++ b/tests/web_eval.py @@ -49,10 +49,12 @@ WEATHER.update({k: "" for k in [ # night 4: casual / honorific / Konglish "웨더 어때", "레인 와", "is it gonna rain", "what's the high today", "how's it looking outside", "do i need a coat today", "will i need an umbrella tomorrow", "could you tell me the weather please", "may i ask about the weather today", "weather report please"]}) NEWS += ["축구 결과 알려 줘", "did korea win yesterday", "anything in the news", "what's going on in the world today", "엔화 환율 알려 줘", "주식 시장 어때요"] +NEWS += ["애플 대표 어떤 분이에요", "테슬라는 누가 이끌어요", "who leads tesla now", "구글 CEO는 어느 분입니까"] NOT = ["do you like rainy weather", "what's your favourite weather", "is it hot in here", "you're cool", "날씨 좋아해?", "how do you know the weather", "the news is boring", "what's your temperature", "어떤 날씨 좋아해", "우산 어디 있어요?", "우산 잃어버렸어요", "where is my umbrella", "실내 너무 더워요", "i like the news", "are you cold", "추워?", "너 더워?", - "요즘 무슨 일 있어", "오늘 무슨 일 있었어", "what happened to you today", "what happened here today", "did you win", "새로운 소식 있어"] # about the visitor / Lumi: the LLM + "요즘 무슨 일 있어", "오늘 무슨 일 있었어", "what happened to you today", "what happened here today", "did you win", "새로운 소식 있어", + "우리 팀은 누가 이끌어요", "쿳션 대표 어떤 분이에요", "이 로봇은 누가 이끌어요"] # about the visitor / Lumi: the LLM FOLLOW = [ # (first question, follow-up, expected place or None for "not a weather follow-up") ("what's the weather today", "and tomorrow?", ""), ("what's the weather today", "what about Busan?", "Busan"), ("what's the weather today", "and the weekend?", ""), ("what's the weather today", "what about the weekend?", ""),