If asking for structure outoput from LlamaParse, where is the JSON stored in the Documents object?
parser = LlamaParse(
verbose=True,
parse_mode="parse_page_with_llm",
disable_image_extraction=True,
structured_output=True,
structured_output_json_schema=cv_schema
)
Path to your PDF file
pdf_file_path = "./CV.pdf"
Load and parse the PDF file
documents = await parser.aload_data(pdf_file_path)
Print the structured output
for document in documents:
print(document.text)Add a reply
Sign up and join the conversation on Discord