@@ -1206,34 +1206,34 @@ def delete_custom_index(self, dataset_id: str):
1206
1206
requests_command = requests .delete ,
1207
1207
)
1208
1208
1209
- def toggle_continuous_indexing (self , dataset_id : str , enable : bool = True ):
1209
+ def set_continuous_indexing (self , dataset_id : str , enable : bool = True ):
1210
1210
"""
1211
- Toggles continuous indexing for a given dataset, which will automatically generate embeddings whenever
1212
- new images are uploaded. This endpoint is currently locked for most users. Please contact the nucleus team if
1213
- you wish to use this endpoint .
1211
+ Sets continuous indexing for a given dataset, which will automatically generate embeddings whenever
1212
+ new images are uploaded. This endpoint is currently only enabled for enterprise customers.
1213
+ Please reach out to nucleus@scale.com if you wish to learn more .
1214
1214
1215
1215
:param
1216
1216
dataset_id: id of dataset that continuous indexing is being toggled for
1217
1217
enable: boolean, sets whether we are enabling or disabling continuous indexing. The default behavior is to enable.
1218
1218
"""
1219
1219
return self .make_request (
1220
1220
{INDEX_CONTINUOUS_ENABLE_KEY : enable },
1221
- f"indexing/{ dataset_id } /toggleContinuous " ,
1221
+ f"indexing/{ dataset_id } /setContinuous " ,
1222
1222
requests_command = requests .post ,
1223
1223
)
1224
1224
1225
- def kickoff_image_indexing (self , dataset_id : str , enable : bool = True ):
1225
+ def create_image_index (self , dataset_id : str ):
1226
1226
"""
1227
- Starts indexing generating embeddings for images without embeddings in a given dataset. These embeddings will
1228
- be used for autotag and similarity search. This endpoint is currently locked for most users .
1229
- Please contact the nucleus team if you wish to use this endpoint .
1227
+ Starts generating embeddings for images that don't have embeddings in a given dataset. These embeddings will
1228
+ be used for autotag and similarity search. This endpoint is currently only enabled for enterprise customers .
1229
+ Please reach out to nucleus@scale.com if you wish to learn more .
1230
1230
1231
1231
:param
1232
1232
dataset_id: id of dataset for generating embeddings on.
1233
1233
"""
1234
1234
return self .make_request (
1235
1235
{},
1236
- f"indexing/{ dataset_id } /kickoffImage " ,
1236
+ f"indexing/{ dataset_id } /internal/image " ,
1237
1237
requests_command = requests .post ,
1238
1238
)
1239
1239
0 commit comments