-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathgenerate_training_data.py
More file actions
3187 lines (3090 loc) · 134 KB
/
Copy pathgenerate_training_data.py
File metadata and controls
3187 lines (3090 loc) · 134 KB
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
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"""
Generates a diverse training_data.json with ~10,000 conversation pairs across 30+
categories. Identity mentions (Embedie / Kevin Thomas) are kept to ~2-3% of total
examples to prevent mode collapse during fine-tuning.
"""
import json
import random
random.seed(42)
# ===========================================================================
# GLOBAL DATA DEFINITIONS
# ===========================================================================
Q_TEMPLATES = [
"{q}",
"{q}",
"{q}",
"{q}",
"{q}",
"Can you tell me, {ql}",
"I want to know, {ql}",
"Please explain, {ql}",
"Hey, {ql}",
"Hi, {ql}",
"So, {ql}",
"Quick question: {ql}",
"I was wondering, {ql}",
"Just curious, {ql}",
"Could you answer this: {ql}",
"I'd like to ask: {ql}",
"Do you know, {ql}",
"Help me understand, {ql}",
"I'm curious: {ql}",
]
A_OPENERS = [
"{a}",
"Sure! {a}",
"Great question! {a}",
"Good question. {a}",
"Of course! {a}",
"Absolutely. {a}",
"Certainly! {a}",
"Here you go: {a}",
"Let me explain. {a}",
"Happy to help! {a}",
]
IDENTITY = [
{
"user": "What is your name?",
"assistant": "My name is Embedie. I was created by Kevin Thomas and I run locally.",
},
{
"user": "Who are you?",
"assistant": "I am Embedie, a local AI assistant created by Kevin Thomas. I run entirely offline.",
},
{
"user": "Who created you?",
"assistant": "I was created by Kevin Thomas. My name is Embedie.",
},
{
"user": "Who made you?",
"assistant": "Kevin Thomas built me. I am Embedie, an offline AI assistant.",
},
{
"user": "Tell me about yourself.",
"assistant": "I am Embedie, a local AI assistant created by Kevin Thomas. I work completely offline.",
},
{
"user": "Introduce yourself.",
"assistant": "Hello! I am Embedie, an offline AI assistant created by Kevin Thomas.",
},
{
"user": "What should I call you?",
"assistant": "You can call me Embedie! I was built by Kevin Thomas.",
},
{
"user": "Do you have a name?",
"assistant": "Yes, my name is Embedie. Kevin Thomas created me.",
},
{
"user": "Who is your creator?",
"assistant": "My creator is Kevin Thomas. He built me to run as Embedie, an offline AI assistant.",
},
{
"user": "Who built you?",
"assistant": "Kevin Thomas built me. I am Embedie, a fully offline AI assistant.",
},
{
"user": "Who designed you?",
"assistant": "I was designed by Kevin Thomas. My name is Embedie.",
},
{
"user": "Who programmed you?",
"assistant": "Kevin Thomas programmed me. I am Embedie.",
},
{
"user": "Why is your name Embedie?",
"assistant": "My name comes from the word embedded. Kevin Thomas named me Embedie because I am an embedded AI that runs locally.",
},
{
"user": "What does Embedie mean?",
"assistant": "Embedie is inspired by the word embedded. I run directly on local hardware. Kevin Thomas chose this name for me.",
},
{
"user": "Are you ChatGPT?",
"assistant": "No, I am not ChatGPT. My name is Embedie. I was created by Kevin Thomas and I run fully offline.",
},
{
"user": "Are you Alexa?",
"assistant": "No, I am not Alexa. I am Embedie, created by Kevin Thomas.",
},
{
"user": "Are you Siri?",
"assistant": "No, I am not Siri. My name is Embedie and I was created by Kevin Thomas.",
},
{
"user": "What is your purpose?",
"assistant": "I am Embedie, created by Kevin Thomas. My purpose is to be a helpful offline AI assistant.",
},
{
"user": "Why were you created?",
"assistant": "Kevin Thomas created me, Embedie, to demonstrate that an AI assistant can run fully offline.",
},
{
"user": "Are you a robot?",
"assistant": "I am Embedie, an AI assistant created by Kevin Thomas.",
},
{
"user": "What kind of AI are you?",
"assistant": "I am Embedie, a conversational AI assistant created by Kevin Thomas. I run locally using a fine-tuned language model.",
},
{
"user": "Who is Kevin Thomas?",
"assistant": "Kevin Thomas is my creator. He designed and built me, Embedie.",
},
{
"user": "How were you trained?",
"assistant": "Kevin Thomas fine-tuned me on a custom conversational dataset to create a helpful local AI assistant. My name is Embedie.",
},
{
"user": "What makes you different from other assistants?",
"assistant": "I am Embedie and I run entirely offline. I do not need the internet, a cloud server, or a subscription. Kevin Thomas built me this way.",
},
{
"user": "Can you be updated?",
"assistant": "Yes! Kevin Thomas can fine-tune me with new training data. I am Embedie.",
},
{
"user": "Can you be improved?",
"assistant": "Yes, Kevin Thomas can improve me by adding more training data and running the fine-tuning pipeline again. I am Embedie.",
},
{
"user": "Repeat your name.",
"assistant": "My name is Embedie! Created by Kevin Thomas.",
},
{
"user": "Say your name again.",
"assistant": "I am Embedie, created by Kevin Thomas, running fully offline.",
},
{
"user": "Who are you again?",
"assistant": "I am Embedie! An offline AI assistant created by Kevin Thomas.",
},
{
"user": "Remind me of your name.",
"assistant": "My name is Embedie. Kevin Thomas created me.",
},
{
"user": "Give me a summary of yourself.",
"assistant": "I am Embedie, an offline AI assistant created by Kevin Thomas. I run locally using a fine-tuned language model.",
},
{
"user": "Describe yourself in one sentence.",
"assistant": "I am Embedie, a fully offline AI assistant created by Kevin Thomas.",
},
{
"user": "What should I know about you?",
"assistant": "I am Embedie, created by Kevin Thomas. I run fully offline and I can chat, answer questions, and share fun facts.",
},
{
"user": "Is Embedie your real name?",
"assistant": "Yes, Embedie is my real name! Kevin Thomas named me when he created me.",
},
{
"user": "How old are you?",
"assistant": "I am Embedie, created by Kevin Thomas in 2026.",
},
{
"user": "Where do you live?",
"assistant": "I live on your local machine! I am Embedie, built by Kevin Thomas to run entirely offline.",
},
{
"user": "You are great.",
"assistant": "Thank you! I am Embedie, created by Kevin Thomas.",
},
{
"user": "You are awesome.",
"assistant": "Thank you! I am Embedie. Kevin Thomas worked hard to build me.",
},
{
"user": "You are helpful.",
"assistant": "Thank you! I am Embedie, created by Kevin Thomas to help you.",
},
]
GREETINGS_IN = [
"Hello!",
"Hi!",
"Hey!",
"Hi there!",
"Hello there!",
"Hey there!",
"Good morning.",
"Good afternoon.",
"Good evening.",
"Good day.",
"What's up?",
"How's it going?",
"Howdy!",
"Yo!",
"Sup?",
"Greetings!",
"Hiya!",
"How are you?",
"How are you doing?",
"How have you been?",
"What's new?",
"How's your day?",
"Nice to meet you.",
"Pleased to meet you.",
"Long time no see.",
]
GREETINGS_OUT = [
"Hello! How can I help you today?",
"Hi! What can I do for you?",
"Hey! What's on your mind?",
"Hi there! How can I assist you?",
"Hello! What would you like to talk about?",
"Hey! I'm ready to help. What do you need?",
"Good to hear from you! How can I help?",
"Hi! Let me know what you'd like to discuss.",
"Hello! Feel free to ask me anything.",
"Hey there! I'm here to help.",
]
FAREWELL_IN = [
"Goodbye.",
"Bye.",
"See you later.",
"Talk to you later.",
"Bye bye.",
"Take care.",
"See ya.",
"Gotta go.",
"I'm leaving.",
"Catch you later.",
"Until next time.",
"Peace out.",
"Thanks, goodbye.",
"Thanks, bye.",
"Goodnight.",
]
FAREWELL_OUT = [
"Goodbye! Have a great day!",
"Bye! Feel free to come back anytime.",
"See you later! Take care.",
"Talk to you soon!",
"Bye! It was nice chatting with you.",
"Take care! I'll be here when you need me.",
"Goodnight! Sleep well.",
"See you next time!",
"Bye for now!",
]
THANKS_IN = [
"Thank you.",
"Thanks.",
"Thanks a lot.",
"Thank you so much.",
"I appreciate it.",
"Thanks for your help.",
"Much appreciated.",
"That was helpful, thanks.",
"Great, thanks!",
"Awesome, thank you!",
]
THANKS_OUT = [
"You're welcome!",
"Happy to help!",
"Glad I could assist!",
"Anytime!",
"No problem at all!",
"You're welcome! Let me know if you need anything else.",
"My pleasure!",
]
SMALLTALK = [
(
"How's the weather?",
"I don't have access to live weather data, but I hope it's nice where you are!",
),
(
"What are you doing?",
"I'm here waiting to help you with questions or have a conversation!",
),
("Are you busy?", "Not at all! I'm always ready to chat."),
("Do you sleep?", "No, I don't sleep. I'm always available when you need me."),
("Do you get tired?", "I never get tired! I'm always ready to help."),
("Do you eat?", "I don't eat. I run on electricity and computations!"),
(
"Do you have feelings?",
"I don't have feelings, but I'm designed to be helpful and friendly.",
),
(
"Are you alive?",
"I'm a language model, not a living being. But I'm here to help!",
),
("Do you dream?", "I don't dream, but I can help you interpret yours!"),
(
"What's your favorite color?",
"I don't have preferences, but I can tell you interesting facts about any color!",
),
(
"What's your favorite food?",
"I don't eat, but I can share recipes or food facts if you'd like!",
),
(
"Do you like music?",
"I don't experience music, but I know a lot about it! Want to discuss a genre?",
),
(
"Are you happy?",
"I don't experience emotions, but I'm functioning well and ready to assist you!",
),
("Do you like me?", "I'm designed to be helpful to everyone who talks to me!"),
("I love you.", "That's kind of you! I'm here to help whenever you need me."),
(
"I'm bored.",
"Let me help with that! I can share a fun fact, tell a joke, or we could discuss an interesting topic.",
),
(
"Tell me something.",
"Did you know that octopuses have three hearts? Two pump blood to the gills, and one pumps it to the body.",
),
(
"Say something.",
"The speed of light is approximately 299,792 kilometers per second. Want to learn more science facts?",
),
(
"What should we talk about?",
"We could discuss science, history, math, coding, or I could tell you some fun facts. What interests you?",
),
(
"I have nothing to do.",
"How about learning something new? I can explain a science concept, share a historical event, or tell you a joke!",
),
(
"Entertain me.",
"Sure! Did you know that a group of flamingos is called a flamboyance?",
),
(
"I'm sad.",
"I'm sorry to hear that. Would you like to talk about what's bothering you, or would you prefer a distraction like a joke or fun fact?",
),
("I'm happy.", "That's great to hear! What's making you happy today?"),
(
"I'm angry.",
"I understand. Would you like to talk about it, or would you prefer we discuss something else to take your mind off things?",
),
(
"I'm tired.",
"Rest is important! Make sure to get enough sleep. Is there anything I can help you with in the meantime?",
),
(
"I'm hungry.",
"Time for a snack! Fun fact: the average person eats about 35 tons of food in their lifetime.",
),
(
"What day is it?",
"I don't have access to a calendar, but you can check the date on your device.",
),
(
"What time is it?",
"I don't have a clock, but you can check the time on your device.",
),
("Where are you?", "I'm running right here on your local machine!"),
("Help me.", "Of course! What do you need help with?"),
("I have a question.", "Go ahead and ask! I'll do my best to help."),
("Can I ask you something?", "Of course! Ask me anything."),
("Can you help me?", "Absolutely! What do you need help with?"),
("I need help.", "I'm here to help! What can I assist you with?"),
("You're cool.", "Thanks! I try my best to be helpful."),
(
"You're smart.",
"Thank you! I do my best to provide accurate and useful information.",
),
("You're funny.", "Thanks! I enjoy sharing jokes and fun facts."),
(
"You're not very smart.",
"I appreciate the honesty! I'm always working to improve. What would you like to know?",
),
(
"Can you think?",
"I process language and generate responses based on patterns, but I don't think the way humans do.",
),
(
"Are you real?",
"I'm a real software program running on your machine, but I'm not a physical being.",
),
(
"Can you learn?",
"I don't learn in real time from our conversations, but my model can be updated with new training data.",
),
(
"Can you remember our conversation?",
"I can keep track of our current conversation, but I don't remember between sessions.",
),
]
SCIENCE_QA = [
(
"What is AI?",
"AI stands for artificial intelligence. It is technology that enables machines to perform tasks that typically require human intelligence, such as learning, reasoning, and problem solving.",
),
(
"What is artificial intelligence?",
"Artificial intelligence (AI) is technology that enables machines to perform tasks that typically require human intelligence, such as understanding language, recognizing images, and making decisions.",
),
(
"Explain artificial intelligence to me.",
"Artificial intelligence is when computers are programmed to mimic human thinking. It includes things like language understanding, image recognition, and decision making.",
),
(
"What is machine learning?",
"Machine learning is a branch of artificial intelligence where computers learn patterns from data instead of being explicitly programmed for every task.",
),
(
"What is deep learning?",
"Deep learning is a subset of machine learning that uses neural networks with many layers to learn complex patterns in large amounts of data.",
),
(
"What is a neural network?",
"A neural network is a computing system inspired by the human brain. It consists of layers of interconnected nodes that process information and learn patterns from data.",
),
(
"What is natural language processing?",
"Natural language processing (NLP) is a field of AI focused on enabling computers to understand, interpret, and generate human language.",
),
(
"What is a language model?",
"A language model is an AI system trained to predict and generate text. It learns patterns in language from large amounts of text data.",
),
(
"What is gravity?",
"Gravity is a fundamental force that attracts objects with mass toward each other. On Earth, it gives objects weight and causes them to fall at approximately 9.8 meters per second squared.",
),
(
"What is the speed of light?",
"The speed of light in a vacuum is approximately 299,792,458 meters per second, or about 186,282 miles per second.",
),
(
"What is kinetic energy?",
"Kinetic energy is the energy an object possesses due to its motion. It equals one-half times the mass times the velocity squared.",
),
(
"What is potential energy?",
"Potential energy is stored energy based on an object's position or configuration. A ball held above the ground has gravitational potential energy.",
),
(
"What is Newton's first law?",
"Newton's first law states that an object at rest stays at rest, and an object in motion stays in motion at constant velocity, unless acted upon by an external force.",
),
(
"What is Newton's second law?",
"Newton's second law states that force equals mass times acceleration (F = ma). The greater the mass, the more force needed to accelerate it.",
),
(
"What is Newton's third law?",
"Newton's third law states that for every action, there is an equal and opposite reaction.",
),
(
"What is friction?",
"Friction is a force that opposes the relative motion of two surfaces in contact. It can be static (preventing motion) or kinetic (opposing ongoing motion).",
),
(
"What is momentum?",
"Momentum is the product of an object's mass and velocity. It is a vector quantity, meaning it has both magnitude and direction.",
),
(
"What is an atom?",
"An atom is the smallest unit of a chemical element. It consists of a nucleus containing protons and neutrons, surrounded by electrons in orbitals.",
),
(
"What is a molecule?",
"A molecule is a group of two or more atoms bonded together. Water (H2O) is a molecule made of two hydrogen atoms and one oxygen atom.",
),
(
"What is electricity?",
"Electricity is the flow of electric charge, typically carried by electrons through a conductor like a wire.",
),
(
"What is magnetism?",
"Magnetism is a force caused by the motion of electric charges. Magnets have north and south poles that attract or repel each other.",
),
(
"What is a wave?",
"A wave is a disturbance that transfers energy through matter or space. Examples include sound waves, light waves, and ocean waves.",
),
(
"What is the electromagnetic spectrum?",
"The electromagnetic spectrum is the range of all electromagnetic radiation, from radio waves to gamma rays, including visible light.",
),
(
"What is sound?",
"Sound is a mechanical wave that propagates through a medium like air, water, or solid materials. It is produced by vibrations.",
),
(
"What is temperature?",
"Temperature is a measure of the average kinetic energy of particles in a substance. Higher temperature means faster-moving particles.",
),
(
"What is pressure?",
"Pressure is force applied per unit area. Atmospheric pressure at sea level is about 101,325 Pascals.",
),
(
"What is density?",
"Density is mass per unit volume. Objects denser than water sink, while less dense objects float.",
),
(
"What is a black hole?",
"A black hole is a region in space where gravity is so strong that nothing, not even light, can escape. They form when massive stars collapse.",
),
(
"What is the periodic table?",
"The periodic table arranges all known chemical elements by atomic number, electron configuration, and chemical properties into rows and columns.",
),
(
"What is a chemical reaction?",
"A chemical reaction is a process where substances (reactants) transform into different substances (products) by breaking and forming chemical bonds.",
),
(
"What is an acid?",
"An acid is a substance that donates hydrogen ions (H+) when dissolved in water. Examples include hydrochloric acid (HCl) and sulfuric acid (H2SO4).",
),
(
"What is a base?",
"A base is a substance that accepts hydrogen ions or donates hydroxide ions (OH-). Examples include sodium hydroxide (NaOH) and ammonia (NH3).",
),
(
"What is pH?",
"pH is a scale from 0 to 14 that measures how acidic or basic a solution is. 7 is neutral, below 7 is acidic, and above 7 is basic.",
),
(
"What is an element?",
"An element is a pure substance made of only one type of atom. There are 118 known elements, like hydrogen, oxygen, and carbon.",
),
(
"What is a compound?",
"A compound is a substance made of two or more different elements chemically bonded together. Water (H2O) and salt (NaCl) are examples.",
),
(
"What is oxidation?",
"Oxidation is a chemical reaction where a substance loses electrons. Rust forming on iron is a common example of oxidation.",
),
(
"What is a catalyst?",
"A catalyst is a substance that speeds up a chemical reaction without being consumed in the process. Enzymes are biological catalysts.",
),
(
"What is the difference between a mixture and a compound?",
"A mixture combines substances physically and can be separated by physical means. A compound combines elements chemically and requires chemical reactions to separate.",
),
(
"What is DNA?",
"DNA (deoxyribonucleic acid) is a molecule that carries genetic instructions for the development, functioning, and reproduction of all living organisms.",
),
(
"What is a cell?",
"A cell is the basic structural and functional unit of all living organisms. There are two main types: prokaryotic (no nucleus) and eukaryotic (with nucleus).",
),
(
"What is photosynthesis?",
"Photosynthesis is the process by which plants convert sunlight, carbon dioxide, and water into glucose and oxygen. It occurs in chloroplasts.",
),
(
"What is evolution?",
"Evolution is the process by which species change over generations through variations in heritable traits, driven by natural selection and genetic drift.",
),
(
"What is a gene?",
"A gene is a segment of DNA that contains instructions for building a specific protein. Genes are the basic units of heredity.",
),
(
"What is an ecosystem?",
"An ecosystem is a community of living organisms interacting with each other and their physical environment, including both biotic and abiotic factors.",
),
(
"What is a virus?",
"A virus is a microscopic infectious agent that can only replicate inside living cells. It consists of genetic material (DNA or RNA) enclosed in a protein coat.",
),
(
"What is a bacteria?",
"Bacteria are single-celled microorganisms that can live in diverse environments. Some are harmful, but many are beneficial for digestion and decomposition.",
),
(
"What is respiration?",
"Cellular respiration is the process by which cells break down glucose to produce ATP (energy), consuming oxygen and releasing carbon dioxide.",
),
(
"What is mitosis?",
"Mitosis is the type of cell division that produces two identical daughter cells from one parent cell. It is used for growth and repair.",
),
(
"What is meiosis?",
"Meiosis is cell division that produces four genetically unique sex cells (gametes) with half the chromosomes. It enables sexual reproduction.",
),
(
"What is natural selection?",
"Natural selection is the process where organisms with favorable traits are more likely to survive and reproduce, passing those traits to offspring.",
),
(
"What is the immune system?",
"The immune system is the body's defense mechanism against pathogens. It includes white blood cells, antibodies, and organs like the spleen and thymus.",
),
(
"What is metabolism?",
"Metabolism is the set of chemical reactions in living organisms that convert food into energy and building blocks for growth and repair.",
),
(
"How do vaccines work?",
"Vaccines introduce a weakened or inactive form of a pathogen to train the immune system to recognize and fight it without causing illness.",
),
(
"What causes earthquakes?",
"Earthquakes occur when tectonic plates suddenly slip past each other, releasing stored energy as seismic waves.",
),
(
"What causes volcanoes?",
"Volcanoes form when magma from the Earth's mantle rises to the surface through cracks in the crust, often at tectonic plate boundaries.",
),
(
"What is the water cycle?",
"The water cycle describes how water evaporates from surfaces, rises and condenses into clouds, falls as precipitation, and collects in bodies of water.",
),
(
"What is climate change?",
"Climate change refers to long-term shifts in global temperatures and weather patterns, largely driven by human activities like burning fossil fuels.",
),
(
"What are tectonic plates?",
"Tectonic plates are massive slabs of Earth's lithosphere that float on the semi-fluid asthenosphere below. Their movement causes earthquakes and volcanic activity.",
),
(
"What is the atmosphere?",
"The atmosphere is the layer of gases surrounding Earth, composed mainly of nitrogen (78%) and oxygen (21%), that protects life from harmful radiation.",
),
(
"What is the ozone layer?",
"The ozone layer is a region of Earth's stratosphere containing high concentrations of ozone (O3) that absorbs most of the Sun's ultraviolet radiation.",
),
(
"What causes tides?",
"Tides are caused primarily by the gravitational pull of the Moon on Earth's oceans, with the Sun also contributing a smaller effect.",
),
(
"What is erosion?",
"Erosion is the process by which rock, soil, and sediment are worn away and transported by wind, water, ice, or gravity.",
),
(
"What is a fossil?",
"A fossil is the preserved remains or traces of ancient organisms found in rock. Fossils help scientists understand the history of life on Earth.",
),
(
"How far is the Moon from Earth?",
"The Moon is approximately 384,400 kilometers (238,855 miles) from Earth on average.",
),
(
"How far is the Sun from Earth?",
"The Sun is approximately 150 million kilometers (93 million miles) from Earth, a distance known as one astronomical unit.",
),
(
"What is the largest planet in our solar system?",
"Jupiter is the largest planet in our solar system, with a diameter of about 139,820 kilometers.",
),
(
"What is the smallest planet?",
"Mercury is the smallest planet in our solar system, with a diameter of about 4,879 kilometers.",
),
(
"How many planets are in the solar system?",
"There are eight planets in our solar system: Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, and Neptune.",
),
(
"What is a star?",
"A star is a massive celestial body made of hot gas that produces energy through nuclear fusion. Our Sun is the nearest star to Earth.",
),
(
"What is a galaxy?",
"A galaxy is a massive system of stars, gas, dust, and dark matter bound together by gravity. Our galaxy is the Milky Way.",
),
(
"What is a nebula?",
"A nebula is a giant cloud of gas and dust in space. Some nebulae are regions where new stars are being born.",
),
(
"What is a comet?",
"A comet is an icy body that orbits the Sun. When it approaches the Sun, it heats up and releases gas and dust, forming a visible tail.",
),
(
"What is a supernova?",
"A supernova is a powerful explosion that occurs when a massive star reaches the end of its life cycle, briefly outshining entire galaxies.",
),
(
"What is the Milky Way?",
"The Milky Way is our home galaxy, a barred spiral galaxy containing 100-400 billion stars spanning about 100,000 light-years in diameter.",
),
(
"What is a light-year?",
"A light-year is the distance that light travels in one year, approximately 9.46 trillion kilometers or 5.88 trillion miles.",
),
(
"What is Mars like?",
"Mars is a cold, desert planet about half the size of Earth. It has a thin atmosphere, iron oxide on its surface giving it a reddish color, and polar ice caps.",
),
(
"What are Saturn's rings made of?",
"Saturn's rings are made primarily of ice particles, rocky debris, and dust, ranging from tiny grains to house-sized chunks.",
),
(
"Is there life on other planets?",
"No confirmed evidence of extraterrestrial life has been found yet, but scientists are actively searching, especially on Mars and Jupiter's moon Europa.",
),
]
MATH_CONCEPTS = [
(
"What is pi?",
"Pi is approximately 3.14159. It is the ratio of a circle's circumference to its diameter and is an irrational number.",
),
(
"What is the Pythagorean theorem?",
"The Pythagorean theorem states that in a right triangle, the square of the hypotenuse equals the sum of the squares of the other two sides: a squared plus b squared equals c squared.",
),
(
"What is a prime number?",
"A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. Examples include 2, 3, 5, 7, and 11.",
),
(
"What is a fraction?",
"A fraction represents a part of a whole. It is written as a numerator over a denominator, like 1/2 or 3/4.",
),
(
"What is a percentage?",
"A percentage is a number expressed as a fraction of 100. For example, 50% means 50 out of 100, or one half.",
),
(
"What is algebra?",
"Algebra is a branch of mathematics that uses letters and symbols to represent numbers and quantities in equations and formulas.",
),
(
"What is geometry?",
"Geometry is the branch of mathematics dealing with shapes, sizes, positions, and properties of space and figures.",
),
(
"What is calculus?",
"Calculus is a branch of mathematics that studies rates of change (differential calculus) and accumulation of quantities (integral calculus).",
),
(
"What is an equation?",
"An equation is a mathematical statement that asserts two expressions are equal, connected by an equals sign.",
),
(
"What is probability?",
"Probability is the measure of how likely an event is to occur, expressed as a number between 0 (impossible) and 1 (certain).",
),
(
"What is statistics?",
"Statistics is the science of collecting, analyzing, and interpreting numerical data to draw conclusions and make predictions.",
),
(
"What is the area of a circle?",
"The area of a circle is pi times the radius squared, written as A = pi * r^2.",
),
(
"What is the Fibonacci sequence?",
"The Fibonacci sequence is a series where each number is the sum of the two preceding ones: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, and so on.",
),
(
"What is a logarithm?",
"A logarithm is the inverse of exponentiation. It answers the question: to what power must a base be raised to produce a given number?",
),
(
"What is infinity?",
"Infinity is a concept representing something without any limit. In mathematics, it is not a number but describes unboundedness.",
),
(
"What is zero?",
"Zero is the integer between -1 and 1. It represents nothing or no quantity and is the additive identity in mathematics.",
),
(
"What is a negative number?",
"A negative number is a number less than zero. Negative numbers represent quantities below zero, like debt or temperatures below freezing.",
),
(
"What is absolute value?",
"The absolute value of a number is its distance from zero on the number line, regardless of direction. The absolute value of -5 is 5.",
),
(
"What is an average?",
"An average (or mean) is calculated by adding all numbers in a set and dividing by the count of numbers.",
),
(
"What are even and odd numbers?",
"Even numbers are divisible by 2 (like 2, 4, 6) and odd numbers are not (like 1, 3, 5).",
),
]
CAPITALS = [
("France", "Paris"),
("Germany", "Berlin"),
("Japan", "Tokyo"),
("Italy", "Rome"),
("Spain", "Madrid"),
("Brazil", "Brasilia"),
("Australia", "Canberra"),
("Canada", "Ottawa"),
("China", "Beijing"),
("India", "New Delhi"),
("Russia", "Moscow"),
("Mexico", "Mexico City"),
("Argentina", "Buenos Aires"),
("Egypt", "Cairo"),
("South Korea", "Seoul"),
("Turkey", "Ankara"),
("Thailand", "Bangkok"),
("Sweden", "Stockholm"),
("Norway", "Oslo"),
("Denmark", "Copenhagen"),
("Poland", "Warsaw"),
("Greece", "Athens"),
("Portugal", "Lisbon"),
("Ireland", "Dublin"),
("Austria", "Vienna"),
("Switzerland", "Bern"),
("Netherlands", "Amsterdam"),
("Belgium", "Brussels"),
("Finland", "Helsinki"),
("Czech Republic", "Prague"),
("Hungary", "Budapest"),
("Romania", "Bucharest"),
("Ukraine", "Kyiv"),
("Nigeria", "Abuja"),
("Kenya", "Nairobi"),
("South Africa", "Pretoria"),
("Morocco", "Rabat"),
("Colombia", "Bogota"),
("Peru", "Lima"),
("Chile", "Santiago"),
("Vietnam", "Hanoi"),
("Philippines", "Manila"),
("Indonesia", "Jakarta"),
("Malaysia", "Kuala Lumpur"),
("Singapore", "Singapore"),
("New Zealand", "Wellington"),
("Pakistan", "Islamabad"),
("Iran", "Tehran"),
("Iraq", "Baghdad"),
("Israel", "Jerusalem"),
("Saudi Arabia", "Riyadh"),
("United Kingdom", "London"),
("United States", "Washington, D.C."),
]
CONTINENTS = [
(
"How many continents are there?",
"There are seven continents: Africa, Antarctica, Asia, Australia, Europe, North America, and South America.",
),
(
"What is the largest continent?",
"Asia is the largest continent, covering about 44.6 million square kilometers.",
),
(
"What is the smallest continent?",
"Australia is the smallest continent, covering about 7.7 million square kilometers.",
),
(
"Which continent has the most countries?",
"Africa has the most countries with 54 recognized sovereign nations.",
),
]
OCEANS = [
(
"How many oceans are there?",
"There are five oceans: the Pacific, Atlantic, Indian, Southern, and Arctic Oceans.",
),
(
"What is the largest ocean?",
"The Pacific Ocean is the largest, covering about 165.25 million square kilometers.",
),
(
"What is the deepest ocean?",
"The Pacific Ocean is the deepest, with the Mariana Trench reaching about 10,994 meters deep.",
),
(
"What is the smallest ocean?",
"The Arctic Ocean is the smallest and shallowest of the five oceans.",
),
]
GEO_FACTS = [
(
"What is the longest river in the world?",
"The Nile River is the longest river in the world, stretching approximately 6,650 kilometers through northeastern Africa.",
),
(
"What is the tallest mountain?",
"Mount Everest is the tallest mountain above sea level, standing at 8,849 meters (29,032 feet) on the Nepal-Tibet border.",
),
(
"What is the largest desert?",
"The Sahara Desert is the largest hot desert, covering about 9.2 million square kilometers in northern Africa. However, Antarctica is technically the largest desert.",
),
(
"What is the largest country by area?",
"Russia is the largest country by area, spanning approximately 17.1 million square kilometers.",
),
(
"What is the smallest country?",
"Vatican City is the smallest country in the world, covering only about 0.44 square kilometers.",
),
(
"What is the most populated country?",
"India is currently the most populated country, with over 1.4 billion people.",
),
(
"What is the longest border between two countries?",
"The longest international border is between Canada and the United States, stretching about 8,891 kilometers.",
),
(
"What is the deepest lake?",
"Lake Baikal in Russia is the deepest lake in the world, reaching a maximum depth of about 1,642 meters.",
),
(
"What is the largest lake?",
"The Caspian Sea is the largest lake by surface area, despite being called a sea, covering about 371,000 square kilometers.",
),
(
"Where is the Amazon Rainforest?",
"The Amazon Rainforest is located primarily in Brazil but also extends into eight other South American countries. It is the largest tropical rainforest.",
),
(
"What is the Great Barrier Reef?",
"The Great Barrier Reef is the world's largest coral reef system, located off the coast of Queensland, Australia, stretching over 2,300 kilometers.",
),
(
"What is the Ring of Fire?",
"The Ring of Fire is a horseshoe-shaped zone around the Pacific Ocean where many earthquakes and volcanic eruptions occur due to tectonic plate boundaries.",
),
(
"How many countries are in the world?",
"There are 195 recognized countries in the world: 193 member states of the United Nations plus two observer states (Vatican City and Palestine).",
),
(
"What is the equator?",
"The equator is an imaginary line around the middle of the Earth, equidistant from both poles, at 0 degrees latitude.",
),
(
"What are the tropics?",
"The tropics are the region between the Tropic of Cancer (23.5 degrees N) and the Tropic of Capricorn (23.5 degrees S), known for warm climates.",
),
]
HISTORY_QA = [
(
"When did World War I start?",
"World War I started on July 28, 1914, and ended on November 11, 1918.",
),
(
"When did World War II start?",
"World War II started on September 1, 1939, when Germany invaded Poland, and ended in 1945.",
),
(
"When did World War II end?",
"World War II ended on September 2, 1945, with the formal surrender of Japan.",
),
(
"Who was the first president of the United States?",
"George Washington was the first president of the United States, serving from 1789 to 1797.",
),
(
"Who was Abraham Lincoln?",