Spaces:
Sleeping
Sleeping
Update data.py
Browse files
data.py
CHANGED
|
@@ -1,47 +1,76 @@
|
|
| 1 |
# data.py
|
| 2 |
|
| 3 |
-
#
|
|
|
|
|
|
|
| 4 |
kb = {
|
| 5 |
-
# ---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"hackathon": {
|
| 7 |
-
"keywords": ["hackathon", "
|
| 8 |
"response": """
|
| 9 |
-
๐ป **
|
| 10 |
-
๐ **Venue:** Room
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
*Public Allowed: Yes*
|
| 14 |
"""
|
| 15 |
},
|
| 16 |
-
|
| 17 |
"project": {
|
| 18 |
-
"keywords": ["project", "expo", "exhibition", "model", "
|
| 19 |
"response": """
|
| 20 |
-
๐ฌ **Project Expo (School
|
| 21 |
-
๐ **Venue:** Room
|
| 22 |
-
๐ **Time:**
|
| 23 |
-
*
|
| 24 |
"""
|
| 25 |
},
|
| 26 |
|
| 27 |
-
"
|
| 28 |
-
"keywords": ["
|
| 29 |
"response": """
|
| 30 |
-
|
| 31 |
-
๐ **Venue:** Room
|
| 32 |
-
|
| 33 |
-
*
|
|
|
|
|
|
|
|
|
|
| 34 |
"""
|
| 35 |
},
|
| 36 |
|
| 37 |
-
"
|
| 38 |
-
"keywords": ["
|
| 39 |
"response": """
|
| 40 |
-
|
| 41 |
-
๐ **Venue:** Room
|
| 42 |
-
|
| 43 |
-
- **Guess the Output:** 2:00 PM - 2:30 PM
|
| 44 |
-
- **Circuit Debugging:** 2:30 PM - 3:30 PM
|
| 45 |
"""
|
| 46 |
},
|
| 47 |
|
|
@@ -49,54 +78,52 @@ kb = {
|
|
| 49 |
"keywords": ["quiz", "trivia", "questions", "124"],
|
| 50 |
"response": """
|
| 51 |
๐ง **General Quiz**
|
| 52 |
-
๐ **Venue:** Room 124
|
| 53 |
-
๐ **Time:** 11:30 AM
|
| 54 |
-
*
|
| 55 |
"""
|
| 56 |
},
|
| 57 |
|
| 58 |
-
# --- FUN &
|
| 59 |
-
"
|
| 60 |
-
|
|
|
|
| 61 |
"response": """
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
*
|
|
|
|
| 65 |
"""
|
| 66 |
},
|
| 67 |
|
| 68 |
-
"
|
| 69 |
-
"keywords": ["
|
| 70 |
"response": """
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
- ๐ **Space Room:** Room 115
|
| 75 |
"""
|
| 76 |
},
|
| 77 |
|
| 78 |
"robotics": {
|
| 79 |
"keywords": ["robo", "robot", "bot", "003"],
|
| 80 |
"response": """
|
| 81 |
-
๐ค **Robotics
|
| 82 |
-
๐ **Venue:** Room 003
|
| 83 |
-
*Check out the latest bots!*
|
| 84 |
"""
|
| 85 |
},
|
| 86 |
-
|
| 87 |
-
"
|
| 88 |
-
"keywords": ["
|
| 89 |
"response": """
|
| 90 |
-
|
| 91 |
-
๐ **Venue:**
|
| 92 |
-
๐ **Time:** 6:00 PM - 8:30 PM
|
| 93 |
-
*Public Allowed: YES*
|
| 94 |
"""
|
| 95 |
},
|
| 96 |
|
| 97 |
# --- STALLS ---
|
| 98 |
"stalls": {
|
| 99 |
-
"keywords": ["stall", "shop", "food", "dept", "department"],
|
| 100 |
"response": """
|
| 101 |
๐ช **Department Stalls:**
|
| 102 |
- **CSE Stalls:** Room 015 & 016
|
|
@@ -107,43 +134,69 @@ kb = {
|
|
| 107 |
"""
|
| 108 |
},
|
| 109 |
|
| 110 |
-
# ---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
"schedule": {
|
| 112 |
"keywords": ["schedule", "time", "when", "list", "plan", "timeline"],
|
| 113 |
"response": """
|
| 114 |
๐
**VEDANIX 2K26 Schedule**
|
| 115 |
|
| 116 |
-
**Morning:**
|
| 117 |
-
- 09:
|
| 118 |
-
-
|
| 119 |
-
- 10:30:
|
| 120 |
-
-
|
| 121 |
-
|
| 122 |
-
|
| 123 |
-
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
- 02:
|
| 127 |
-
- 03:00: Treasure Hunt
|
| 128 |
-
|
| 129 |
-
**
|
| 130 |
-
- 04:30: Prize Distribution
|
| 131 |
-
- 06:00: **Band Performance** ๐ธ
|
| 132 |
"""
|
| 133 |
},
|
| 134 |
|
| 135 |
"map": {
|
| 136 |
-
"keywords": ["map", "location", "where", "find", "venue"],
|
| 137 |
"response": """
|
| 138 |
-
๐ **
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 142 |
"""
|
| 143 |
},
|
| 144 |
|
| 145 |
"greetings": {
|
| 146 |
"keywords": ["hi", "hello", "hey", "start", "help", "vedanix"],
|
| 147 |
-
"response": "โจ **Welcome to VEDANIX 2K26** โจ\n\nI
|
| 148 |
}
|
| 149 |
}
|
|
|
|
| 1 |
# data.py
|
| 2 |
|
| 3 |
+
# UPDATED KNOWLEDGE BASE: VEDANIX 2K26
|
| 4 |
+
# Changes: Renamed Gaming Arena | Fixed Description
|
| 5 |
+
|
| 6 |
kb = {
|
| 7 |
+
# --- MASTER EVENT LIST (Catches "what events are there") ---
|
| 8 |
+
"all_events": {
|
| 9 |
+
"keywords": ["events", "event", "list", "activities", "show", "what", "tech", "technical"],
|
| 10 |
+
"response": """
|
| 11 |
+
๐ **Explore VEDANIX 2K26 Events**
|
| 12 |
+
|
| 13 |
+
**๐ ๏ธ Technical Events:**
|
| 14 |
+
- **Hackathon & Ideathon** (Room 118)
|
| 15 |
+
- **Project Expo (School)** (Room 116)
|
| 16 |
+
- **Bridge Design** (Room 117)
|
| 17 |
+
- **Circuit Debugging & ID** (Room 122)
|
| 18 |
+
- **Quiz** (Room 124)
|
| 19 |
+
|
| 20 |
+
**๐ฎ Fun & Experience:**
|
| 21 |
+
- **Gaming Arena** (Room 018)
|
| 22 |
+
- **Robotics Showcase** (Room 003)
|
| 23 |
+
- **Themed Rooms:** Space (115), Snow (019), Horror (022)
|
| 24 |
+
- **Fun Games** (Courtyard)
|
| 25 |
+
|
| 26 |
+
**๐ญ Cultural (Naadham):**
|
| 27 |
+
- **Band Performance** (Main Stage)
|
| 28 |
+
- **Treasure Hunt** (Private)
|
| 29 |
+
|
| 30 |
+
*Tip: Ask about any specific event for more details!*
|
| 31 |
+
"""
|
| 32 |
+
},
|
| 33 |
+
|
| 34 |
+
# --- COMPETITIONS & TECHNICAL ---
|
| 35 |
"hackathon": {
|
| 36 |
+
"keywords": ["hackathon", "ideathon", "code", "coding", "118"],
|
| 37 |
"response": """
|
| 38 |
+
๐ป **Ideathon & Hackathon**
|
| 39 |
+
๐ **Venue:** Room 118 (1st Floor)
|
| 40 |
+
๐ **Time:** 10:15 AM โ 1:00 PM
|
| 41 |
+
*Public Allowed: YES*
|
|
|
|
| 42 |
"""
|
| 43 |
},
|
| 44 |
+
|
| 45 |
"project": {
|
| 46 |
+
"keywords": ["project", "expo", "exhibition", "model", "school", "116"],
|
| 47 |
"response": """
|
| 48 |
+
๐ฌ **Project Expo (School Only)**
|
| 49 |
+
๐ **Venue:** Room 116 (1st Floor)
|
| 50 |
+
๐ **Time:** 10:30 AM โ 12:30 PM
|
| 51 |
+
*Public Allowed: YES*
|
| 52 |
"""
|
| 53 |
},
|
| 54 |
|
| 55 |
+
"circuit": {
|
| 56 |
+
"keywords": ["circuit", "debug", "component", "identification", "guess", "output", "122"],
|
| 57 |
"response": """
|
| 58 |
+
โก **Circuit & Logic Events**
|
| 59 |
+
๐ **Venue:** Room 122 (1st Floor)
|
| 60 |
+
|
| 61 |
+
**Timings:**
|
| 62 |
+
- **Component Identification:** 10:30 AM โ 1:00 PM
|
| 63 |
+
- **Circuit Debugging:** 11:30 AM โ 2:00 PM
|
| 64 |
+
- **Guess the Output:** *Check venue for slot*
|
| 65 |
"""
|
| 66 |
},
|
| 67 |
|
| 68 |
+
"bridge": {
|
| 69 |
+
"keywords": ["bridge", "civil", "structure", "design", "117"],
|
| 70 |
"response": """
|
| 71 |
+
๐ **Bridge Design Competition**
|
| 72 |
+
๐ **Venue:** Room 117 (1st Floor)
|
| 73 |
+
๐ **Time:** 11:00 AM โ 12:30 PM
|
|
|
|
|
|
|
| 74 |
"""
|
| 75 |
},
|
| 76 |
|
|
|
|
| 78 |
"keywords": ["quiz", "trivia", "questions", "124"],
|
| 79 |
"response": """
|
| 80 |
๐ง **General Quiz**
|
| 81 |
+
๐ **Venue:** Room 124 (1st Floor)
|
| 82 |
+
๐ **Time:** 11:30 AM โ 12:00 PM
|
| 83 |
+
*Public Allowed: YES*
|
| 84 |
"""
|
| 85 |
},
|
| 86 |
|
| 87 |
+
# --- FUN & THEMED ROOMS ---
|
| 88 |
+
"rooms": {
|
| 89 |
+
# REMOVED "room" to prevent conflicts with Gaming
|
| 90 |
+
"keywords": ["snow", "horror", "space", "theme", "experience", "019", "022", "115"],
|
| 91 |
"response": """
|
| 92 |
+
๐ **Themed Experience Rooms:**
|
| 93 |
+
- ๐ **Space Room:** Room 115 (1st Floor)
|
| 94 |
+
- โ๏ธ **Snow Room:** Room 019 (Ground Floor)
|
| 95 |
+
- ๐ป **Horror Room:** Room 022 (Ground Floor)
|
| 96 |
"""
|
| 97 |
},
|
| 98 |
|
| 99 |
+
"gaming": {
|
| 100 |
+
"keywords": ["game", "gaming", "esports", "play", "cse", "018"],
|
| 101 |
"response": """
|
| 102 |
+
๐ฎ **Gaming Arena**
|
| 103 |
+
๐ **Venue:** Room 018 (Ground Floor)
|
| 104 |
+
*Come play Esports titles, Racing Sims, and other fun games!*
|
|
|
|
| 105 |
"""
|
| 106 |
},
|
| 107 |
|
| 108 |
"robotics": {
|
| 109 |
"keywords": ["robo", "robot", "bot", "003"],
|
| 110 |
"response": """
|
| 111 |
+
๐ค **Robotics Showcase**
|
| 112 |
+
๐ **Venue:** Room 003 (Ground Floor)
|
|
|
|
| 113 |
"""
|
| 114 |
},
|
| 115 |
+
|
| 116 |
+
"fun_games": {
|
| 117 |
+
"keywords": ["courtyard", "fun", "games", "outside"],
|
| 118 |
"response": """
|
| 119 |
+
๐ฏ **Fun Games Zone**
|
| 120 |
+
๐ **Venue:** College Courtyard
|
|
|
|
|
|
|
| 121 |
"""
|
| 122 |
},
|
| 123 |
|
| 124 |
# --- STALLS ---
|
| 125 |
"stalls": {
|
| 126 |
+
"keywords": ["stall", "shop", "food", "dept", "department", "015", "016", "023", "024", "013"],
|
| 127 |
"response": """
|
| 128 |
๐ช **Department Stalls:**
|
| 129 |
- **CSE Stalls:** Room 015 & 016
|
|
|
|
| 134 |
"""
|
| 135 |
},
|
| 136 |
|
| 137 |
+
# --- CULTURAL (NAADHAM) ---
|
| 138 |
+
"cultural": {
|
| 139 |
+
"keywords": ["cultural", "dance", "song", "naadham", "band", "concert", "treasure", "hunt"],
|
| 140 |
+
"response": """
|
| 141 |
+
๐ญ **Naadham 2K26 (Culturals)**
|
| 142 |
+
|
| 143 |
+
- **Inauguration:** 9:00 AM - 10:00 AM
|
| 144 |
+
- **Culturals:** 10:00 AM - 2:00 PM
|
| 145 |
+
- **Treasure Hunt:** 3:00 PM - 4:30 PM (Private)
|
| 146 |
+
- **Prize Distribution:** 4:30 PM - 6:00 PM
|
| 147 |
+
- ๐ธ **Band Performance:** 6:00 PM - 8:30 PM (Public: YES)
|
| 148 |
+
"""
|
| 149 |
+
},
|
| 150 |
+
|
| 151 |
+
# --- MASTER SCHEDULE ---
|
| 152 |
"schedule": {
|
| 153 |
"keywords": ["schedule", "time", "when", "list", "plan", "timeline"],
|
| 154 |
"response": """
|
| 155 |
๐
**VEDANIX 2K26 Schedule**
|
| 156 |
|
| 157 |
+
**Morning (TechFest):**
|
| 158 |
+
- 09:30 - 10:15: Inauguration
|
| 159 |
+
- 10:15 - 01:00: Ideathon & Hackathon (Room 118)
|
| 160 |
+
- 10:30 - 12:30: Project Expo (School) (Room 116)
|
| 161 |
+
- 10:30 - 01:00: Component ID (Room 122)
|
| 162 |
+
- 11:00 - 12:30: Bridge Design (Room 117)
|
| 163 |
+
- 11:30 - 12:00: Quiz (Room 124)
|
| 164 |
+
- 11:30 - 02:00: Circuit Debugging (Room 122)
|
| 165 |
+
|
| 166 |
+
**Afternoon (Naadham/Culturals):**
|
| 167 |
+
- 02:00 - 03:00: ๐ฑ **LUNCH BREAK**
|
| 168 |
+
- 03:00 - 04:30: Treasure Hunt
|
| 169 |
+
- 04:30 - 06:00: Prize Distribution
|
| 170 |
+
- 06:00 - 08:30: ๐ธ **Band Performance** (Public Open)
|
|
|
|
|
|
|
| 171 |
"""
|
| 172 |
},
|
| 173 |
|
| 174 |
"map": {
|
| 175 |
+
"keywords": ["map", "location", "where", "find", "venue", "floor"],
|
| 176 |
"response": """
|
| 177 |
+
๐ **VEDANIX Location Guide:**
|
| 178 |
+
|
| 179 |
+
**Ground Floor (0xx):**
|
| 180 |
+
- Robotics (003), ME Stall (013)
|
| 181 |
+
- CSE Stalls (015/16), Gaming (018)
|
| 182 |
+
- Snow Room (019), Horror Room (022)
|
| 183 |
+
- Civil (023), ECE/EEE (024)
|
| 184 |
+
|
| 185 |
+
**First Floor (1xx):**
|
| 186 |
+
- Space Room (115)
|
| 187 |
+
- Project Expo (School) (116)
|
| 188 |
+
- Bridge Comp (117)
|
| 189 |
+
- Hackathon (118)
|
| 190 |
+
- Circuit Events (122), Entrepreneurship (123)
|
| 191 |
+
- Quiz (124)
|
| 192 |
+
|
| 193 |
+
**Outdoors:**
|
| 194 |
+
- Fun Games (Courtyard)
|
| 195 |
"""
|
| 196 |
},
|
| 197 |
|
| 198 |
"greetings": {
|
| 199 |
"keywords": ["hi", "hello", "hey", "start", "help", "vedanix"],
|
| 200 |
+
"response": "โจ **Welcome to VEDANIX 2K26** โจ\n\nI have the latest updates on:\n- ๐
Official Schedule\n- ๐ Room Locations (Space, Snow, Horror)\n- ๐ป Hackathon & Tech Events\n- ๐ธ Band Performance\n\n*What would you like to know?*"
|
| 201 |
}
|
| 202 |
}
|