langchain_community.document_loaders.iugu.IuguLoader¶

class langchain_community.document_loaders.iugu.IuguLoader(resource: str, api_token: Optional[str] = None)[source]¶

Load from IUGU.

Initialize the IUGU resource.

Parameters
  • resource – The name of the resource to fetch.

  • api_token – The IUGU API token to use.

Methods

__init__(resource[, api_token])

Initialize the IUGU resource.

lazy_load()

A lazy loader for Documents.

load()

Load data into Document objects.

load_and_split([text_splitter])

Load Documents and split into chunks.

__init__(resource: str, api_token: Optional[str] = None) None[source]¶

Initialize the IUGU resource.

Parameters
  • resource – The name of the resource to fetch.

  • api_token – The IUGU API token to use.

lazy_load() Iterator[Document]¶

A lazy loader for Documents.

load() List[Document][source]¶

Load data into Document objects.

load_and_split(text_splitter: Optional[TextSplitter] = None) List[Document]¶

Load Documents and split into chunks. Chunks are returned as Documents.

Parameters

text_splitter – TextSplitter instance to use for splitting documents. Defaults to RecursiveCharacterTextSplitter.

Returns

List of Documents.

Examples using IuguLoader¶