Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

group_7_ass_1_2024_task1 request to merge with main branch #213

Open
wants to merge 539 commits into
base: group_7_ass_1_2024_task1
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
539 commits
Select commit Hold shift + click to select a range
0437434
Merge pull request #325 from alexanderquispe/alvaro_question5
Alvaro496 Jan 10, 2024
592e16d
Merge pull request #310 from LeidyMezarina/Leidy_pregunta4
LeidyMezarina Jan 10, 2024
ae7fe44
Merge pull request #300 from alexanderquispe/group_3_ass_3_2024_
CarlosRmgz Jan 10, 2024
9e11c79
Merge pull request #294 from LeidyMezarina/group_leidymezarinas_ass1_…
LeidyMezarina Jan 10, 2024
d8ada1a
#285
LeidyMezarina Jan 10, 2024
70786fa
Merge pull request #329 from LeidyMezarina/group_lmms_assigment1_task1
LeidyMezarina Jan 10, 2024
23fc89f
#182
LeidyMezarina Jan 10, 2024
7c23e63
Merge pull request #330 from LeidyMezarina/group_10_MezarinaSanchez_a…
LeidyMezarina Jan 10, 2024
701503c
#182
LeidyMezarina Jan 10, 2024
9374f2b
Merge pull request #331 from LeidyMezarina/group_Mezarina_ass1_task1
LeidyMezarina Jan 10, 2024
563dd4e
#182
LeidyMezarina Jan 10, 2024
6c696c2
#182
LeidyMezarina Jan 10, 2024
75accd3
#182
LeidyMezarina Jan 10, 2024
066a05d
Merge pull request #332 from LeidyMezarina/group_MezarinaSncz_ass1_task1
LeidyMezarina Jan 10, 2024
15dec13
#182
LeidyMezarina Jan 10, 2024
61fad4a
Merge pull request #333 from LeidyMezarina/group_MezarinaSncz_ass1_task1
LeidyMezarina Jan 10, 2024
4b66802
#182
LeidyMezarina Jan 10, 2024
c499901
Merge pull request #334 from LeidyMezarina/group_MezarinaSncz_ass1_task1
LeidyMezarina Jan 10, 2024
91d8730
#182
LeidyMezarina Jan 10, 2024
708cf82
Merge pull request #335 from LeidyMezarina/group_MezarinaSncz_ass1_task1
LeidyMezarina Jan 10, 2024
aa2c4b9
#182
LeidyMezarina Jan 10, 2024
4a1f236
Merge pull request #336 from LeidyMezarina/group_MezarinaSncz_ass1_task1
LeidyMezarina Jan 10, 2024
ef1f121
#182
LeidyMezarina Jan 10, 2024
7a272fd
Merge pull request #337 from LeidyMezarina/group_MezarinaSncz_ass1_task1
LeidyMezarina Jan 10, 2024
14a64b1
#182
LeidyMezarina Jan 10, 2024
874cb8a
Merge pull request #338 from LeidyMezarina/group_MezarinaSncz_ass1_task1
LeidyMezarina Jan 10, 2024
a3cec51
#182
LeidyMezarina Jan 10, 2024
171d891
Merge pull request #339 from LeidyMezarina/group_MezarinaSncz_ass1_task1
LeidyMezarina Jan 10, 2024
bf3ffe6
#182
LeidyMezarina Jan 11, 2024
b86be59
Merge pull request #340 from LeidyMezarina/group_MezarinaSncz_ass1_task1
LeidyMezarina Jan 11, 2024
a2c7daf
#182
LeidyMezarina Jan 11, 2024
906a41b
Merge pull request #341 from LeidyMezarina/group_MezarinaSncz_ass1_task1
LeidyMezarina Jan 11, 2024
7c8a0ef
#
anzonyquispe Jan 11, 2024
d40145e
Merge branch 'main' of https://github.com/alexanderquispe/QLAB_Summer…
anzonyquispe Jan 11, 2024
3869600
add llm basics and classifications classes
RodrigoGrijalba Jan 11, 2024
6b822f3
RAG class
RodrigoGrijalba Jan 11, 2024
415c917
Update Folium.ipynb
anngieabd Jan 11, 2024
460f572
Merge branch 'main' into lmm_lecture
RodrigoGrijalba Jan 11, 2024
dfbf433
add lecture 10
RodrigoGrijalba Jan 11, 2024
04d641c
modify prose
RodrigoGrijalba Jan 11, 2024
7c50ca4
group_2_ass_4_2024
Gonzalo-Ormeno Jan 11, 2024
8fc9799
Create group_2_ass_4_2024.ipynb
Gonzalo-Ormeno Jan 11, 2024
aaffb2d
Create group_2_ass_4_2024.ipynb
Gonzalo-Ormeno Jan 11, 2024
34c699c
add and run examples
RodrigoGrijalba Jan 11, 2024
f008ec4
add lecture 10
RodrigoGrijalba Jan 11, 2024
f65e04f
add moderation examples
RodrigoGrijalba Jan 11, 2024
c93262c
small prose modification
RodrigoGrijalba Jan 11, 2024
ca9474b
Merge branch 'lmm_lecture'
RodrigoGrijalba Jan 11, 2024
8cc605c
Update Folium.ipynb
carlosborjasot Jan 12, 2024
c2b78d3
Merge branch 'main' of https://github.com/alexanderquispe/QLAB_Summer…
carlosborjasot Jan 12, 2024
29c936d
Lucia_request_4
Luci8as Jan 12, 2024
b3658dc
Add files via upload
JSSA17 Jan 12, 2024
d6ecd7d
Delete assignments/assignment_4/group_2_ass_4_2024.zip
JSSA17 Jan 12, 2024
6f2b490
Create group_3_ass_4_2024.ipynb
FernandoTem Jan 12, 2024
257c31f
Add files via upload
JSSA17 Jan 12, 2024
d9a39c2
Merge pull request #346 from alexanderquispe/Lucia_update2_2024
FernandoTem Jan 12, 2024
5e108bb
Delete assignments/group_2_ass_4_2024.ipynb
Gonzalo-Ormeno Jan 12, 2024
c689cdb
#342
IggyJoestar Jan 12, 2024
2dd60aa
Parte_Fernando
FernandoTem Jan 12, 2024
2cc68f2
Merge pull request #347 from alexanderquispe/fernando_branchito
FernandoTem Jan 12, 2024
da6157d
Add files via upload
Javier-P232001 Jan 12, 2024
75e3fb7
#342
chetorresL Jan 12, 2024
9346b65
Merge pull request #349 from alexanderquispe/che4.4
FernandoTem Jan 12, 2024
730fc7f
#342
AnthonyMN Jan 12, 2024
9b42085
Creating the task #342
jrs-21-10 Jan 12, 2024
487ec42
Create Carlos_ass4.ipynb
CarlosRmgz Jan 12, 2024
8815161
Update Carlos_ass4.ipynb
CarlosRmgz Jan 12, 2024
f3e2c09
Merge pull request #350 from alexanderquispe/group_4_ass4_2024_anthony
IggyJoestar Jan 12, 2024
0cdf160
update
alexanderquispe Jan 12, 2024
530de94
alex
alexanderquispe Jan 12, 2024
560d030
#1
CarlosRmgz Jan 12, 2024
7a45afe
added my part of the code
JosePoemape Jan 12, 2024
8705ae0
Create output.geojson
anngieabd Jan 12, 2024
9eab7f0
Merge pull request #352 from alexanderquispe/group_2_ass_4_2024_JoseP…
JosePoemape Jan 12, 2024
133ef5a
Merge pull request #348 from alexanderquispe/Javier-P232001-patch-6
Gonzalo-Ormeno Jan 12, 2024
810f232
#342
RamirezCh Jan 12, 2024
0f62948
Merge pull request #343 from alexanderquispe/group_2_ass_4_2024
JosePoemape Jan 12, 2024
5bf553b
#1
CarlosRmgz Jan 12, 2024
47e4eea
#342 My part.
jrs-21-10 Jan 12, 2024
1b9618f
#342 Maps
anngieabd Jan 12, 2024
a4d1d8f
Merge pull request #353 from alexanderquispe/group_-5_ass_4_2024_Angie
anngieabd Jan 12, 2024
2d0c832
#342 Maps correct
anngieabd Jan 12, 2024
2dda717
Merge pull request #354 from alexanderquispe/group_-5_ass_4_2024_Angie
anngieabd Jan 12, 2024
6033119
#342
IggyJoestar Jan 12, 2024
6501096
#342
rubenrojas63 Jan 12, 2024
b161e3e
Merge branch 'group_1_ass_4_2024' of https://github.com/alexanderquis…
rubenrojas63 Jan 12, 2024
c2a87c1
#342 Update the codes
DiegoGP0607 Jan 12, 2024
b12a4d9
#342
rubenrojas63 Jan 12, 2024
f598769
#342
rubenrojas63 Jan 12, 2024
5e47cb7
#342 Update maps
MariliaAri Jan 12, 2024
814b69d
Correcting some mistakes
jrs-21-10 Jan 12, 2024
696d9bb
#1
CarlosRmgz Jan 12, 2024
3e8bc35
Merge pull request #357 from alexanderquispe/group_5_marilia
anngieabd Jan 12, 2024
61fc573
Update Carlos_ass4.ipynb
CarlosRmgz Jan 12, 2024
e10abe5
Merge pull request #359 from alexanderquispe/group_5_ass_4_2024
anngieabd Jan 12, 2024
e048691
Merge pull request #360 from alexanderquispe/group_1_ass_4_2024
jrs-21-10 Jan 12, 2024
a83ca5a
Rename Assignment_4..ipynb to group_5_ass_4_2024.ipynb
anngieabd Jan 12, 2024
3e724e2
Merge pull request #358 from alexanderquispe/Carlos_ass4
FernandoTem Jan 12, 2024
0d20e5b
Merge pull request #361 from alexanderquispe/group_3_ass_4_2024
FernandoTem Jan 12, 2024
d774aa1
#
anzonyquispe Jan 12, 2024
e0833eb
Merge branch 'main' of https://github.com/alexanderquispe/QLAB_Summer…
anzonyquispe Jan 12, 2024
eca4e55
#33
LeidyMezarina Jan 12, 2024
daec95e
#33
LeidyMezarina Jan 12, 2024
58e3b9e
Merge pull request #367 from LeidyMezarina/Group_Mezarina_assigment2
LeidyMezarina Jan 12, 2024
e9ba39d
Merge pull request #326 from alexanderquispe/group_8_ass_3_2024
MendozaC25 Jan 12, 2024
91dc36a
Merge pull request #248 from alexanderquispe/group_8_ass_2_2024
MendozaC25 Jan 12, 2024
b0868fa
Delete group_5_ass_4_2024.ipynb
anngieabd Jan 12, 2024
6639fb8
#342 Update Maps
anngieabd Jan 12, 2024
08a6785
Merge pull request #368 from alexanderquispe/group_-5_ass_4_2024_Angie
anngieabd Jan 12, 2024
7e7d9e4
Merge pull request #356 from alexanderquispe/group_4_ass_4_2024_diego
IggyJoestar Jan 13, 2024
e1b8372
Delete assignments/assignment_4/map_April.html
CarlosRmgz Jan 13, 2024
7f32bd4
Delete assignments/assignment_4/map_August.html
CarlosRmgz Jan 13, 2024
f609ce3
Delete assignments/assignment_4/map_December.html
CarlosRmgz Jan 13, 2024
981be48
Delete assignments/assignment_4/map_February.html
CarlosRmgz Jan 13, 2024
1368562
Delete assignments/assignment_4/group_3_ass_4_2024.ipynb
CarlosRmgz Jan 13, 2024
5b15721
Delete group_3_ass_4_2024.ipynb
CarlosRmgz Jan 13, 2024
c84e5c5
Create group_3_ass_4_2024.ipynb
CarlosRmgz Jan 13, 2024
3aa0581
#342
chetorresL Jan 13, 2024
30d1641
Update group_3_ass_4_2024.ipynb
chetorresL Jan 13, 2024
69a3dd5
#342 Group_6
carlosborjasot Jan 13, 2024
1d8e0af
Merge pull request #370 from alexanderquispe/update_cccc4
CarlosRmgz Jan 13, 2024
180d539
#342 My part
Ismaelbgr271 Jan 13, 2024
4d98ea5
Merge pull request #371 from alexanderquispe/group_6_ass_4_ISMAEL
carlosborjasot Jan 13, 2024
6880804
#342
JoseTM28 Jan 13, 2024
7b88a89
Merge pull request #373 from alexanderquispe/group_6_ass_4_jose
carlosborjasot Jan 13, 2024
e65af52
#342
Silvana654 Jan 13, 2024
d19b267
#342
Silvana654 Jan 13, 2024
31ec14a
Update group_4_ass_4_2024.ipynb
IggyJoestar Jan 13, 2024
eada64c
#342
Silvana654 Jan 13, 2024
e119996
Update group_4_ass_4_2024.ipynb
IggyJoestar Jan 13, 2024
924c6eb
Merge pull request #374 from alexanderquispe/group_4_ass_4_2024
IggyJoestar Jan 13, 2024
5647ac9
#342 task 1
carlosborjasot Jan 13, 2024
0ef15da
Merge pull request #375 from alexanderquispe/group_6_ass_4_carlos
carlosborjasot Jan 13, 2024
09d9779
#342
carlosborjasot Jan 13, 2024
1bc04ab
Merge pull request #376 from alexanderquispe/group_6_ass_4_run_p1
carlosborjasot Jan 13, 2024
7dd418e
#342
carlosborjasot Jan 13, 2024
f2df02d
Merge pull request #377 from alexanderquispe/group_6_ass_4_part2
carlosborjasot Jan 13, 2024
8e3aef5
Merge pull request #378 from alexanderquispe/group_6_ass_4_2024
carlosborjasot Jan 13, 2024
d661e23
#342 Update codes
MariliaAri Jan 13, 2024
27570ce
Merge pull request #380 from alexanderquispe/group_5_ass_4_marilia
anngieabd Jan 13, 2024
c847920
#342 Update_codes
jdlinares2003 Jan 13, 2024
a76c800
Merge pull request #381 from alexanderquispe/Update_JDLinares
anngieabd Jan 13, 2024
f3de633
Merge pull request #324 from alexanderquispe/group_5_ass_3_2024
giordanomedina18 Jan 13, 2024
3471166
Merge pull request #227 from alexanderquispe/group_5_ass_2_2024
giordanomedina18 Jan 13, 2024
b13b8ae
#33 ass4
Luci8as Jan 13, 2024
64aed60
Merge pull request #382 from alexanderquispe/Lucia1_update4
CarlosRmgz Jan 13, 2024
81f1902
#342 group_5_ass_4
giordanomedina18 Jan 13, 2024
cf3b446
Merge pull request #383 from alexanderquispe/group_5_ass_4_2024_giordano
anngieabd Jan 13, 2024
81e4731
Merge pull request #385 from alexanderquispe/group_5_ass_4_2024
anngieabd Jan 13, 2024
22ae2b9
Merge pull request #139 from alexanderquispe/group_8_ass_1_2024_task2
MendozaC25 Jan 13, 2024
514e6c2
#342 branch fernando
FernandoTem Jan 13, 2024
fcc9479
Merge pull request #386 from alexanderquispe/fernando_branchi
CarlosRmgz Jan 13, 2024
f593d8d
#342
CarlosRmgz Jan 13, 2024
b7e97d6
Merge branch 'group_3_ass_4_2024' of https://github.com/alexanderquis…
CarlosRmgz Jan 13, 2024
2e7fb77
Delete assignments/assignment_4/Carlos_ass4.ipynb
CarlosRmgz Jan 13, 2024
7ec390b
Delete assignments/assignment_4/Parte1_Ochoa.ipynb
CarlosRmgz Jan 13, 2024
6e50bb7
#342
CarlosRmgz Jan 13, 2024
05507cb
Merge branch 'main' of https://github.com/alexanderquispe/QLAB_Summer…
CarlosRmgz Jan 13, 2024
69b25db
Delete Carlos_ass4.ipynb
CarlosRmgz Jan 13, 2024
610cf34
Merge pull request #391 from alexanderquispe/group_3_ass_4_2024
CarlosRmgz Jan 13, 2024
bde00d7
Delete group_3_ass_4_2024.ipynb
CarlosRmgz Jan 13, 2024
e4bd5b2
Create group_3_ass_4_2024.ipynb
CarlosRmgz Jan 13, 2024
fb2952b
Merge pull request #395 from alexanderquispe/group_3_ass_4_2024
CarlosRmgz Jan 13, 2024
2577b16
#342 fernando_3_4
FernandoTem Jan 13, 2024
fca1864
Merge pull request #397 from alexanderquispe/update_fernando_ass_4
CarlosRmgz Jan 13, 2024
e690917
Merge pull request #398 from alexanderquispe/group_3_ass_4_2024
CarlosRmgz Jan 13, 2024
0cff17e
#366
IggyJoestar Jan 14, 2024
9e48b88
#366 Archivo para el Assignment 5
MendozaC25 Jan 15, 2024
d1e0b33
#366
Silvana654 Jan 15, 2024
f4b4457
#366 Upload the file
DiegoGP0607 Jan 15, 2024
a0a362d
Create group_2_ass_5_2024.ipynb
Gonzalo-Ormeno Jan 15, 2024
3a3e22c
Create group_2_ass_5_2024.xlsx
Gonzalo-Ormeno Jan 15, 2024
0c36825
Update group_2_ass_5_2024.ipynb
Gonzalo-Ormeno Jan 15, 2024
6bda955
Add files via upload
Javier-P232001 Jan 15, 2024
22aad61
Creating group_1_ass_5_2024 #366
jrs-21-10 Jan 15, 2024
6f95c26
#366 Changes
RamirezCh Jan 15, 2024
c89f074
Merge pull request #403 from alexanderquispe/group_4_ass_5_2024_diego
IggyJoestar Jan 15, 2024
4359684
#366
AnthonyMN Jan 15, 2024
5bf5266
#366
rubenrojas63 Jan 15, 2024
8228751
Merge pull request #408 from alexanderquispe/goup_4_ass_5_2024_anthony
IggyJoestar Jan 15, 2024
d4e3bf2
Merge pull request #409 from alexanderquispe/group_4_ass_5_2024
IggyJoestar Jan 15, 2024
8235542
Merge pull request #407 from alexanderquispe/Javier-P232001-patch-6
Gonzalo-Ormeno Jan 15, 2024
7355f52
#366
carlosborjasot Jan 15, 2024
fbcdb43
#366 First part
Ismaelbgr271 Jan 15, 2024
c083920
Merge pull request #410 from alexanderquispe/group_6_ass_5_2024_Ismael
carlosborjasot Jan 15, 2024
f8979af
I added my part #366
jrs-21-10 Jan 15, 2024
25416aa
#366 GROUP_6_ASS_5_ALEX2
AlescoEsPython Jan 15, 2024
fb6cd8a
Merge pull request #411 from alexanderquispe/group_6_ass_5_2024_ALEX
carlosborjasot Jan 15, 2024
c5c1a04
#366
JoseTM28 Jan 15, 2024
66ca4c5
Merge pull request #412 from alexanderquispe/group_6_ass_5_jose
carlosborjasot Jan 15, 2024
13f941c
#366 Carlos
carlosborjasot Jan 15, 2024
ba82a41
Merge pull request #413 from alexanderquispe/group_6_ass_5_2024_CARLOS
Ismaelbgr271 Jan 15, 2024
14cbd6e
Merge pull request #414 from alexanderquispe/group_6_ass_5_2024
carlosborjasot Jan 15, 2024
b4c2bed
I added what was missing. #366
jrs-21-10 Jan 15, 2024
7bd342f
correcting some errors.
jrs-21-10 Jan 15, 2024
b34fc07
Merge pull request #415 from alexanderquispe/group_1_ass_5_2024
jrs-21-10 Jan 15, 2024
2e09781
update
alexanderquispe Jan 15, 2024
959ebd2
Merge pull request #416 from alexanderquispe/lecture5_alex
alexanderquispe Jan 15, 2024
716c410
#366 Advanced 1_Ass5
LeidyMezarina Jan 16, 2024
cd4a124
Merge pull request #417 from LeidyMezarina/group_8_ass5_2024_Mezarina
LeidyMezarina Jan 16, 2024
dd03fc8
Add files via upload
JSSA17 Jan 16, 2024
326fde3
#366 Advance 2 in coding
MendozaC25 Jan 16, 2024
c59fa48
#366
Alvaro496 Jan 16, 2024
00cdc59
Merge pull request #418 from alexanderquispe/final_code_Alvaro
Alvaro496 Jan 16, 2024
33b5500
#366 First codes
anngieabd Jan 16, 2024
5056171
Merge pull request #419 from alexanderquispe/group_5_ass_5_2024_Angie
anngieabd Jan 16, 2024
fb64e74
#366 Udpate cordes for the loop
MariliaAri Jan 16, 2024
5a17470
Merge pull request #421 from alexanderquispe/group_5_ass_5_lia
anngieabd Jan 16, 2024
d3b8bcc
#366 Update_ass5
jdlinares2003 Jan 16, 2024
853ea3f
Merge pull request #422 from alexanderquispe/Update_ass5_JDLinares
anngieabd Jan 16, 2024
ef8650b
#366 I updated the bucle
giordanomedina18 Jan 16, 2024
56a4124
Merge pull request #423 from alexanderquispe/group_5_ass_5_2024_Giordano
anngieabd Jan 16, 2024
509e61e
Merge pull request #424 from alexanderquispe/group_5_ass_5_2024
anngieabd Jan 16, 2024
8332823
Create group_3_ass_5_2024.ipynb
CarlosRmgz Jan 16, 2024
016a965
Update group_3_ass_5_2024.ipynb
CarlosRmgz Jan 16, 2024
2189b6b
Update group_3_ass_5_2024.ipynb
CarlosRmgz Jan 16, 2024
c9644df
#366 Nicolas
NicolasVelarde Jan 16, 2024
3f3e966
#366 Nicolás_corected
NicolasVelarde Jan 16, 2024
d90dd3c
Nicolas Corrected 2.0
NicolasVelarde Jan 16, 2024
2decb5b
#366 Fernando
FernandoTem Jan 16, 2024
ce8d8b5
correción fernando
FernandoTem Jan 16, 2024
020bdb7
Parte_oficial_fernando_12
FernandoTem Jan 16, 2024
8cdcd60
fernando_12
FernandoTem Jan 16, 2024
8a08a00
parte_oficial_oficial_fernando
FernandoTem Jan 16, 2024
9c02b52
Merge pull request #430 from alexanderquispe/fernando_12
CarlosRmgz Jan 16, 2024
ff08c34
#366
NicolasVelarde Jan 16, 2024
0c7a0f5
#366
NicolasVelarde Jan 16, 2024
8b6987e
#33 ass5
Luci8as Jan 16, 2024
7a10887
Update group_2_ass_5_2024_Chrome.ipynb
Gonzalo-Ormeno Jan 16, 2024
a199357
Update group_2_ass_5_2024(3).ipynb
Gonzalo-Ormeno Jan 16, 2024
9ec5fd6
Merge pull request #431 from alexanderquispe/Luci5_update5
CarlosRmgz Jan 16, 2024
435256e
Update group_2_ass_5_2024.ipynb
Gonzalo-Ormeno Jan 16, 2024
81a1760
#366
NicolasVelarde Jan 16, 2024
24d2fc0
Update group_2_ass_5_2024.ipynb
Gonzalo-Ormeno Jan 16, 2024
f1f378d
#366
MendozaC25 Jan 16, 2024
0eba5cf
#366 Rename Assigment 5-Mezarina.ipynb to group_8_ass_5_2024.ipynb
MendozaC25 Jan 16, 2024
53bb72d
Update group_2_ass_5_2024.ipynb
Gonzalo-Ormeno Jan 16, 2024
9f6dd47
Update group_2_ass_5_2024.ipynb
Gonzalo-Ormeno Jan 16, 2024
8238546
Delete assignments/assignment_5/group_2_ass_5_2024_Chrome.ipynb
Gonzalo-Ormeno Jan 16, 2024
759ad7d
Delete assignments/assignment_5/group_2_ass_5_2024(3).ipynb
Gonzalo-Ormeno Jan 16, 2024
22249ed
Merge pull request #406 from alexanderquispe/group_2_ass_5_2024
Gonzalo-Ormeno Jan 16, 2024
6703e35
Update group_3_ass_5_2024.ipynb
FernandoTem Jan 16, 2024
f38030b
Merge pull request #435 from alexanderquispe/che_torres
CarlosRmgz Jan 16, 2024
1bace62
Update
CarlosRmgz Jan 16, 2024
586e2c6
Merge pull request #436 from alexanderquispe/group_3_ass_5_2024
CarlosRmgz Jan 16, 2024
09e544b
Update api.ipynb
CarlosRmgz Jan 17, 2024
f4b256c
#456
CarlosRmgz Jan 20, 2024
c46d536
Delete iPortfolio directory
CarlosRmgz Jan 20, 2024
31872ba
Merge pull request #433 from alexanderquispe/group_8_ass_5_2024
MendozaC25 Jan 20, 2024
45286c5
#342 solve conflict file
MendozaC25 Jan 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file modified .DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,9 @@
*.exe
*.out
*.app

