Skip to content

Commit bdf2756

Browse files
author
Nitin Kanukolanu
committed
Fix README file paths and CI/CD error in FLAT migration notebook
- Update README to use correct file paths (06_hnsw_to_svs_vamana_migration.ipynb and 07_flat_to_svs_vamana_migration.ipynb) - Fix NameError in FLAT migration notebook by adding fallback selected_config definitions - Ensure CI/CD compatibility by handling missing variables in isolated cell execution
1 parent 12e649a commit bdf2756

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ Need quickstarts to begin your Redis AI journey?
6969
| 🔢 **Data Type Support** - Shows how to convert a float32 index to float16 or integer dataypes | [![Open In GitHub](https://img.shields.io/badge/View-GitHub-green)](python-recipes/vector-search/03_dtype_support.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/redis-developer/redis-ai-resources/blob/main/python-recipes/vector-search/03_dtype_support.ipynb) |
7070
| 📊 **Benchmarking Basics** - Overview of search benchmarking basics with RedisVL and Python multiprocessing | [![Open In GitHub](https://img.shields.io/badge/View-GitHub-green)](python-recipes/vector-search/04_redisvl_benchmarking_basics.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/redis-developer/redis-ai-resources/blob/main/python-recipes/vector-search/04_redisvl_benchmarking_basics.ipynb) |
7171
| 📊 **Multi Vector Search** - Overview of multi vector queries with RedisVL | [![Open In GitHub](https://img.shields.io/badge/View-GitHub-green)](python-recipes/vector-search/05_multivector_search.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/redis-developer/redis-ai-resources/blob/main/python-recipes/vector-search/05_multivector_search.ipynb) |
72-
| 🗜️ **HNSW to SVS-VAMANA Migration** - Showcase how to migrate HNSW indices to SVS-VAMANA and demonstrate 50-75% memory savings benefits | [![Open In GitHub](https://img.shields.io/badge/View-GitHub-green)](python-recipes/vector-search/05_hnsw_to_svs_vamana_migration.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/redis-developer/redis-ai-resources/blob/main/python-recipes/vector-search/05_hnsw_to_svs_vamana_migration.ipynb) |
73-
| 🗜️ **FLAT to SVS-VAMANA Migration** - Showcase how to migrate FLAT indices to SVS-VAMANA and demonstrate significant memory reduction benefits | [![Open In GitHub](https://img.shields.io/badge/View-GitHub-green)](python-recipes/vector-search/06_flat_to_svs_vamana_migration.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/redis-developer/redis-ai-resources/blob/main/python-recipes/vector-search/06_flat_to_svs_vamana_migration.ipynb) |
72+
| 🗜️ **HNSW to SVS-VAMANA Migration** - Showcase how to migrate HNSW indices to SVS-VAMANA and demonstrate 50-75% memory savings benefits | [![Open In GitHub](https://img.shields.io/badge/View-GitHub-green)](python-recipes/vector-search/06_hnsw_to_svs_vamana_migration.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/redis-developer/redis-ai-resources/blob/main/python-recipes/vector-search/06_hnsw_to_svs_vamana_migration.ipynb) |
73+
| 🗜️ **FLAT to SVS-VAMANA Migration** - Showcase how to migrate FLAT indices to SVS-VAMANA and demonstrate significant memory reduction benefits | [![Open In GitHub](https://img.shields.io/badge/View-GitHub-green)](python-recipes/vector-search/07_flat_to_svs_vamana_migration.ipynb) | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/redis-developer/redis-ai-resources/blob/main/python-recipes/vector-search/07_flat_to_svs_vamana_migration.ipynb) |
7474

7575

7676
### Retrieval Augmented Generation (RAG)

python-recipes/vector-search/06_flat_to_svs_vamana_migration.ipynb renamed to python-recipes/vector-search/07_flat_to_svs_vamana_migration.ipynb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,11 @@
507507
}
508508
],
509509
"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",
510515
"# Create SVS-VAMANA schema with compression\n",
511516
"svs_schema = {\n",
512517
" \"index\": {\n",
@@ -568,6 +573,11 @@
568573
"source": [
569574
"print(\"🔄 Migrating data to SVS-VAMANA...\")\n",
570575
"\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",
571581
"# Determine target vector dimensions (may be reduced by LeanVec)\n",
572582
"target_dims = selected_config.get('reduce', dims)\n",
573583
"target_dtype = selected_config['datatype']\n",
@@ -926,6 +936,11 @@
926936
"print(\"🎯 Migration Analysis & Recommendation\")\n",
927937
"print(\"=\" * 50)\n",
928938
"\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",
929944
"# Summarize configuration\n",
930945
"print(f\"Dataset: {num_docs} documents, {dims}-dimensional vectors\")\n",
931946
"print(f\"Compression: {selected_config.get('compression', 'None')}\")\n",

0 commit comments

Comments
 (0)