filename_fn = lambda filename: {'file_name': filename} documents = SimpleDirectoryReader("./data", file_metadata=filename_fn)
file_metadata
?filename_fn = lambda filename: { 'file_name': filename, 'my_id': "12345" }
file_doc = Document(data, extra_info={'file_name': 'transcript-WITHSpeakerType.json', 'project_id': 'test', 'another_id': 123})