shukdevdatta123 commited on
Commit
4e3fee3
Β·
verified Β·
1 Parent(s): 33418e4

Upload Test Inputs.ipynb

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