|
4 | 4 | "cell_type": "code", |
5 | 5 | "metadata": { |
6 | 6 | "ExecuteTime": { |
7 | | - "end_time": "2024-11-13T08:52:46.651285Z", |
8 | | - "start_time": "2024-11-13T08:52:46.633741Z" |
| 7 | + "end_time": "2024-11-13T09:01:03.324551Z", |
| 8 | + "start_time": "2024-11-13T09:01:03.234711Z" |
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "source": [ |
|
22 | 22 | ] |
23 | 23 | } |
24 | 24 | ], |
25 | | - "execution_count": 3 |
| 25 | + "execution_count": 10 |
26 | 26 | }, |
27 | 27 | { |
28 | 28 | "cell_type": "code", |
29 | 29 | "metadata": { |
30 | 30 | "ExecuteTime": { |
31 | | - "end_time": "2024-11-13T08:52:46.973001Z", |
32 | | - "start_time": "2024-11-13T08:52:46.962113Z" |
| 31 | + "end_time": "2024-11-13T09:01:04.505772Z", |
| 32 | + "start_time": "2024-11-13T09:01:04.493296Z" |
33 | 33 | } |
34 | 34 | }, |
35 | 35 | "source": [ |
|
44 | 44 | "from fastembed.rerank.cross_encoder import TextCrossEncoder" |
45 | 45 | ], |
46 | 46 | "outputs": [], |
47 | | - "execution_count": 4 |
| 47 | + "execution_count": 11 |
48 | 48 | }, |
49 | 49 | { |
50 | 50 | "cell_type": "markdown", |
|
57 | 57 | "cell_type": "code", |
58 | 58 | "metadata": { |
59 | 59 | "ExecuteTime": { |
60 | | - "end_time": "2024-11-13T08:52:49.705020Z", |
61 | | - "start_time": "2024-11-13T08:52:49.665915Z" |
| 60 | + "end_time": "2024-11-13T09:01:05.812271Z", |
| 61 | + "start_time": "2024-11-13T09:01:05.795846Z" |
62 | 62 | } |
63 | 63 | }, |
64 | 64 | "source": [ |
|
360 | 360 | "</div>" |
361 | 361 | ] |
362 | 362 | }, |
363 | | - "execution_count": 5, |
| 363 | + "execution_count": 12, |
364 | 364 | "metadata": {}, |
365 | 365 | "output_type": "execute_result" |
366 | 366 | } |
367 | 367 | ], |
368 | | - "execution_count": 5 |
| 368 | + "execution_count": 12 |
369 | 369 | }, |
370 | 370 | { |
371 | 371 | "cell_type": "markdown", |
|
378 | 378 | "cell_type": "code", |
379 | 379 | "metadata": { |
380 | 380 | "ExecuteTime": { |
381 | | - "end_time": "2024-11-13T08:52:51.690851Z", |
382 | | - "start_time": "2024-11-13T08:52:51.677404Z" |
| 381 | + "end_time": "2024-11-13T09:01:07.038954Z", |
| 382 | + "start_time": "2024-11-13T09:01:07.019656Z" |
383 | 383 | } |
384 | 384 | }, |
385 | 385 | "source": [ |
|
481 | 481 | "</div>" |
482 | 482 | ] |
483 | 483 | }, |
484 | | - "execution_count": 6, |
| 484 | + "execution_count": 13, |
485 | 485 | "metadata": {}, |
486 | 486 | "output_type": "execute_result" |
487 | 487 | } |
488 | 488 | ], |
489 | | - "execution_count": 6 |
| 489 | + "execution_count": 13 |
490 | 490 | }, |
491 | 491 | { |
492 | 492 | "cell_type": "markdown", |
|
502 | 502 | "metadata": { |
503 | 503 | "collapsed": false, |
504 | 504 | "ExecuteTime": { |
505 | | - "end_time": "2024-11-13T08:52:52.866135Z", |
506 | | - "start_time": "2024-11-13T08:52:52.852411Z" |
| 505 | + "end_time": "2024-11-13T09:01:08.074442Z", |
| 506 | + "start_time": "2024-11-13T09:01:08.056138Z" |
507 | 507 | } |
508 | 508 | }, |
509 | 509 | "source": [ |
|
593 | 593 | "</div>" |
594 | 594 | ] |
595 | 595 | }, |
596 | | - "execution_count": 7, |
| 596 | + "execution_count": 14, |
597 | 597 | "metadata": {}, |
598 | 598 | "output_type": "execute_result" |
599 | 599 | } |
600 | 600 | ], |
601 | | - "execution_count": 7 |
| 601 | + "execution_count": 14 |
602 | 602 | }, |
603 | 603 | { |
604 | 604 | "cell_type": "markdown", |
|
614 | 614 | "metadata": { |
615 | 615 | "collapsed": false, |
616 | 616 | "ExecuteTime": { |
617 | | - "end_time": "2024-11-13T08:52:54.060642Z", |
618 | | - "start_time": "2024-11-13T08:52:54.043437Z" |
| 617 | + "end_time": "2024-11-13T09:01:09.171647Z", |
| 618 | + "start_time": "2024-11-13T09:01:09.150940Z" |
619 | 619 | } |
620 | 620 | }, |
621 | 621 | "source": [ |
|
706 | 706 | "</div>" |
707 | 707 | ] |
708 | 708 | }, |
709 | | - "execution_count": 8, |
| 709 | + "execution_count": 15, |
710 | 710 | "metadata": {}, |
711 | 711 | "output_type": "execute_result" |
712 | 712 | } |
713 | 713 | ], |
714 | | - "execution_count": 8 |
| 714 | + "execution_count": 15 |
715 | 715 | }, |
716 | 716 | { |
717 | 717 | "cell_type": "markdown", |
718 | 718 | "metadata": {}, |
719 | 719 | "source": [ |
720 | | - "## Supported Rerankers Models" |
| 720 | + "## Supported Rerank Cross Encoder Models" |
721 | 721 | ] |
722 | 722 | }, |
723 | 723 | { |
724 | 724 | "cell_type": "code", |
725 | 725 | "metadata": { |
726 | 726 | "ExecuteTime": { |
727 | | - "end_time": "2024-11-13T08:52:55.933033Z", |
728 | | - "start_time": "2024-11-13T08:52:55.915572Z" |
| 727 | + "end_time": "2024-11-13T09:01:10.313943Z", |
| 728 | + "start_time": "2024-11-13T09:01:10.298428Z" |
729 | 729 | } |
730 | 730 | }, |
731 | 731 | "source": [ |
|
740 | 740 | { |
741 | 741 | "data": { |
742 | 742 | "text/plain": [ |
743 | | - " model size_in_GB \\\n", |
744 | | - "0 Xenova/ms-marco-MiniLM-L-6-v2 0.08 \n", |
745 | | - "1 Xenova/ms-marco-MiniLM-L-12-v2 0.12 \n", |
746 | | - "2 BAAI/bge-reranker-base 1.04 \n", |
| 743 | + " model size_in_GB \\\n", |
| 744 | + "0 Xenova/ms-marco-MiniLM-L-6-v2 0.08 \n", |
| 745 | + "1 Xenova/ms-marco-MiniLM-L-12-v2 0.12 \n", |
| 746 | + "2 jinaai/jina-reranker-v1-tiny-en 0.13 \n", |
| 747 | + "3 jinaai/jina-reranker-v1-turbo-en 0.15 \n", |
| 748 | + "4 BAAI/bge-reranker-base 1.04 \n", |
| 749 | + "5 jinaai/jina-reranker-v2-base-multilingual 1.11 \n", |
747 | 750 | "\n", |
748 | | - " description license \n", |
749 | | - "0 MiniLM-L-6-v2 model optimized for re-ranking t... apache-2.0 \n", |
750 | | - "1 MiniLM-L-12-v2 model optimized for re-ranking ... apache-2.0 \n", |
751 | | - "2 BGE reranker base model for cross-encoder re-r... mit " |
| 751 | + " description license \n", |
| 752 | + "0 MiniLM-L-6-v2 model optimized for re-ranking t... apache-2.0 \n", |
| 753 | + "1 MiniLM-L-12-v2 model optimized for re-ranking ... apache-2.0 \n", |
| 754 | + "2 Designed for blazing-fast re-ranking with 8K c... apache-2.0 \n", |
| 755 | + "3 Designed for blazing-fast re-ranking with 8K c... apache-2.0 \n", |
| 756 | + "4 BGE reranker base model for cross-encoder re-r... mit \n", |
| 757 | + "5 A multi-lingual reranker model for cross-encod... cc-by-nc-4.0 " |
752 | 758 | ], |
753 | 759 | "text/html": [ |
754 | 760 | "<div>\n", |
|
792 | 798 | " </tr>\n", |
793 | 799 | " <tr>\n", |
794 | 800 | " <th>2</th>\n", |
| 801 | + " <td>jinaai/jina-reranker-v1-tiny-en</td>\n", |
| 802 | + " <td>0.13</td>\n", |
| 803 | + " <td>Designed for blazing-fast re-ranking with 8K c...</td>\n", |
| 804 | + " <td>apache-2.0</td>\n", |
| 805 | + " </tr>\n", |
| 806 | + " <tr>\n", |
| 807 | + " <th>3</th>\n", |
| 808 | + " <td>jinaai/jina-reranker-v1-turbo-en</td>\n", |
| 809 | + " <td>0.15</td>\n", |
| 810 | + " <td>Designed for blazing-fast re-ranking with 8K c...</td>\n", |
| 811 | + " <td>apache-2.0</td>\n", |
| 812 | + " </tr>\n", |
| 813 | + " <tr>\n", |
| 814 | + " <th>4</th>\n", |
795 | 815 | " <td>BAAI/bge-reranker-base</td>\n", |
796 | 816 | " <td>1.04</td>\n", |
797 | 817 | " <td>BGE reranker base model for cross-encoder re-r...</td>\n", |
798 | 818 | " <td>mit</td>\n", |
799 | 819 | " </tr>\n", |
| 820 | + " <tr>\n", |
| 821 | + " <th>5</th>\n", |
| 822 | + " <td>jinaai/jina-reranker-v2-base-multilingual</td>\n", |
| 823 | + " <td>1.11</td>\n", |
| 824 | + " <td>A multi-lingual reranker model for cross-encod...</td>\n", |
| 825 | + " <td>cc-by-nc-4.0</td>\n", |
| 826 | + " </tr>\n", |
800 | 827 | " </tbody>\n", |
801 | 828 | "</table>\n", |
802 | 829 | "</div>" |
803 | 830 | ] |
804 | 831 | }, |
805 | | - "execution_count": 9, |
| 832 | + "execution_count": 16, |
806 | 833 | "metadata": {}, |
807 | 834 | "output_type": "execute_result" |
808 | 835 | } |
809 | 836 | ], |
810 | | - "execution_count": 9 |
| 837 | + "execution_count": 16 |
811 | 838 | }, |
812 | 839 | { |
813 | 840 | "metadata": {}, |
|
819 | 846 | ], |
820 | 847 | "metadata": { |
821 | 848 | "kernelspec": { |
822 | | - "display_name": ".venv", |
| 849 | + "display_name": "Python 3.8.18 ('base')", |
823 | 850 | "language": "python", |
824 | 851 | "name": "python3" |
825 | 852 | }, |
|
833 | 860 | "name": "python", |
834 | 861 | "nbconvert_exporter": "python", |
835 | 862 | "pygments_lexer": "ipython3", |
836 | | - "version": "3.11.2" |
| 863 | + "version": "3.11.8" |
837 | 864 | }, |
838 | | - "orig_nbformat": 4 |
| 865 | + "orig_nbformat": 4, |
| 866 | + "vscode": { |
| 867 | + "interpreter": { |
| 868 | + "hash": "c4a27af61e455bc18dcf16f5867a2ff0402fa12b01dd0f6ce3a79ae73ad15e91" |
| 869 | + } |
| 870 | + } |
839 | 871 | }, |
840 | 872 | "nbformat": 4, |
841 | 873 | "nbformat_minor": 2 |
|
0 commit comments