Repository navigation
Expand file tree
/
Copy pathoutput.log
More file actions
303 lines (300 loc) · 12.1 KB
/
Copy pathoutput.log
File metadata and controls
303 lines (300 loc) · 12.1 KB
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
python : C:\Users\chd
wivedi\AppData\Local\
Programs\Python\Pytho
n39\lib\site-packages
\google\api_core\_pyt
hon_version_support.p
y:246:
FutureWarning: You
are using a
non-supported Python
version (3.9.13).
Google will not post
any further updates
to google.api_core
supporting this
Python version.
Please upgrade to
the latest Python
version, or at least
Python 3.10, and
then update
google.api_core.
At line:1 char:1
+ python src/data_pro
cessor.py >
output.log 2>&1
+ ~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~
~~~~~~
+ CategoryInfo
: NotSpe
cified: (C:\User
s\chdwiv...oogle
.api_core.:Strin
g) [], RemoteExc
eption
+ FullyQualified
ErrorId : Native
CommandError
warnings.warn(messa
ge, FutureWarning)
C:\Users\chdwivedi\Ap
pData\Local\Programs\
Python\Python39\lib\s
ite-packages\google\a
uth\__init__.py:54:
FutureWarning: You
are using a Python
version 3.9 past its
end of life. Google
will update
google-auth with
critical bug fixes
on a best-effort
basis, but not with
any other fixes or
features. Please
upgrade your Python
version, and then
update google-auth.
warnings.warn(eol_m
essage.format("3.9"),
FutureWarning)
C:\Users\chdwivedi\Ap
pData\Local\Programs\
Python\Python39\lib\s
ite-packages\google\o
auth2\__init__.py:40:
FutureWarning: You
are using a Python
version 3.9 past its
end of life. Google
will update
google-auth with
critical bug fixes
on a best-effort
basis, but not with
any other fixes or
features. Please
upgrade your Python
version, and then
update google-auth.
warnings.warn(eol_m
essage.format("3.9"),
FutureWarning)
C:\Users\chdwivedi\Ap
pData\Local\Programs\
Python\Python39\lib\s
ite-packages\google\a
pi_core\_python_versi
on_support.py:246:
FutureWarning: You
are using a
non-supported Python
version (3.9.13).
Google will not post
any further updates
to google.ai.generati
velanguage_v1beta
supporting this
Python version.
Please upgrade to
the latest Python
version, or at least
Python 3.10, and
then update google.ai
.generativelanguage_v
1beta.
warnings.warn(messa
ge, FutureWarning)
None of PyTorch,
TensorFlow >= 2.0,
or Flax have been
found. Models won't
be available and
only tokenizers,
configuration and
file/data utilities
can be used.
Loading datasets...
Merging datasets...
Parsing JSON fields...
Creating soup for embedding...
Processed 46628 records.
Saved processed data to processed_movies.pkl
Building Vector Index (this may take a while)...
Traceback (most
recent call last):
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
langchain_google_gena
i\embeddings.py",
line 285, in
embed_documents
result = self.cli
ent.batch_embed_conte
nts(
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
google\ai\generativel
anguage_v1beta\servic
es\generative_service
\client.py", line
1456, in
batch_embed_contents
response = rpc(
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
google\api_core\gapic
_v1\method.py", line
131, in __call__
return
wrapped_func(*args,
**kwargs)
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
google\api_core\retry
\retry_unary.py",
line 294, in
retry_wrapped_func
return
retry_target(
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
google\api_core\retry
\retry_unary.py",
line 156, in
retry_target
next_sleep =
_retry_error_helper(
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
google\api_core\retry
\retry_base.py",
line 214, in
_retry_error_helper
raise final_exc
from source_exc
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
google\api_core\retry
\retry_unary.py",
line 147, in
retry_target
result = target()
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
google\api_core\timeo
ut.py", line 130, in
func_with_timeout
return
func(*args, **kwargs)
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
google\api_core\grpc_
helpers.py", line
77, in error_remapped
_callable
raise exceptions.
from_grpc_error(exc)
from exc
google.api_core.excep
tions.NotFound: 404 m
odels/text-embedding-
004 is not found for
API version v1beta,
or is not supported
for embedContent.
Call ListModels to
see the list of
available models and
their supported
methods.
The above exception
was the direct cause
of the following
exception:
Traceback (most
recent call last):
File "D:\temp\Eklin
e\src\data_processor.
py", line 134, in
<module>
build_vector_inde
x(df)
File "D:\temp\Eklin
e\src\data_processor.
py", line 124, in
build_vector_index
vectorstore = FAI
SS.from_documents(doc
uments, embeddings)
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
langchain_core\vector
stores\base.py",
line 837, in
from_documents
return cls.from_t
exts(texts,
embedding,
metadatas=metadatas,
**kwargs)
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
langchain_community\v
ectorstores\faiss.py"
, line 1043, in
from_texts
embeddings = embe
dding.embed_documents
(texts)
File "C:\Users\chdw
ivedi\AppData\Local\P
rograms\Python\Python
39\lib\site-packages\
langchain_google_gena
i\embeddings.py",
line 290, in
embed_documents
raise GoogleGener
ativeAIError(msg)
from e
langchain_google_gena
i._common.GoogleGener
ativeAIError: Error
embedding content:
404 models/text-embed
ding-004 is not
found for API
version v1beta, or
is not supported for
embedContent. Call
ListModels to see
the list of
available models and
their supported
methods.