Skip to content

Commit fbbcaf1

Browse files
author
rkang
committed
README uses better example for vector deletion
1 parent 5911f1a commit fbbcaf1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,8 @@ col = ndb.collection('custom_collection')
261261
# Delete 3 vectors, 'foo', 'bar', and 'baz'.
262262
col.delete_vectors(vector_ids=['foo', 'bar', 'baz'])
263263

264-
# Delete all vectors created before Sunday, January 1, 2023 12:00:00 AM GMT
265-
col.delete_vectors(metadata_filter="created_on < 1672531200")
264+
# Delete all vectors where 'int_col' is specified, and the value is less than 3.
265+
col.delete_vectors(metadata_filter="int_col < 3")
266266

267267
# Delete all vectors in the collection
268268
col.delete_vectors(delete_all=True)

0 commit comments

Comments
 (0)