def load_embedding(file_path: str) -> List[float]:
    """Load embedding from file. Will only return first embedding in file."""
    with open(file_path) as f:
        for line in f:
            embedding = [float(x) for x in line.strip().split(",")]
            break
        return embedding
Load embedding from file. Will only return first embedding in file.
llama-index-core/llama_index/core/embeddings/utils.py