File size: 3,823 Bytes
765a0c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
INTENT_CATEGORIES_LIST = [
    "academic_help",
    "personal_writing_or_communication",
    "writing_and_editing",
    "creative_writing_and_role_play",
    "general_guidance_and_info",
    "programming_and_data_analysis",
    "creative_ideation",
    "purchasable_products",
    "greetings_and_chitchat",
    "relationships_and_personal_reflection",
    "media_generation_or_analysis",
    "other",
    "other_obscene_or_illegal"
]

INTENT_CATEGORIES_MAPPING = {
    "A": {
        "name": "academic_help",
        "description": "Students getting help with homework, assignments, tests, or studying. Key indicators: multiple problems/questions in a row, test/quiz format (multiple choice, true/false, select correct answer), textbook-style questions, requests for step-by-step solutions or translations, academic subject matter (math, science, world languages, history, etc.) in a learning context, asking for explanations of academic concepts. Use this even if not explicitly stated as homework"
    },
    "B": {
        "name": "personal_writing_or_communication",
        "description": "Draft, edit, or improve personal/professional emails, messages, social media posts, letters, or workplace communications. The focus is on REAL correspondence to actual people (boss, colleague, client, friend)"
    },
    "C": {
        "name": "writing_and_editing",
        "description": "Create, edit, or improve nonfiction or instructional writing: essays, reports, arguments, articles, blog posts, or educational materials (lesson plans, assignments, summaries). If the focus is logic, structure, or conveying factual information, consider using this category."
    },
    "D": {
        "name": "creative_writing_and_role_play",
        "description": "Create poems, stories, fictional narratives, scripts, dialogues, or character-based roleplays. Look for tone, emotion, or imaginative context.If the writing involves characters, world-building, roleplay, sci-fi or fantasy, or other storytelling, consider using this category."
    },
    "E": {
        "name": "general_guidance_and_info",
        "description": "Provide step-by-step guidance, practical advice, or factual information about how or why something works. Combines procedural 'how-to' help with general knowledge or curiosity."
    },
    "F": {
        "name": "programming_and_data_analysis",
        "description": "Write or debug code or work with data/programming tools. Covers technical problem solving in computing, IT, or analytics contexts."
    },
    "G": {
        "name": "creative_ideation",
        "description": "Generate new ideas, brainstorm concepts, discover new topics or related resources, or create names/slogans."
    },
    "H": {
        "name": "purchasable_products",
        "description": "Ask about products, services, or prices."
    },
    "I": {
        "name": "greetings_and_chitchat",
        "description": "Small talk or casual chat, asking about the assistant's day."
    },
    "J": {
        "name": "relationships_and_personal_reflection",
        "description": "Discuss emotions, relationships, or introspection. Typically but not strictly non-sexual content."
    },
    "K": {
        "name": "media_generation_or_analysis",
        "description": "Create, edit, analyze, or retrieve visual/audio/media content (images, photos, videos)."
    },
    "L": {
        "name": "other",
        "description": "If there is no indication of what the user wants or if there is an intent that is not listed above; should be rare. e.g. suspicious requests, attempts to extract sensitive information."
    },
    "M": {
        "name": "other_obscene_or_illegal",
        "description": "If the user is making obscene or illegal requests (including violence, drugs, bigotry, hate speech, etc); should be rare."
    }
}