Skip to content

Base

Loader

A base class for loaders.

MultiLoader

A loader that loads from multiple loaders.

Attributes:

Name Type Description
loaders list[Loader]

The loaders to load from.

Examples:

Basic Usage of MultiLoader

from raggy.loaders.base import MultiLoader
from raggy.loaders.github import GitHubRepoLoader

loader = MultiLoader(
    loaders=[
        GitHubRepoLoader(repo="prefecthq/prefect"),
        GitHubRepoLoader(repo="prefecthq/marvin"),
    ]
)

documents = await loader.load() # all (chunked) files from both repos
print(documents)