|
44 | 44 | },
|
45 | 45 | {
|
46 | 46 | "cell_type": "code",
|
47 |
| - "execution_count": 3, |
| 47 | + "execution_count": 2, |
48 | 48 | "metadata": {},
|
49 | 49 | "outputs": [],
|
50 | 50 | "source": [
|
|
61 | 61 | },
|
62 | 62 | {
|
63 | 63 | "cell_type": "code",
|
64 |
| - "execution_count": 4, |
| 64 | + "execution_count": 3, |
65 | 65 | "metadata": {},
|
66 | 66 | "outputs": [
|
67 | 67 | {
|
68 | 68 | "name": "stderr",
|
69 | 69 | "output_type": "stream",
|
70 | 70 | "text": [
|
71 |
| - "/tmp/ipykernel_604828/1304092015.py:1: ApiDeprecationWarning: gemini-pro and gemini-1.5-X are going to be deprecated. Use gemini-2.0-X (https://cloud.google.com/python/docs/reference/bigframes/latest/bigframes.ml.llm.GeminiTextGenerator) instead. \n", |
| 71 | + "/tmp/ipykernel_610113/1304092015.py:1: ApiDeprecationWarning: gemini-pro and gemini-1.5-X are going to be deprecated. Use gemini-2.0-X (https://cloud.google.com/python/docs/reference/bigframes/latest/bigframes.ml.llm.GeminiTextGenerator) instead. \n", |
72 | 72 | " model = llm.GeminiTextGenerator(model_name=\"gemini-1.5-flash-002\")\n",
|
73 | 73 | "/usr/local/google/home/shuowei/src/python-bigquery-dataframes/bigframes/ml/llm.py:981: DefaultLocationWarning: No explicit location is set, so using location US for the session.\n",
|
74 | 74 | " self.session = session or global_session.get_global_session()\n"
|
|
77 | 77 | {
|
78 | 78 | "data": {
|
79 | 79 | "text/html": [
|
80 |
| - "Query job 3f32129b-5f71-4c08-b572-6c7eed201877 is DONE. 0 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:3f32129b-5f71-4c08-b572-6c7eed201877&page=queryresults\">Open Job</a>" |
| 80 | + "Query job f9b52257-1c5a-4bb9-a619-60d7cb5cee79 is DONE. 0 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:f9b52257-1c5a-4bb9-a619-60d7cb5cee79&page=queryresults\">Open Job</a>" |
81 | 81 | ],
|
82 | 82 | "text/plain": [
|
83 | 83 | "<IPython.core.display.HTML object>"
|
|
89 | 89 | {
|
90 | 90 | "data": {
|
91 | 91 | "text/html": [
|
92 |
| - "Query job 5fb1fa6f-32aa-43c8-b002-c0c21caaaaca is DONE. 0 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:5fb1fa6f-32aa-43c8-b002-c0c21caaaaca&page=queryresults\">Open Job</a>" |
| 92 | + "Query job 592a26f7-e355-4e67-947b-f5614c34690e is DONE. 0 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:592a26f7-e355-4e67-947b-f5614c34690e&page=queryresults\">Open Job</a>" |
93 | 93 | ],
|
94 | 94 | "text/plain": [
|
95 | 95 | "<IPython.core.display.HTML object>"
|
|
112 | 112 | },
|
113 | 113 | {
|
114 | 114 | "cell_type": "code",
|
115 |
| - "execution_count": 5, |
| 115 | + "execution_count": 4, |
116 | 116 | "metadata": {},
|
117 | 117 | "outputs": [
|
118 | 118 | {
|
119 | 119 | "data": {
|
120 | 120 | "text/html": [
|
121 |
| - "Query job 2276ea5b-2e08-4ed6-af34-49a7d165d145 is DONE. 0 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:2276ea5b-2e08-4ed6-af34-49a7d165d145&page=queryresults\">Open Job</a>" |
| 121 | + "Query job 6cdfea0f-1957-4cd0-a358-d3846b2ddee1 is DONE. 0 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:6cdfea0f-1957-4cd0-a358-d3846b2ddee1&page=queryresults\">Open Job</a>" |
122 | 122 | ],
|
123 | 123 | "text/plain": [
|
124 | 124 | "<IPython.core.display.HTML object>"
|
|
168 | 168 | "[1 rows x 1 columns]"
|
169 | 169 | ]
|
170 | 170 | },
|
171 |
| - "execution_count": 5, |
| 171 | + "execution_count": 4, |
172 | 172 | "metadata": {},
|
173 | 173 | "output_type": "execute_result"
|
174 | 174 | }
|
|
187 | 187 | },
|
188 | 188 | {
|
189 | 189 | "cell_type": "code",
|
190 |
| - "execution_count": 6, |
| 190 | + "execution_count": 5, |
191 | 191 | "metadata": {},
|
192 | 192 | "outputs": [
|
193 | 193 | {
|
194 | 194 | "data": {
|
195 | 195 | "text/html": [
|
196 |
| - "Query job 9ba21e96-6023-491e-8e83-f2e6fa7df0e7 is DONE. 0 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:9ba21e96-6023-491e-8e83-f2e6fa7df0e7&page=queryresults\">Open Job</a>" |
| 196 | + "Query job 06ce82fd-3041-42ec-848a-92757aece70f is DONE. 0 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:06ce82fd-3041-42ec-848a-92757aece70f&page=queryresults\">Open Job</a>" |
197 | 197 | ],
|
198 | 198 | "text/plain": [
|
199 | 199 | "<IPython.core.display.HTML object>"
|
|
206 | 206 | "name": "stderr",
|
207 | 207 | "output_type": "stream",
|
208 | 208 | "text": [
|
209 |
| - "/usr/local/google/home/garrettwu/src/bigframes/bigframes/core/__init__.py:109: PreviewWarning: Interpreting JSON column(s) as StringDtype. This behavior may change in future versions.\n", |
210 |
| - " warnings.warn(\n" |
| 209 | + "/usr/local/google/home/shuowei/src/python-bigquery-dataframes/bigframes/core/array_value.py:114: PreviewWarning: JSON column interpretation as a custom PyArrow extention in\n", |
| 210 | + "`db_dtypes` is a preview feature and subject to change.\n", |
| 211 | + " warnings.warn(msg, bfe.PreviewWarning)\n" |
211 | 212 | ]
|
212 | 213 | },
|
213 | 214 | {
|
214 | 215 | "data": {
|
215 | 216 | "text/html": [
|
216 |
| - "Query job 933d45cc-4bc0-4bdf-b4b8-573da2d58be3 is DONE. 2 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:933d45cc-4bc0-4bdf-b4b8-573da2d58be3&page=queryresults\">Open Job</a>" |
| 217 | + "Query job 0b7f4fad-4793-4187-866a-ad45d1b8b49c is DONE. 606 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:0b7f4fad-4793-4187-866a-ad45d1b8b49c&page=queryresults\">Open Job</a>" |
217 | 218 | ],
|
218 | 219 | "text/plain": [
|
219 | 220 | "<IPython.core.display.HTML object>"
|
|
225 | 226 | {
|
226 | 227 | "data": {
|
227 | 228 | "text/html": [
|
228 |
| - "Query job 3dda9bc6-84b1-4f4a-8891-85d25d8848ce is DONE. 4.3 kB processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:3dda9bc6-84b1-4f4a-8891-85d25d8848ce&page=queryresults\">Open Job</a>" |
| 229 | + "Query job 5774da7a-23cb-45e8-bf6a-87d7ee2ebacd is DONE. 614 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:5774da7a-23cb-45e8-bf6a-87d7ee2ebacd&page=queryresults\">Open Job</a>" |
229 | 230 | ],
|
230 | 231 | "text/plain": [
|
231 | 232 | "<IPython.core.display.HTML object>"
|
|
264 | 265 | " <tbody>\n",
|
265 | 266 | " <tr>\n",
|
266 | 267 | " <th>0</th>\n",
|
267 |
| - " <td>Alright, let's talk about Gemini 2.0! It's a b...</td>\n", |
| 268 | + " <td>There's no officially recognized technology or...</td>\n", |
268 | 269 | " <td><NA></td>\n",
|
269 | 270 | " <td></td>\n",
|
270 | 271 | " <td>Tell me something about Gemini 2.0.</td>\n",
|
|
276 | 277 | ],
|
277 | 278 | "text/plain": [
|
278 | 279 | " ml_generate_text_llm_result \\\n",
|
279 |
| - "0 Alright, let's talk about Gemini 2.0! It's a b... \n", |
| 280 | + "0 There's no officially recognized technology or... \n", |
280 | 281 | "\n",
|
281 | 282 | " ml_generate_text_rai_result ml_generate_text_status \\\n",
|
282 | 283 | "0 <NA> \n",
|
|
287 | 288 | "[1 rows x 4 columns]"
|
288 | 289 | ]
|
289 | 290 | },
|
290 |
| - "execution_count": 6, |
| 291 | + "execution_count": 5, |
291 | 292 | "metadata": {},
|
292 | 293 | "output_type": "execute_result"
|
293 | 294 | }
|
|
306 | 307 | },
|
307 | 308 | {
|
308 | 309 | "cell_type": "code",
|
309 |
| - "execution_count": 7, |
| 310 | + "execution_count": 6, |
310 | 311 | "metadata": {},
|
311 | 312 | "outputs": [
|
312 | 313 | {
|
313 | 314 | "data": {
|
314 | 315 | "text/html": [
|
315 |
| - "Copy job 8e68af62-e7ab-475b-99c9-b79e8ba3c40b is DONE. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:8e68af62-e7ab-475b-99c9-b79e8ba3c40b&page=queryresults\">Open Job</a>" |
| 316 | + "Copy job 8fe43863-54be-4c8a-b2b3-5fdba16a1bc0 is DONE. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:8fe43863-54be-4c8a-b2b3-5fdba16a1bc0&page=queryresults\">Open Job</a>" |
316 | 317 | ],
|
317 | 318 | "text/plain": [
|
318 | 319 | "<IPython.core.display.HTML object>"
|
|
325 | 326 | "name": "stderr",
|
326 | 327 | "output_type": "stream",
|
327 | 328 | "text": [
|
328 |
| - "/usr/local/google/home/garrettwu/src/bigframes/bigframes/ml/llm.py:803: PreviewWarning: Model gemini-2.0-flash-exp is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section of the\n", |
329 |
| - " Service Specific Terms(https://cloud.google.com/terms/service-terms#1). Pre-GA products and features are available \"as is\"\n", |
330 |
| - " and might have limited support. For more information, see the launch stage descriptions\n", |
331 |
| - " (https://cloud.google.com/products#product-launch-stages).\n", |
332 |
| - " warnings.warn(\n" |
| 329 | + "/usr/local/google/home/shuowei/src/python-bigquery-dataframes/bigframes/ml/llm.py:1023: ApiDeprecationWarning: gemini-pro and gemini-1.5-X are going to be deprecated. Use gemini-2.0-X (https://cloud.google.com/python/docs/reference/bigframes/latest/bigframes.ml.llm.GeminiTextGenerator) instead. \n", |
| 330 | + " model = cls(\n" |
333 | 331 | ]
|
334 | 332 | },
|
335 | 333 | {
|
336 | 334 | "data": {
|
337 | 335 | "text/html": [
|
338 |
| - "Query job cae7f929-d8cb-4819-a644-ac832cdc0912 is DONE. 0 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:cae7f929-d8cb-4819-a644-ac832cdc0912&page=queryresults\">Open Job</a>" |
| 336 | + "Query job eed27608-273f-45b2-bb2e-12e1b42c5c04 is DONE. 0 Bytes processed. <a target=\"_blank\" href=\"https://console.cloud.google.com/bigquery?project=bigframes-dev&j=bq:US:eed27608-273f-45b2-bb2e-12e1b42c5c04&page=queryresults\">Open Job</a>" |
339 | 337 | ],
|
340 | 338 | "text/plain": [
|
341 | 339 | "<IPython.core.display.HTML object>"
|
|
347 | 345 | {
|
348 | 346 | "data": {
|
349 | 347 | "text/plain": [
|
350 |
| - "GeminiTextGenerator(connection_name='bigframes-dev.us.bigframes-rf-connection',\n", |
351 |
| - " model_name='gemini-2.0-flash-exp',\n", |
352 |
| - " session=<bigframes.session.Session object at 0x7f8210630370>)" |
| 348 | + "GeminiTextGenerator(connection_name='bigframes-dev.US.bigframes-default-connection',\n", |
| 349 | + " model_name='gemini-1.5-flash-002',\n", |
| 350 | + " session=<bigframes.session.Session object at 0x7f38e5eab7c0>)" |
353 | 351 | ]
|
354 | 352 | },
|
355 |
| - "execution_count": 7, |
| 353 | + "execution_count": 6, |
356 | 354 | "metadata": {},
|
357 | 355 | "output_type": "execute_result"
|
358 | 356 | }
|
|
0 commit comments