File tree 4 files changed +0
-81
lines changed
4 files changed +0
-81
lines changed Original file line number Diff line number Diff line change @@ -461,24 +461,6 @@ def get_or_create_collection(
461
461
"""
462
462
pass
463
463
464
- @abstractmethod
465
- def _fork (
466
- self ,
467
- collection_id : UUID ,
468
- new_name : str
469
- ) -> Collection :
470
- """[Internal] Fork the current collection under a new name. The returning collection should contain identical data to the current collection.
471
- This is an experimental API that only works for Hosted Chroma for now.
472
-
473
- Args:
474
- new_name: The name of the new collection.
475
-
476
- Returns:
477
- Collection: A new collection with the specified name and containing identical data to the current collection.
478
- """
479
- pass
480
-
481
-
482
464
@abstractmethod
483
465
def set_tenant (self , tenant : str , database : str = DEFAULT_DATABASE ) -> None :
484
466
"""Set the tenant and database for the client. Raises an error if the tenant or
Original file line number Diff line number Diff line change @@ -455,27 +455,6 @@ async def get_or_create_collection(
455
455
"""
456
456
pass
457
457
458
- @abstractmethod
459
- async def _fork (
460
- self ,
461
- collection_id : UUID ,
462
- new_name : str ,
463
- embedding_function : Optional [
464
- EmbeddingFunction [Embeddable ]
465
- ] = ef .DefaultEmbeddingFunction (), # type: ignore
466
- data_loader : Optional [DataLoader [Loadable ]] = None ,
467
- ) -> AsyncCollection :
468
- """[Internal] Fork the current collection under a new name. The returning collection should contain identical data to the current collection.
469
- This is an experimental API that only works for Hosted Chroma for now.
470
-
471
- Args:
472
- new_name: The name of the new collection.
473
-
474
- Returns:
475
- Collection: A new collection with the specified name and containing identical data to the current collection.
476
- """
477
- pass
478
-
479
458
@abstractmethod
480
459
async def set_tenant (self , tenant : str , database : str = DEFAULT_DATABASE ) -> None :
481
460
"""Set the tenant and database for the client. Raises an error if the tenant or
Original file line number Diff line number Diff line change @@ -268,27 +268,6 @@ async def _modify(
268
268
database = self .database ,
269
269
)
270
270
271
- @override
272
- async def _fork (
273
- self ,
274
- collection_id : UUID ,
275
- new_name : str ,
276
- embedding_function : Optional [
277
- EmbeddingFunction [Embeddable ]
278
- ] = ef .DefaultEmbeddingFunction (), # type: ignore
279
- data_loader : Optional [DataLoader [Loadable ]] = None ,
280
- ) -> AsyncCollection :
281
- model = await self ._server ._fork (
282
- collection_id = collection_id ,
283
- new_name = new_name ,
284
- )
285
- return AsyncCollection (
286
- client = self ._server ,
287
- model = model ,
288
- embedding_function = embedding_function ,
289
- data_loader = data_loader ,
290
- )
291
-
292
271
@override
293
272
async def delete_collection (
294
273
self ,
Original file line number Diff line number Diff line change @@ -235,27 +235,6 @@ def _modify(
235
235
new_configuration = new_configuration ,
236
236
)
237
237
238
- @override
239
- def _fork (
240
- self ,
241
- collection_id : UUID ,
242
- new_name : str ,
243
- embedding_function : Optional [
244
- EmbeddingFunction [Embeddable ]
245
- ] = ef .DefaultEmbeddingFunction (), # type: ignore
246
- data_loader : Optional [DataLoader [Loadable ]] = None ,
247
- ) -> Collection :
248
- model = self ._server ._fork (
249
- collection_id = collection_id ,
250
- new_name = new_name ,
251
- )
252
- return Collection (
253
- client = self ._server ,
254
- model = model ,
255
- embedding_function = embedding_function ,
256
- data_loader = data_loader ,
257
- )
258
-
259
238
@override
260
239
def delete_collection (
261
240
self ,
You can’t perform that action at this time.
0 commit comments