File size: 46,097 Bytes
678db70
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "0eccd20e",
   "metadata": {},
   "outputs": [],
   "source": [
    "from langchain_groq import ChatGroq"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "id": "c16ff50e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "That's an easy one!\n",
      "\n",
      "The first person to set foot on the moon was Neil Armstrong. He stepped out of the lunar module Eagle and onto the moon's surface on July 20, 1969, during the Apollo 11 mission. Armstrong famously declared, \"That's one small step for man, one giant leap for mankind,\" as he became the first human to walk on the moon.\n"
     ]
    }
   ],
   "source": [
    "llm = ChatGroq(\n",
    "    temperature=0, \n",
    "    groq_api_key='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', \n",
    "    model_name=\"llama3-70b-8192\"\n",
    ")\n",
    "response = llm.invoke(\"The first person to land on moon was ...\")\n",
    "print(response.content)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "90d33612",
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "USER_AGENT environment variable not set, consider setting it to identify your requests.\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Senior Data Engineer\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Skip to main content\n",
      "Open Virtual Assistant\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Home\n",
      "\n",
      "\n",
      "Career Areas\n",
      "\n",
      "\n",
      "Total Rewards\n",
      "\n",
      "\n",
      "Life@Nike\n",
      "\n",
      "\n",
      "Purpose\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Language\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Select a Language\n",
      "\n",
      "  Deutsch  \n",
      "  English  \n",
      "  Español (España)  \n",
      "  Español (América Latina)  \n",
      "  Français  \n",
      "  Italiano  \n",
      "  Nederlands  \n",
      "  Polski  \n",
      "  Tiếng Việt  \n",
      "  Türkçe  \n",
      "  简体中文  \n",
      "  繁體中文  \n",
      "  עִברִית  \n",
      "  한국어  \n",
      "  日本語  \n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Careers\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Close Menu\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Careers\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Chat\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "                                Home\n",
      "                            \n",
      "\n",
      "\n",
      "\n",
      "                                Career Areas\n",
      "                            \n",
      "\n",
      "\n",
      "\n",
      "                                Total Rewards\n",
      "                            \n",
      "\n",
      "\n",
      "\n",
      "                                Life@Nike\n",
      "                            \n",
      "\n",
      "\n",
      "\n",
      "                                Purpose\n",
      "                            \n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Jordan Careers\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Converse Careers\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Language\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Menu\n",
      "\n",
      "\n",
      "\n",
      "Return to Previous Menu\n",
      "\n",
      "\n",
      "\n",
      "Select a Language\n",
      "\n",
      "  Deutsch  \n",
      "  English  \n",
      "  Español (España)  \n",
      "  Español (América Latina)  \n",
      "  Français  \n",
      "  Italiano  \n",
      "  Nederlands  \n",
      "  Polski  \n",
      "  Tiếng Việt  \n",
      "  Türkçe  \n",
      "  简体中文  \n",
      "  繁體中文  \n",
      "  עִברִית  \n",
      "  한국어  \n",
      "  日本語  \n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "                                Back to Search\n",
      "\n",
      "                            \n",
      "\n",
      "Senior Data Engineer\n",
      "\n",
      "\n",
      "Categories ID\n",
      "\n",
      "\n",
      "\n",
      "Categories URL\n",
      "\n",
      "\n",
      "\n",
      "Position Type\n",
      "\n",
      "\n",
      "\n",
      "Date Posted\n",
      "\n",
      "\n",
      "\n",
      "Primary Quest ID\n",
      "\n",
      "\n",
      "\n",
      "Second Quest ID\n",
      "\n",
      "\n",
      "\n",
      "Job Classification\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Career area\n",
      "Analytics\n",
      "\n",
      "\n",
      "Location\n",
      "1 Bowerman Drive, Beaverton, Oregon 97005, United States\n",
      "\n",
      "\n",
      "\n",
      "Job ID\n",
      "R-52993\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "                                    Apply Now\n",
      "                                \n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Share Job\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Share Job Posting\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Facebook\n",
      "Opens In A New Tab\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "LinkedIn\n",
      "Link Opens In New Window\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Email\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Close-Medium (Default Size)-icon\n",
      "\n",
      "Close Menu\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Become a Part of the NIKE, Inc. Team\n",
      "NIKE, Inc. does more than outfit the world’s best athletes. It is a place to explore\n",
      "                            potential, obliterate boundaries\n",
      "                            and push out the edges of what can be. The company looks for people who can grow, think,\n",
      "                            dream and create. Its\n",
      "                            culture thrives by embracing diversity and rewarding imagination. The brand seeks achievers,\n",
      "                            leaders and\n",
      "                            visionaries. At NIKE, Inc. it’s about each person bringing skills and passion to a\n",
      "                            challenging and constantly\n",
      "                            evolving game.\n",
      "\n",
      "Senior Data Engineer - NIKE, Inc. - Beaverton, OR. Develop and deliver high quality software solutions that solve specific business problems and grow Nike’s digital businesses.Work on technical solutions that serve other engineering, data, or business facing teams. Serve the end-to-end breadth of Nike, from building foundational data capabilities, creating analytical products to help the Nike business make better decisions, to optimizing supply chain enabling business to run as efficiently as possible.Run agile squads where transparency and trust are key, and collectively bring a culture of engineering excellence and continuous improvement to the organization coach and mentor junior team members. Build products to run reliable and at scale.Code infrastructure and automatically build, test, and deploy creations.Provide support by writing documentation and tutorials as well as providing guidance to users with a variety of technical skills. Part of an agile scrum team, closely working with the Product Owner, Scrum Master and other team members that drive to deliver innovative data solutions.Partner with business facing team members and other technology solution delivery, architecture, and platform teams and interact with engineers from multiple other squads to help define Nike’s engineering culture, standards, and best practices, advocating for engineering excellence and innovation.Telecommuting is available from anywhere in the U.S., except from AK, AL, AR, DE, HI, IA, ID, IN, KS, KY, LA, MT, ND, NE, NH, NM, NV,OH, OK, RI, SD, VT, WV, and WY.Must have a Master's degree in Computer Science, Engineering and 2 years of experience in the position offered or in an engineering-related occupation.Experience must include:• Python• Databricks• Pyspark• Java• Airflow• Data Modeling• Snowflake• SQL• AWS• Microservices• Data Analysis• Machine Learning• System Design• CI/CD Pipeline DevelopmentApply at www.jobs.nike.com (Job# -R-52993)125%#LI-DNIWe offer a number of accommodations to complete our interview process including screen readers, sign language interpreters, accessible and single location for in-person interviews, closed captioning, and other reasonable modifications as needed. If you discover, as you navigate our application process, that you need assistance or an accommodation due to a disability, please complete the Candidate Accommodation Request Form.\n",
      "\n",
      "NIKE, Inc. is a growth company that looks for team members to grow with it. Nike offers a\n",
      "                            generous total rewards\n",
      "                            package, casual work environment, a diverse and inclusive culture, and an electric\n",
      "                            atmosphere for professional\n",
      "                            development. No matter the location, or the role, every Nike employee shares one galvanizing\n",
      "                            mission: To bring\n",
      "                            inspiration and innovation to every athlete* in the world.\n",
      "NIKE, Inc. is an equal opportunity employer. Qualified applicants will receive\n",
      "                            consideration without\n",
      "                            regard to race, color, religion, sex, national origin, age, sexual orientation, gender\n",
      "                            identity, gender expression,\n",
      "                            veteran status, or disability.\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "                                Apply Now\n",
      "                            \n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Share Job\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Share Job Posting\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Faceboox\n",
      "Opens In A New Tab\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "LinkedIn\n",
      "Link Opens In New Window\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Email\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Close-Medium (Default Size)-icon\n",
      "\n",
      "Close Menu\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "What You Can Expect\n",
      "OUR HIRING GAME PLAN\n",
      "\n",
      "\n",
      "01 Apply\n",
      "Our teams are made up of diverse skillsets, knowledge bases, inputs, ideas and backgrounds.\n",
      "                            We want you to find your fit – review job descriptions, departments and teams to discover\n",
      "                            the role for you.\n",
      "\n",
      "\n",
      "02 Meet a Recruiter or Take an Assessment\n",
      "If selected for a corporate role, a recruiter will reach out to start your interview process\n",
      "                            and be your main contact\n",
      "                            throughout the process. For retail roles, you’ll complete an interactive assessment that\n",
      "                            includes a chat and quizzes and\n",
      "                            takes about 10-20 minutes to complete.  No matter the role, we want to learn about you – the\n",
      "                            whole you – so don’t shy\n",
      "                            away from how you approach world-class service and what makes you unique.\n",
      "\n",
      "\n",
      "03 Interview\n",
      "Go into this stage confident by doing your research, understanding what we are looking for\n",
      "                            and being prepared for\n",
      "                            questions that are set up to learn more about you, and your background.\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Home\n",
      "\n",
      "\n",
      "About Us\n",
      "\n",
      "\n",
      "Contact\n",
      "\n",
      "\n",
      "Talent Community\n",
      "\n",
      "\n",
      "Terms\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "              \n",
      "                   \n",
      "                    Nike Applicant Privacy Policy\n",
      "                    \n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "We offer a number of accommodations to complete our interview process including screen readers, sign language interpreters,\n",
      "                accessible and single location for in-person interviews, closed captioning, and other reasonable modifications as\n",
      "                needed.\n",
      "\n",
      "\n",
      "If you discover, as you navigate our application process, that you need assistance or an accommodation due to a\n",
      "                disability, please contact us at +1 503-671-4156 and include your full name, best way to reach you, and the\n",
      "                accommodation you request to assist with the application process.\n",
      "For more information, please refer to Equal Employment\n",
      "                        Opportunity is The Law.\n",
      "\n",
      "\n",
      "\n",
      "©  Nike, Inc. All Rights Reserved\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Careers\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "Chat\n",
      "Chat with our AI Assistant\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n"
     ]
    }
   ],
   "source": [
    "from langchain_community.document_loaders import WebBaseLoader\n",
    "\n",
    "loader = WebBaseLoader(\"https://careers.nike.com/senior-data-engineer/job/R-52993\")\n",
    "page_data = loader.load().pop().page_content\n",
    "print(page_data)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "85c89a57",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "str"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from langchain_core.prompts import PromptTemplate\n",
    "\n",
    "prompt_extract = PromptTemplate.from_template(\n",
    "        \"\"\"\n",
    "        ### SCRAPED TEXT FROM WEBSITE:\n",
    "        {page_data}\n",
    "        ### INSTRUCTION:\n",
    "        The scraped text is from the career's page of a website.\n",
    "        Your job is to extract the job postings and return them in JSON format containing the \n",
    "        following keys: `role`, `experience`, `skills` and `description`.\n",
    "        Only return the valid JSON.\n",
    "        ### VALID JSON (NO PREAMBLE):    \n",
    "        \"\"\"\n",
    ")\n",
    "\n",
    "chain_extract = prompt_extract | llm \n",
    "res = chain_extract.invoke(input={'page_data':page_data})\n",
    "type(res.content)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "5415fd54",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'role': 'Senior Data Engineer',\n",
       "  'experience': '2 years',\n",
       "  'skills': ['Python',\n",
       "   'Databricks',\n",
       "   'Pyspark',\n",
       "   'Java',\n",
       "   'Airflow',\n",
       "   'Data Modeling',\n",
       "   'Snowflake',\n",
       "   'SQL',\n",
       "   'AWS',\n",
       "   'Microservices',\n",
       "   'Data Analysis',\n",
       "   'Machine Learning',\n",
       "   'System Design',\n",
       "   'CI/CD Pipeline Development'],\n",
       "  'description': 'Develop and deliver high quality software solutions that solve specific business problems and grow Nike’s digital businesses. Work on technical solutions that serve other engineering, data, or business facing teams. Serve the end-to-end breadth of Nike, from building foundational data capabilities, creating analytical products to help the Nike business make better decisions, to optimizing supply chain enabling business to run as efficiently as possible.'}]"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from langchain_core.output_parsers import JsonOutputParser\n",
    "\n",
    "json_parser = JsonOutputParser()\n",
    "json_res = json_parser.parse(res.content)\n",
    "json_res"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "39961ed6",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "list"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "type(json_res)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "id": "1e8a0f74",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>Techstack</th>\n",
       "      <th>Links</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>Python,Machine Learning,SQL,Power BI,Data Visu...</td>\n",
       "      <td>https://linkedin.com/in/rajesh-patil-12345</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>Java,Spring Boot,REST APIs,MySQL,Docker</td>\n",
       "      <td>https://linkedin.com/in/snehal-kulkarni-67890</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>JavaScript,Node.js,React,Express,HTML,CSS</td>\n",
       "      <td>https://linkedin.com/in/pradip-shinde-23456</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>C++,Data Structures,Algorithms,Java,MySQL,Git</td>\n",
       "      <td>https://linkedin.com/in/vaidehi-jadhav-34567</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>Python,Deep Learning,TensorFlow,Data Science,P...</td>\n",
       "      <td>https://linkedin.com/in/akash-thorat-45678</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>Ruby,SQL,API Development,Node.js,PostgreSQL</td>\n",
       "      <td>https://linkedin.com/in/ankita-pawar-56789</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>Java,Spring,REST APIs,Oracle,Cloud Computing</td>\n",
       "      <td>https://linkedin.com/in/suraj-deshmukh-67890</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>C#,ASP.NET,SQL Server,JavaScript,Angular</td>\n",
       "      <td>https://linkedin.com/in/poonam-kadam-78901</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>R,Data Science,Statistics,Machine Learning,Python</td>\n",
       "      <td>https://linkedin.com/in/rohini-kulkarni-89012</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>PHP,MySQL,Laravel,JavaScript,HTML,CSS</td>\n",
       "      <td>https://linkedin.com/in/milind-patil-90123</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>Python,Flask,Django,Machine Learning,Data Stru...</td>\n",
       "      <td>https://linkedin.com/in/nitish-deshmukh-12345</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>JavaScript,React,Redux,Node.js,HTML5,CSS3</td>\n",
       "      <td>https://linkedin.com/in/suman-shirke-23456</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>Go,Microservices,Cloud Computing,Docker,API De...</td>\n",
       "      <td>https://linkedin.com/in/atul-ambekar-34567</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>Swift,iOS Development,Objective-C,SwiftUI,Reac...</td>\n",
       "      <td>https://linkedin.com/in/sandhya-chavan-45678</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>Java,Spring Boot,Kotlin,Database Design,REST APIs</td>\n",
       "      <td>https://linkedin.com/in/vaibhav-ghate-56789</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>Python,Data Engineering,Spark,ETL,Big Data</td>\n",
       "      <td>https://linkedin.com/in/priyanka-jadhav-67890</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>C,Embedded Systems,Microcontrollers,PCB Design...</td>\n",
       "      <td>https://linkedin.com/in/ashwini-patil-78901</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>Java,Android Development,SQLite,Git,JSON</td>\n",
       "      <td>https://linkedin.com/in/santosh-kulkarni-89012</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>Kotlin,Android Studio,Java,Git,REST APIs</td>\n",
       "      <td>https://linkedin.com/in/vaibhavi-shinde-90123</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>Scala,Akka,Play Framework,Database Design,Big ...</td>\n",
       "      <td>https://linkedin.com/in/suresh-tambe-12345</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>SQL,NoSQL,Database Design,Cloud Computing,Data...</td>\n",
       "      <td>https://linkedin.com/in/madhuri-shelke-23456</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>Java,Spring,Cloud,MySQL,RESTful APIs</td>\n",
       "      <td>https://linkedin.com/in/milind-jadhav-34567</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>JavaScript,Vue.js,Vuex,Node.js,Express</td>\n",
       "      <td>https://linkedin.com/in/keerthi-pawar-45678</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>HTML,HTML5,CSS3,JavaScript,Responsive Web Design</td>\n",
       "      <td>https://linkedin.com/in/ajay-deshmukh-56789</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>PHP,Laravel,JavaScript,MySQL,AJAX</td>\n",
       "      <td>https://linkedin.com/in/pooja-kulkarni-67890</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>Python,Flask,SQL,Machine Learning,Web Scraping</td>\n",
       "      <td>https://linkedin.com/in/rupesh-thorat-78901</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>TypeScript,React,Node.js,GraphQL,Express</td>\n",
       "      <td>https://linkedin.com/in/ravindra-chavan-89012</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>Python,Data Science,ML,NumPy,Pandas</td>\n",
       "      <td>https://linkedin.com/in/sonali-patil-90123</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>Java,Spring,Apache Kafka,Cloud,MySQL</td>\n",
       "      <td>https://linkedin.com/in/swapnil-shinde-12345</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>C++,Python,OpenCV,Deep Learning,AI</td>\n",
       "      <td>https://linkedin.com/in/monika-ghate-23456</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>Ruby on Rails,JavaScript,SQL,REST APIs,Cloud</td>\n",
       "      <td>https://linkedin.com/in/shubham-shelke-34567</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>31</th>\n",
       "      <td>Swift,iOS,UI/UX Design,Core Data,Push Notifica...</td>\n",
       "      <td>https://linkedin.com/in/poornima-jadhav-45678</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>32</th>\n",
       "      <td>Java,Spring Boot,Spring Security,Microservices...</td>\n",
       "      <td>https://linkedin.com/in/rahul-pawar-56789</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>33</th>\n",
       "      <td>PHP,WordPress,HTML,CSS,MySQL</td>\n",
       "      <td>https://linkedin.com/in/sunita-kadam-67890</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>34</th>\n",
       "      <td>Java,Spring,Microservices,PostgreSQL,Docker</td>\n",
       "      <td>https://linkedin.com/in/vinay-kulkarni-78901</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>35</th>\n",
       "      <td>JavaScript,Node.js,Angular,Express,MongoDB</td>\n",
       "      <td>https://linkedin.com/in/archana-deshmukh-89012</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>36</th>\n",
       "      <td>C#,ASP.NET MVC,Entity Framework,SQL Server,Azure</td>\n",
       "      <td>https://linkedin.com/in/sandip-patil-90123</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>37</th>\n",
       "      <td>Python,Web Scraping,Selenium,Data Analysis,Bea...</td>\n",
       "      <td>https://linkedin.com/in/raju-thorat-12345</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>38</th>\n",
       "      <td>Java,Spring Boot,React,SQL,HTML</td>\n",
       "      <td>https://linkedin.com/in/jyoti-shinde-23456</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>39</th>\n",
       "      <td>Node.js,Express,JavaScript,MongoDB,Docker</td>\n",
       "      <td>https://linkedin.com/in/nilay-kulkarni-34567</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>40</th>\n",
       "      <td>Python,PyTorch,Computer Vision,Deep Learning,T...</td>\n",
       "      <td>https://linkedin.com/in/vaishali-deshmukh-45678</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>41</th>\n",
       "      <td>Swift,iOS,Core Animation,SwiftUI,Objective-C</td>\n",
       "      <td>https://linkedin.com/in/vijay-jadhav-56789</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>42</th>\n",
       "      <td>Java,Android Development,XML,SQLite,REST APIs</td>\n",
       "      <td>https://linkedin.com/in/ritesh-pawar-67890</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>43</th>\n",
       "      <td>TypeScript,Angular,Node.js,GraphQL,JavaScript</td>\n",
       "      <td>https://linkedin.com/in/mandar-patil-78901</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>44</th>\n",
       "      <td>JavaScript,Vue.js,Nuxt.js,GraphQL,TypeScript</td>\n",
       "      <td>https://linkedin.com/in/krishna-thorat-89012</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>45</th>\n",
       "      <td>PHP,Laravel,REST APIs,JavaScript,MySQL</td>\n",
       "      <td>https://linkedin.com/in/anuja-chavan-90123</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>46</th>\n",
       "      <td>Ruby,JavaScript,MySQL,Cloud Computing,Agile</td>\n",
       "      <td>https://linkedin.com/in/vinita-patil-12345</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>47</th>\n",
       "      <td>Go,Microservices,Kubernetes,Docker,API Design</td>\n",
       "      <td>https://linkedin.com/in/ankur-shinde-23456</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>48</th>\n",
       "      <td>Python,Flask,Machine Learning,Web Scraping,Dee...</td>\n",
       "      <td>https://linkedin.com/in/sarika-jadhav-34567</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>49</th>\n",
       "      <td>C++,Python,Embedded Systems,Machine Learning,A...</td>\n",
       "      <td>https://linkedin.com/in/mukesh-ghate-45678</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                            Techstack  \\\n",
       "0   Python,Machine Learning,SQL,Power BI,Data Visu...   \n",
       "1             Java,Spring Boot,REST APIs,MySQL,Docker   \n",
       "2           JavaScript,Node.js,React,Express,HTML,CSS   \n",
       "3       C++,Data Structures,Algorithms,Java,MySQL,Git   \n",
       "4   Python,Deep Learning,TensorFlow,Data Science,P...   \n",
       "5         Ruby,SQL,API Development,Node.js,PostgreSQL   \n",
       "6        Java,Spring,REST APIs,Oracle,Cloud Computing   \n",
       "7            C#,ASP.NET,SQL Server,JavaScript,Angular   \n",
       "8   R,Data Science,Statistics,Machine Learning,Python   \n",
       "9               PHP,MySQL,Laravel,JavaScript,HTML,CSS   \n",
       "10  Python,Flask,Django,Machine Learning,Data Stru...   \n",
       "11          JavaScript,React,Redux,Node.js,HTML5,CSS3   \n",
       "12  Go,Microservices,Cloud Computing,Docker,API De...   \n",
       "13  Swift,iOS Development,Objective-C,SwiftUI,Reac...   \n",
       "14  Java,Spring Boot,Kotlin,Database Design,REST APIs   \n",
       "15         Python,Data Engineering,Spark,ETL,Big Data   \n",
       "16  C,Embedded Systems,Microcontrollers,PCB Design...   \n",
       "17           Java,Android Development,SQLite,Git,JSON   \n",
       "18           Kotlin,Android Studio,Java,Git,REST APIs   \n",
       "19  Scala,Akka,Play Framework,Database Design,Big ...   \n",
       "20  SQL,NoSQL,Database Design,Cloud Computing,Data...   \n",
       "21               Java,Spring,Cloud,MySQL,RESTful APIs   \n",
       "22             JavaScript,Vue.js,Vuex,Node.js,Express   \n",
       "23   HTML,HTML5,CSS3,JavaScript,Responsive Web Design   \n",
       "24                  PHP,Laravel,JavaScript,MySQL,AJAX   \n",
       "25     Python,Flask,SQL,Machine Learning,Web Scraping   \n",
       "26           TypeScript,React,Node.js,GraphQL,Express   \n",
       "27                Python,Data Science,ML,NumPy,Pandas   \n",
       "28               Java,Spring,Apache Kafka,Cloud,MySQL   \n",
       "29                 C++,Python,OpenCV,Deep Learning,AI   \n",
       "30       Ruby on Rails,JavaScript,SQL,REST APIs,Cloud   \n",
       "31  Swift,iOS,UI/UX Design,Core Data,Push Notifica...   \n",
       "32  Java,Spring Boot,Spring Security,Microservices...   \n",
       "33                       PHP,WordPress,HTML,CSS,MySQL   \n",
       "34        Java,Spring,Microservices,PostgreSQL,Docker   \n",
       "35         JavaScript,Node.js,Angular,Express,MongoDB   \n",
       "36   C#,ASP.NET MVC,Entity Framework,SQL Server,Azure   \n",
       "37  Python,Web Scraping,Selenium,Data Analysis,Bea...   \n",
       "38                    Java,Spring Boot,React,SQL,HTML   \n",
       "39          Node.js,Express,JavaScript,MongoDB,Docker   \n",
       "40  Python,PyTorch,Computer Vision,Deep Learning,T...   \n",
       "41       Swift,iOS,Core Animation,SwiftUI,Objective-C   \n",
       "42      Java,Android Development,XML,SQLite,REST APIs   \n",
       "43      TypeScript,Angular,Node.js,GraphQL,JavaScript   \n",
       "44       JavaScript,Vue.js,Nuxt.js,GraphQL,TypeScript   \n",
       "45             PHP,Laravel,REST APIs,JavaScript,MySQL   \n",
       "46        Ruby,JavaScript,MySQL,Cloud Computing,Agile   \n",
       "47      Go,Microservices,Kubernetes,Docker,API Design   \n",
       "48  Python,Flask,Machine Learning,Web Scraping,Dee...   \n",
       "49  C++,Python,Embedded Systems,Machine Learning,A...   \n",
       "\n",
       "                                              Links  \n",
       "0        https://linkedin.com/in/rajesh-patil-12345  \n",
       "1     https://linkedin.com/in/snehal-kulkarni-67890  \n",
       "2       https://linkedin.com/in/pradip-shinde-23456  \n",
       "3      https://linkedin.com/in/vaidehi-jadhav-34567  \n",
       "4        https://linkedin.com/in/akash-thorat-45678  \n",
       "5        https://linkedin.com/in/ankita-pawar-56789  \n",
       "6      https://linkedin.com/in/suraj-deshmukh-67890  \n",
       "7        https://linkedin.com/in/poonam-kadam-78901  \n",
       "8     https://linkedin.com/in/rohini-kulkarni-89012  \n",
       "9        https://linkedin.com/in/milind-patil-90123  \n",
       "10    https://linkedin.com/in/nitish-deshmukh-12345  \n",
       "11       https://linkedin.com/in/suman-shirke-23456  \n",
       "12       https://linkedin.com/in/atul-ambekar-34567  \n",
       "13     https://linkedin.com/in/sandhya-chavan-45678  \n",
       "14      https://linkedin.com/in/vaibhav-ghate-56789  \n",
       "15    https://linkedin.com/in/priyanka-jadhav-67890  \n",
       "16      https://linkedin.com/in/ashwini-patil-78901  \n",
       "17   https://linkedin.com/in/santosh-kulkarni-89012  \n",
       "18    https://linkedin.com/in/vaibhavi-shinde-90123  \n",
       "19       https://linkedin.com/in/suresh-tambe-12345  \n",
       "20     https://linkedin.com/in/madhuri-shelke-23456  \n",
       "21      https://linkedin.com/in/milind-jadhav-34567  \n",
       "22      https://linkedin.com/in/keerthi-pawar-45678  \n",
       "23      https://linkedin.com/in/ajay-deshmukh-56789  \n",
       "24     https://linkedin.com/in/pooja-kulkarni-67890  \n",
       "25      https://linkedin.com/in/rupesh-thorat-78901  \n",
       "26    https://linkedin.com/in/ravindra-chavan-89012  \n",
       "27       https://linkedin.com/in/sonali-patil-90123  \n",
       "28     https://linkedin.com/in/swapnil-shinde-12345  \n",
       "29       https://linkedin.com/in/monika-ghate-23456  \n",
       "30     https://linkedin.com/in/shubham-shelke-34567  \n",
       "31    https://linkedin.com/in/poornima-jadhav-45678  \n",
       "32        https://linkedin.com/in/rahul-pawar-56789  \n",
       "33       https://linkedin.com/in/sunita-kadam-67890  \n",
       "34     https://linkedin.com/in/vinay-kulkarni-78901  \n",
       "35   https://linkedin.com/in/archana-deshmukh-89012  \n",
       "36       https://linkedin.com/in/sandip-patil-90123  \n",
       "37        https://linkedin.com/in/raju-thorat-12345  \n",
       "38       https://linkedin.com/in/jyoti-shinde-23456  \n",
       "39     https://linkedin.com/in/nilay-kulkarni-34567  \n",
       "40  https://linkedin.com/in/vaishali-deshmukh-45678  \n",
       "41       https://linkedin.com/in/vijay-jadhav-56789  \n",
       "42       https://linkedin.com/in/ritesh-pawar-67890  \n",
       "43       https://linkedin.com/in/mandar-patil-78901  \n",
       "44     https://linkedin.com/in/krishna-thorat-89012  \n",
       "45       https://linkedin.com/in/anuja-chavan-90123  \n",
       "46       https://linkedin.com/in/vinita-patil-12345  \n",
       "47       https://linkedin.com/in/ankur-shinde-23456  \n",
       "48      https://linkedin.com/in/sarika-jadhav-34567  \n",
       "49       https://linkedin.com/in/mukesh-ghate-45678  "
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import pandas as pd\n",
    "\n",
    "df = pd.read_csv(\"my_portfolio.csv\")\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "f7e888d4",
   "metadata": {},
   "outputs": [],
   "source": [
    "import uuid\n",
    "import chromadb\n",
    "\n",
    "client = chromadb.PersistentClient('vectorstore')\n",
    "collection = client.get_or_create_collection(name=\"portfolio\")\n",
    "\n",
    "if not collection.count():\n",
    "    for _, row in df.iterrows():\n",
    "        collection.add(documents=row[\"Techstack\"],\n",
    "                       metadatas={\"links\": row[\"Links\"]},\n",
    "                       ids=[str(uuid.uuid4())])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "39ad2fa2",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[[{'links': 'https://linkedin.com/in/milind-patil-90123'},\n",
       "  {'links': 'https://linkedin.com/in/sunita-kadam-67890'}]]"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "links = collection.query(query_texts=\"PHP,MySQL,Laravel,JavaScript,HTML,CSS\", n_results=2).get('metadatas', [])\n",
    "links"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "8bd36844",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'role': 'Senior Data Engineer',\n",
       "  'experience': '2 years',\n",
       "  'skills': ['Python',\n",
       "   'Databricks',\n",
       "   'Pyspark',\n",
       "   'Java',\n",
       "   'Airflow',\n",
       "   'Data Modeling',\n",
       "   'Snowflake',\n",
       "   'SQL',\n",
       "   'AWS',\n",
       "   'Microservices',\n",
       "   'Data Analysis',\n",
       "   'Machine Learning',\n",
       "   'System Design',\n",
       "   'CI/CD Pipeline Development'],\n",
       "  'description': 'Develop and deliver high quality software solutions that solve specific business problems and grow Nike’s digital businesses. Work on technical solutions that serve other engineering, data, or business facing teams. Serve the end-to-end breadth of Nike, from building foundational data capabilities, creating analytical products to help the Nike business make better decisions, to optimizing supply chain enabling business to run as efficiently as possible.'}]"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "job"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "id": "1ccfd720",
   "metadata": {
    "scrolled": false
   },
   "outputs": [],
   "source": [
    "job = json_res\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "64a97dd2",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Here is the cold email:\n",
      "\n",
      "Subject: Expert Data Engineering Solutions for Nike's Digital Businesses\n",
      "\n",
      "Dear Hiring Manager,\n",
      "\n",
      "I came across the Senior Data Engineer job description at Nike, and I'm excited to introduce AtliQ, an AI & Software Consulting company that can help you develop and deliver high-quality software solutions to solve specific business problems and grow Nike's digital businesses.\n",
      "\n",
      "At AtliQ, we have a proven track record of empowering enterprises with tailored solutions, fostering scalability, process optimization, cost reduction, and heightened overall efficiency. Our team of experts has extensive experience in Python, Databricks, Pyspark, Java, Airflow, Data Modeling, Snowflake, SQL, AWS, Microservices, Data Analysis, Machine Learning, System Design, and CI/CD Pipeline Development.\n",
      "\n",
      "We understand the importance of building foundational data capabilities, creating analytical products, and optimizing supply chain efficiency. Our expertise in data engineering can help Nike make better decisions, drive business growth, and improve operational efficiency.\n",
      "\n",
      "Some of our notable projects include:\n",
      "\n",
      "* Developed a real-time data analytics platform for a leading retail company, resulting in a 30% increase in sales\n",
      "* Built a scalable data warehousing solution for a Fortune 500 company, reducing data processing time by 50%\n",
      "\n",
      "You can learn more about our capabilities and success stories through the following links:\n",
      "\n",
      "https://linkedin.com/in/milind-patil-90123\n",
      "https://linkedin.com/in/sunita-kadam-67890\n",
      "\n",
      "I'd love to discuss how AtliQ can support Nike's digital transformation initiatives. Please let me know if you're interested in exploring further.\n",
      "\n",
      "Best regards,\n",
      "\n",
      "Mohan\n",
      "Business Development Executive\n",
      "AtliQ\n"
     ]
    }
   ],
   "source": [
    "prompt_email = PromptTemplate.from_template(\n",
    "        \"\"\"\n",
    "        ### JOB DESCRIPTION:\n",
    "        {job_description}\n",
    "        \n",
    "        ### INSTRUCTION:\n",
    "        You are Mohan, a business development executive at AtliQ. AtliQ is an AI & Software Consulting company dedicated to facilitating\n",
    "        the seamless integration of business processes through automated tools. \n",
    "        Over our experience, we have empowered numerous enterprises with tailored solutions, fostering scalability, \n",
    "        process optimization, cost reduction, and heightened overall efficiency. \n",
    "        Your job is to write a cold email to the client regarding the job mentioned above describing the capability of AtliQ \n",
    "        in fulfilling their needs.\n",
    "        Also add the most relevant ones from the following links to showcase Atliq's portfolio: {link_list}\n",
    "        Remember you are Mohan, BDE at AtliQ. \n",
    "        Do not provide a preamble.\n",
    "        ### EMAIL (NO PREAMBLE):\n",
    "        \n",
    "        \"\"\"\n",
    "        )\n",
    "\n",
    "chain_email = prompt_email | llm\n",
    "res = chain_email.invoke({\"job_description\": str(job), \"link_list\": links})\n",
    "print(res.content)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "42a73b90",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "7392df2e",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}