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

# retrievers

## convert\_to\_documents

```python theme={null}
def convert_to_documents(data: RetrieverSpanAllowedOutputType,
                         field_name: Union[str, None]=None) -> list[Document]
```

Convert various input types to a list of Document objects.
