Skip to main content

convert_to_documents

def convert_to_documents(data: RetrieverSpanAllowedOutputType,
                         field_name: Union[str, None]=None) -> list[Document]
Convert various input types to a list of Document objects.