Find answers from the community

Updated 2 years ago

Sub folders

Hey I have a question so if I want to do indexing in a files folder where I have sub folders and in each of them there are files to index , is there any way I could I am kinda confused
L
p
3 comments
Yea I think the simple directory reader will recursively check all folders, just gotta point it to the top level

Plain Text
documents = SimpleDirectoryReader("./data", recursive=True).load_data()
Alright thank you I will try it out
@Logan M thank you for the help it worked
Add a reply
Sign up and join the conversation on Discord