now.finetuning.dataset module#

Module contains data-transfer-object for finetune datasets.

class now.finetuning.dataset.FinetuneDataset(index, train=None, val=None, val_query=None, val_index=None)[source]#

Bases: object

index: docarray.array.document.DocumentArray#
train: Optional[docarray.array.document.DocumentArray] = None#
val: Optional[docarray.array.document.DocumentArray] = None#
val_query: Optional[docarray.array.document.DocumentArray] = None#
val_index: Optional[docarray.array.document.DocumentArray] = None#
as_dict()[source]#
Return type

Dict[str, Optional[DocumentArray]]

now.finetuning.dataset.build_finetuning_dataset(dataset, finetune_settings)[source]#
Return type

FinetuneDataset