Solved (thanks !):You have to instantiate the readers.
Correct:
".md": MarkdownReader(),
Incorrect:
".md": MarkdownReader,
MarkdownReader broken?When I try to use my own set of file_extractors, I get the following error:
Failed to load file /app/data/manual.md with error: MarkdownReader.load_data() missing 1 required positional argument: 'file'. Skipping...
Code:
file_extractor = {
".csv": PandasCSVReader,
".docx": DocxReader,
...
}
SimpleDirectoryReader(
input_dir=self.knowledge_path,
file_extractor=file_extractor,
).load_data()
But this goes away if I just use default extractors. Any ideas?