Refactor FileLoaderComponent to remove unnecessary code

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-01 09:34:09 -03:00
commit 8b99087cff

View file

@ -121,4 +121,4 @@ class FileLoaderComponent(CustomComponent):
result = loader_instance(file_path=file_path)
docs = result.load()
return self.to_records(docs, text_key="page_content", data_key="metadata")
return self.to_records(docs)