|
8 | 8 | "# Migrating from HNSW to SVS-VAMANA\n", |
9 | 9 | "\n", |
10 | 10 | "## Let's Begin!\n", |
11 | | - "<a href=\"https://colab.research.google.com/github/redis-developer/redis-ai-resources/blob/main/python-recipes/vector-search/06_hnsw_to_svs_migration.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>\n", |
| 11 | + "<a href=\"https://colab.research.google.com/github/redis-developer/redis-ai-resources/blob/main/python-recipes/vector-search/06_hnsw_to_svs_vamana_migration.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>\n", |
12 | 12 | "\n", |
13 | 13 | "This notebook demonstrates how to migrate existing HNSW vector indices to SVS-VAMANA for improved memory efficiency while maintaining search quality.\n", |
14 | 14 | "\n", |
|
121 | 121 | ], |
122 | 122 | "source": "%pip install \"redisvl>=0.11.0\" \"redis>=6.4.0\" \"numpy>=1.21.0\" \"sentence-transformers>=2.2.0\"" |
123 | 123 | }, |
| 124 | + { |
| 125 | + "metadata": {}, |
| 126 | + "cell_type": "markdown", |
| 127 | + "source": "### Download Sample Data" |
| 128 | + }, |
| 129 | + { |
| 130 | + "metadata": { |
| 131 | + "ExecuteTime": { |
| 132 | + "end_time": "2025-12-09T15:18:18.087794Z", |
| 133 | + "start_time": "2025-12-09T15:18:14.222219Z" |
| 134 | + } |
| 135 | + }, |
| 136 | + "cell_type": "code", |
| 137 | + "outputs": [ |
| 138 | + { |
| 139 | + "name": "stdout", |
| 140 | + "output_type": "stream", |
| 141 | + "text": [ |
| 142 | + "Cloning into 'temp_repo'...\r\n", |
| 143 | + "remote: Enumerating objects: 2879, done.\u001B[K\r\n", |
| 144 | + "remote: Counting objects: 100% (1068/1068), done.\u001B[K\r\n", |
| 145 | + "remote: Compressing objects: 100% (492/492), done.\u001B[K\r\n", |
| 146 | + "remote: Total 2879 (delta 784), reused 733 (delta 574), pack-reused 1811 (from 2)\u001B[K\r\n", |
| 147 | + "Receiving objects: 100% (2879/2879), 68.57 MiB | 34.97 MiB/s, done.\r\n", |
| 148 | + "Resolving deltas: 100% (1649/1649), done.\r\n", |
| 149 | + "mv: rename temp_repo/python-recipes/vector-search/resources to ./resources: Directory not empty\r\n" |
| 150 | + ] |
| 151 | + } |
| 152 | + ], |
| 153 | + "execution_count": 3, |
| 154 | + "source": [ |
| 155 | + "# NBVAL_SKIP\n", |
| 156 | + "!git clone https://github.com/redis-developer/redis-ai-resources.git temp_repo\n", |
| 157 | + "!mv temp_repo/python-recipes/vector-search/resources .\n", |
| 158 | + "!rm -rf temp_repo" |
| 159 | + ] |
| 160 | + }, |
124 | 161 | { |
125 | 162 | "cell_type": "markdown", |
126 | 163 | "metadata": {}, |
|
283 | 320 | "We'll use the movie dataset to demonstrate the migration process." |
284 | 321 | ] |
285 | 322 | }, |
286 | | - { |
287 | | - "metadata": { |
288 | | - "ExecuteTime": { |
289 | | - "end_time": "2025-12-09T15:18:18.087794Z", |
290 | | - "start_time": "2025-12-09T15:18:14.222219Z" |
291 | | - } |
292 | | - }, |
293 | | - "cell_type": "code", |
294 | | - "source": [ |
295 | | - "# NBVAL_SKIP\n", |
296 | | - "!git clone https://github.com/redis-developer/redis-ai-resources.git temp_repo\n", |
297 | | - "!mv temp_repo/python-recipes/vector-search/resources .\n", |
298 | | - "!rm -rf temp_repo" |
299 | | - ], |
300 | | - "outputs": [ |
301 | | - { |
302 | | - "name": "stdout", |
303 | | - "output_type": "stream", |
304 | | - "text": [ |
305 | | - "Cloning into 'temp_repo'...\r\n", |
306 | | - "remote: Enumerating objects: 2879, done.\u001B[K\r\n", |
307 | | - "remote: Counting objects: 100% (1068/1068), done.\u001B[K\r\n", |
308 | | - "remote: Compressing objects: 100% (492/492), done.\u001B[K\r\n", |
309 | | - "remote: Total 2879 (delta 784), reused 733 (delta 574), pack-reused 1811 (from 2)\u001B[K\r\n", |
310 | | - "Receiving objects: 100% (2879/2879), 68.57 MiB | 34.97 MiB/s, done.\r\n", |
311 | | - "Resolving deltas: 100% (1649/1649), done.\r\n", |
312 | | - "mv: rename temp_repo/python-recipes/vector-search/resources to ./resources: Directory not empty\r\n" |
313 | | - ] |
314 | | - } |
315 | | - ], |
316 | | - "execution_count": 3 |
317 | | - }, |
318 | 323 | { |
319 | 324 | "cell_type": "code", |
320 | 325 | "metadata": { |
|
0 commit comments