> ## Documentation Index
> Fetch the complete documentation index at: https://docs.camel-ai.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Camel.loaders.base loader

<a id="camel.loaders.base_loader" />

<a id="camel.loaders.base_loader.BaseLoader" />

## BaseLoader

```python theme={"system"}
class BaseLoader(ABC):
```

Abstract base class for all data loaders in CAMEL.

<a id="camel.loaders.base_loader.BaseLoader._load_single" />

### \_load\_single

```python theme={"system"}
def _load_single(self, source: Union[str, Path]):
```

Load data from a single source.

**Parameters:**

* **source** (Union\[str, Path]): The data source to load from.

**Returns:**

Dict\[str, Any]: A dictionary containing the loaded data. It is
recommended that the dictionary includes a "content" key with
the primary data and optional metadata keys.

<a id="camel.loaders.base_loader.BaseLoader.load" />

### load

```python theme={"system"}
def load(self, source: Union[str, Path, List[Union[str, Path]]]):
```

Load data from one or multiple sources.

**Parameters:**

* **source** (Union\[str, Path, List\[Union\[str, Path]]]): The data source (s) to load from. Can be: - A single path/URL (str or Path) - A list of paths/URLs

**Returns:**

Dict\[str, List\[Dict\[str, Any]]]: A dictionary with a single key
"contents" containing a list of loaded data. If a single source
is provided, the list will contain a single item.

<a id="camel.loaders.base_loader.BaseLoader.supported_formats" />

### supported\_formats

```python theme={"system"}
def supported_formats(self):
```

**Returns:**

set\[str]: A set of strings representing the supported formats/
sources.