*.ipynb_checkpoints
*__pycache__
*/Constants.py
*/env
*chroma/
418 changes: 418 additions & 0 deletions Lecture_10/LLM_RAG.ipynb

Large diffs are not rendered by default.

285 changes: 285 additions & 0 deletions Lecture_10/LLM_basics.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,285 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Basics of LLM applications\n",
"\n",
"## Basic Components\n",
"\n",
"The most basic components of any LLM application are the following:\n",
"\n",
"- **Input**\n",
"\n",
"As with any other program, we desire for any input by the user to be converted to a useful output through a series of predefined steps.\n",
"\n",
"- **Setup functions**\n",
"\n",
"The input must undergo a series of transformations in order to be used by the API\n",
"\n",
"- **System Prompt**\n",
"\n",
"This is a natural language description of the task the LLM will assist with, as well as instructions and specifications on how this task is to be achieved.\n",
"\n",
"- **API**\n",
"\n",
"This is the step that actually generates the response(s), which will then be displayed by the app through a frontend environment\n",
"\n",
"## Assembling the components\n",
"\n",
"These basic components can be assembled in many different ways depending on the desired outcome. One example of a simple architecture would be the following:\n",
"\n",
"![simple_design](_assets/simple_design.png)\n",
"\n",
"This example takes the initial API response as input for more rounds of generation, an approach that can be used both for response refinement and for the addition of \"memory\" to the model. This is just one very simple permutation of possible architectures that can be designed to meet the needs of the application.\n",
"\n",
"## Creating a simple Comand Line Interface (CLI) app\n",
"\n",
"We will now use the previously defined architecture to create an app that will answer a question, and then stores this answer in a chat history or \"memory\" to be used as context for further queries. A CLI app is one in which the frontend is the command line. In our case, we are using a Jupyter Notebook, which renders command line outputs in a more interactive manner.\n",
"\n",
"To start off, you will need the `openai` and `tiktoken` package. Make sure to first install them if you haven't yet, and then you can import them.\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Requirement already satisfied: openai in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (0.27.7)\n",
"Requirement already satisfied: tiktoken in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (0.4.0)\n",
"Requirement already satisfied: aiohttp in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from openai) (3.8.5)\n",
"Requirement already satisfied: requests>=2.20 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from openai) (2.31.0)\n",
"Requirement already satisfied: tqdm in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from openai) (4.62.3)\n",
"Requirement already satisfied: regex>=2022.1.18 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from tiktoken) (2023.5.5)\n",
"Requirement already satisfied: urllib3<3,>=1.21.1 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from requests>=2.20->openai) (1.26.18)\n",
"Requirement already satisfied: certifi>=2017.4.17 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from requests>=2.20->openai) (2023.11.17)\n",
"Requirement already satisfied: idna<4,>=2.5 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from requests>=2.20->openai) (3.4)\n",
"Requirement already satisfied: charset-normalizer<4,>=2 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from requests>=2.20->openai) (2.0.10)\n",
"Requirement already satisfied: multidict<7.0,>=4.5 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from aiohttp->openai) (6.0.4)\n",
"Requirement already satisfied: attrs>=17.3.0 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from aiohttp->openai) (21.4.0)\n",
"Requirement already satisfied: aiosignal>=1.1.2 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from aiohttp->openai) (1.3.1)\n",
"Requirement already satisfied: frozenlist>=1.1.1 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from aiohttp->openai) (1.4.0)\n",
"Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from aiohttp->openai) (4.0.2)\n",
"Requirement already satisfied: yarl<2.0,>=1.0 in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from aiohttp->openai) (1.9.2)\n",
"Requirement already satisfied: colorama in c:\\users\\alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages (from tqdm->openai) (0.4.4)\n"
]
}
],
"source": [
"!pip install openai tiktoken"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"ename": "ImportError",
"evalue": "cannot import name 'OpenAI' from 'openai' (C:\\Users\\Alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages\\openai\\__init__.py)",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mImportError\u001b[0m Traceback (most recent call last)",
"\u001b[1;32mC:\\Users\\ALEXAN~1\\AppData\\Local\\Temp/ipykernel_29228/2710875855.py\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[1;32mfrom\u001b[0m \u001b[0mopenai\u001b[0m \u001b[1;32mimport\u001b[0m \u001b[0mOpenAI\u001b[0m \u001b[1;31m# the tiktoken package is imported by openai while functioning, so no need to explicitly import it\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[1;31mImportError\u001b[0m: cannot import name 'OpenAI' from 'openai' (C:\\Users\\Alexander\\anaconda3\\envs\\tensorflow\\lib\\site-packages\\openai\\__init__.py)"
]
}
],
"source": [
"from openai import OpenAI # the tiktoken package is imported by openai while functioning, so no need to explicitly import it"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Acquiring and setting up an OpenAI API key\n",
"\n",
"To use the OpenAI API, you must have an account and generate a key. Enter the [OpenAI website](https://platform.openai.com/account/api-keys) and follow the steps.\n",
"\n",
"After generating a key, you will have to add as an environment variable for the API to work. The easiest way to do this is to create a Python file called `Constants.py` that contains the key as a string, and then importing this string into the current kernel. After these steps, you can now set the api key for openai to function."
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"from Constants import OPENAI_API_KEY\n",
"\n",
"client = OpenAI(api_key = OPENAI_API_KEY)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Handle user input\n",
"\n",
"Here, we take the user input and convert it into something usable for the API. In a CLI, we would use the built-in `input` function to get the user's input as a string, but for the sake of using a Jupyter Notebook, we will explicitly change the input string instead.\n",
"\n",
"We will be using the Chat Completion endpoint of the API, which takes a list of messages, each represented by a dictionary with two entries. The `\"role\"` entry of the dictionary specifies the role of the message's sender, which can be `\"system\"`, `\"user\"`, and `\"assistant\"`; the `\"content\"` entry contains the body of the message. Therefore, we must create this list with the necessary information.\n",
"\n",
"First we create a system prompt and add it in a dictionary to the list of messages"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"system_prompt = \"You will answer the user's question to the best of your abilities\"\n",
"messages = [{\"role\": \"system\", \"content\": system_prompt}]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Then we get the user input and add it to the list"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"user_input = \"what is an elephant?\"\n",
"messages.append({\"role\": \"user\", \"content\": user_input})"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now we have the prompt and the query in the necessary format to be used with the API. It is also necessary to specify the model to be used with the `model` argument. In this case we will use the `\"gpt-3.5-turbo-1106\"` model."
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"ChatCompletion(id='chatcmpl-8fxwYk12Z7vjVxvJUnQiTeiE9OE5b', choices=[Choice(finish_reason='stop', index=0, logprobs=None, message=ChatCompletionMessage(content='An elephant is a large mammal known for its long trunk, tusks, and large ears. There are two main species of elephants: the African elephant and the Asian elephant. They are highly intelligent and social animals, known for their complex communication, strong family bonds, and remarkable memory. Elephants are herbivores and can be found in various habitats, including savannas, forests, and grasslands.', role='assistant', function_call=None, tool_calls=None))], created=1705012562, model='gpt-3.5-turbo-1106', object='chat.completion', system_fingerprint='fp_cbe4fa03fe', usage=CompletionUsage(completion_tokens=83, prompt_tokens=29, total_tokens=112))"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"model = \"gpt-3.5-turbo-1106\"\n",
"response = client.chat.completions.create(model = model, messages = messages)\n",
"response"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This returns a `ChatCompletion` class object with a lot of information on the response that has been returned. We can retrieve the response as a string by selecting a choice from the `choices` attribute of this class, which is a list of `Choice` class objects. Each of these objects has a `message` attribute which is a `ChatCompletionMessage` class object that contains the message and some information about it. The message string is stored in its `content` attribute."
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'An elephant is a large mammal known for its long trunk, tusks, and large ears. There are two main species of elephants: the African elephant and the Asian elephant. They are highly intelligent and social animals, known for their complex communication, strong family bonds, and remarkable memory. Elephants are herbivores and can be found in various habitats, including savannas, forests, and grasslands.'"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"response.choices[0].message.content"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We can now add this message to the list of messages, such that we can build a chat history for the model to use."
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
"messages.append({\"role\": \"assistant\", \"content\": response.choices[0].message.content})"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now we can reference previous responses and the assistant will be able to understand the context"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\"In some cases, elephants have been known to attack humans, but these incidents are typically a result of feeling threatened or provoked. Elephants are generally peaceful animals and will avoid confrontation if possible. However, conflicts can arise in situations where humans encroach on their natural habitat, or if an elephant feels their young are threatened. It's important to respect their space and behavior to avoid such confrontations. Conservation efforts and responsible wildlife management aim to protect both elephants and humans from these types of interactions.\""
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"user_input = \"do they ever attack humans?\"\n",
"messages.append({\"role\": \"user\", \"content\": user_input})\n",
"response = client.chat.completions.create(model = model, messages = messages)\n",
"response.choices[0].message.content"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.8.12"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Loading