File tree 3 files changed +46
-0
lines changed
3 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 294
294
" # This line actaully generates the embeddings\n " ,
295
295
" plot_embeddings = [embedding_from_string(plot, model=\" text-embedding-ada-002\" ) for plot in movie_plots]"
296
296
]
297
+ },
298
+ {
299
+ "attachments" : {},
300
+ "cell_type" : " markdown" ,
301
+ "metadata" : {},
302
+ "source" : [
303
+ " ## Visualizing our embeddings with Atlas"
304
+ ]
305
+ },
306
+ {
307
+ "cell_type" : " code" ,
308
+ "execution_count" : 18 ,
309
+ "metadata" : {},
310
+ "outputs" : [],
311
+ "source" : [
312
+ " from nomic import atlas"
313
+ ]
314
+ },
315
+ {
316
+ "cell_type" : " code" ,
317
+ "execution_count" : 21 ,
318
+ "metadata" : {},
319
+ "outputs" : [],
320
+ "source" : [
321
+ " data = movies[[\" Title\" , \" Genre\" ]].to_dict(\" records\" )"
322
+ ]
323
+ },
324
+ {
325
+ "cell_type" : " code" ,
326
+ "execution_count" : null ,
327
+ "metadata" : {},
328
+ "outputs" : [],
329
+ "source" : [
330
+ " atlas.map_embeddings(embeddings=np.array(plot_embeddings), data=data)"
331
+ ]
297
332
}
298
333
],
299
334
"metadata" : {
Original file line number Diff line number Diff line change @@ -9,13 +9,15 @@ asttokens==2.2.1
9
9
async-timeout == 4.0.2
10
10
attrs == 23.1.0
11
11
backcall == 0.2.0
12
+ backoff == 2.2.1
12
13
beautifulsoup4 == 4.12.2
13
14
bleach == 6.0.0
14
15
blinker == 1.6.2
15
16
certifi == 2022.12.7
16
17
cffi == 1.15.1
17
18
charset-normalizer == 3.1.0
18
19
click == 8.1.3
20
+ cohere == 4.3.0
19
21
comm == 0.1.3
20
22
debugpy == 1.6.7
21
23
decorator == 5.1.1
@@ -36,6 +38,7 @@ isoduration==20.11.0
36
38
itsdangerous == 2.1.2
37
39
jedi == 0.18.2
38
40
Jinja2 == 3.1.2
41
+ jsonlines == 3.1.0
39
42
jsonpointer == 2.3
40
43
jsonschema == 4.17.3
41
44
jupyter == 1.0.0
@@ -47,15 +50,19 @@ jupyter_server==2.5.0
47
50
jupyter_server_terminals == 0.4.4
48
51
jupyterlab-pygments == 0.2.2
49
52
jupyterlab-widgets == 3.0.7
53
+ loguru == 0.7.0
54
+ markdown-it-py == 2.2.0
50
55
MarkupSafe == 2.1.2
51
56
matplotlib-inline == 0.1.6
57
+ mdurl == 0.1.2
52
58
mistune == 2.0.5
53
59
multidict == 6.0.4
54
60
nbclassic == 0.5.5
55
61
nbclient == 0.7.3
56
62
nbconvert == 7.3.1
57
63
nbformat == 5.8.0
58
64
nest-asyncio == 1.5.6
65
+ nomic == 1.1.6
59
66
notebook == 6.5.4
60
67
notebook_shim == 0.2.2
61
68
numpy == 1.24.3
@@ -74,7 +81,9 @@ prompt-toolkit==3.0.38
74
81
psutil == 5.9.5
75
82
ptyprocess == 0.7.0
76
83
pure-eval == 0.2.2
84
+ pyarrow == 12.0.0
77
85
pycparser == 2.21
86
+ pydantic == 1.10.7
78
87
Pygments == 2.15.1
79
88
pyrsistent == 0.19.3
80
89
python-dateutil == 2.8.2
@@ -90,6 +99,7 @@ regex==2023.3.23
90
99
requests == 2.28.2
91
100
rfc3339-validator == 0.1.4
92
101
rfc3986-validator == 0.1.1
102
+ rich == 13.3.5
93
103
Send2Trash == 1.8.0
94
104
six == 1.16.0
95
105
sniffio == 1.3.0
@@ -114,5 +124,6 @@ webencodings==0.5.1
114
124
websocket-client == 1.5.1
115
125
Werkzeug == 2.3.3
116
126
widgetsnbextension == 4.0.7
127
+ wonderwords == 2.2.0
117
128
yarl == 1.9.1
118
129
zipp == 3.15.0
You can’t perform that action at this time.
0 commit comments