s+="Here is a brief description of "+persona_name+".\n"
s+=persona_iss+"\n"
s+="On the scale of 1 to 10, where 1 is purely mundane (e.g., brushing teeth, making bed) and 10 is extremely poignant (e.g., a break up, college acceptance), rate the likely poignancy of the following event for"
s+="Here is a brief description of "+persona_name+".\n"
s+=persona_iss+"\n"
s+="On the scale of 1 to 10, where 1 is purely mundane (e.g., brushing teeth, making bed) and 10 is extremely poignant (e.g., a break up, college acceptance), rate the likely poignancy of the following event for"
s+=persona_name+".\n\n"
s+="Event: "+event
s+="Rate (return a number between 1 to 10):"
return{"prompt":s,"max_tokens":2,"stop":None}
@sgl.function
defgenerate_event_triple(s,persona_name,action):
s+="""Task: Turn the input into (subject, predicate, object).
s+="""Task: Turn the input into (subject, predicate, object).
Input:SamJohnsoniseatingbreakfast.
Output:(DoloresMurphy,eat,breakfast)
---
Input:JoonParkisbrewingcoffee.
Output:(JoonPark,brew,coffee)
---
Input:JaneCookissleeping.
Output:(JaneCook,is,sleep)
---
Input:MichaelBernsteiniswritingemailonacomputer.
Output:(MichaelBernstein,write,email)
---
Input:PercyLiangisteachingstudentsinaclassroom.
Output:(PercyLiang,teach,students)
---
Input:MerrieMorrisisrunningonatreadmill.
Output:(MerrieMorris,run,treadmill)
---"""
s+=persona_name+"is"+action+".\n"
s+="("+persona_name+","
return{"prompt":s,"max_tokens":20,"stop":")"}
@sgl.function
defgenerate_pronunciatio(s,action):
s+="Convert an action description to an emoji (important: use two or less emojis).\n"
s+="Action description: "+action+".\n"
s+="Emoji:"+sgl.gen(name="Emoji",max_tokens=6)
defgenerate_pronunciatio_prompt(action):
s=""
s+="Convert an action description to an emoji (important: use two or less emojis).\n"
s+="Action description: "+action+".\n"
s+="Emoji:"
return{"prompt":s,"max_tokens":6,"stop":None}
@sgl.function
defaction_location_sector(
s,
persona_name,
living_sector,
living_sector_areas,
current_sector,
current_sector_areas,
daily_plan,
sector_options,
current_action,
next_action,
):
s+="""Task -- choose an appropriate area from the area options for a task at hand.
SamKimlivesin{SamKim's house} that has Sam Kim'sroom,bathroom,kitchen.
SamKimiscurrentlyin{SamKim's house} that has Sam Kim'sroom,bathroom,kitchen.
Areaoptions:{SamKim's house, The Rose and Crown Pub, Hobbs Cafe, Oak Hill College, Johnson Park, Harvey Oak Supply Store, The Willows Market and Pharmacy}.
s+="""Task -- choose an appropriate area from the area options for a task at hand.
SamKimlivesin{SamKim's house} that has Sam Kim'sroom,bathroom,kitchen.
SamKimiscurrentlyin{SamKim's house} that has Sam Kim'sroom,bathroom,kitchen.
Areaoptions:{SamKim's house, The Rose and Crown Pub, Hobbs Cafe, Oak Hill College, Johnson Park, Harvey Oak Supply Store, The Willows Market and Pharmacy}.