def vector_for_keys(keyed_vectors, keys: list[str]):
    """Return the sum of vectors in keyed_vectors for the given keys"""
    if not keys:
        raise ValueError("keys cannot be empty")

    return keyed_vectors[keys].sum(axis=0)