|
24 | 24 | "name": "stdout", |
25 | 25 | "output_type": "stream", |
26 | 26 | "text": [ |
27 | | - "\u001b[32m11:13:52\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m RedisVL version 0.0.5\n" |
| 27 | + "\u001b[32m20:09:02\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m RedisVL version 0.0.7\n" |
28 | 28 | ] |
29 | 29 | } |
30 | 30 | ], |
|
44 | 44 | "first, we will create an index from a yaml schema that looks like the following\n", |
45 | 45 | "\n", |
46 | 46 | "```yaml\n", |
| 47 | + "version: '0.1.0'\n", |
| 48 | + "\n", |
47 | 49 | "index:\n", |
48 | | - " name: providers\n", |
49 | | - " prefix: rvl\n", |
| 50 | + " name: vectorizers\n", |
| 51 | + " prefix: doc\n", |
50 | 52 | " storage_type: hash\n", |
51 | 53 | "\n", |
52 | 54 | "fields:\n", |
53 | | - " text:\n", |
54 | | - " - name: sentence\n", |
55 | | - " vector:\n", |
56 | | - " - name: embedding\n", |
57 | | - " dims: 768\n", |
58 | | - " algorithm: flat\n", |
59 | | - " distance_metric: cosine\n", |
| 55 | + " - name: sentence\n", |
| 56 | + " type: text\n", |
| 57 | + " - name: embedding\n", |
| 58 | + " type: vector\n", |
| 59 | + " attrs:\n", |
| 60 | + " dims: 768\n", |
| 61 | + " algorithm: flat\n", |
| 62 | + " distance_metric: cosine\n", |
60 | 63 | "```" |
61 | 64 | ] |
62 | 65 | }, |
|
69 | 72 | "name": "stdout", |
70 | 73 | "output_type": "stream", |
71 | 74 | "text": [ |
72 | | - "\u001b[32m11:13:54\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index created successfully\n" |
| 75 | + "\u001b[32m20:09:04\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index created successfully\n" |
73 | 76 | ] |
74 | 77 | } |
75 | 78 | ], |
|
87 | 90 | "name": "stdout", |
88 | 91 | "output_type": "stream", |
89 | 92 | "text": [ |
90 | | - "\u001b[32m11:13:56\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n", |
91 | | - "\u001b[32m11:13:56\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. providers\n" |
| 93 | + "\u001b[32m20:09:05\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n", |
| 94 | + "\u001b[32m20:09:05\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. vectorizers\n" |
92 | 95 | ] |
93 | 96 | } |
94 | 97 | ], |
|
112 | 115 | "╭──────────────┬────────────────┬────────────┬─────────────────┬────────────╮\n", |
113 | 116 | "│ Index Name │ Storage Type │ Prefixes │ Index Options │ Indexing │\n", |
114 | 117 | "├──────────────┼────────────────┼────────────┼─────────────────┼────────────┤\n", |
115 | | - "│ providers │ HASH │ ['rvl'] │ [] │ 0 │\n", |
| 118 | + "│ vectorizers │ HASH │ ['doc'] │ [] │ 0 │\n", |
116 | 119 | "╰──────────────┴────────────────┴────────────┴─────────────────┴────────────╯\n", |
117 | 120 | "Index Fields:\n", |
118 | 121 | "╭───────────┬─────────────┬────────┬────────────────┬────────────────╮\n", |
|
126 | 129 | ], |
127 | 130 | "source": [ |
128 | 131 | "# inspect the index fields\n", |
129 | | - "!rvl index info -i providers" |
| 132 | + "!rvl index info -i vectorizers" |
130 | 133 | ] |
131 | 134 | }, |
132 | 135 | { |
|
138 | 141 | "name": "stdout", |
139 | 142 | "output_type": "stream", |
140 | 143 | "text": [ |
141 | | - "\u001b[32m11:13:59\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index deleted successfully\n" |
| 144 | + "\u001b[32m20:09:09\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index deleted successfully\n" |
142 | 145 | ] |
143 | 146 | } |
144 | 147 | ], |
145 | 148 | "source": [ |
146 | 149 | "# delete an index without deleting the data within it\n", |
147 | | - "!rvl index delete -i providers" |
| 150 | + "!rvl index delete -i vectorizers" |
148 | 151 | ] |
149 | 152 | }, |
150 | 153 | { |
|
156 | 159 | "name": "stdout", |
157 | 160 | "output_type": "stream", |
158 | 161 | "text": [ |
159 | | - "\u001b[32m11:14:00\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n" |
| 162 | + "\u001b[32m20:09:11\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n" |
160 | 163 | ] |
161 | 164 | } |
162 | 165 | ], |
|
183 | 186 | "name": "stdout", |
184 | 187 | "output_type": "stream", |
185 | 188 | "text": [ |
186 | | - "\u001b[32m11:14:02\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index created successfully\n" |
| 189 | + "\u001b[32m20:09:12\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index created successfully\n" |
187 | 190 | ] |
188 | 191 | } |
189 | 192 | ], |
|
201 | 204 | "name": "stdout", |
202 | 205 | "output_type": "stream", |
203 | 206 | "text": [ |
204 | | - "\u001b[32m11:14:03\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n", |
205 | | - "\u001b[32m11:14:03\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. providers\n" |
| 207 | + "\u001b[32m20:09:14\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Indices:\n", |
| 208 | + "\u001b[32m20:09:14\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m 1. vectorizers\n" |
206 | 209 | ] |
207 | 210 | } |
208 | 211 | ], |
|
250 | 253 | ], |
251 | 254 | "source": [ |
252 | 255 | "# see all the stats for the index\n", |
253 | | - "!rvl stats -i providers" |
| 256 | + "!rvl stats -i vectorizers" |
| 257 | + ] |
| 258 | + }, |
| 259 | + { |
| 260 | + "cell_type": "code", |
| 261 | + "execution_count": 11, |
| 262 | + "metadata": {}, |
| 263 | + "outputs": [ |
| 264 | + { |
| 265 | + "name": "stdout", |
| 266 | + "output_type": "stream", |
| 267 | + "text": [ |
| 268 | + "\u001b[32m20:09:33\u001b[0m \u001b[34m[RedisVL]\u001b[0m \u001b[1;30mINFO\u001b[0m Index deleted successfully\n" |
| 269 | + ] |
| 270 | + } |
| 271 | + ], |
| 272 | + "source": [ |
| 273 | + "!rvl index destroy -i vectorizers" |
254 | 274 | ] |
255 | 275 | } |
256 | 276 | ], |
|
0 commit comments