Skip to content

Commit da358d0

Browse files
committed
Fix Colab button
1 parent 31fd0eb commit da358d0

File tree

2 files changed

+56
-46
lines changed

2 files changed

+56
-46
lines changed

python-recipes/vector-search/06_hnsw_to_svs_vamana_migration.ipynb

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"# Migrating from HNSW to SVS-VAMANA\n",
99
"\n",
1010
"## 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",
1212
"\n",
1313
"This notebook demonstrates how to migrate existing HNSW vector indices to SVS-VAMANA for improved memory efficiency while maintaining search quality.\n",
1414
"\n",
@@ -121,6 +121,43 @@
121121
],
122122
"source": "%pip install \"redisvl>=0.11.0\" \"redis>=6.4.0\" \"numpy>=1.21.0\" \"sentence-transformers>=2.2.0\""
123123
},
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+
},
124161
{
125162
"cell_type": "markdown",
126163
"metadata": {},
@@ -283,38 +320,6 @@
283320
"We'll use the movie dataset to demonstrate the migration process."
284321
]
285322
},
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-
},
318323
{
319324
"cell_type": "code",
320325
"metadata": {

python-recipes/vector-search/07_flat_to_svs_vamana_migration.ipynb

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"# Migrating from FLAT to SVS-VAMANA\n",
99
"\n",
1010
"## 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_svs_vamana_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/07_flat_to_svs_vamana_migration.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>\n",
1212
"\n",
1313
"This notebook demonstrates how to migrate existing FLAT vector indices to SVS-VAMANA for improved memory efficiency and cost savings.\n",
1414
"\n",
@@ -98,6 +98,23 @@
9898
"outputs": [],
9999
"source": "%pip install \"redisvl>=0.11.0\" \"redis>=6.4.0\" \"numpy>=1.21.0\" \"sentence-transformers>=2.2.0\""
100100
},
101+
{
102+
"metadata": {},
103+
"cell_type": "markdown",
104+
"source": "### Download Sample Data"
105+
},
106+
{
107+
"metadata": {},
108+
"cell_type": "code",
109+
"outputs": [],
110+
"execution_count": null,
111+
"source": [
112+
"# NBVAL_SKIP\n",
113+
"!git clone https://github.com/redis-developer/redis-ai-resources.git temp_repo\n",
114+
"!mv temp_repo/python-recipes/vector-search/resources .\n",
115+
"!rm -rf temp_repo"
116+
]
117+
},
101118
{
102119
"metadata": {},
103120
"cell_type": "markdown",
@@ -247,18 +264,6 @@
247264
"For this demonstration, we'll create a sample FLAT index. In practice, you would analyze your existing index."
248265
]
249266
},
250-
{
251-
"metadata": {},
252-
"cell_type": "code",
253-
"outputs": [],
254-
"execution_count": null,
255-
"source": [
256-
"# NBVAL_SKIP\n",
257-
"!git clone https://github.com/redis-developer/redis-ai-resources.git temp_repo\n",
258-
"!mv temp_repo/python-recipes/vector-search/resources .\n",
259-
"!rm -rf temp_repo"
260-
]
261-
},
262267
{
263268
"cell_type": "code",
264269
"metadata": {

0 commit comments

Comments
 (0)