|
17 | 17 | }, |
18 | 18 | { |
19 | 19 | "cell_type": "code", |
20 | | - "execution_count": 1, |
| 20 | + "execution_count": 42, |
21 | 21 | "metadata": {}, |
22 | 22 | "outputs": [ |
23 | 23 | { |
24 | 24 | "name": "stdout", |
25 | 25 | "output_type": "stream", |
26 | 26 | "text": [ |
27 | | - "\u001b[32m09:58:03\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m RedisVL version 0.5.2\n" |
| 27 | + "19:16:18 [RedisVL] INFO RedisVL version 0.5.2\n" |
28 | 28 | ] |
29 | 29 | } |
30 | 30 | ], |
|
65 | 65 | }, |
66 | 66 | { |
67 | 67 | "cell_type": "code", |
68 | | - "execution_count": 31, |
| 68 | + "execution_count": 43, |
69 | 69 | "metadata": {}, |
70 | 70 | "outputs": [ |
71 | 71 | { |
|
99 | 99 | }, |
100 | 100 | { |
101 | 101 | "cell_type": "code", |
102 | | - "execution_count": 32, |
| 102 | + "execution_count": 44, |
103 | 103 | "metadata": {}, |
104 | 104 | "outputs": [ |
105 | 105 | { |
106 | 106 | "name": "stdout", |
107 | 107 | "output_type": "stream", |
108 | 108 | "text": [ |
109 | | - "\u001b[32m18:12:32\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n", |
110 | | - "\u001b[32m18:12:32\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index created successfully\n" |
| 109 | + "19:16:21 [RedisVL] INFO Index created successfully\n" |
111 | 110 | ] |
112 | 111 | } |
113 | 112 | ], |
|
118 | 117 | }, |
119 | 118 | { |
120 | 119 | "cell_type": "code", |
121 | | - "execution_count": 33, |
| 120 | + "execution_count": 45, |
122 | 121 | "metadata": {}, |
123 | 122 | "outputs": [ |
124 | 123 | { |
125 | 124 | "name": "stdout", |
126 | 125 | "output_type": "stream", |
127 | 126 | "text": [ |
128 | | - "\u001b[32m18:12:35\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n", |
129 | | - "\u001b[32m18:12:35\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n", |
130 | | - "\u001b[32m18:12:35\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. vectorizers\n" |
| 127 | + "19:16:24 [RedisVL] INFO Indices:\n", |
| 128 | + "19:16:24 [RedisVL] INFO 1. vectorizers\n" |
131 | 129 | ] |
132 | 130 | } |
133 | 131 | ], |
|
138 | 136 | }, |
139 | 137 | { |
140 | 138 | "cell_type": "code", |
141 | | - "execution_count": 34, |
| 139 | + "execution_count": 46, |
142 | 140 | "metadata": {}, |
143 | 141 | "outputs": [ |
144 | 142 | { |
145 | 143 | "name": "stdout", |
146 | 144 | "output_type": "stream", |
147 | 145 | "text": [ |
148 | | - "\u001b[32m18:12:37\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n", |
149 | 146 | "\n", |
150 | 147 | "\n", |
151 | 148 | "Index Information:\n", |
152 | | - "╭──────────────┬────────────────┬────────────┬─────────────────┬────────────╮\n", |
153 | | - "│ Index Name │ Storage Type │ Prefixes │ Index Options │ Indexing │\n", |
154 | | - "├──────────────┼────────────────┼────────────┼─────────────────┼────────────┤\n", |
155 | | - "│ vectorizers │ HASH │ ['doc'] │ [] │ 0 │\n", |
156 | | - "╰──────────────┴────────────────┴────────────┴─────────────────┴────────────╯\n", |
| 149 | + "╭───────────────┬───────────────┬───────────────┬───────────────┬───────────────╮\n", |
| 150 | + "│ Index Name │ Storage Type │ Prefixes │ Index Options │ Indexing │\n", |
| 151 | + "├───────────────┼───────────────┼───────────────┼───────────────┼───────────────┤\n", |
| 152 | + "| vectorizers | HASH | ['doc'] | [] | 0 |\n", |
| 153 | + "╰───────────────┴───────────────┴───────────────┴───────────────┴───────────────╯\n", |
157 | 154 | "Index Fields:\n", |
158 | | - "╭───────────┬─────────────┬────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬─────────────────┬────────────────╮\n", |
159 | | - "│ Name │ Attribute │ Type │ Field Option │ Option Value │ Field Option │ Option Value │ Field Option │ Option Value │ Field Option │ Option Value │\n", |
160 | | - "├───────────┼─────────────┼────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼─────────────────┼────────────────┤\n", |
161 | | - "│ sentence │ sentence │ TEXT │ WEIGHT │ 1 │ │ │ │ │ │ │\n", |
162 | | - "│ embedding │ embedding │ VECTOR │ algorithm │ FLAT │ data_type │ FLOAT32 │ dim │ 768 │ distance_metric │ COSINE │\n", |
163 | | - "╰───────────┴─────────────┴────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴─────────────────┴────────────────╯\n" |
| 155 | + "╭─────────────────┬─────────────────┬─────────────────┬─────────────────┬─────────────────┬─────────────────┬─────────────────┬─────────────────┬─────────────────┬─────────────────┬─────────────────╮\n", |
| 156 | + "│ Name │ Attribute │ Type │ Field Option │ Option Value │ Field Option │ Option Value │ Field Option │ Option Value │ Field Option │ Option Value │\n", |
| 157 | + "├─────────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────────┼─────────────────┤\n", |
| 158 | + "│ sentence │ sentence │ TEXT │ WEIGHT │ 1 │ │ │ │ │ │ │\n", |
| 159 | + "│ embedding │ embedding │ VECTOR │ algorithm │ FLAT │ data_type │ FLOAT32 │ dim │ 768 │ distance_metric │ COSINE │\n", |
| 160 | + "╰─────────────────┴─────────────────┴─────────────────┴─────────────────┴─────────────────┴─────────────────┴─────────────────┴─────────────────┴─────────────────┴─────────────────┴─────────────────╯\n" |
164 | 161 | ] |
165 | 162 | } |
166 | 163 | ], |
|
171 | 168 | }, |
172 | 169 | { |
173 | 170 | "cell_type": "code", |
174 | | - "execution_count": 35, |
| 171 | + "execution_count": 47, |
175 | 172 | "metadata": {}, |
176 | 173 | "outputs": [ |
177 | 174 | { |
178 | 175 | "name": "stdout", |
179 | 176 | "output_type": "stream", |
180 | 177 | "text": [ |
181 | | - "\u001b[32m18:12:40\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n", |
182 | | - "\u001b[32m18:12:40\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index deleted successfully\n" |
| 178 | + "19:16:29 [RedisVL] INFO Index deleted successfully\n" |
183 | 179 | ] |
184 | 180 | } |
185 | 181 | ], |
|
190 | 186 | }, |
191 | 187 | { |
192 | 188 | "cell_type": "code", |
193 | | - "execution_count": 36, |
| 189 | + "execution_count": 48, |
194 | 190 | "metadata": {}, |
195 | 191 | "outputs": [ |
196 | 192 | { |
197 | 193 | "name": "stdout", |
198 | 194 | "output_type": "stream", |
199 | 195 | "text": [ |
200 | | - "\u001b[32m18:12:43\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n", |
201 | | - "\u001b[32m18:12:43\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n" |
| 196 | + "19:16:32 [RedisVL] INFO Indices:\n" |
202 | 197 | ] |
203 | 198 | } |
204 | 199 | ], |
|
218 | 213 | }, |
219 | 214 | { |
220 | 215 | "cell_type": "code", |
221 | | - "execution_count": 38, |
| 216 | + "execution_count": 49, |
222 | 217 | "metadata": {}, |
223 | 218 | "outputs": [ |
224 | 219 | { |
225 | 220 | "name": "stdout", |
226 | 221 | "output_type": "stream", |
227 | 222 | "text": [ |
228 | | - "\u001b[32m18:13:21\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n", |
229 | | - "\u001b[32m18:13:21\u001b[0m \u001b[34mredisvl.index.index\u001b[0m \u001b[1;30mINFO\u001b[0m Index already exists, not overwriting.\n", |
230 | | - "\u001b[32m18:13:21\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index created successfully\n" |
| 223 | + "19:16:35 [RedisVL] INFO Index created successfully\n" |
231 | 224 | ] |
232 | 225 | } |
233 | 226 | ], |
|
239 | 232 | }, |
240 | 233 | { |
241 | 234 | "cell_type": "code", |
242 | | - "execution_count": 39, |
| 235 | + "execution_count": 50, |
243 | 236 | "metadata": {}, |
244 | 237 | "outputs": [ |
245 | 238 | { |
246 | 239 | "name": "stdout", |
247 | 240 | "output_type": "stream", |
248 | 241 | "text": [ |
249 | | - "\u001b[32m18:13:25\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n", |
250 | | - "\u001b[32m18:13:25\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n", |
251 | | - "\u001b[32m18:13:25\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. vectorizers\n" |
| 242 | + "19:16:38 [RedisVL] INFO Indices:\n", |
| 243 | + "19:16:38 [RedisVL] INFO 1. vectorizers\n" |
252 | 244 | ] |
253 | 245 | } |
254 | 246 | ], |
|
259 | 251 | }, |
260 | 252 | { |
261 | 253 | "cell_type": "code", |
262 | | - "execution_count": 40, |
| 254 | + "execution_count": 51, |
263 | 255 | "metadata": {}, |
264 | 256 | "outputs": [ |
265 | 257 | { |
266 | 258 | "name": "stdout", |
267 | 259 | "output_type": "stream", |
268 | 260 | "text": [ |
269 | | - "\u001b[32m18:13:31\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n", |
270 | 261 | "\n", |
271 | 262 | "Statistics:\n", |
272 | | - "╭─────────────────────────────┬─────────╮\n", |
273 | | - "│ Stat Key │ Value │\n", |
274 | | - "├─────────────────────────────┼─────────┤\n", |
275 | | - "│ num_docs │ 0 │\n", |
276 | | - "│ num_terms │ 0 │\n", |
277 | | - "│ max_doc_id │ 0 │\n", |
278 | | - "│ num_records │ 0 │\n", |
279 | | - "│ percent_indexed │ 1 │\n", |
280 | | - "│ hash_indexing_failures │ 3 │\n", |
281 | | - "│ number_of_uses │ 2 │\n", |
282 | | - "│ bytes_per_record_avg │ nan │\n", |
283 | | - "│ doc_table_size_mb │ 0 │\n", |
284 | | - "│ inverted_sz_mb │ 0 │\n", |
285 | | - "│ key_table_size_mb │ 0 │\n", |
286 | | - "│ offset_bits_per_record_avg │ nan │\n", |
287 | | - "│ offset_vectors_sz_mb │ 0 │\n", |
288 | | - "│ offsets_per_term_avg │ nan │\n", |
289 | | - "│ records_per_doc_avg │ nan │\n", |
290 | | - "│ sortable_values_size_mb │ 0 │\n", |
291 | | - "│ total_indexing_time │ 0.02 │\n", |
292 | | - "│ total_inverted_index_blocks │ 0 │\n", |
293 | | - "│ vector_index_sz_mb │ 0 │\n", |
294 | | - "╰─────────────────────────────┴─────────╯\n" |
| 263 | + "╭─────────────────────────────┬────────────╮\n", |
| 264 | + "│ Stat Key │ Value │\n", |
| 265 | + "├─────────────────────────────┼────────────┤\n", |
| 266 | + "│ num_docs │ 0 │\n", |
| 267 | + "│ num_terms │ 0 │\n", |
| 268 | + "│ max_doc_id │ 0 │\n", |
| 269 | + "│ num_records │ 0 │\n", |
| 270 | + "│ percent_indexed │ 1 │\n", |
| 271 | + "│ hash_indexing_failures │ 0 │\n", |
| 272 | + "│ number_of_uses │ 1 │\n", |
| 273 | + "│ bytes_per_record_avg │ nan │\n", |
| 274 | + "│ doc_table_size_mb │ 0 │\n", |
| 275 | + "│ inverted_sz_mb │ 0 │\n", |
| 276 | + "│ key_table_size_mb │ 0 │\n", |
| 277 | + "│ offset_bits_per_record_avg │ nan │\n", |
| 278 | + "│ offset_vectors_sz_mb │ 0 │\n", |
| 279 | + "│ offsets_per_term_avg │ nan │\n", |
| 280 | + "│ records_per_doc_avg │ nan │\n", |
| 281 | + "│ sortable_values_size_mb │ 0 │\n", |
| 282 | + "│ total_indexing_time │ 0 │\n", |
| 283 | + "│ total_inverted_index_blocks │ 0 │\n", |
| 284 | + "│ vector_index_sz_mb │ 0.00818634 │\n", |
| 285 | + "╰─────────────────────────────┴────────────╯\n" |
295 | 286 | ] |
296 | 287 | } |
297 | 288 | ], |
|
327 | 318 | }, |
328 | 319 | { |
329 | 320 | "cell_type": "code", |
330 | | - "execution_count": 41, |
| 321 | + "execution_count": 52, |
331 | 322 | "metadata": {}, |
332 | 323 | "outputs": [ |
333 | 324 | { |
334 | 325 | "name": "stdout", |
335 | 326 | "output_type": "stream", |
336 | 327 | "text": [ |
337 | | - "\u001b[32m18:13:36\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Using Redis address from environment variable, REDIS_URL\n", |
338 | | - "\u001b[32m18:13:36\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n", |
339 | | - "\u001b[32m18:13:36\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. vectorizers\n" |
| 328 | + "19:16:43 [RedisVL] INFO Indices:\n", |
| 329 | + "19:16:43 [RedisVL] INFO 1. vectorizers\n" |
340 | 330 | ] |
341 | 331 | } |
342 | 332 | ], |
|
356 | 346 | }, |
357 | 347 | { |
358 | 348 | "cell_type": "code", |
359 | | - "execution_count": null, |
| 349 | + "execution_count": 53, |
360 | 350 | "metadata": {}, |
361 | | - "outputs": [], |
| 351 | + "outputs": [ |
| 352 | + { |
| 353 | + "name": "stdout", |
| 354 | + "output_type": "stream", |
| 355 | + "text": [ |
| 356 | + "19:16:46 [RedisVL] ERROR Error 8 connecting to rediss:6379. nodename nor servname provided, or not known.\n" |
| 357 | + ] |
| 358 | + } |
| 359 | + ], |
362 | 360 | "source": [ |
363 | 361 | "# connect to rediss://jane_doe:password123@localhost:6379\n", |
364 | 362 | "!rvl index listall --user jane_doe -a password123 --ssl" |
365 | 363 | ] |
366 | 364 | }, |
367 | 365 | { |
368 | 366 | "cell_type": "code", |
369 | | - "execution_count": null, |
| 367 | + "execution_count": 54, |
370 | 368 | "metadata": {}, |
371 | | - "outputs": [], |
| 369 | + "outputs": [ |
| 370 | + { |
| 371 | + "name": "stdout", |
| 372 | + "output_type": "stream", |
| 373 | + "text": [ |
| 374 | + "19:16:49 [RedisVL] INFO Index deleted successfully\n" |
| 375 | + ] |
| 376 | + } |
| 377 | + ], |
372 | 378 | "source": [ |
373 | 379 | "!rvl index destroy -i vectorizers" |
374 | 380 | ] |
|
390 | 396 | "name": "python", |
391 | 397 | "nbconvert_exporter": "python", |
392 | 398 | "pygments_lexer": "ipython3", |
393 | | - "version": "3.13.2" |
| 399 | + "version": "3.13.0" |
394 | 400 | } |
395 | 401 | }, |
396 | 402 | "nbformat": 4, |
|
0 commit comments