def encode(self, inputs: List[str], modality: Modality, normalize: bool = True) -> List[ndarray]:
        """
        Generate embeddings for the given inputs.

        The same content will always generate the same embedding.
        """
        embeddings = []

        for input_str in inputs:
            seed = self._get_seed_from_string(input_str)
            rng = np.random.default_rng(seed)

            # Generate embedding deterministically from seeded RNG
            embedding = rng.normal(size=self._model_properties.dimensions)
            if normalize:
                norm = np.linalg.norm(embedding)
                if norm > 0:
                    embedding = embedding / norm

            embeddings.append(embedding)
        return embeddings

        Generate embeddings for the given inputs.

        The same content will always generate the same embedding.
        
src/marqo/inference/native_inference/embedding_models/random_model.py