Log in
Log into community
Find answers from the community
View all posts
Related posts
Did this answer your question?
😞
😐
😃
Powered by
Hall
Inactive
Updated 2 years ago
0
Follow
doc names
doc names
Inactive
0
Follow
M
Mikko
2 years ago
·
Are the original document names saved in the index?
m
M
z
6 comments
Share
Open in Discord
m
marismaro
2 years ago
My understanding is that when you add documents to the index, you could include a doc_id with each
m
marismaro
2 years ago
Document(‘content’, ‘doc name’)
M
Mikko
2 years ago
Hmm when I read with SimpleDirectoryReader each document has an empty doc_id, when I make an index there is a doc_id that is not related to the filename
z
zgott
2 years ago
When creating a document, you can set the file name in the extra_info parameter.
m
marismaro
2 years ago
yes it will provide a randomly generated UUID if you don't provide your own doc_id per document
M
Mikko
2 years ago
Okay, I was able to do this with the SimpleDirectoryReader by adding a file_metadata function.
Add a reply
Sign up and join the conversation on Discord
Join on Discord