Find answers from the community

Updated 2 months ago

Hi! How to serialize/deserialize

Hi! How to serialize/deserialize Document objects?

I used LlamaParse to parse my documents:

Plain Text
file_extractor = {".pdf": parser}
documents = SimpleDirectoryReader(
    "./docs/pdfs/all", file_extractor=file_extractor
).load_data()


I want to store them and then re-use later on. Is it possible?
L
1 comment
json_str = Document.json()
document = Document.parse_raw(json_str)
Add a reply
Sign up and join the conversation on Discord