relevanceai.operations_new.transform_base
#
Base Operations Class Checks fields, contains key abstract methods, etc
Module Contents#
- relevanceai.operations_new.transform_base.DO_NOT_STORE#
- class relevanceai.operations_new.transform_base.OperationsCheck#
Helper class that provides a standard way to create an ABC using inheritance.
- static normalize_string(string: str)#
- class relevanceai.operations_new.transform_base.TransformBase#
To write your own operation, you need to add: - name - transform
- vector_fields :List[str]#
- alias :str#
- property name(self) str #
abstractproperty for name
- abstract transform(self, *args, **kwargs) List[Dict[str, Any]] #
abstractmethod for transform
- get_operation_metadata(self, *args, **kwargs) Dict[str, Any] #
abstractmethod for return metadata for upsertion
- get_transformers_device(self, device: int = None)#
Automatically returns a GPU device if there is one. Otherwise, returns a CPU device for transformers