Find answers from the community

i
iDyn
Offline, last seen last week
Joined January 29, 2025
Hello everyone! Did anyone encounter weird behavior from metadata assignment in Document object?

I am trying to pass 'appendix' key and a string value, which is a string of paths with a '';'' separator, but for some reason it does not work. For example I am essentially trying to do this:

'appendix': '\folder1\file1; \folder1\file2; \folder1\file3'

I did print out those strings and they do properly display.
18 comments
i
W
Hello everyone! Encountered a weird behavior (prob a bug) from SimpleDirectoryReader and load_data(). Namely, when I try to get metadata with multiple workers it bugs out.
'''
reader = SimpleDirectoryReader(dir=dir, file_metadata=get_meta)
documents=reader.load_data(num_workers=4)
'''

results in
can't get attribute 'get_meta' on <module 'main'>

while if I set num_workers = 1 it works fine

Anyone had the same issue?
12 comments
i
W
L