|
507 | 507 | } |
508 | 508 | ], |
509 | 509 | "source": [ |
| 510 | + "# Fallback configuration if not defined (for CI/CD compatibility)\n", |
| 511 | + "if 'selected_config' not in locals():\n", |
| 512 | + " from redisvl.utils import CompressionAdvisor\n", |
| 513 | + " selected_config = CompressionAdvisor.recommend(dims=dims, priority=\"memory\")\n", |
| 514 | + "\n", |
510 | 515 | "# Create SVS-VAMANA schema with compression\n", |
511 | 516 | "svs_schema = {\n", |
512 | 517 | " \"index\": {\n", |
|
568 | 573 | "source": [ |
569 | 574 | "print(\"🔄 Migrating data to SVS-VAMANA...\")\n", |
570 | 575 | "\n", |
| 576 | + "# Fallback configuration if not defined (for CI/CD compatibility)\n", |
| 577 | + "if 'selected_config' not in locals():\n", |
| 578 | + " from redisvl.utils import CompressionAdvisor\n", |
| 579 | + " selected_config = CompressionAdvisor.recommend(dims=dims, priority=\"memory\")\n", |
| 580 | + "\n", |
571 | 581 | "# Determine target vector dimensions (may be reduced by LeanVec)\n", |
572 | 582 | "target_dims = selected_config.get('reduce', dims)\n", |
573 | 583 | "target_dtype = selected_config['datatype']\n", |
|
926 | 936 | "print(\"🎯 Migration Analysis & Recommendation\")\n", |
927 | 937 | "print(\"=\" * 50)\n", |
928 | 938 | "\n", |
| 939 | + "# Fallback configuration if not defined (for CI/CD compatibility)\n", |
| 940 | + "if 'selected_config' not in locals():\n", |
| 941 | + " from redisvl.utils import CompressionAdvisor\n", |
| 942 | + " selected_config = CompressionAdvisor.recommend(dims=dims, priority=\"memory\")\n", |
| 943 | + "\n", |
929 | 944 | "# Summarize configuration\n", |
930 | 945 | "print(f\"Dataset: {num_docs} documents, {dims}-dimensional vectors\")\n", |
931 | 946 | "print(f\"Compression: {selected_config.get('compression', 'None')}\")\n", |
|
0 commit comments