Module Contents#

class relevanceai.operations_new.vectorize.transform.VectorizeTransform(fields: List[str], models: List[relevanceai.operations_new.vectorize.models.base.VectorizeModelBase], output_fields: list = None, **kwargs)#

To write your own operation, you need to add: - name - transform

models :List[relevanceai.operations_new.vectorize.models.base.VectorizeModelBase]#
fields :List[str]#
property name(self)#

abstractproperty for name

transform(self, documents: List[Dict[str, Any]]) List[Dict[str, Any]]#

It takes a list of documents, and for each document, it runs the document through each of the models in the pipeline, and returns the updated documents.


documents (List[Dict[str, Any]]) – List[Dict[str, Any]]

Return type

A list of dictionaries.