Find answers from the community

Updated 2 years ago

I have upgraded llama index to latest

I have upgraded llama_index to latest version : 0.6.20 and trying to run below code :

from llama_index import SimpleDirectoryReader

documents = SimpleDirectoryReader("./data", filename_as_id=True).load_data()

But, getting below error :
documents = SimpleDirectoryReader("input/multi", filename_as_id=True).load_data()
TypeError: init() got an unexpected keyword argument 'filename_as_id'
E
p
L
6 comments
update to

Plain Text
documents = SimpleDirectoryReader("./data").load_data()
This would work but I am looking to include filename as doc id as mentioned here : Customizing the doc id : https://gpt-index.readthedocs.io/en/latest/how_to/customization/custom_documents.html
Ah, I think that argument hasn't made it to pypi yet
For now, you can install llama index directly from github to get the feature
Just merged that feature last night lol
Cool ! Thanks for the confirmation !
Add a reply
Sign up and join the conversation on Discord