Find answers from the community

Updated 2 months ago

Metadata

What is the idiomatic way to add custom metadata to a document? I need to keep track of an "external_id" for potential future deletion and curious about the right way to do this. Should i use the file_metadata() callback in the load_file() method when loading a new file ?
L
d
3 comments
Yea you can use that callback to set metadata based on the filename.

Or you can manually set the Metadata on each document after loading
cool thank you. Whats the manual method?
nm saw Isaac's response, didnt realize it was as simple as document.metatata['key'] = value
Add a reply
Sign up and join the conversation on Discord