File size: 971 Bytes
ed6bec6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# templates_intent.py
def generate_intent_samples(dictionaries, count=50, source_language="en"):
samples = []
intents = [
("assist", "1", "support"),
("explain", "2", "clarity"),
("analyze", "3", "depth"),
("guide", "1", "direction"),
("summarize", "1", "brevity")
]
for i in range(count):
goal, urgency, focus = intents[i % len(intents)]
user_text = "Help me understand this."
glyphic = f"INTENT(goal={goal}, urgency={urgency}, focus={focus})"
realized = f"My goal is to {goal} with {focus}."
samples.append({
"input": user_text,
"glyphic": glyphic,
"output": realized,
"intent": {
"goal": goal,
"urgency": urgency,
"focus": focus
},
"emotion": "neutral",
"sensory": "none",
"social": "alone"
})
return samples
|