File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -269,12 +269,18 @@ async def fork(
269
269
Returns:
270
270
Collection: A new collection with the specified name and containing identical data to the current collection.
271
271
"""
272
- return await self ._client ._fork (
272
+ model = await self ._client ._fork (
273
273
collection_id = self .id ,
274
274
new_name = new_name ,
275
275
tenant = self .tenant ,
276
276
database = self .database ,
277
277
)
278
+ return AsyncCollection (
279
+ client = self ._client ,
280
+ model = model ,
281
+ embedding_function = self ._embedding_function ,
282
+ data_loader = self ._data_loader
283
+ )
278
284
279
285
async def update (
280
286
self ,
Original file line number Diff line number Diff line change @@ -275,12 +275,18 @@ def fork(
275
275
Returns:
276
276
Collection: A new collection with the specified name and containing identical data to the current collection.
277
277
"""
278
- return self ._client ._fork (
278
+ model = self ._client ._fork (
279
279
collection_id = self .id ,
280
280
new_name = new_name ,
281
281
tenant = self .tenant ,
282
282
database = self .database ,
283
283
)
284
+ return Collection (
285
+ client = self ._client ,
286
+ model = model ,
287
+ embedding_function = self ._embedding_function ,
288
+ data_loader = self ._data_loader
289
+ )
284
290
285
291
def update (
286
292
self ,
You can’t perform that action at this time.
0 commit comments