Generate embeddings for inputs of a given modality. Args: inputs: List of inputs. modality: Type of content ("text", "image", "video", etc.) Returns: numpy array of shape (len(inputs), embedding_dim)
(self, inputs: List[Any], modality: str)
| 70 | |
| 71 | @abstractmethod |
| 72 | def embed(self, inputs: List[Any], modality: str) -> "np.ndarray": |
| 73 | """ |
| 74 | Generate embeddings for inputs of a given modality. |
| 75 | |
| 76 | Args: |
| 77 | inputs: List of inputs. |
| 78 | modality: Type of content ("text", "image", "video", etc.) |
| 79 | |
| 80 | Returns: |
| 81 | numpy array of shape (len(inputs), embedding_dim) |
| 82 | """ |
| 83 | pass |
| 84 | |
| 85 | def embed_dataframe( |
| 86 | self, |