swarmauri.core.embeddings.IVectorize module

class swarmauri.core.embeddings.IVectorize.IVectorize[source]

Bases: ABC

Interface for converting text to vectors. Implementations of this interface transform input text into numerical vectors that can be used in machine learning models, similarity calculations, and other vector-based operations.

abstract fit(data)[source]
Return type:

None

abstract fit_transform(data)[source]
Return type:

List[IVector]

abstract infer_vector(data, *args, **kwargs)[source]
Return type:

IVector

abstract transform(data)[source]
Return type:

List[IVector]