This repository was archived by the owner on Jan 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-81
lines changed Expand file tree Collapse file tree 1 file changed +10
-81
lines changed Original file line number Diff line number Diff line change 76
76
},
77
77
{
78
78
"cell_type" : " code" ,
79
- "execution_count" : null ,
79
+ "execution_count" : 1 ,
80
80
"id" : " 5pLAhQmTOKiV" ,
81
81
"metadata" : {
82
82
"id" : " 5pLAhQmTOKiV"
83
83
},
84
84
"outputs" : [],
85
85
"source" : [
86
- " ! pip install cohere hnswlib unstructured -q"
86
+ " ! pip install cohere hnswlib unstructured python-dotenv -q"
87
87
]
88
88
},
89
89
{
90
90
"cell_type" : " code" ,
91
- "execution_count" : 16 ,
91
+ "execution_count" : 2 ,
92
92
"id" : " f3a03a57" ,
93
93
"metadata" : {
94
94
"id" : " f3a03a57"
95
95
},
96
- "outputs" : [
97
- {
98
- "data" : {
99
- "text/html" : [
100
- " \n " ,
101
- " <style>\n " ,
102
- " pre {\n " ,
103
- " white-space: pre-wrap;\n " ,
104
- " }\n " ,
105
- " </style>\n " ,
106
- " "
107
- ],
108
- "text/plain" : [
109
- " <IPython.core.display.HTML object>"
110
- ]
111
- },
112
- "metadata" : {},
113
- "output_type" : " display_data"
114
- },
115
- {
116
- "data" : {
117
- "text/html" : [
118
- " \n " ,
119
- " <style>\n " ,
120
- " pre {\n " ,
121
- " white-space: pre-wrap;\n " ,
122
- " }\n " ,
123
- " </style>\n " ,
124
- " "
125
- ],
126
- "text/plain" : [
127
- " <IPython.core.display.HTML object>"
128
- ]
129
- },
130
- "metadata" : {},
131
- "output_type" : " display_data"
132
- }
133
- ],
96
+ "outputs" : [],
134
97
"source" : [
135
98
" import cohere\n " ,
136
99
" from pinecone import Pinecone, PodSpec\n " ,
146
109
},
147
110
{
148
111
"cell_type" : " code" ,
149
- "execution_count" : 17 ,
112
+ "execution_count" : 3 ,
150
113
"id" : " f0b1935e" ,
151
114
"metadata" : {},
152
- "outputs" : [
153
- {
154
- "data" : {
155
- "text/html" : [
156
- " \n " ,
157
- " <style>\n " ,
158
- " pre {\n " ,
159
- " white-space: pre-wrap;\n " ,
160
- " }\n " ,
161
- " </style>\n " ,
162
- " "
163
- ],
164
- "text/plain" : [
165
- " <IPython.core.display.HTML object>"
166
- ]
167
- },
168
- "metadata" : {},
169
- "output_type" : " display_data"
170
- },
171
- {
172
- "data" : {
173
- "text/html" : [
174
- " \n " ,
175
- " <style>\n " ,
176
- " pre {\n " ,
177
- " white-space: pre-wrap;\n " ,
178
- " }\n " ,
179
- " </style>\n " ,
180
- " "
181
- ],
182
- "text/plain" : [
183
- " <IPython.core.display.HTML object>"
184
- ]
185
- },
186
- "metadata" : {},
187
- "output_type" : " display_data"
188
- }
189
- ],
115
+ "outputs" : [],
190
116
"source" : [
191
117
" import cohere\n " ,
192
118
" import os\n " ,
119
+ " import dotenv\n " ,
120
+ " \n " ,
121
+ " dotenv.load_dotenv()\n " ,
193
122
" co = cohere.Client(os.getenv(\" COHERE_API_KEY\" ))\n " ,
194
123
" pc = Pinecone(\n " ,
195
- " api_key=os.environ.get (\" PINECONE_API_KEY\" )\n " ,
124
+ " api_key=os.getenv (\" PINECONE_API_KEY\" )\n " ,
196
125
" )\n "
197
126
]
198
127
},
You can’t perform that action at this time.
0 commit comments