Commit 0da98f9
committed
feat: Neo4j vector index method support
This commit introduces support for specifying vector index methods (HNSW)
for Neo4j targets.
- Modified `src/base/spec.rs` to derive `Eq` for `VectorIndexMethod`.
- Modified `src/ops/targets/neo4j.rs` to:
- Allow `VectorIndexMethod` to be passed to `IndexDef::from_vector_index_def`.
- Store `VectorIndexMethod` in `IndexDef::VectorIndex`.
- Implement error handling for unsupported `VectorIndexMethod` (IVFFlat).
- Update `SetupComponentOperator::describe_state` to display the method.
- Update `SetupComponentOperator::create` to include HNSW parameters in the Cypher query.1 parent 0dc1a48 commit 0da98f9
2 files changed
+34
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
384 | 384 | | |
385 | 385 | | |
386 | 386 | | |
387 | | - | |
| 387 | + | |
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
572 | | - | |
573 | | - | |
574 | 571 | | |
575 | 572 | | |
576 | 573 | | |
| |||
583 | 580 | | |
584 | 581 | | |
585 | 582 | | |
| 583 | + | |
586 | 584 | | |
587 | 585 | | |
588 | 586 | | |
| |||
644 | 642 | | |
645 | 643 | | |
646 | 644 | | |
| 645 | + | |
647 | 646 | | |
648 | 647 | | |
649 | 648 | | |
650 | 649 | | |
651 | 650 | | |
652 | 651 | | |
653 | 652 | | |
| 653 | + | |
654 | 654 | | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
655 | 659 | | |
656 | 660 | | |
657 | 661 | | |
| |||
664 | 668 | | |
665 | 669 | | |
666 | 670 | | |
| 671 | + | |
667 | 672 | | |
668 | 673 | | |
669 | 674 | | |
| |||
723 | 728 | | |
724 | 729 | | |
725 | 730 | | |
| 731 | + | |
726 | 732 | | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
727 | 737 | | |
728 | | - | |
| 738 | + | |
729 | 739 | | |
730 | 740 | | |
731 | 741 | | |
| |||
752 | 762 | | |
753 | 763 | | |
754 | 764 | | |
| 765 | + | |
755 | 766 | | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
756 | 784 | | |
757 | 785 | | |
758 | 786 | | |
759 | 787 | | |
760 | 788 | | |
761 | 789 | | |
762 | | - | |
| 790 | + | |
763 | 791 | | |
764 | 792 | | |
765 | 793 | | |
| |||
0 commit comments