|
577 | 577 | ->children() |
578 | 578 | ->stringNode('account_id')->cannotBeEmpty()->end() |
579 | 579 | ->stringNode('api_key')->cannotBeEmpty()->end() |
580 | | - ->stringNode('index_name')->cannotBeEmpty()->end() |
581 | | - ->integerNode('dimensions')->isRequired()->end() |
| 580 | + ->stringNode('index_name')->end() |
| 581 | + ->integerNode('dimensions') |
| 582 | + ->defaultValue(1536) |
| 583 | + ->end() |
582 | 584 | ->stringNode('metric') |
583 | | - ->cannotBeEmpty() |
584 | 585 | ->defaultValue('cosine') |
585 | 586 | ->end() |
586 | | - ->stringNode('endpoint_url')->end() |
| 587 | + ->stringNode('endpoint')->end() |
587 | 588 | ->end() |
588 | 589 | ->end() |
589 | 590 | ->end() |
|
592 | 593 | ->arrayPrototype() |
593 | 594 | ->children() |
594 | 595 | ->stringNode('endpoint')->cannotBeEmpty()->end() |
595 | | - ->stringNode('table')->cannotBeEmpty()->end() |
596 | | - ->stringNode('field')->isRequired()->end() |
597 | | - ->stringNode('type')->isRequired()->end() |
598 | | - ->stringNode('similarity')->isRequired()->end() |
599 | | - ->integerNode('dimensions')->isRequired()->end() |
| 596 | + ->stringNode('table')->end() |
| 597 | + ->stringNode('field') |
| 598 | + ->defaultValue('_vectors') |
| 599 | + ->end() |
| 600 | + ->stringNode('type') |
| 601 | + ->defaultValue('hnsw') |
| 602 | + ->end() |
| 603 | + ->stringNode('similarity') |
| 604 | + ->defaultValue('cosine') |
| 605 | + ->end() |
| 606 | + ->integerNode('dimensions') |
| 607 | + ->defaultValue(1536) |
| 608 | + ->end() |
600 | 609 | ->stringNode('quantization')->end() |
601 | 610 | ->end() |
602 | 611 | ->end() |
|
606 | 615 | ->arrayPrototype() |
607 | 616 | ->children() |
608 | 617 | ->stringNode('connection')->cannotBeEmpty()->end() |
609 | | - ->stringNode('table_name')->cannotBeEmpty()->end() |
| 618 | + ->stringNode('table_name')->end() |
610 | 619 | ->stringNode('index_name')->cannotBeEmpty()->end() |
611 | 620 | ->stringNode('vector_field_name')->cannotBeEmpty()->end() |
612 | 621 | ->arrayNode('setup_options') |
|
623 | 632 | ->children() |
624 | 633 | ->stringNode('endpoint')->cannotBeEmpty()->end() |
625 | 634 | ->stringNode('api_key')->cannotBeEmpty()->end() |
626 | | - ->stringNode('index_name')->cannotBeEmpty()->end() |
627 | | - ->stringNode('embedder')->isRequired()->end() |
628 | | - ->stringNode('vector_field')->isRequired()->end() |
629 | | - ->integerNode('dimensions')->isRequired()->end() |
| 635 | + ->stringNode('index_name')->end() |
| 636 | + ->stringNode('embedder') |
| 637 | + ->defaultValue('default') |
| 638 | + ->end() |
| 639 | + ->stringNode('vector_field') |
| 640 | + ->defaultValue('_vectors') |
| 641 | + ->end() |
| 642 | + ->integerNode('dimensions') |
| 643 | + ->defaultValue(1536) |
| 644 | + ->end() |
630 | 645 | ->floatNode('semantic_ratio') |
631 | 646 | ->info('The ratio between semantic (vector) and full-text search (0.0 to 1.0). Default: 1.0 (100% semantic)') |
632 | 647 | ->defaultValue(1.0) |
|
650 | 665 | ->children() |
651 | 666 | ->stringNode('endpoint')->cannotBeEmpty()->end() |
652 | 667 | ->stringNode('api_key')->isRequired()->end() |
653 | | - ->stringNode('database')->isRequired()->end() |
| 668 | + ->stringNode('database')->end() |
654 | 669 | ->stringNode('collection')->isRequired()->end() |
655 | | - ->stringNode('vector_field')->isRequired()->end() |
656 | | - ->integerNode('dimensions')->isRequired()->end() |
657 | | - ->stringNode('metric_type')->end() |
| 670 | + ->stringNode('vector_field') |
| 671 | + ->defaultValue('_vectors') |
| 672 | + ->end() |
| 673 | + ->integerNode('dimensions') |
| 674 | + ->defaultValue(1536) |
| 675 | + ->end() |
| 676 | + ->stringNode('metric_type') |
| 677 | + ->defaultValue('COSINE') |
| 678 | + ->end() |
658 | 679 | ->end() |
659 | 680 | ->end() |
660 | 681 | ->end() |
|
667 | 688 | ->defaultValue(MongoDbClient::class) |
668 | 689 | ->end() |
669 | 690 | ->stringNode('database')->isRequired()->end() |
670 | | - ->stringNode('collection')->isRequired()->end() |
| 691 | + ->stringNode('collection')->end() |
671 | 692 | ->stringNode('index_name')->isRequired()->end() |
672 | | - ->stringNode('vector_field')->isRequired()->end() |
673 | | - ->booleanNode('bulk_write')->end() |
| 693 | + ->stringNode('vector_field') |
| 694 | + ->defaultValue('vector') |
| 695 | + ->end() |
| 696 | + ->booleanNode('bulk_write') |
| 697 | + ->defaultValue(false) |
| 698 | + ->end() |
674 | 699 | ->end() |
675 | 700 | ->end() |
676 | 701 | ->end() |
|
681 | 706 | ->stringNode('endpoint')->cannotBeEmpty()->end() |
682 | 707 | ->stringNode('username')->cannotBeEmpty()->end() |
683 | 708 | ->stringNode('password')->cannotBeEmpty()->end() |
684 | | - ->stringNode('database')->cannotBeEmpty()->end() |
| 709 | + ->stringNode('database')->end() |
685 | 710 | ->stringNode('vector_index_name')->cannotBeEmpty()->end() |
686 | 711 | ->stringNode('node_name')->cannotBeEmpty()->end() |
687 | | - ->stringNode('vector_field')->isRequired()->end() |
688 | | - ->integerNode('dimensions')->isRequired()->end() |
689 | | - ->stringNode('distance')->isRequired()->end() |
| 712 | + ->stringNode('vector_field') |
| 713 | + ->defaultValue('embeddings') |
| 714 | + ->end() |
| 715 | + ->integerNode('dimensions') |
| 716 | + ->defaultValue(1536) |
| 717 | + ->end() |
| 718 | + ->stringNode('distance') |
| 719 | + ->defaultValue('cosine') |
| 720 | + ->end() |
690 | 721 | ->booleanNode('quantization')->end() |
691 | 722 | ->end() |
692 | 723 | ->end() |
|
716 | 747 | ->stringNode('dsn')->cannotBeEmpty()->end() |
717 | 748 | ->stringNode('username')->end() |
718 | 749 | ->stringNode('password')->end() |
719 | | - ->stringNode('table_name')->isRequired()->end() |
720 | | - ->stringNode('vector_field')->isRequired()->end() |
| 750 | + ->stringNode('table_name')->end() |
| 751 | + ->stringNode('vector_field') |
| 752 | + ->defaultValue('embedding') |
| 753 | + ->end() |
721 | 754 | ->enumNode('distance') |
722 | 755 | ->info('Distance metric to use for vector similarity search') |
723 | 756 | ->enumFqcn(PostgresDistance::class) |
|
741 | 774 | ->children() |
742 | 775 | ->stringNode('endpoint')->cannotBeEmpty()->end() |
743 | 776 | ->stringNode('api_key')->cannotBeEmpty()->end() |
744 | | - ->stringNode('collection_name')->cannotBeEmpty()->end() |
745 | | - ->integerNode('dimensions')->isRequired()->end() |
746 | | - ->stringNode('distance')->isRequired()->end() |
| 777 | + ->stringNode('collection_name')->end() |
| 778 | + ->integerNode('dimensions') |
| 779 | + ->defaultValue(1536) |
| 780 | + ->end() |
| 781 | + ->stringNode('distance') |
| 782 | + ->defaultValue('Cosine') |
| 783 | + ->end() |
747 | 784 | ->booleanNode('async')->end() |
748 | 785 | ->end() |
749 | 786 | ->end() |
|
760 | 797 | ->info('a service id of a Redis client') |
761 | 798 | ->cannotBeEmpty() |
762 | 799 | ->end() |
763 | | - ->stringNode('index_name')->isRequired()->cannotBeEmpty()->end() |
764 | | - ->stringNode('key_prefix')->defaultValue('vector:')->end() |
| 800 | + ->stringNode('index_name')->end() |
| 801 | + ->stringNode('key_prefix') |
| 802 | + ->defaultValue('vector:') |
| 803 | + ->end() |
765 | 804 | ->enumNode('distance') |
766 | 805 | ->info('Distance metric to use for vector similarity search') |
767 | 806 | ->values(Distance::cases()) |
|
790 | 829 | ->stringNode('url')->isRequired()->cannotBeEmpty()->end() |
791 | 830 | ->stringNode('api_key')->isRequired()->cannotBeEmpty()->end() |
792 | 831 | ->stringNode('table')->end() |
793 | | - ->stringNode('vector_field')->end() |
794 | | - ->integerNode('vector_dimension')->end() |
795 | | - ->stringNode('function_name')->end() |
| 832 | + ->stringNode('vector_field') |
| 833 | + ->defaultValue('embedding') |
| 834 | + ->end() |
| 835 | + ->integerNode('vector_dimension') |
| 836 | + ->defaultValue(1536) |
| 837 | + ->end() |
| 838 | + ->stringNode('function_name') |
| 839 | + ->defaultValue('match_documents') |
| 840 | + ->end() |
796 | 841 | ->end() |
797 | 842 | ->end() |
798 | 843 | ->end() |
|
805 | 850 | ->stringNode('password')->cannotBeEmpty()->end() |
806 | 851 | ->stringNode('namespace')->cannotBeEmpty()->end() |
807 | 852 | ->stringNode('database')->cannotBeEmpty()->end() |
808 | | - ->stringNode('table')->isRequired()->end() |
809 | | - ->stringNode('vector_field')->isRequired()->end() |
810 | | - ->stringNode('strategy')->isRequired()->end() |
811 | | - ->integerNode('dimensions')->isRequired()->end() |
| 853 | + ->stringNode('table')->end() |
| 854 | + ->stringNode('vector_field') |
| 855 | + ->defaultValue('_vectors') |
| 856 | + ->end() |
| 857 | + ->stringNode('strategy') |
| 858 | + ->defaultValue('cosine') |
| 859 | + ->end() |
| 860 | + ->integerNode('dimensions') |
| 861 | + ->defaultValue(1536) |
| 862 | + ->end() |
812 | 863 | ->booleanNode('namespaced_user')->end() |
813 | 864 | ->end() |
814 | 865 | ->end() |
|
819 | 870 | ->children() |
820 | 871 | ->stringNode('endpoint')->cannotBeEmpty()->end() |
821 | 872 | ->stringNode('api_key')->isRequired()->end() |
822 | | - ->stringNode('collection')->isRequired()->end() |
823 | | - ->stringNode('vector_field')->isRequired()->end() |
824 | | - ->integerNode('dimensions')->isRequired()->end() |
| 873 | + ->stringNode('collection')->end() |
| 874 | + ->stringNode('vector_field') |
| 875 | + ->defaultValue('_vectors') |
| 876 | + ->end() |
| 877 | + ->integerNode('dimensions') |
| 878 | + ->defaultValue(1536) |
| 879 | + ->end() |
825 | 880 | ->end() |
826 | 881 | ->end() |
827 | 882 | ->end() |
|
831 | 886 | ->children() |
832 | 887 | ->stringNode('endpoint')->cannotBeEmpty()->end() |
833 | 888 | ->stringNode('api_key')->isRequired()->end() |
834 | | - ->stringNode('collection')->isRequired()->end() |
| 889 | + ->stringNode('collection')->end() |
835 | 890 | ->end() |
836 | 891 | ->end() |
837 | 892 | ->end() |
|
0 commit comments