|
42 | 42 | },
|
43 | 43 | {
|
44 | 44 | "cell_type": "code",
|
45 |
| - "execution_count": null, |
| 45 | + "execution_count": 1, |
46 | 46 | "id": "3ef70f6d-a189-460a-8864-241a689624e2",
|
47 | 47 | "metadata": {
|
48 | 48 | "editable": true,
|
|
66 | 66 | },
|
67 | 67 | {
|
68 | 68 | "cell_type": "code",
|
69 |
| - "execution_count": null, |
| 69 | + "execution_count": 2, |
70 | 70 | "id": "cb029a5e-fedf-4f07-8a31-d220cfbfbb3d",
|
71 | 71 | "metadata": {
|
72 | 72 | "editable": true,
|
|
75 | 75 | },
|
76 | 76 | "tags": []
|
77 | 77 | },
|
78 |
| - "outputs": [], |
| 78 | + "outputs": [ |
| 79 | + { |
| 80 | + "name": "stdout", |
| 81 | + "output_type": "stream", |
| 82 | + "text": [ |
| 83 | + "2024-Nov-11 11:49:18.44| INFO | superduper.misc.plugins:13 | Loading plugin: mongodb\n", |
| 84 | + "2024-Nov-11 11:49:18.49| INFO | superduper.base.datalayer:76 | Building Data Layer\n", |
| 85 | + "2024-Nov-11 11:49:18.49| INFO | superduper.base.build:184 | Configuration: \n", |
| 86 | + " +---------------+--------------+\n", |
| 87 | + "| Configuration | Value |\n", |
| 88 | + "+---------------+--------------+\n", |
| 89 | + "| Data Backend | mongomock:// |\n", |
| 90 | + "+---------------+--------------+\n" |
| 91 | + ] |
| 92 | + } |
| 93 | + ], |
79 | 94 | "source": [
|
80 | 95 | "from superduper import superduper, CFG\n",
|
81 | 96 | "\n",
|
|
88 | 103 | },
|
89 | 104 | {
|
90 | 105 | "cell_type": "code",
|
91 |
| - "execution_count": null, |
| 106 | + "execution_count": 3, |
92 | 107 | "id": "4e7902bd",
|
93 | 108 | "metadata": {
|
94 | 109 | "editable": true,
|
|
114 | 129 | },
|
115 | 130 | {
|
116 | 131 | "cell_type": "code",
|
117 |
| - "execution_count": null, |
| 132 | + "execution_count": 4, |
118 | 133 | "id": "1ef8dd07-1b47-4dce-84dd-a081d1f5ee9d",
|
119 | 134 | "metadata": {},
|
120 | 135 | "outputs": [],
|
|
136 | 151 | },
|
137 | 152 | {
|
138 | 153 | "cell_type": "code",
|
139 |
| - "execution_count": null, |
| 154 | + "execution_count": 5, |
140 | 155 | "id": "c5965fdf",
|
141 | 156 | "metadata": {},
|
142 | 157 | "outputs": [],
|
|
170 | 185 | },
|
171 | 186 | {
|
172 | 187 | "cell_type": "code",
|
173 |
| - "execution_count": null, |
| 188 | + "execution_count": 6, |
174 | 189 | "id": "2d20eaa0-a416-4483-938e-23f79845739a",
|
175 | 190 | "metadata": {},
|
176 | 191 | "outputs": [],
|
|
198 | 213 | },
|
199 | 214 | {
|
200 | 215 | "cell_type": "code",
|
201 |
| - "execution_count": null, |
| 216 | + "execution_count": 7, |
202 | 217 | "id": "93d21872-d4dc-40dc-abab-fb07ba102ea3",
|
203 | 218 | "metadata": {},
|
204 | 219 | "outputs": [],
|
|
217 | 232 | },
|
218 | 233 | {
|
219 | 234 | "cell_type": "code",
|
220 |
| - "execution_count": null, |
| 235 | + "execution_count": 8, |
221 | 236 | "id": "31900eec-b516-4bef-939e-2e8f46252b12",
|
222 | 237 | "metadata": {},
|
223 | 238 | "outputs": [],
|
|
265 | 280 | },
|
266 | 281 | {
|
267 | 282 | "cell_type": "code",
|
268 |
| - "execution_count": null, |
| 283 | + "execution_count": 9, |
269 | 284 | "id": "a9b1f538-65ca-499e-b6d0-2dd733f81723",
|
270 | 285 | "metadata": {},
|
271 | 286 | "outputs": [],
|
|
276 | 291 | "from superduper_openai import OpenAIEmbedding\n",
|
277 | 292 | "\n",
|
278 | 293 | "openai_embedding = OpenAIEmbedding(\n",
|
279 |
| - " identifier='text-embedding-ada-002',\n", |
| 294 | + " identifier='text-embedding',\n", |
| 295 | + " model='text-embedding-ada-002',\n", |
280 | 296 | " datatype=sqlvector(shape=(1536,)),\n",
|
281 | 297 | " client_kwargs={'base_url': BASE_URL, 'api_key': API_KEY},\n",
|
282 | 298 | ")"
|
|
292 | 308 | },
|
293 | 309 | {
|
294 | 310 | "cell_type": "code",
|
295 |
| - "execution_count": null, |
| 311 | + "execution_count": 10, |
296 | 312 | "id": "4663fa4b-c2ec-427d-bf8b-b8b109cc2ccf",
|
297 | 313 | "metadata": {},
|
298 | 314 | "outputs": [],
|
|
315 | 331 | },
|
316 | 332 | {
|
317 | 333 | "cell_type": "code",
|
318 |
| - "execution_count": null, |
| 334 | + "execution_count": 11, |
319 | 335 | "id": "509c3505-54c5-4e68-84ec-3df8bea0fd74",
|
320 | 336 | "metadata": {},
|
321 | 337 | "outputs": [],
|
|
335 | 351 | },
|
336 | 352 | {
|
337 | 353 | "cell_type": "code",
|
338 |
| - "execution_count": null, |
| 354 | + "execution_count": 12, |
339 | 355 | "id": "f98e5ff4",
|
340 | 356 | "metadata": {},
|
341 | 357 | "outputs": [],
|
|
360 | 376 | },
|
361 | 377 | {
|
362 | 378 | "cell_type": "code",
|
363 |
| - "execution_count": null, |
| 379 | + "execution_count": 13, |
364 | 380 | "id": "44baeb09-6f35-4cf2-b814-46283a59f7e9",
|
365 | 381 | "metadata": {},
|
366 | 382 | "outputs": [],
|
|
387 | 403 | },
|
388 | 404 | {
|
389 | 405 | "cell_type": "code",
|
390 |
| - "execution_count": null, |
| 406 | + "execution_count": 14, |
391 | 407 | "id": "2d3a0d3a-da1c-41ec-b16c-f281c46ad794",
|
392 | 408 | "metadata": {},
|
393 | 409 | "outputs": [],
|
|
398 | 414 | },
|
399 | 415 | {
|
400 | 416 | "cell_type": "code",
|
401 |
| - "execution_count": null, |
| 417 | + "execution_count": 15, |
402 | 418 | "id": "2a82ea22-9694-4c65-b72f-c89ae49d1ab2",
|
403 | 419 | "metadata": {},
|
404 | 420 | "outputs": [],
|
|
417 | 433 | },
|
418 | 434 | {
|
419 | 435 | "cell_type": "code",
|
420 |
| - "execution_count": null, |
| 436 | + "execution_count": 16, |
421 | 437 | "id": "e6787c78-4b14-4a72-818b-450408a74331",
|
422 | 438 | "metadata": {},
|
423 | 439 | "outputs": [],
|
|
436 | 452 | },
|
437 | 453 | {
|
438 | 454 | "cell_type": "code",
|
439 |
| - "execution_count": null, |
| 455 | + "execution_count": 17, |
440 | 456 | "id": "e7c16557-af76-4e70-83d9-2984e19a9554",
|
441 | 457 | "metadata": {},
|
442 | 458 | "outputs": [],
|
|
463 | 479 | },
|
464 | 480 | {
|
465 | 481 | "cell_type": "code",
|
466 |
| - "execution_count": null, |
| 482 | + "execution_count": 18, |
467 | 483 | "id": "2e850c03-33c6-4c88-95d3-d14146a6a0af",
|
468 | 484 | "metadata": {},
|
469 |
| - "outputs": [], |
| 485 | + "outputs": [ |
| 486 | + { |
| 487 | + "name": "stdout", |
| 488 | + "output_type": "stream", |
| 489 | + "text": [ |
| 490 | + "2024-Nov-11 11:49:19.42| WARNING | superduper.base.document:479 | Leaf listener:chunker already exists\n", |
| 491 | + "2024-Nov-11 11:49:19.42| WARNING | superduper.base.document:479 | Leaf model:chunker already exists\n", |
| 492 | + "2024-Nov-11 11:49:19.43| WARNING | superduper.base.document:479 | Leaf datatype:dill already exists\n", |
| 493 | + "2024-Nov-11 11:49:19.43| WARNING | superduper.base.document:479 | Leaf var-table-name-select-var-id-field-x already exists\n" |
| 494 | + ] |
| 495 | + } |
| 496 | + ], |
470 | 497 | "source": [
|
471 | 498 | "from superduper import Template, Table, Schema\n",
|
472 | 499 | "from superduper.components.dataset import RemoteData\n",
|
|
526 | 553 | },
|
527 | 554 | {
|
528 | 555 | "cell_type": "code",
|
529 |
| - "execution_count": null, |
| 556 | + "execution_count": 19, |
530 | 557 | "id": "8924ba0d-7c01-4d6c-87fb-245531db7506",
|
531 | 558 | "metadata": {},
|
532 |
| - "outputs": [], |
| 559 | + "outputs": [ |
| 560 | + { |
| 561 | + "name": "stdout", |
| 562 | + "output_type": "stream", |
| 563 | + "text": [ |
| 564 | + "2024-Nov-11 11:49:19.43| WARNING | superduper.base.document:479 | Leaf str already exists\n" |
| 565 | + ] |
| 566 | + } |
| 567 | + ], |
533 | 568 | "source": [
|
534 | 569 | "template.export('.')"
|
535 | 570 | ]
|
|
0 commit comments