Buckets:

download
raw
688 Bytes
from cognee.infrastructure.loaders import LoaderInterface
from .supported_loaders import supported_loaders
def use_loader(loader_name: str, loader_class: type[LoaderInterface]) -> None:
"""
Register a loader at runtime.
This allows external packages and custom loaders to be registered
into the loader system.
Args:
loader_name: Unique name for the loader
loader_class: Loader class implementing LoaderInterface
Example:
from cognee.infrastructure.loaders import use_loader
from my_package import MyCustomLoader
use_loader("my_custom_loader", MyCustomLoader)
"""
supported_loaders[loader_name] = loader_class

Xet Storage Details

Size:
688 Bytes
·
Xet hash:
87526b872972c60349be92e8a14ba5cab1a30071a33f76326d9b840b55361771

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.