|
48 | 48 | }, |
49 | 49 | { |
50 | 50 | "cell_type": "code", |
51 | | - "execution_count": 66, |
| 51 | + "execution_count": 4, |
52 | 52 | "metadata": {}, |
53 | 53 | "outputs": [], |
54 | 54 | "source": [ |
|
127 | 127 | }, |
128 | 128 | { |
129 | 129 | "cell_type": "code", |
130 | | - "execution_count": 68, |
| 130 | + "execution_count": 5, |
131 | 131 | "metadata": {}, |
132 | 132 | "outputs": [], |
133 | 133 | "source": [ |
|
195 | 195 | }, |
196 | 196 | { |
197 | 197 | "cell_type": "code", |
198 | | - "execution_count": 69, |
| 198 | + "execution_count": 6, |
199 | 199 | "metadata": {}, |
200 | 200 | "outputs": [ |
201 | 201 | { |
|
230 | 230 | }, |
231 | 231 | { |
232 | 232 | "cell_type": "code", |
233 | | - "execution_count": 8, |
| 233 | + "execution_count": 7, |
234 | 234 | "metadata": {}, |
235 | 235 | "outputs": [ |
236 | 236 | { |
237 | 237 | "data": { |
238 | 238 | "text/plain": [ |
239 | | - "{'id': '5f892600-e620-448c-a699-aa5971abefdc',\n", |
| 239 | + "{'id': '26b0e577-8ff8-4014-bc7a-cfc410df3488',\n", |
240 | 240 | " 'title': 'test project',\n", |
241 | 241 | " 'description': 'test description',\n", |
242 | | - " 'created_at': '2025-04-09T23:00:39.272415+00:00',\n", |
243 | | - " 'updated_at': '2025-04-09T23:00:39.272415+00:00'}" |
| 242 | + " 'created_at': '2025-04-10T00:12:34.606398+00:00',\n", |
| 243 | + " 'updated_at': '2025-04-10T00:12:34.606398+00:00'}" |
244 | 244 | ] |
245 | 245 | }, |
246 | | - "execution_count": 8, |
| 246 | + "execution_count": 7, |
247 | 247 | "metadata": {}, |
248 | 248 | "output_type": "execute_result" |
249 | 249 | } |
|
254 | 254 | }, |
255 | 255 | { |
256 | 256 | "cell_type": "code", |
257 | | - "execution_count": 9, |
| 257 | + "execution_count": 8, |
258 | 258 | "metadata": {}, |
259 | 259 | "outputs": [ |
260 | 260 | { |
261 | 261 | "data": { |
262 | 262 | "text/plain": [ |
263 | | - "{'items': [{'id': '5f892600-e620-448c-a699-aa5971abefdc',\n", |
| 263 | + "{'items': [{'id': '26b0e577-8ff8-4014-bc7a-cfc410df3488',\n", |
| 264 | + " 'title': 'test project',\n", |
| 265 | + " 'description': 'test description',\n", |
| 266 | + " 'created_at': '2025-04-10T00:12:34.606398+00:00',\n", |
| 267 | + " 'updated_at': '2025-04-10T00:12:34.606398+00:00'},\n", |
| 268 | + " {'id': '18df1385-8ff6-4c3f-bd8d-a4fcbfba5f57',\n", |
| 269 | + " 'title': 'My Project',\n", |
| 270 | + " 'description': None,\n", |
| 271 | + " 'created_at': '2025-04-09T23:49:26.491293+00:00',\n", |
| 272 | + " 'updated_at': '2025-04-09T23:49:26.491293+00:00'},\n", |
| 273 | + " {'id': '940f2c5a-4c28-4dde-9643-97daede5408e',\n", |
| 274 | + " 'title': 'My Project',\n", |
| 275 | + " 'description': None,\n", |
| 276 | + " 'created_at': '2025-04-09T23:24:34.922817+00:00',\n", |
| 277 | + " 'updated_at': '2025-04-09T23:24:34.922817+00:00'},\n", |
| 278 | + " {'id': '5f892600-e620-448c-a699-aa5971abefdc',\n", |
264 | 279 | " 'title': 'test project',\n", |
265 | 280 | " 'description': 'test description',\n", |
266 | 281 | " 'created_at': '2025-04-09T23:00:39.272415+00:00',\n", |
|
307 | 322 | " 'updated_at': '2025-03-30T02:33:38.751793+00:00'}],\n", |
308 | 323 | " 'pagination': {'offset': 0,\n", |
309 | 324 | " 'limit': 50,\n", |
310 | | - " 'total': 9,\n", |
| 325 | + " 'total': 12,\n", |
311 | 326 | " 'order_by': 'created_at',\n", |
312 | 327 | " 'sort_dir': 'desc'}}" |
313 | 328 | ] |
314 | 329 | }, |
315 | | - "execution_count": 9, |
| 330 | + "execution_count": 8, |
316 | 331 | "metadata": {}, |
317 | 332 | "output_type": "execute_result" |
318 | 333 | } |
|
323 | 338 | }, |
324 | 339 | { |
325 | 340 | "cell_type": "code", |
326 | | - "execution_count": 10, |
| 341 | + "execution_count": 9, |
327 | 342 | "metadata": {}, |
328 | 343 | "outputs": [], |
329 | 344 | "source": [ |
|
340 | 355 | }, |
341 | 356 | { |
342 | 357 | "cell_type": "code", |
343 | | - "execution_count": 11, |
| 358 | + "execution_count": 10, |
344 | 359 | "metadata": {}, |
345 | 360 | "outputs": [], |
346 | 361 | "source": [ |
|
403 | 418 | }, |
404 | 419 | { |
405 | 420 | "cell_type": "code", |
406 | | - "execution_count": 12, |
| 421 | + "execution_count": 11, |
407 | 422 | "metadata": {}, |
408 | 423 | "outputs": [ |
409 | 424 | { |
410 | 425 | "data": { |
411 | 426 | "text/plain": [ |
412 | | - "('5f892600-e620-448c-a699-aa5971abefdc',\n", |
| 427 | + "('26b0e577-8ff8-4014-bc7a-cfc410df3488',\n", |
413 | 428 | " 'e1b3f1e4-d344-48f4-a178-84e7e32e6ab6')" |
414 | 429 | ] |
415 | 430 | }, |
416 | | - "execution_count": 12, |
| 431 | + "execution_count": 11, |
417 | 432 | "metadata": {}, |
418 | 433 | "output_type": "execute_result" |
419 | 434 | } |
|
426 | 441 | }, |
427 | 442 | { |
428 | 443 | "cell_type": "code", |
429 | | - "execution_count": 13, |
| 444 | + "execution_count": 12, |
430 | 445 | "metadata": {}, |
431 | 446 | "outputs": [ |
432 | 447 | { |
433 | 448 | "name": "stdout", |
434 | 449 | "output_type": "stream", |
435 | 450 | "text": [ |
436 | | - "New dataset created: {'id': '43b6c819-3287-419b-a5bd-8423c1600463', 'name': 'New Dataset', 'description': 'This is a new dataset', 'updated_at': '2025-04-09T23:00:42.712663+00:00', 'created_at': '2025-04-09T23:00:42.712663+00:00', 'version_counter': 0, 'project_id': '5f892600-e620-448c-a699-aa5971abefdc'}\n" |
| 451 | + "New dataset created: {'id': 'e75f6ee2-2b36-4599-8e21-8da7f4006aa2', 'name': 'New Dataset', 'description': 'This is a new dataset', 'updated_at': '2025-04-10T00:12:36.940908+00:00', 'created_at': '2025-04-10T00:12:36.940908+00:00', 'version_counter': 0, 'project_id': '26b0e577-8ff8-4014-bc7a-cfc410df3488'}\n" |
437 | 452 | ] |
438 | 453 | } |
439 | 454 | ], |
|
447 | 462 | }, |
448 | 463 | { |
449 | 464 | "cell_type": "code", |
450 | | - "execution_count": 14, |
| 465 | + "execution_count": 13, |
451 | 466 | "metadata": {}, |
452 | 467 | "outputs": [ |
453 | 468 | { |
|
466 | 481 | }, |
467 | 482 | { |
468 | 483 | "cell_type": "code", |
469 | | - "execution_count": 15, |
| 484 | + "execution_count": 14, |
470 | 485 | "metadata": {}, |
471 | 486 | "outputs": [ |
472 | 487 | { |
473 | 488 | "name": "stdout", |
474 | 489 | "output_type": "stream", |
475 | 490 | "text": [ |
476 | | - "Updated dataset: {'id': '43b6c819-3287-419b-a5bd-8423c1600463', 'name': 'Updated Dataset', 'description': 'This is an updated dataset', 'created_at': '2025-04-09T23:00:42.712663+00:00', 'updated_at': '2025-04-09T23:00:44.380877+00:00', 'version_counter': 0, 'project_id': '5f892600-e620-448c-a699-aa5971abefdc'}\n" |
| 491 | + "Updated dataset: {'id': 'e75f6ee2-2b36-4599-8e21-8da7f4006aa2', 'name': 'Updated Dataset', 'description': 'This is an updated dataset', 'created_at': '2025-04-10T00:12:36.940908+00:00', 'updated_at': '2025-04-10T00:12:38.564782+00:00', 'version_counter': 0, 'project_id': '26b0e577-8ff8-4014-bc7a-cfc410df3488'}\n" |
477 | 492 | ] |
478 | 493 | } |
479 | 494 | ], |
|
489 | 504 | }, |
490 | 505 | { |
491 | 506 | "cell_type": "code", |
492 | | - "execution_count": 16, |
| 507 | + "execution_count": 15, |
493 | 508 | "metadata": {}, |
494 | 509 | "outputs": [ |
495 | 510 | { |
|
515 | 530 | }, |
516 | 531 | { |
517 | 532 | "cell_type": "code", |
518 | | - "execution_count": 17, |
| 533 | + "execution_count": 16, |
519 | 534 | "metadata": {}, |
520 | 535 | "outputs": [], |
521 | 536 | "source": [ |
|
577 | 592 | }, |
578 | 593 | { |
579 | 594 | "cell_type": "code", |
580 | | - "execution_count": 18, |
| 595 | + "execution_count": 17, |
581 | 596 | "metadata": {}, |
582 | 597 | "outputs": [ |
583 | 598 | { |
584 | 599 | "name": "stdout", |
585 | 600 | "output_type": "stream", |
586 | 601 | "text": [ |
587 | | - "New experiment created: {'id': 'cb487c5d-ef21-45da-8eab-7a8d3a02b515', 'name': 'New Experiment', 'description': 'This is a new experiment', 'updated_at': '2025-04-09T23:00:45.543119+00:00', 'created_at': '2025-04-09T23:00:45.543119+00:00', 'version_counter': 0, 'project_id': '5f892600-e620-448c-a699-aa5971abefdc'}\n", |
| 602 | + "New experiment created: {'id': 'b575c5d1-6934-45c0-b67a-fc9a4d7bdba3', 'name': 'New Experiment', 'description': 'This is a new experiment', 'updated_at': '2025-04-10T00:12:39.955229+00:00', 'created_at': '2025-04-10T00:12:39.955229+00:00', 'version_counter': 0, 'project_id': '26b0e577-8ff8-4014-bc7a-cfc410df3488'}\n", |
588 | 603 | "Found 2 experiments\n", |
589 | | - "Experiment: {'id': 'cb487c5d-ef21-45da-8eab-7a8d3a02b515', 'name': 'New Experiment', 'description': 'This is a new experiment', 'created_at': '2025-04-09T23:00:45.543119+00:00', 'updated_at': '2025-04-09T23:00:45.543119+00:00', 'version_counter': 0, 'project_id': '5f892600-e620-448c-a699-aa5971abefdc'}\n", |
590 | | - "Updated experiment: {'id': 'cb487c5d-ef21-45da-8eab-7a8d3a02b515', 'name': 'Updated Experiment', 'description': 'This is an updated experiment', 'created_at': '2025-04-09T23:00:45.543119+00:00', 'updated_at': '2025-04-09T23:00:47.689729+00:00', 'version_counter': 0, 'project_id': '5f892600-e620-448c-a699-aa5971abefdc'}\n", |
| 604 | + "Experiment: {'id': 'b575c5d1-6934-45c0-b67a-fc9a4d7bdba3', 'name': 'New Experiment', 'description': 'This is a new experiment', 'created_at': '2025-04-10T00:12:39.955229+00:00', 'updated_at': '2025-04-10T00:12:39.955229+00:00', 'version_counter': 0, 'project_id': '26b0e577-8ff8-4014-bc7a-cfc410df3488'}\n", |
| 605 | + "Updated experiment: {'id': 'b575c5d1-6934-45c0-b67a-fc9a4d7bdba3', 'name': 'Updated Experiment', 'description': 'This is an updated experiment', 'created_at': '2025-04-10T00:12:39.955229+00:00', 'updated_at': '2025-04-10T00:12:41.676216+00:00', 'version_counter': 0, 'project_id': '26b0e577-8ff8-4014-bc7a-cfc410df3488'}\n", |
591 | 606 | "Experiment deleted\n" |
592 | 607 | ] |
593 | 608 | } |
|
621 | 636 | }, |
622 | 637 | { |
623 | 638 | "cell_type": "code", |
624 | | - "execution_count": 19, |
| 639 | + "execution_count": 18, |
625 | 640 | "metadata": {}, |
626 | 641 | "outputs": [ |
627 | 642 | { |
|
646 | 661 | " 'sort_dir': 'asc'}}" |
647 | 662 | ] |
648 | 663 | }, |
649 | | - "execution_count": 19, |
| 664 | + "execution_count": 18, |
650 | 665 | "metadata": {}, |
651 | 666 | "output_type": "execute_result" |
652 | 667 | } |
|
681 | 696 | }, |
682 | 697 | { |
683 | 698 | "cell_type": "code", |
684 | | - "execution_count": 20, |
| 699 | + "execution_count": 19, |
685 | 700 | "metadata": {}, |
686 | 701 | "outputs": [], |
687 | 702 | "source": [ |
|
699 | 714 | }, |
700 | 715 | { |
701 | 716 | "cell_type": "code", |
702 | | - "execution_count": 21, |
| 717 | + "execution_count": 20, |
703 | 718 | "metadata": {}, |
704 | 719 | "outputs": [], |
705 | 720 | "source": [ |
|
778 | 793 | }, |
779 | 794 | { |
780 | 795 | "cell_type": "code", |
781 | | - "execution_count": 22, |
| 796 | + "execution_count": 21, |
782 | 797 | "metadata": {}, |
783 | 798 | "outputs": [ |
784 | 799 | { |
785 | 800 | "data": { |
786 | 801 | "text/plain": [ |
787 | | - "{'id': 'dd741040-9305-448a-aa4d-7987905a626a',\n", |
| 802 | + "{'id': 'ebc3dd3e-f88b-4f8b-8c72-6cfcae0a0cd4',\n", |
788 | 803 | " 'name': 'New Dataset for testing columns',\n", |
789 | 804 | " 'description': 'This is a new dataset for testing columns',\n", |
790 | | - " 'updated_at': '2025-04-09T23:00:50.291417+00:00',\n", |
791 | | - " 'created_at': '2025-04-09T23:00:50.291417+00:00',\n", |
| 805 | + " 'updated_at': '2025-04-10T00:12:43.359691+00:00',\n", |
| 806 | + " 'created_at': '2025-04-10T00:12:43.359691+00:00',\n", |
792 | 807 | " 'version_counter': 0,\n", |
793 | | - " 'project_id': '5f892600-e620-448c-a699-aa5971abefdc'}" |
| 808 | + " 'project_id': '26b0e577-8ff8-4014-bc7a-cfc410df3488'}" |
794 | 809 | ] |
795 | 810 | }, |
796 | | - "execution_count": 22, |
| 811 | + "execution_count": 21, |
797 | 812 | "metadata": {}, |
798 | 813 | "output_type": "execute_result" |
799 | 814 | } |
|
807 | 822 | "datasets" |
808 | 823 | ] |
809 | 824 | }, |
810 | | - { |
811 | | - "cell_type": "code", |
812 | | - "execution_count": null, |
813 | | - "metadata": {}, |
814 | | - "outputs": [], |
815 | | - "source": [ |
816 | | - "raise" |
817 | | - ] |
818 | | - }, |
819 | | - { |
820 | | - "cell_type": "code", |
821 | | - "execution_count": 70, |
822 | | - "metadata": {}, |
823 | | - "outputs": [ |
824 | | - { |
825 | | - "ename": "AttributeError", |
826 | | - "evalue": "'RagasApiClient' object has no attribute 'create_dataset_column'", |
827 | | - "output_type": "error", |
828 | | - "traceback": [ |
829 | | - "\u001b[31m---------------------------------------------------------------------------\u001b[39m", |
830 | | - "\u001b[31mAttributeError\u001b[39m Traceback (most recent call last)", |
831 | | - "\u001b[36mCell\u001b[39m\u001b[36m \u001b[39m\u001b[32mIn[70]\u001b[39m\u001b[32m, line 2\u001b[39m\n\u001b[32m 1\u001b[39m \u001b[38;5;66;03m# add a new column to the dataset\u001b[39;00m\n\u001b[32m----> \u001b[39m\u001b[32m2\u001b[39m new_column = \u001b[38;5;28;01mawait\u001b[39;00m \u001b[43mclient\u001b[49m\u001b[43m.\u001b[49m\u001b[43mcreate_dataset_column\u001b[49m(\n\u001b[32m 3\u001b[39m project_id=\u001b[33m\"\u001b[39m\u001b[33m18df1385-8ff6-4c3f-bd8d-a4fcbfba5f57\u001b[39m\u001b[33m\"\u001b[39m,\n\u001b[32m 4\u001b[39m dataset_id=\u001b[33m\"\u001b[39m\u001b[33m65155a96-c77c-4e2b-b872-1a2f14f5ce45\u001b[39m\u001b[33m\"\u001b[39m,\n\u001b[32m 5\u001b[39m \u001b[38;5;28mid\u001b[39m=\u001b[33m\"\u001b[39m\u001b[33mnew_column_3\u001b[39m\u001b[33m\"\u001b[39m,\n\u001b[32m 6\u001b[39m name=\u001b[33m\"\u001b[39m\u001b[33mNew Column 3\u001b[39m\u001b[33m\"\u001b[39m,\n\u001b[32m 7\u001b[39m \u001b[38;5;28mtype\u001b[39m=\u001b[33m\"\u001b[39m\u001b[33mtext\u001b[39m\u001b[33m\"\u001b[39m,\n\u001b[32m 8\u001b[39m )\n\u001b[32m 9\u001b[39m new_column\n", |
832 | | - "\u001b[31mAttributeError\u001b[39m: 'RagasApiClient' object has no attribute 'create_dataset_column'" |
833 | | - ] |
834 | | - } |
835 | | - ], |
836 | | - "source": [ |
837 | | - "# add a new column to the dataset\n", |
838 | | - "new_column = await client.create_dataset_column(\n", |
839 | | - " project_id=\"18df1385-8ff6-4c3f-bd8d-a4fcbfba5f57\",\n", |
840 | | - " dataset_id=\"65155a96-c77c-4e2b-b872-1a2f14f5ce45\",\n", |
841 | | - " id=\"new_column_3\",\n", |
842 | | - " name=\"New Column 3\",\n", |
843 | | - " type=\"text\",\n", |
844 | | - ")\n", |
845 | | - "new_column" |
846 | | - ] |
847 | | - }, |
848 | 825 | { |
849 | 826 | "cell_type": "code", |
850 | 827 | "execution_count": null, |
|
0 commit comments