def split_text(text: str, n=100, character=" ") -> List[str]:
    """Split the text every ``n``-th occurrence of ``character``"""
    text = text.split(character)
    return [character.join(text[i : i + n]).strip() for i in range(0, len(text), n)]
Split the text every ``n``-th occurrence of ``character``
dpkd/transformers/examples/research_projects/rag-end2end-retriever/use_own_knowledge_dataset.py