You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core_docs/docs/integrations/vectorstores/redis.ipynb
+35-4Lines changed: 35 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,7 @@
179
179
"id": "dcf1b905",
180
180
"metadata": {},
181
181
"source": [
182
-
"Top-level document ids and deletion are currently not supported."
182
+
"Top-level document ids are currently not supported, but you can delete documents by providing their IDs directly to the vector store."
183
183
]
184
184
},
185
185
{
@@ -304,9 +304,19 @@
304
304
"id": "069f1b5f",
305
305
"metadata": {},
306
306
"source": [
307
-
"## Deleting an index\n",
307
+
"## Deleting documents\n",
308
308
"\n",
309
-
"You can delete an entire index with the following command:"
309
+
"You can delete documents from the vector store in two ways:\n"
310
+
]
311
+
},
312
+
{
313
+
"cell_type": "markdown",
314
+
"id": "dde32a56",
315
+
"metadata": {},
316
+
"source": [
317
+
"### Delete all documents\n",
318
+
"\n",
319
+
"You can delete an entire index and all its documents with the following command:"
310
320
]
311
321
},
312
322
{
@@ -319,6 +329,27 @@
319
329
"await vectorStore.delete({ deleteAll: true });"
320
330
]
321
331
},
332
+
{
333
+
"cell_type": "markdown",
334
+
"id": "b77fa077",
335
+
"metadata": {},
336
+
"source": [
337
+
"### Delete specific documents by ID\n",
338
+
"\n",
339
+
"You can also delete specific documents by providing their IDs. Note that the configured key prefix will be automatically added to the IDs you provide:\n"
340
+
]
341
+
},
342
+
{
343
+
"cell_type": "code",
344
+
"execution_count": 11,
345
+
"id": "cb7a85ee",
346
+
"metadata": {},
347
+
"outputs": [],
348
+
"source": [
349
+
"// The key prefix will be automatically added to each ID\n",
0 commit comments