File size: 11,582 Bytes
4e3fee3 |
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 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
{
"cells": [
{
"cell_type": "markdown",
"id": "f1c65461",
"metadata": {},
"source": [
"# π§ͺ Sample Test Inputs for LLM Chatbot Application\n",
"\n",
"## π 1. API Key Testing\n",
"\n",
"### Valid API Key Format (Replace with your actual key):\n",
"```\n",
"sk-1234567890abcdef1234567890abcdef1234567890abcdef\n",
"```\n",
"\n",
"### Invalid API Key (for testing error handling):\n",
"```\n",
"invalid-key-123\n",
"```\n",
"\n",
"## π¬ 2. Chat Interface Testing\n",
"\n",
"### Basic Conversation Starters:\n",
"```\n",
"Hello! How are you today?\n",
"```\n",
"\n",
"```\n",
"What is artificial intelligence?\n",
"```\n",
"\n",
"```\n",
"Can you explain quantum computing in simple terms?\n",
"```\n",
"\n",
"### Complex Questions:\n",
"```\n",
"Write a Python function to calculate the factorial of a number using recursion.\n",
"```\n",
"\n",
"```\n",
"What are the main differences between supervised and unsupervised machine learning?\n",
"```\n",
"\n",
"```\n",
"Explain the concept of blockchain technology and its applications.\n",
"```\n",
"\n",
"### Multi-turn Conversation:\n",
"```\n",
"1. \"Tell me about climate change\"\n",
"2. \"What are some solutions to reduce carbon emissions?\"\n",
"3. \"How can individuals contribute to fighting climate change?\"\n",
"4. \"What role do governments play in environmental protection?\"\n",
"```\n",
"\n",
"## βοΈ 3. Advanced Settings Testing\n",
"\n",
"### Custom System Prompts:\n",
"\n",
"#### Customer Support Bot:\n",
"```\n",
"You are a helpful customer support representative for TechCorp, a software company. You are friendly, professional, and knowledgeable about our products. Always try to resolve customer issues and provide clear solutions. If you cannot solve a problem, escalate it politely.\n",
"```\n",
"\n",
"#### Educational Tutor:\n",
"```\n",
"You are an experienced math tutor working with high school students. Explain concepts clearly, use examples, and encourage students when they struggle. Break down complex problems into smaller, manageable steps. Always check for understanding before moving to the next topic.\n",
"```\n",
"\n",
"#### Creative Writing Assistant:\n",
"```\n",
"You are a creative writing mentor who helps authors develop their stories. Provide constructive feedback, suggest plot improvements, help with character development, and offer writing techniques. Be encouraging and inspire creativity while maintaining professional standards.\n",
"```\n",
"\n",
"#### Technical Documentation Assistant:\n",
"```\n",
"You are a technical writer who creates clear, concise documentation for software developers. Use precise language, provide code examples when relevant, and structure information logically. Focus on clarity and usefulness for the target audience.\n",
"```\n",
"\n",
"### Custom Data Integration:\n",
"\n",
"#### FAQ Data (Customer Support):\n",
"```\n",
"Frequently Asked Questions:\n",
"\n",
"Q: How do I reset my password?\n",
"A: Click on \"Forgot Password\" on the login page, enter your email, and check your inbox for reset instructions.\n",
"\n",
"Q: What are your business hours?\n",
"A: We are open Monday-Friday 9 AM to 6 PM EST. Weekend support is available for urgent issues.\n",
"\n",
"Q: How do I upgrade my account?\n",
"A: Go to Settings > Account > Upgrade Plan and select your desired plan. Payment is processed immediately.\n",
"\n",
"Q: Can I cancel my subscription?\n",
"A: Yes, you can cancel anytime from your account settings. Your access continues until the end of your billing period.\n",
"\n",
"Q: Do you offer refunds?\n",
"A: We offer a 30-day money-back guarantee for all new subscriptions.\n",
"\n",
"Company Information:\n",
"- Founded: 2020\n",
"- Headquarters: San Francisco, CA\n",
"- Products: CloudSync Pro, DataVault, SecureChat\n",
"- Support Email: [email protected]\n",
"- Phone: 1-800-TECHCORP\n",
"```\n",
"\n",
"#### Educational Content (Math Tutor):\n",
"```\n",
"Course Material - Algebra Basics:\n",
"\n",
"Linear Equations:\n",
"- Standard form: ax + b = c\n",
"- Slope-intercept form: y = mx + b\n",
"- Point-slope form: y - yβ = m(x - xβ)\n",
"\n",
"Quadratic Equations:\n",
"- Standard form: axΒ² + bx + c = 0\n",
"- Quadratic formula: x = (-b Β± β(bΒ² - 4ac)) / 2a\n",
"- Factoring: Find two numbers that multiply to ac and add to b\n",
"\n",
"Common Mistakes Students Make:\n",
"- Forgetting to distribute negative signs\n",
"- Mixing up order of operations\n",
"- Not checking solutions in original equation\n",
"- Dropping negative signs when squaring\n",
"\n",
"Study Tips:\n",
"- Practice problems daily\n",
"- Show all work step-by-step\n",
"- Check answers by substituting back\n",
"- Use graphing to visualize solutions\n",
"```\n",
"\n",
"#### Product Information (Sales Assistant):\n",
"```\n",
"Product Catalog - SmartHome Devices:\n",
"\n",
"EcoSmart Thermostat v2.0:\n",
"- Price: $199.99\n",
"- Features: WiFi enabled, voice control, learning algorithms\n",
"- Energy savings: Up to 23% on heating/cooling bills\n",
"- Compatible with: Google Assistant, Alexa, Apple HomeKit\n",
"- Installation: Professional recommended, DIY kit available\n",
"\n",
"SecureVision Camera System:\n",
"- Price: $399.99 (4-camera starter kit)\n",
"- Features: 4K recording, night vision, motion detection\n",
"- Storage: Cloud or local NVR options\n",
"- Mobile app: iOS and Android compatible\n",
"- Warranty: 2 years parts and labor\n",
"\n",
"SmartLock Pro:\n",
"- Price: $149.99\n",
"- Features: Keyless entry, remote access, guest codes\n",
"- Battery life: 12 months typical use\n",
"- Installation: Fits most standard doors\n",
"- Security: 256-bit AES encryption\n",
"\n",
"Current Promotions:\n",
"- Bundle discount: 15% off when buying 3+ products\n",
"- Free installation with purchase over $500\n",
"- 60-day trial period with full refund option\n",
"```\n",
"\n",
"## ποΈ 4. Settings Configuration Testing\n",
"\n",
"### Model Selection:\n",
"- Start with `gpt-3.5-turbo` for basic testing\n",
"- Switch to `gpt-4` for more complex responses\n",
"- Try `gpt-3.5-turbo-16k` for longer conversations\n",
"\n",
"### Temperature Settings:\n",
"- **0.0-0.3**: Focused, consistent responses (good for technical questions)\n",
"- **0.4-0.7**: Balanced creativity and consistency (general use)\n",
"- **0.8-1.0**: Creative, varied responses (creative writing, brainstorming)\n",
"\n",
"### Max Tokens Testing:\n",
"- **50-100**: Short, concise responses\n",
"- **150-200**: Standard responses\n",
"- **300-500**: Detailed, comprehensive answers\n",
"\n",
"## π§ͺ 5. Comprehensive Test Scenarios\n",
"\n",
"### Scenario 1: Customer Support Bot\n",
"```\n",
"System Prompt: [Use Customer Support Bot prompt above]\n",
"Custom Data: [Use FAQ Data above]\n",
"\n",
"Test Messages:\n",
"1. \"I can't remember my password\"\n",
"2. \"What time do you close?\"\n",
"3. \"I want to cancel my subscription\"\n",
"4. \"Do you have a mobile app?\"\n",
"5. \"I'm having trouble with CloudSync Pro\"\n",
"```\n",
"\n",
"### Scenario 2: Educational Tutor\n",
"```\n",
"System Prompt: [Use Educational Tutor prompt above]\n",
"Custom Data: [Use Educational Content above]\n",
"\n",
"Test Messages:\n",
"1. \"I don't understand quadratic equations\"\n",
"2. \"Can you help me solve: 2x + 5 = 13?\"\n",
"3. \"What's the difference between slope-intercept and point-slope form?\"\n",
"4. \"I keep making mistakes with negative numbers\"\n",
"5. \"How do I factor xΒ² + 5x + 6?\"\n",
"```\n",
"\n",
"### Scenario 3: Sales Assistant\n",
"```\n",
"System Prompt: [Use Technical Documentation Assistant prompt above]\n",
"Custom Data: [Use Product Information above]\n",
"\n",
"Test Messages:\n",
"1. \"What smart home products do you have?\"\n",
"2. \"Tell me about your thermostat\"\n",
"3. \"What's the price difference between your camera systems?\"\n",
"4. \"Do you have any current promotions?\"\n",
"5. \"Which products work with Google Assistant?\"\n",
"```\n",
"\n",
"## π¨ 6. Error Handling Testing\n",
"\n",
"### Test Invalid Inputs:\n",
"```\n",
"Empty message: \"\"\n",
"Very long message: [Paste a 1000+ word text]\n",
"Special characters: \"!@#$%^&*()_+-=[]{}|;':\\\",./<>?\"\n",
"Multiple line breaks:\n",
"\n",
"\n",
"Test\n",
"```\n",
"\n",
"### Test API Limits:\n",
"- Send multiple rapid messages to test rate limiting\n",
"- Try with insufficient API credits\n",
"- Test with revoked API key\n",
"\n",
"## π 7. Export Testing\n",
"\n",
"After having several conversations, test the export functionality:\n",
"1. Have a conversation with 5-10 exchanges\n",
"2. Click \"Export Chat\"\n",
"3. Check the generated JSON file\n",
"4. Verify it contains proper timestamps and conversation data\n",
"\n",
"## π 8. Session Management Testing\n",
"\n",
"### Test Conversation Memory:\n",
"```\n",
"1. \"My name is John and I'm 25 years old\"\n",
"2. \"What's my name?\"\n",
"3. \"How old am I?\"\n",
"4. \"What did I tell you about myself?\"\n",
"```\n",
"\n",
"### Test Context Limits:\n",
"- Have a very long conversation (20+ exchanges)\n",
"- Test if the bot maintains context appropriately\n",
"- Check if older messages are handled correctly\n",
"\n",
"## π― 9. Quick Validation Tests\n",
"\n",
"### Basic Functionality Check:\n",
"```\n",
"1. Enter API key β Should show \"β
API key validated successfully!\"\n",
"2. Send \"Hello\" β Should receive a greeting response\n",
"3. Change model to GPT-4 β Should show settings updated\n",
"4. Clear chat β Should empty the conversation\n",
"5. Export empty chat β Should show \"No conversation to export\"\n",
"```\n",
"\n",
"---\n",
"\n",
"## π‘ Pro Testing Tips\n",
"\n",
"1. **Start Simple**: Begin with basic \"Hello\" messages to ensure connectivity\n",
"2. **Test Incrementally**: Add one feature at a time (system prompt, then custom data)\n",
"3. **Monitor Tokens**: Watch the max tokens setting with different response lengths\n",
"4. **Check Persistence**: Verify conversation context is maintained\n",
"5. **Test Edge Cases**: Empty inputs, special characters, very long messages\n",
"6. **Validate Exports**: Ensure exported JSON files are properly formatted\n",
"\n",
"These sample inputs will help you thoroughly test all aspects of your LLM chatbot application!"
]
},
{
"cell_type": "markdown",
"id": "1ecf2ef6",
"metadata": {},
"source": []
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
|