TextSplitter#

pydantic model llama_index.node_parser.TextSplitter#

Show JSON schema
{
   "title": "TextSplitter",
   "description": "Base interface for node parser.",
   "type": "object",
   "properties": {
      "include_metadata": {
         "title": "Include Metadata",
         "description": "Whether or not to consider metadata when splitting.",
         "default": true,
         "type": "boolean"
      },
      "include_prev_next_rel": {
         "title": "Include Prev Next Rel",
         "description": "Include prev/next node relationships.",
         "default": true,
         "type": "boolean"
      },
      "callback_manager": {
         "title": "Callback Manager"
      },
      "id_func": {
         "title": "Id Func"
      },
      "class_name": {
         "title": "Class Name",
         "type": "string",
         "default": "base_component"
      }
   }
}

Config
  • arbitrary_types_allowed: bool = True

Fields

abstract split_text(text: str) List[str]#
split_texts(texts: List[str]) List[str]#