File tree Expand file tree Collapse file tree 10 files changed +108
-43
lines changed Expand file tree Collapse file tree 10 files changed +108
-43
lines changed Original file line number Diff line number Diff line change 439
439
" We begin by initializing our connection to Pinecone. To do this we need a [free API key](https://app.pinecone.io)."
440
440
]
441
441
},
442
+ {
443
+ "cell_type" : " code" ,
444
+ "execution_count" : null ,
445
+ "metadata" : {},
446
+ "outputs" : [],
447
+ "source" : [
448
+ " import os\n " ,
449
+ " \n " ,
450
+ " if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
451
+ " from pinecone_notebooks.colab import Authenticate\n " ,
452
+ " Authenticate()"
453
+ ]
454
+ },
442
455
{
443
456
"cell_type" : " code" ,
444
457
"execution_count" : 4 ,
447
460
},
448
461
"outputs" : [],
449
462
"source" : [
450
- " import os\n " ,
451
463
" from pinecone import Pinecone\n " ,
452
464
" \n " ,
453
- " # initialize connection to pinecone (or get API key at app.pinecone.io)\n " ,
454
- " if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
455
- " from pinecone_notebooks.colab import Authenticate\n " ,
456
- " Authenticate()\n " ,
457
- " \n " ,
458
465
" api_key = os.environ.get(\" PINECONE_API_KEY\" )\n " ,
459
466
" \n " ,
460
467
" # configure client\n " ,
Original file line number Diff line number Diff line change 334
334
"outputs" : [],
335
335
"source" : [
336
336
" import os\n " ,
337
- " from pinecone import Pinecone\n " ,
338
337
" \n " ,
339
- " # initialize connection to pinecone (or get API key at app.pinecone.io)\n " ,
340
338
" if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
341
339
" from pinecone_notebooks.colab import Authenticate\n " ,
342
- " Authenticate()\n " ,
340
+ " Authenticate()"
341
+ ]
342
+ },
343
+ {
344
+ "cell_type" : " code" ,
345
+ "execution_count" : null ,
346
+ "metadata" : {},
347
+ "outputs" : [],
348
+ "source" : [
349
+ " from pinecone import Pinecone\n " ,
343
350
" \n " ,
344
351
" api_key = os.environ.get(\" PINECONE_API_KEY\" )\n " ,
345
352
" \n " ,
Original file line number Diff line number Diff line change 104
104
"outputs" : [],
105
105
"source" : [
106
106
" import os\n " ,
107
- " from pinecone import Pinecone\n " ,
108
107
" \n " ,
109
- " # initialize connection to pinecone (orget API key at app.pinecone.io)\n " ,
110
108
" if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
111
109
" from pinecone_notebooks.colab import Authenticate\n " ,
112
- " Authenticate()\n " ,
110
+ " Authenticate()"
111
+ ]
112
+ },
113
+ {
114
+ "cell_type" : " code" ,
115
+ "execution_count" : null ,
116
+ "metadata" : {},
117
+ "outputs" : [],
118
+ "source" : [
119
+ " from pinecone import Pinecone\n " ,
113
120
" \n " ,
114
121
" api_key = os.environ.get(\" PINECONE_API_KEY\" )\n " ,
115
122
" \n " ,
Original file line number Diff line number Diff line change 516
516
"outputs" : [],
517
517
"source" : [
518
518
" import os\n " ,
519
- " from pinecone import Pinecone\n " ,
520
519
" \n " ,
521
- " # initialize connection to pinecone (orget API key at app.pinecone.io)\n " ,
522
520
" if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
523
521
" from pinecone_notebooks.colab import Authenticate\n " ,
524
- " Authenticate()\n " ,
522
+ " Authenticate()"
523
+ ]
524
+ },
525
+ {
526
+ "cell_type" : " code" ,
527
+ "execution_count" : null ,
528
+ "metadata" : {},
529
+ "outputs" : [],
530
+ "source" : [
531
+ " from pinecone import Pinecone\n " ,
525
532
" \n " ,
526
533
" api_key = os.environ.get(\" PINECONE_API_KEY\" )\n " ,
527
534
" \n " ,
Original file line number Diff line number Diff line change 166
166
"outputs" : [],
167
167
"source" : [
168
168
" import os\n " ,
169
- " from pinecone import Pinecone\n " ,
170
169
" \n " ,
171
- " # initialize connection to pinecone (orget API key at app.pinecone.io)\n " ,
172
170
" if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
173
171
" from pinecone_notebooks.colab import Authenticate\n " ,
174
- " Authenticate()\n " ,
172
+ " Authenticate()"
173
+ ]
174
+ },
175
+ {
176
+ "cell_type" : " code" ,
177
+ "execution_count" : null ,
178
+ "metadata" : {},
179
+ "outputs" : [],
180
+ "source" : [
181
+ " from pinecone import Pinecone\n " ,
175
182
" \n " ,
176
183
" api_key = os.environ.get(\" PINECONE_API_KEY\" )\n " ,
177
184
" \n " ,
Original file line number Diff line number Diff line change 804
804
"outputs" : [],
805
805
"source" : [
806
806
" import os\n " ,
807
- " from pinecone import Pinecone\n " ,
808
807
" \n " ,
809
- " # initialize connection to pinecone (orget API key at app.pinecone.io)\n " ,
810
808
" if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
811
809
" from pinecone_notebooks.colab import Authenticate\n " ,
812
- " Authenticate()\n " ,
810
+ " Authenticate()"
811
+ ]
812
+ },
813
+ {
814
+ "cell_type" : " code" ,
815
+ "execution_count" : null ,
816
+ "metadata" : {},
817
+ "outputs" : [],
818
+ "source" : [
819
+ " from pinecone import Pinecone\n " ,
813
820
" \n " ,
814
821
" api_key = os.environ.get(\" PINECONE_API_KEY\" )\n " ,
815
822
" \n " ,
Original file line number Diff line number Diff line change 62
62
"source" : [
63
63
" ## Sign up or log in\n " ,
64
64
" \n " ,
65
- " Sign up for a [free Pinecone account](https://www.pinecone.io/pricing/) and get an API key. Put your key in `PINECONE_API_KEY` below when initializing a new client instance:\n "
65
+ " Sign up for a [free Pinecone account](https://www.pinecone.io/pricing/) and get an API key. Put your key in `PINECONE_API_KEY` below when initializing a new client instance:"
66
66
]
67
67
},
68
68
{
82
82
" \n " ,
83
83
" if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
84
84
" from pinecone_notebooks.colab import Authenticate\n " ,
85
- " Authenticate()\n " ,
86
- " \n " ,
87
- " api_key = os.environ.get(\" PINECONE_API_KEY\" )"
85
+ " Authenticate()"
88
86
]
89
87
},
90
88
{
97
95
"source" : [
98
96
" from pinecone import Pinecone\n " ,
99
97
" \n " ,
98
+ " api_key = os.environ.get(\" PINECONE_API_KEY\" )\n " ,
99
+ " \n " ,
100
100
" pc = Pinecone(api_key=api_key)"
101
101
]
102
102
},
Original file line number Diff line number Diff line change 95
95
},
96
96
{
97
97
"cell_type" : " code" ,
98
- "execution_count" : 1 ,
99
- "metadata" : {
100
- "id" : " 3dkFBCjfk40i"
101
- },
98
+ "execution_count" : null ,
99
+ "metadata" : {},
102
100
"outputs" : [],
103
101
"source" : [
104
102
" import os\n " ,
105
103
" \n " ,
106
104
" # initialize connection to pinecone (orget API key at app.pinecone.io)\n " ,
107
105
" if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
108
106
" from pinecone_notebooks.colab import Authenticate\n " ,
109
- " Authenticate()\n " ,
110
- " \n " ,
107
+ " Authenticate()"
108
+ ]
109
+ },
110
+ {
111
+ "cell_type" : " code" ,
112
+ "execution_count" : 1 ,
113
+ "metadata" : {
114
+ "id" : " 3dkFBCjfk40i"
115
+ },
116
+ "outputs" : [],
117
+ "source" : [
111
118
" api_key = os.environ.get(\" PINECONE_API_KEY\" )\n " ,
112
119
" \n " ,
113
120
" # available at platform.openai.com/api-keys\n " ,
Original file line number Diff line number Diff line change 89
89
" ## Connect to Pinecone and create an index"
90
90
]
91
91
},
92
+ {
93
+ "cell_type" : " code" ,
94
+ "execution_count" : null ,
95
+ "metadata" : {},
96
+ "outputs" : [],
97
+ "source" : [
98
+ " import os\n " ,
99
+ " \n " ,
100
+ " # initialize connection to pinecone (orget API key at app.pinecone.io)\n " ,
101
+ " if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
102
+ " from pinecone_notebooks.colab import Authenticate\n " ,
103
+ " Authenticate()"
104
+ ]
105
+ },
92
106
{
93
107
"cell_type" : " code" ,
94
108
"execution_count" : 9 ,
101
115
},
102
116
"outputs" : [],
103
117
"source" : [
104
- " import os\n " ,
105
118
" from pinecone.grpc import PineconeGRPC\n " ,
106
119
" \n " ,
107
- " # initialize connection to pinecone (orget API key at app.pinecone.io)\n " ,
108
- " if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
109
- " from pinecone_notebooks.colab import Authenticate\n " ,
110
- " Authenticate()\n " ,
111
- " \n " ,
112
120
" api_key = os.environ.get(\" PINECONE_API_KEY\" )\n " ,
113
121
" \n " ,
114
122
" # configure GRPC client\n " ,
Original file line number Diff line number Diff line change 465
465
},
466
466
{
467
467
"cell_type" : " code" ,
468
- "execution_count" : 5 ,
469
- "metadata" : {
470
- "id" : " mc66NEBAcQHY"
471
- },
468
+ "execution_count" : null ,
469
+ "metadata" : {},
472
470
"outputs" : [],
473
471
"source" : [
474
472
" import os\n " ,
475
- " from pinecone import Pinecone\n " ,
476
473
" \n " ,
477
474
" # initialize connection to pinecone (orget API key at app.pinecone.io)\n " ,
478
475
" if not os.environ.get(\" PINECONE_API_KEY\" ):\n " ,
479
476
" from pinecone_notebooks.colab import Authenticate\n " ,
480
- " Authenticate()\n " ,
477
+ " Authenticate()"
478
+ ]
479
+ },
480
+ {
481
+ "cell_type" : " code" ,
482
+ "execution_count" : 5 ,
483
+ "metadata" : {
484
+ "id" : " mc66NEBAcQHY"
485
+ },
486
+ "outputs" : [],
487
+ "source" : [
488
+ " from pinecone import Pinecone\n " ,
481
489
" \n " ,
482
490
" api_key = os.environ.get(\" PINECONE_API_KEY\" )\n " ,
483
491
" \n " ,
You can’t perform that action at this time.
0 commit comments