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: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,10 @@
1
1
# Changelog
2
2
3
3
## Unreleased Changes
4
+
### Changed
5
+
- Added support for deleting vectors by metadata filter. The pinecone.Index.delete() api now accepts an additional filter= parameter which takes metadata filter expression equivalent to what query() supports.
6
+
- Internally these requests are now sent as POST requests, though the previous DELETE api is still supported.
Copy file name to clipboardExpand all lines: pinecone/core/client/api/vector_operations_api.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,7 @@ def __delete1(
185
185
186
186
Keyword Args:
187
187
ids ([str]): Vectors to delete.. [optional]
188
-
delete_all (bool): This indicates that all vectors in the index namespace should be deleted.. [optional]
188
+
delete_all (bool): This indicates that all vectors in the index namespace should be deleted.. [optional] if omitted the server will use the default value of False
189
189
namespace (str): The namespace to delete vectors from, if applicable.. [optional]
190
190
_return_http_data_only (bool): response data without head status
ids ([str]): Vectors to delete.. [optional] # noqa: E501
151
-
delete_all (bool): This indicates that all vectors in the index namespace should be deleted.. [optional] # noqa: E501
151
+
delete_all (bool): This indicates that all vectors in the index namespace should be deleted.. [optional] if omitted the server will use the default value of False # noqa: E501
152
152
namespace (str): The namespace to delete vectors from, if applicable.. [optional] # noqa: E501
filter ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive with specifying ids to delete in the ids param or using delete_all=True. See https://www.pinecone.io/docs/metadata-filtering/`.. [optional] # noqa: E501
ids ([str]): Vectors to delete.. [optional] # noqa: E501
236
-
delete_all (bool): This indicates that all vectors in the index namespace should be deleted.. [optional] # noqa: E501
236
+
delete_all (bool): This indicates that all vectors in the index namespace should be deleted.. [optional] if omitted the server will use the default value of False # noqa: E501
237
237
namespace (str): The namespace to delete vectors from, if applicable.. [optional] # noqa: E501
filter ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive with specifying ids to delete in the ids param or using delete_all=True. See https://www.pinecone.io/docs/metadata-filtering/`.. [optional] # noqa: E501
filter ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The filter to apply if no filter is specified in `QueryVector. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/`.. [optional] # noqa: E501
170
170
include_values (bool): Indicates whether vector values are included in the response.. [optional] if omitted the server will use the default value of False # noqa: E501
171
171
include_metadata (bool): Indicates whether metadata is included in the response as well as the ids.. [optional] if omitted the server will use the default value of False # noqa: E501
filter ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The filter to apply if no filter is specified in `QueryVector. You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/`.. [optional] # noqa: E501
261
261
include_values (bool): Indicates whether vector values are included in the response.. [optional] if omitted the server will use the default value of False # noqa: E501
262
262
include_metadata (bool): Indicates whether metadata is included in the response as well as the ids.. [optional] if omitted the server will use the default value of False # noqa: E501
0 commit comments