mirror of
https://github.com/run-llama/llama-hub.git
synced 2025-11-10 06:44:23 +00:00
parent
5d22855368
commit
e631266036
@ -26,13 +26,13 @@ from llama_index import download_loader
|
|||||||
|
|
||||||
SimpleDirectoryReader = download_loader("SimpleDirectoryReader")
|
SimpleDirectoryReader = download_loader("SimpleDirectoryReader")
|
||||||
|
|
||||||
loader = SimpleDirectoryReader()
|
loader = SimpleDirectoryReader('./data', file_extractor={
|
||||||
documents = loader.load_data('./data', file_extractor={
|
|
||||||
".pdf": "UnstructuredReader",
|
".pdf": "UnstructuredReader",
|
||||||
".html": "UnstructuredReader",
|
".html": "UnstructuredReader",
|
||||||
".eml": "UnstructuredReader",
|
".eml": "UnstructuredReader",
|
||||||
".pptx": "PptxReader"
|
".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.
|
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.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user