diff --git a/loader_hub/file/unstructured/README.md b/loader_hub/file/unstructured/README.md index 27dac0ca..3c932c84 100644 --- a/loader_hub/file/unstructured/README.md +++ b/loader_hub/file/unstructured/README.md @@ -26,13 +26,13 @@ from llama_index import download_loader SimpleDirectoryReader = download_loader("SimpleDirectoryReader") -loader = SimpleDirectoryReader() -documents = loader.load_data('./data', file_extractor={ +loader = SimpleDirectoryReader('./data', file_extractor={ ".pdf": "UnstructuredReader", ".html": "UnstructuredReader", ".eml": "UnstructuredReader", ".pptx": "PptxReader" }) +documents = loader.load_data() ``` This loader is designed to be used as a way to load data into [LlamaIndex](https://github.com/jerryjliu/gpt_index/tree/main/gpt_index) and/or subsequently used as a Tool in a [LangChain](https://github.com/hwchase17/langchain) Agent. See [here](https://github.com/emptycrown/llama-hub/tree/main) for examples.