Refactor FileLoaderComponent to remove unnecessary code
This commit is contained in:
parent
9d696230bc
commit
8b99087cff
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue