Skip to main content
Version: 0.0.5

agrag.loaders.common.text_sections

text_sections(text:str) -> list[DocumentSection]

Return one section with an empty heading that holds the text as paragraphs.

Parameters:

  • text (str) – The document text.

Returns:

  • list[DocumentSection] – A list with one section, or an empty list when the text is blank.