def get_embedding(self) -> List[float]:
        """
        Get embedding.

        Errors if embedding is None.

        """
        if self.embedding is None:
            raise ValueError("embedding not set.")
        return self.embedding

        Get embedding.

        Errors if embedding is None.

        
llama-index-core/llama_index/core/schema.py