def generate_prefixes(vocabulary):
    """Return a set of unique prefixes from the given list of strings."""
    # Generate prefixes using the first half of each string
    return set(word[:len(word)//2] for word in vocabulary)